[issue7240] subprocess.Popen.stdout.flush fails os OS-X 10.6.1

2009-11-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think so. stdio on OSX has a fdiscard function, but that's not exposed to Python. I tend to explicitly synchronize on prompts when communicating with an interactive program over a pipe. That is, read until you found the prompt, then send a command,

[issue7255] "Default" word boundaries for Unicode data?

2009-11-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Is there a plan or commitment for Python to implement at least "default > word boundaries" (a Level 2 feature), rather than the current "simple > word boundaries"? No such plan exists at this time. Contributions are welcome. -- nosy: +loewis __

[issue7255] "Default" word boundaries for Unicode data?

2009-11-02 Thread daniel mccloy
New submission from daniel mccloy : Regarding UTS #18 (Unicode Standards for RegEx Engines), which can be found at: http://www.unicode.org/reports/tr18/ Is there a plan or commitment for Python to implement at least "default word boundaries" (a Level 2 feature), rather than the current "simple w

[issue7250] wsgiref.handlers.CGIHandler caches os.environ, leaking info between requests

2009-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> pje nosy: +pje priority: -> high versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ ___

[issue7139] ElementTree: Incorrect serialization of end-of-line characters in attribute values

2009-11-02 Thread Fredrik Lundh
Fredrik Lundh added the comment: The real problem here is that XML attributes weren't really designed to hold data that doesn't survive normalization. One would have thought that making it difficult to do that, and easy to store such things as character data, would have made people think a bit

[issue6377] distutils compiler switch ignored

2009-11-02 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- nosy: +dalcinl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue7254] Class members not properly initialized if declared outside of function

2009-11-02 Thread R. David Murray
R. David Murray added the comment: This is the way python works. For help on using python please post to python-list or python-tutor. -- nosy: +r.david.murray priority: -> low resolution: -> invalid stage: -> committed/rejected status: open -> closed ___

[issue7139] ElementTree: Incorrect serialization of end-of-line characters in attribute values

