[issue6285] Silent abort on XP help document display

2009-06-15 Thread Scott David Daniels
Scott David Daniels scott.dani...@acm.org added the comment: Help / Python31 Instead of docs showing up, all Idle windows closed. To demonstrate for yourself, edit ~/.idlerc/config-main.cfg add a line at the end (where additional docs show up), like: 4 =

[issue6278] http.server, BaseHTTPRequestHandler write string error

2009-06-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: the HTTP response should be a bytes string: self.wfile.write(b'test') -- nosy: +amaury.forgeotdarc resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6250] Python compiles dead code

2009-06-15 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'm curious to whether this needs to be embedded in the compiler or whether a standalone tool can be offered. See http://code.activestate.com/recipes/277940/ for an example of processing the bytecodes directly. FWIW,

[issue6282] In tarfile, compression level cannot be specified

2009-06-15 Thread Omri Shaked
Omri Shaked omri.sha...@gmail.com added the comment: Silly me... Thanks! -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6282 ___

[issue6286] distutils upload command doesn't work with http proxy

2009-06-15 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: upload is base on httplib and doesn't use the http_proxy envrionment variable. So it's impossible to upload a file behind a firewall. Let's change the command so it uses a proxy if set -- assignee: tarek components: Distutils

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-06-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I haven't read the patch in detail but I don't think you should have changed read1(). read1() is there for optimization purposes and its current behaviour makes sense IMO. -- versions: +Python 2.7 ___

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-06-15 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The doc revision definitely does a better job of characterising the current underspecified behaviour :) I agree with Antoine that at most a single read would be better wording. -- ___ Python tracker

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-06-15 Thread Lucas Prado Melo
Lucas Prado Melo lukepada...@gmail.com added the comment: Ok A new patch without read1() changes. Only one test fails, a read1() test: == FAIL: test_read1 (test.test_io.PyBufferedRWPairTest)

[issue6205] sdist doesn't include data_files

2009-06-15 Thread James
James purplei...@gmail.com added the comment: great, thanks for the info. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6205 ___ ___

[issue6208] path separator output ignores shell's path separator: / instead of \

2009-06-15 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: So is this a cosmetic issue or a functional issue? It's a cosmetic issue. Also, even if it could figure that out, how would it know whether a particular filename stringification with os.path.join() was intended for display to the user or

[issue6208] path separator output ignores shell's path separator: / instead of \

2009-06-15 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Eric Smith wrote: Eric Smith e...@trueblade.com added the comment: So is this a cosmetic issue or a functional issue? It's a cosmetic issue. Also, even if it could figure that out, how would it know whether a particular filename

[issue6208] path separator output ignores shell's path separator: / instead of \

2009-06-15 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Tim Golden wrote: Just for information's sake, the shell APIs usually only accept backslashes. That's good to know. Do you have any specific examples? CreateFile and the like, which is where my experience is, take either. 90% of my Windows

[issue6250] Python compiles dead code

2009-06-15 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Are you looking for dead code detection (like a lint utility) or automatic dead code removal (modified code)? -- ___ Python tracker rep...@bugs.python.org

[issue6250] Python compiles dead code

2009-06-15 Thread Collin Winter
Collin Winter coll...@gmail.com added the comment: Standalone bytecode-modifying tools almost never check that they're outputting correct bytecode. http://code.activestate.com/recipes/277940/ makes no attempt to check what version of Python it's running under; running it under Unladen Swallow

[issue6250] Python compiles dead code

2009-06-15 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: James, the peepholer currently assumes that codestrings terminate with RETURN_VALUE. Is this assumption invalidated by your code? -- ___ Python tracker rep...@bugs.python.org

[issue6287] distutils.core.setup does not document the 'license' meta-data

2009-06-15 Thread Matthew Smart
New submission from Matthew Smart mattsm...@gmail.com: The 'license' meta-data option is not listed under: http://docs.python.org/distutils/setupscript.html#meta-data There are others, too, from: $ python setup.py --help .. snip .. Information display options (just display information, ignore

[issue6192] add disable_nagle_algorithm to SocketServer.TCPServer

2009-06-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: On consideration, it is more appropariate to have the disable_nagle_algorithm as part of StreamRequestHandler rather than in the TCPSockerServer. It then sits right next to the rfile and wfile that affect it. The RequestHandlers

