[issue8893] file.{read,readlines} behaviour on Solaris

2020-05-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue8893] file.{read,readlines} behaviour on Solaris

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is there a test for this we could add? You could certainly add a test to Lib/test/test_file2k.py. -- versions: -Python 2.6 ___ Python tracker __

[issue8893] file.{read,readlines} behaviour on Solaris

2012-07-21 Thread koobs
koobs added the comment: uname -rs: FreeBSD 9.0-RELEASE-p3 (AMD64) python -V: Python 2.7.3 `python readline.py: read : ['oink', 'oink'] readlines: ['oink\n', 'oink\n'] readline : Without the patch: read : [] readlines: [] readline : Is there a test for this we could add? FreeBSD

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-22 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file17750/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-22 Thread Christophe Kalt
Christophe Kalt added the comment: I haven't had a chance to build Python to check, but from the test output I suspect the problem to be different on FreeBSD. -- Added file: http://bugs.python.org/file17750/unnamed ___ Python tracker

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > FreeBSD is yet another beast Does the patch fix it? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-04 Thread Christophe Kalt
Christophe Kalt added the comment: FreeBSD is yet another beast: $ uname -rs FreeBSD 8.0-STABLE $ python -V Python 2.5.5 $ python readlines.py read : [] readlines: [] readline : -- ___ Python tracker ___

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-04 Thread Christophe Kalt
Christophe Kalt added the comment: Antoine: I'm not sure what the expected behaviour should be either, this is certainly for others more familiar with Python than I to decide. Although I am certainly annoyed that the current behaviour differs between Solaris and Linux. Haven't had time to

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-04 Thread Christophe Kalt
Christophe Kalt added the comment: This is on Solaris 10, but I also see it on Solaris 8 w/ Python 2.4. Just tried Python 3.6.1, and it doesn't seem to have that problem. Python 2.7b2 has the problem. -- ___ Python tracker

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch looks harmless to me, although I'm not sure we're guaranteeing any of the behaviour you are expecting. Éric, the buffering layer in 3.x is not libc-based, and therefore shouldn't exhibit this particular issue. -- ___

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +tim_one stage: -> patch review versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your report. This is not related to ctypes, adjusting component and nosy (per Misc/maintainers.rst); also adding keyword. Can you reproduce it with 3.1 and Subversion checkouts for trunk and py3k? Also, what’s the exact version of your OS? --

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-03 Thread Christophe Kalt
New submission from Christophe Kalt : The following snippet of code is a concise way to exhibit the problem: import os wr = open('/tmp/test', 'w') wr.write('oink\noink\n') rd = open('/tmp/test', 'r') rdlns = open('/tmp/test', 'r') # first, read til EOF is reached (which is right away) assert le