2009-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: If I understood correctly, the correct behavior while reading is: * literal newlines (\n or \r) and tabs (\t) should be collapsed and converted to a space * newlines ( or ) and tabs ( ) as entities should be converted to the literal equivalents (\n, \r and \

[issue6492] xml.etree does not escape CR, LF and TAB characters within attribute values

2009-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: Closing as duplicate of #7139. -- nosy: +ezio.melotti resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue7254] Class members not properly initialized if declared outside of function

2009-11-02 Thread Vlad
New submission from Vlad : If a class member is declared outside of a function, it's creation is _not_ repeated with every new instance of the class. Instead, the same member is created during the first instance and then shared by all the subsequent instances of that class. This is wrong, because

[issue7206] 64 bit python fails on Windows 7

2009-11-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: > i don't know how to do that. Is there an integrated debugger within > Windows 7? My program just doesn't open, it doesn't display any error > messages at all. Ok. So I'm skeptical that this is the same bug (having roughly the same symptom is not convincing).

[issue7206] 64 bit python fails on Windows 7

2009-11-02 Thread Carey
Carey added the comment: i don't know how to do that. Is there an integrated debugger within Windows 7? My program just doesn't open, it doesn't display any error messages at all. -- ___ Python tracker

[issue7206] 64 bit python fails on Windows 7

2009-11-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: By "exactly the same problem", do you mean that your installation also runs into a break instruction in ntdll!CsrSetPriorityClass+0x40? Can you please also attach the debugger log (unless it's byte-for-byte identical with the one from richo)? -- _

[issue7076] Documentation add note about SystemRandom

2009-11-02 Thread Shawn Ligocki
Shawn Ligocki added the comment: There is a whole paragraph about WichmanHill at the top of this page already and (if anything) I think that WichmanHill is less notable (basically only used in legacy applications). However SystemRandom is very useful. I don't want to make claims about urandom th

[issue7076] Documentation add note about SystemRandom

2009-11-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm disinclined to move this to the top of the page but will keep this open and consider further at a later date. The SystemRandom class is an alternative generator like WichmanHill which is typically not the right choice for many applications. -- p

[issue7249] Consider allowing io.BytesIO sizes to be passed as 'long' in 2.6

2009-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed to the 2.6 branch in r76073. 2.7 is actually ok. Thanks for the report! -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue7206] 64 bit python fails on Windows 7

2009-11-02 Thread Carey
Carey added the comment: I am having the exact same problem with both the AMD64 and 32 bit installs. The python shell just will not open. For now I am running it in the virtual XP machine but it is extremely slow and a fix would be very helpful. I have tried uninstalling and reinstalling with no

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2009-11-02 Thread Roumen Petrov
Roumen Petrov added the comment: > > Martin, can you please elaborate on this? I never heard of such > > "standards" in OSS. > > MAL already gave the link. From the link: > > Sometimes package developers are tempted to set user variables such as > CFLAGS because it appears to make their job ea

[issue7076] Documentation add note about SystemRandom

2009-11-02 Thread Shawn Ligocki
Shawn Ligocki added the comment: How about this, sweet and simple. -- Added file: http://bugs.python.org/file15252/random.patch ___ Python tracker ___ ___

[issue7076] Documentation add note about SystemRandom

2009-11-02 Thread Shawn Ligocki
Shawn Ligocki added the comment: So, all I really want to do is call attention to SystemRandom from the top of the page, because it is easily not noticed at the bottom. Do you guys have any suggestions for how to do that that doesn't repeat too much and doesn't claim things that you aren't comfo

[issue7076] Documentation add note about SystemRandom

2009-11-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: The wording looks reasonable but it doesn't seem to add much that is not already said: ''' class SystemRandom( [seed]) Class that uses the os.urandom() function for generating random numbers from sources provided by the operating system. Not available on a

[issue7076] Documentation add note about SystemRandom

2009-11-02 Thread Shawn Ligocki
Shawn Ligocki added the comment: I rewrote the description, mostly using the claims form urandom, so that we don't claim something new. What do you guys think? -- Added file: http://bugs.python.org/file15251/random.patch ___ Python tracker

[issue7248] test_importlib uses a fixed name in /tmp

2009-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: It sometimes seems to trigger another error: == ERROR: test_package (importlib.test.source.test_file_loader.SimpleTest) -- Tr

[issue7249] Consider allowing io.BytesIO sizes to be passed as 'long' in 2.6

2009-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +IO priority: -> normal stage: -> needs patch versions: +Python 2.7 ___ Python tracker ___ ___

[issue7249] Consider allowing io.BytesIO sizes to be passed as 'long' in 2.6

2009-11-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> pitrou nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7253] AssertionError Tree is insane with *args and reduce

2009-11-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r76061. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue4356] Add "key" argument to "bisect" module functions

2009-11-02 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue4356] Add "key" argument to "bisect" module functions

2009-11-02 Thread Milko Krachounov
Changes by Milko Krachounov : Added file: http://bugs.python.org/file15250/bench_bisect_key.py ___ Python tracker ___ ___ Python-bugs-list mail

[issue4356] Add "key" argument to "bisect" module functions

2009-11-02 Thread Milko Krachounov
Changes by Milko Krachounov : Added file: http://bugs.python.org/file15249/bisect-py3k.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue4356] Add "key" argument to "bisect" module functions

2009-11-02 Thread Milko Krachounov
Milko Krachounov added the comment: I've been bugged by the lack of key= argument for bisect for some time now, and today I got to read this and the previous issues about the matter. I still fail to understand the reasons for the rejections. It might encourage bad design in which expensive key f

[issue7253] AssertionError Tree is insane with *args and reduce

2009-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> benjamin.peterson nosy: +benjamin.peterson priority: -> normal ___ Python tracker ___ ___

[issue7253] AssertionError Tree is insane with *args and reduce

2009-11-02 Thread Jason R. Coombs
New submission from Jason R. Coombs : Create a file with a single line of code: def x(arg): return reduce(sum, []) On Python 3.1.1 (I used Windows 64-bit), run 2to3 on it returns the following error: PS C:\Users\jaraco\projects\jaraco.util\jaraco\util> C:\python\Tools\Scripts\2to3.py .\functoo

