[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 koobs
koobs koobs.free...@gmail.com 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

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

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue8893

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

2010-06-22 Thread Christophe Kalt
Christophe Kalt k...@taranis.org 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-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file17750/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8893 ___

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

2010-06-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: FreeBSD is yet another beast Does the patch fix it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8893 ___

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

2010-06-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +tim_one stage: - patch review versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8893 ___

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

2010-06-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 Christophe Kalt
Christophe Kalt pyt...@ote.taranis.org 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 Christophe Kalt
Christophe Kalt pyt...@ote.taranis.org 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.

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

2010-06-04 Thread Christophe Kalt
Christophe Kalt k...@taranis.org 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 rep...@bugs.python.org

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

2010-06-03 Thread Christophe Kalt
New submission from Christophe Kalt pyt...@ote.taranis.org: 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

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

2010-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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