pombreda / gevent

Automatically exported from code.google.com/p/gevent
0 stars 0 forks source link

FileObject seek doesn't seem to work #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Createa  file called testfile in the working directory. Fill it with at 
least 1050 bytes of data.
2. Run the attached script (it will perform a seek then read with basic file 
operations and then do the same with gevent's fileobject)

What is the expected output? What do you see instead?

Expected:
1024
data: kjasflksajflsajfalskjfsak
1024
data: kjasflksajflsajfalskjfsak

Actual:
1024
data: kjasflksajflsajfalskjfsak
0
data: 

What version of the gevent are you using?
gevent 1.0b3

On what operating system?
Mac OSX 10.7.4

On what Python?
Python 2.7.1

Please provide any additional information below.

Original issue reported on code.google.com by mrkhings...@gmail.com on 15 Aug 2012 at 6:48

Attachments:

GoogleCodeExporter commented 9 years ago
Indeed. seek() works for me on Linux but does crazy things on Mac OS X.

Original comment by Denis.Bi...@gmail.com on 30 Aug 2012 at 7:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/SiteSupport/gevent/issues/151

Original comment by Denis.Bi...@gmail.com on 14 Sep 2012 at 10:53