[issue6250] Python compiles dead code

2009-06-15 Thread James Abbatiello
James Abbatiello abb...@gmail.com added the comment: Raymond, I've updated peephole.c to allow code to terminate with any of RETURN_VALUE, END_FINALLY or RAISE_VARARGS [0-3]. I also added tests to test_peepholer.py to make sure the peepholer still works in these cases. --

[issue6250] Python compiles dead code

2009-06-15 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Martin, am transferring this to you for adjudication. I'm -0 on the patch. On the plus side, the code is well thought-out and reasonably well tested. On the minus side, it complexifies the compiler in a way that may make it

[issue6234] cgi.FieldStorage is broken when given POST data

2009-06-15 Thread Miles Kaufmann
Changes by Miles Kaufmann mile...@umich.edu: -- nosy: +milesck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6234 ___ ___ Python-bugs-list mailing

[issue6250] Python compiles dead code

2009-06-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm also happy with rejecting the patch, and agree with everything that has been brought up against it: from an end-user point of view, there is a negligible-if-any benefit (e.g. if you want to speed up importing, try to reduce the number of

[issue6288] Update contextlib.nested docs in light of deprecation

2009-06-15 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Just a placeholder to remind me to implement the suggestion from python-dev of updating the contextlib.nested docs to show: 1. The one remaining valid use case (variable number of context managers) 2. The warnings module incantation needed to

[issue5468] urlencode does not handle bytes, and could easily handle alternate encodings

2009-06-15 Thread Miles Kaufmann
Miles Kaufmann mile...@umich.edu added the comment: parse_qs and parse_qsl should also grow encoding and errors parameters to pass to the underlying unquote(). -- nosy: +milesck ___ Python tracker rep...@bugs.python.org

[issue6289] compile() raises SyntaxError with confusing message for some decoding problems

2009-06-15 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: Consider this source file: # coding: ascii ☃ It is not a valid Python program (for several reasons). The first problem encountered is that bytes representing SNOWMAN do not fit into ASCII, so the file cannot be decoded using the

[issue6289] compile() raises SyntaxError with confusing message for some decoding problems

2009-06-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6289 ___ ___ Python-bugs-list

[issue6290] cPickle can misread data type

2009-06-15 Thread Alex James
New submission from Alex James ac.ja...@shaw.ca: When using cPickle to pickle / unpickle an object instance whose __dict__ contains a dictionary of NumPy Arrays (on a windows32 system), some of the array elements have the wrong type raising a ValueError: could not convert string to float. On

[issue6286] distutils upload command doesn't work with http proxy

2009-06-15 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6286 ___ ___

[issue6286] distutils upload command doesn't work with http proxy

2009-06-15 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r73436. Will merge it into 3.2 after 3.1 is tagged. I am leaving this issue open until the merge in 3.2 is done. -- ___ Python tracker rep...@bugs.python.org

[issue6289] compile() raises SyntaxError with confusing message for some decoding problems

2009-06-15 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r73439. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6289

[issue6290] cPickle can misread data type

2009-06-15 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Could you provide a test case? The behaviour you are describing sounds like a bug in cPickle. -- nosy: +alexandre.vassalotti ___ Python tracker rep...@bugs.python.org

[issue3672] Ill-formed surrogates not treated as errors during encoding/decoding

2009-06-15 Thread hippietrail
Changes by hippietrail hippytr...@gmail.com: -- nosy: +hippietrail ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3672 ___ ___ Python-bugs-list

[issue3407] test_urllib2_localnet fails on MacOS X 10.4.11 (Intel)

2009-06-15 Thread Senthil
Senthil orsent...@gmail.com added the comment: Closing it based on the (test pass) comments. Fix was applied in r67779, r6. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3407

[issue6277] Add description of new syntax of with to 2.7 whatsnew document.

2009-06-15 Thread Vikram U Shenoy
Vikram U Shenoy vikram.u.she...@gmail.com added the comment: I see. OK, so you want me to close this bug ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6277 ___

[issue6277] Add description of new syntax of with to 2.7 whatsnew document.

2009-06-15 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Thanks. BTW, other doc patches are always welcome. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6277