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.

Author Mikhail Zakharov
Recipients Mikhail Zakharov, docs@python, josh.r
Date 2018-04-05.14:01:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522936906.77.0.682650639539.issue33229@psf.upfronthosting.co.za>
In-reply-to
Content
Seems in my, quite old 3.4.5 version, it doesn't work:

$ python3
Python 3.4.5 (default, Jun  1 2017, 13:52:39) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> f = open('/tmp/text.txt', 'r')
>>> f.seek(0, SEEK_END)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'SEEK_END' is not defined
>>> f.close()
>>> 
>>> import os
>>> f = open('/tmp/text.txt', 'r')
>>> f.seek(0, os.SEEK_END)
214
>>> f.close()
History
Date User Action Args
2018-04-05 14:01:46Mikhail Zakharovsetrecipients: + Mikhail Zakharov, docs@python, josh.r
2018-04-05 14:01:46Mikhail Zakharovsetmessageid: <1522936906.77.0.682650639539.issue33229@psf.upfronthosting.co.za>
2018-04-05 14:01:46Mikhail Zakharovlinkissue33229 messages
2018-04-05 14:01:46Mikhail Zakharovcreate