[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-08-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Unless someone can upload a specific patch to review in the next couple of hours, I'm going to reduce the priority for 2.6.6rc1. -- nosy: +barry ___ Python tracker __

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Applied doc patch to 2.6 in r83539. -- nosy: +georg.brandl priority: release blocker -> critical versions: -Python 2.5, Python 2.6 ___ Python tracker ___

[issue9451] Strengthen __*__ system name warning

2010-08-02 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9452] configparser support for reading from strings and dictionaries

2010-08-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Reading from a string is certainly fairly common, though I'm pretty happy with using an io.StringIO seems reasonable and straightforward. I've never stumbled over the need to "read" from dictionaries as described. -- nosy: +fdrake ___

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-08-02 Thread Catherine Devlin
Catherine Devlin added the comment: Here's a unit test for the simplest cases. -- keywords: +patch nosy: +catherine Added file: http://bugs.python.org/file18328/test_pos_after_var_args.patch ___ Python tracker

[issue5412] extend configparser to support mapping access(__*item__)

2010-08-02 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I cannot do commits yet, so please do it. I expected this to be picked up by a doc person. -- ___ Python tracker ___ __

[issue8312] Add post/pre hooks for distutils commands

2010-08-02 Thread Konrad Delong
Konrad Delong added the comment: I see no reasons to limit the command set to just these two. -- nosy: +Konrad.Delong ___ Python tracker ___ _

[issue8312] Add post/pre hooks for distutils commands

2010-08-02 Thread Konrad
Changes by Konrad : -- nosy: -Konrad.Delong ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8560] regrtest: add a minimal "progress bar"

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Committed patch adding the [x/y] style indicator in r83543. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue2609] Tests fail if ./@test is not writeable

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Out of date now -- regrtest now uses "with temp_cwd()", changing directory to either the Python build dir or a tempdir. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python tracker

[issue9455] platform test borked in 2.7 branch on Power PC

2010-08-02 Thread Bill Janssen
New submission from Bill Janssen : Looks like some test borked the 2.7 tests on the buildbots. Here's the offending test: test test_platform failed -- Traceback (most recent call last): File "/Users/buildbot/buildarea/2.7.parc-leopard-1/build/Lib/test/test_platform.py", line 196, in test_

[issue7973] Wrong spelling of distutils options in error messages and docs

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83546. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue7862] fileio.c: ValueError vs. IOError with impossible operations

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7386] More precise document on os.path.normpath()

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83547. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue8172] Documentation of Property needs example

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83548. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue9452] configparser support for reading from strings and dictionaries

2010-08-02 Thread Łukasz Langa
Changes by Łukasz Langa : Removed file: http://bugs.python.org/file18319/issue9452.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue9452] configparser support for reading from strings and dictionaries

2010-08-02 Thread Łukasz Langa
Łukasz Langa added the comment: Corrected a simple mistake in the patch. -- Added file: http://bugs.python.org/file18329/issue9452.diff ___ Python tracker ___ ___

[issue3849] FUD in documentation for urllib.urlopen()

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> d...@python nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list maili

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in release26-maint, r83549, to beat the rc1 deadline. I'll comment on a few improvements that we can do for 3.x later. Eli, I needed to fix white space issues in your patch before committing. Please run make patchcheck on your changes befo

[issue9451] Strengthen __*__ system name warning

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, applied in r83550. -- dependencies: -Clarify __debug__ restrictions nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker __

[issue8590] test_httpservers.CGIHTTPServerTestCase failure on 3.1-maint Mac OS X

2010-08-02 Thread Michael Foord
Michael Foord added the comment: Yep: test_post (__main__.CGIHTTPServerTestCase) ... Traceback (most recent call last): File "/private/var/folders/WD/WDk8J3uFE7OM9tRer5Oy4E+++TI/-Tmp-/tmp3KtUFW/cgi-bin/file2.py", line 2, in import cgi File "/compile/release31-maint/Lib/cgi.py", line

[issue9438] Clarify __debug__ restrictions

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83552. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue7280] PCBuild instruction says to use nasmw.exe but it no longer exist

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83554. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8861] curses.wrapper : unnessesary code

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83555. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9455] platform test borked in 2.7 branch on Power PC

2010-08-02 Thread Bill Janssen
Bill Janssen added the comment: This is on a PowerPC machine running Leopard: >>> os.uname()[4] 'Power Macintosh' >>> -- ___ Python tracker ___ _

[issue9455] platform test borked in 2.7 branch on Power PC

2010-08-02 Thread Bill Janssen
Bill Janssen added the comment: So the problem is in the _mac_ver_xml() routine in Lib/platform.py, which says: machine = os.uname()[4] if machine == 'ppc': # for compatibility with the gestalt based code machine = 'PowerPC' and perhaps should say: machine = os.un

[issue8562] hasattr(open, 'newlines') example gives incorrect results from PEP0278

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83556. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8648] The UTF-7 codec functions are undocumented

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83558. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: d...@python -> tjreedy nosy: -barry, d...@python stage: commit review -> patch review versions: -Python 2.6 ___ Python tracker ___ _

