This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: os.lseek() doesn't work
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: cernoevic, loewis
Priority: normal Keywords:

Created on 2004-05-20 16:11 by cernoevic, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg20856 - (view) Author: michal cernoevic (cernoevic) Date: 2004-05-20 16:11
>>> f=file('.htaccess', 'r+')                         
                                                      
              
>>> s=f.readline()
>>> f=os.lseek(f,0,0)                                 
                                                      
              
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: an integer is required

SunOS wwwinfoa 5.8 Generic_108528-24 sun4u sparc
SUNW,Ultra-4

64-bit

The nulls are really nuls.
msg20857 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-05-31 21:12
Logged In: YES 
user_id=21627

This is not a bug in Python; you are using lstat
incorrectly. The first argument for lstat must be an
integer, not a file object.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40277
2004-05-20 16:11:44cernoeviccreate