[issue7252] list().index() should provide better error reporting

2009-11-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: r76058 should do the trick. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue7139] ElementTree: Incorrect serialization of end-of-line characters in attribute values

2009-11-02 Thread Moriyoshi Koizumi
Moriyoshi Koizumi added the comment: Looks like a duplicate of #6492 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7242] Forking in a thread raises RuntimeError

2009-11-02 Thread Zsolt Cserna
Zsolt Cserna added the comment: I've attached a patch which seems to fix this issue. It sets import_lock_thread to the current thread id after forking in the child process, but still I'm not quite sure that it's the correct way of solving this issue. -- keywords: +patch Added file: http

[issue7252] list().index() should provide better error reporting

2009-11-02 Thread djc
djc added the comment: I want the actual value in there, though! So I can spot the bug. -- ___ Python tracker ___ ___ Python-bugs-list

[issue7252] list().index() should provide better error reporting

2009-11-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: How's "object is not in list"? -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs

[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2009-11-02 Thread Tony Vroon
Tony Vroon added the comment: This is AMD64 Linux, to be specific a 2.6.32-rc5-00336-g8d5eb43 kernel running on a dual Opteron 2435 system. The distribution is Gentoo linux, with a glibc version of 2.10.1-r0, compiled with GCC 4.4.2 -- ___ Python t

[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2009-11-02 Thread Skip Montanaro
Skip Montanaro added the comment: On what platform did you encounter this failure? I can't reproduce it on Mac OSX (Leopard - 10.5.8) or Solaris 10 (update 5) running from up-to-date release26-maint branches or on Ubuntu (8.10) running the 2.6.4 release code. -- nosy: +skip.montanaro

[issue6896] Intermittent failures in test_mailbox

2009-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Now merged into py3k and 3.1, where it has solved the buildbot issues. 2.6 doesn't apply, since the caching scheme isn't present there. If there's any problem with the patch, please reopen. -- resolution: -> fixed status: open -> closed __

[issue7252] list().index() should provide better error reporting

2009-11-02 Thread djc
djc added the comment: FWIW, quickly grepping through the raises of ValueErrors in the 2.6 stdlib doesn't bring up any other usage of repeat-with-fake-variable-x. -- ___ Python tracker _

[issue7252] list().index() should provide better error reporting

2009-11-02 Thread djc
New submission from djc : >>> a = 'b' >>> [].index(a) Traceback (most recent call last): File "", line 1, in ValueError: list.index(x): x not in list This is suboptimal. IMO it would be much more useful if the ValueError reported the actual value that wasn't in the list, like this: Traceback

[issue7246] getpass raises IOError when several returns are in stdin before getpass was called

2009-11-02 Thread Avihu Turzion
Avihu Turzion added the comment: Great. Thanks :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7251] Mark expected failures of test_math, test_cmath and test_round as such.

2009-11-02 Thread Mark Dickinson
Mark Dickinson added the comment: Oops. I meant 'platform' bugs, not 'platform-specific' bugs. These are not bugs in Python, but in the underlying C library. -- ___ Python tracker

[issue7242] Forking in a thread raises RuntimeError

2009-11-02 Thread Zsolt Cserna
Zsolt Cserna added the comment: solaris 10 x86, 32-bit, sun-studio 11 is ok (in this case the parent's thread has thread_id=2 and the child inherits this id) solaris 8 sparc4, 32-bit, sun-studio 11 is not working So it seems it's independent from sun-cc but depends from the architecture and/or

[issue7251] Mark expected failures of test_math, test_cmath and test_round as such.

2009-11-02 Thread Mark Dickinson
New submission from Mark Dickinson : There are some buildbot failures due to platform-specific bugs that need to be marked as expected failures, using the unittest.expectedFailure decorator. This may require reorganizing the tests slightly. * tanh(-0.0) produces 0.0 instead of -0.0 on FreeBSD 6

[issue7242] Forking in a thread raises RuntimeError

2009-11-02 Thread Zsolt Cserna
Zsolt Cserna added the comment: I've tested it only on solaris 8, 32-bit. -- ___ Python tracker ___ ___ Python-bugs-list mailing list