[issue9087] json docstrings on 3.x still use 'unicode' and 'str'

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83560. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue4280] Version Checker

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, removed in r83561. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue9037] Add explanation as to how to raise a custom exception in the extending python intermezzo on exceptions

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Added in r83563. Thanks! -- nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue9111] cmd.do_help documentation should mention docstrings

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83565. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9019] wsgiref.headers.Header() does not update headers list it was created with.

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83566. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue6728] To avoid hang up in using CGIXMLRPCRequestHandler under IIS 7.x

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Why would one read 2 bytes less than CONTENT_LENGTH? -- nosy: +georg.brandl resolution: -> works for me status: open -> closed ___ Python tracker ___

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-02 Thread R. David Murray
Changes by R. David Murray : -- stage: unit test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-02 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file18132/enable_symlink.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7797] base64 module docs should indicate that encode methods return bytes, not strings

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83569. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue7688] TypeError: __name__ must be set to a string object

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Out of date for Python 2.x, and strings are always unicode objects in 3.x. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python tracker __

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-02 Thread Brian Curtin
Brian Curtin added the comment: Here's a patch implementing a similar idea to what Jason mentioned, complete with the test updates and code removals. It initially adds win_symlink as "_symlink", and on module initialization it will be renamed to "symlink" if the privilege is available. There

[issue9456] Apparent memory leak in PC/bdist_wininst/install.c

2010-08-02 Thread Zachary Blair
New submission from Zachary Blair : >From inspecting the code in install.c's DeleteRegistryValue() and >DeleteRegistryKey() functions, it appears as though there can be a small >memory leak in the event that either function is passed an invalid argument. This patch corrects this issue by makin

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-02 Thread Brian Curtin
Brian Curtin added the comment: Forgot to mention: I've only run this on Win7 at the moment. I'll need to take a look at how this works on older Windows. -- ___ Python tracker _

[issue6867] return value of epoll.register

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83574. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6915] os.listdir inconsistenly releases the GIL on win32

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: loewis -> pitrou nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue9239] zipfile: truncating comment can corrupt the zipfile

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Patch looks good to me. Alan, can you comment? -- assignee: -> aimacintyre nosy: +aimacintyre, georg.brandl priority: normal -> high ___ Python tracker

[issue9238] zipfile incorrectly documented as not supporting archive comments

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83575. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-02 Thread Jason R. Coombs
Jason R. Coombs added the comment: I love it -- especially all of the '-' lines in the patch! Good work. Is it conceivable that a Windows XP user would have that privilege (and thus would have access to a non-functional os.symlink function)? One thing I particularly like is this provides an i

[issue4011] Create DAG for PEP 101

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: I'll probably get around to do this during the 3.2 period. -- assignee: -> georg.brandl nosy: +georg.brandl ___ Python tracker ___ __

[issue9457] Wrong URL in Python-3.2a1/README

2010-08-02 Thread Uli Kunitz
New submission from Uli Kunitz : The URL http://docs.python.org/dev/3.2/whatsnew/3.2.html is wrong. It should be replaced with http://docs.python.org/dev/whatsnew/3.2.html. -- assignee: d...@python components: Documentation messages: 112548 nosy: d...@python, kune priority: normal sever

[issue6696] Profile objects should be documented

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9292] Dead code in Modules/pyexpat.c

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: "fp" can probably be just removed? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list

[issue9458] xml.etree.ElementTree.write(): encoding handling problems

2010-08-02 Thread Uli Kunitz
New submission from Uli Kunitz : If one wants to use the encoding parameter of ElementTree.write() the file must be opened with "wb". Without encoding parameter normal files can be used, but the should be opened with the encoding "UTF-8", because otherwise this may create an error. Probably c

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-02 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file18298/argparse_char_fix.patch ___ Python tracker ___ ___ Python-bugs-list

[issue9292] Dead code in Modules/pyexpat.c

2010-08-02 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8119] Minor comment error in configure.in ("malloc support" appears twice)

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83580. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9457] Wrong URL in Python-3.2a1/README

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83584. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8739] Update to smtpd.py to RFC 5321

2010-08-02 Thread Alberto Trevino
Alberto Trevino added the comment: On Monday, July 05, 2010 10:41:28 am you wrote: > Yes, the fact that there are no unit tests for the new functionality. Sorry to take so long to reply. I have attached the latest version of the patch which does everything in rev. 2 of the patch, patches the

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-02 Thread Brian Curtin
Brian Curtin added the comment: I'll have to investigate the possibility of the privilege occurring on XP -- I'm doubtful that it exists there, but I'll confirm. Currently "os._symlink" is not exposed -- it gets swallowed up in Lib/os.py in the "nt" section starting on line 55 (it is availabl

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-02 Thread R. David Murray
R. David Murray added the comment: The combined patches look good to me, and I tested the tests and patch. (I accidentally deleted the earlier fix patch, sorry). It would be nice to add one more test case that does prefix="+-/" to make sure - is used when it isn't first. Steven, I'd be hap

[issue2423] test_smtplib.py no longer butt slow

2010-08-02 Thread Richard Jones
Richard Jones added the comment: Merged mock socket from test_smtpd.py and committed. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ __

[issue8739] Update to smtpd.py to RFC 5321

2010-08-02 Thread Richard Jones
Richard Jones added the comment: The smtpd module now has a test suite. Please add your unit tests to test_smtpd.py -- nosy: +richard ___ Python tracker ___

[issue9455] platform test borked in 2.7 branch on Power PC

2010-08-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: On 2 Aug, 2010, at 21:49, Bill Janssen wrote: > > Bill Janssen added the comment: > > So the problem is in the _mac_ver_xml() routine in Lib/platform.py, which > says: > > >machine = os.uname()[4] >if machine == 'ppc': ># for compatibilit

<    1   2