[issue1508475] transparent gzip compression in liburl2

2010-08-23 Thread Jakob Truelsen
Jakob Truelsen antial...@users.sourceforge.net added the comment: No, I have long since moved on to other things. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1508475 ___

[issue1508475] transparent gzip compression in liburl2

2010-08-23 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Its okay, Jacab, we will take it forward. -- assignee: - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1508475 ___

[issue1027206] unicode DNS names in socket, urllib, urlopen

2010-08-23 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Two builders are sad: * x86 gentoo * sparc solaris10 gcc == ERROR: test_idna (test.test_socket.GeneralModuleTests)

[issue9664] Make gzip module not require that underlying file object support seek

2010-08-23 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: [ forwarded from http://bugs.debian.org/571317 ] I'm writing a program that uses the popularity contest results. Since downloading the compressed results takes about a quarter of the time it takes to download the uncompressed results, I'd

[issue9441] increase logging handlers test coverage

2010-08-23 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Tom, thanks for the patch. If I apply it I get an error at shutdown when run with the command python3.2 regrtest.py test_logging test_logging i.e. when I run test_logging twice. If I use python3.2 regrtest.py test_logging there are no

[issue3548] subprocess.pipe function

2010-08-23 Thread Anh Hai Trinh
Anh Hai Trinh anh.hai.tr...@gmail.com added the comment: I've written a package which can do this with arbitrary redirection in all subcommands (and some more). You can, for example, do this: Pipe(Sh('echo -n foo 2', {2: 1}), Sh('cat; echo ERROR 2', {2: os.devnull})).capture(1).read()

[issue7742] please avoid 'which' in Modules/ld_so_aix

2010-08-23 Thread Michael Haubenwallner
Michael Haubenwallner michael.haubenwall...@salomon.at added the comment: @Stefan: Nope, setting some PATH in ~/.cshrc is the wrong thing to do, and it actually is the reason for this issue at all: 'which' is intended to tell the location of some command that would be used when started on

[issue7742] please avoid 'which' in Modules/ld_so_aix

2010-08-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Michael Haubenwallner rep...@bugs.python.org wrote: @Stefan: Nope, setting some PATH in ~/.cshrc is the wrong thing to do, and it actually is the reason for this issue at all: 'which' is intended to tell the location of some command

[issue2830] Copy cgi.escape() to html

2010-08-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Looks good already. Two points: * if we do the move, we should finally make sure all problematic characters are escaped. For now, I think the single quote is the most important one in attribute mode. * the new docs for cgi.escape() are

[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2010-08-23 Thread kxroberto
kxroberto kxrobe...@users.sourceforge.net added the comment: still I think all 3 self.rset()'s in SMTP.sendmail, which are followed by a raise someerror statement have to be bracketed with an except clause or so - nowadays better like try: self.res() except (EnvironmentError, SMTPException):

[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2010-08-23 Thread kxroberto
Changes by kxroberto kxrobe...@users.sourceforge.net: Added file: http://bugs.python.org/file18613/smtplib_nosideeffecterror.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1481032 ___

[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2010-08-23 Thread kxroberto
Changes by kxroberto kxrobe...@users.sourceforge.net: Removed file: http://bugs.python.org/file7227/smtplib-authplain-tryrset.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1481032 ___

[issue9512] logging.handlers.RotatingFileHandler - mode argument not respected

2010-08-23 Thread Friðrik Már Jónsson
Friðrik Már Jónsson frid...@pyth.net added the comment: That's a fair conclusion, but in this case I'd appreciate Terry's suggested doc patch being implemented: DOC PATCH In 15.6.12.5. RotatingFileHandler, replace If mode is not specified, 'a' is used. with If mode is not specified or if

[issue9654] merge PC/getpathp.c into Modules/getpath.c

2010-08-23 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: +1 in principle -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9654 ___ ___

[issue9653] New default argparse output to be added

2010-08-23 Thread Tom Browder
Tom Browder tom.brow...@gmail.com added the comment: On Sun, Aug 22, 2010 at 17:06, Steven Bethard rep...@bugs.python.org wrote: ... import argparse import sys parser = argparse.ArgumentParser() parser.add_argument('--foo') if len(sys.argv) == 1:    parser.print_help() else:    

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: Using Cygwin 1.7, there are build failures for both _curses, _curses_panel, and _io. The curses failures are because symlinking /usr/include/{n}curses.h from /usr/include/{n}curses.h was removed in recent versions [0], so I added

[issue9501] Logging shutdown regressions with weakrefs

2010-08-23 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into py3k and release27-maint (r84282). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9501

[issue2889] curses for windows (alternative patch)

2010-08-23 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: -1 for PDCurses -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2889 ___

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The _io module appears both in setup.py and Modules/Setup.dist. Is it normal? IMO if the _io module is built-in, it should not be built as an extension module. -- nosy: +amaury.forgeotdarc

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Should release27-maint/Modules/_io/_iomodule.c:172 be: PyAPI_DATA(PyObject *) PyExc_BlockingIOError = (PyObject *)_PyExc_BlockingIOError; ? -- ___ Python tracker

[issue658749] asyncore connect() and winsock errors

2010-08-23 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Fixed in r84284. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue658749 ___

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Why should it be? -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9665 ___

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: patch of patch attached to issue 3871 --- ./Modules/_io/_iomodule.h.MINGW 2009-12-23 12:52:04.0 +0200 +++ ./Modules/_io/_iomodule.h 2009-12-14 22:01:16.0 +0200 @@ -72,7 +72,7 @@ PyObject *filename; /* Not

[issue9601] ftplib should accept 250 on MKD

2010-08-23 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: This is now fixed in r84288. -- assignee: - giampaolo.rodola resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9601

[issue9660] PEP 383: socket module doesn't handle undecodable protocol or service names

2010-08-23 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: Come to think of it, I'm not sure if the patch is correct for Windows, as PyUnicode_DecodeFSDefault() appears to do strict MBCS decoding by default (similarly with PyUnicode_FSConverter() for encoding). Can Windows return service

[issue1057417] New BaseSMTPServer module

2010-08-23 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I agree with opinions expressed by Jean-Paul in msg47196. I see no real gain in providing a smptd.py clone which provides no other new difference other than using threads instead of a non-blocking approach. --

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Why should it be? The error indicates that the definition in the .c file doesn't match the declaration in the .h file, with respect to the funky Windows-specific stuff ('dllimport') that PyAPI_DATA adds. Roumen's patch

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2010/8/23 Daniel Stutzbach rep...@bugs.python.org: Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Why should it be? The error indicates that the definition in the .c file doesn't match the declaration in the .h

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Ben Walker
Ben Walker jaeda...@gmail.com added the comment: I have been using the following patch to fix the issue locally for a few weeks now (in addition to something equivalent to what Brian submitted for the _curses issue). These two patches combined give me a working python 2.7 on cygwin 1.7. I

[issue1597850] Cross compiling patches for MINGW

2010-08-23 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: -1 for the patch (after review of cross-3.0-0.7.diff) : 1) AC_CHECK_TOOLS(CC,gcc cc) and AC_CHECK_TOOLS(CXX,g++ c++) is bogus 2) $CC -dumpmachine when is added AC_CANONICAL_HOST is bogus 3) if (strcmp(buffe,me) 123)) is buggy Good

[issue1027206] unicode DNS names in socket, urllib, urlopen

2010-08-23 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: Thanks for the patch. Committed as r84261. I'm not sure what the point is of supporting IDNA in getnameinfo, so I have removed that from the patch. If you think it's needed, please elaborate. I don't see the point of it either,

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-08-23 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: Is this patch in response to an actual problem, or a theoretical problem? If actual problem: what was the specific application, and what was the specific host name? It's about environments, not applications - the local network may

[issue9129] DoS smtpd module vulnerability

2010-08-23 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Fixed in r84289. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9129 ___

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-08-23 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Is this patch in response to an actual problem, or a theoretical problem? If actual problem: what was the specific application, and what was the specific host name? It's about environments, not applications Still, my question remains.

[issue7546] msvc9compiler.py: add .asm extension

2010-08-23 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: To me distutils does not support assembler files and for other compilers this is required to build ctypes - see also issue 2942. -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org

[issue7546] msvc9compiler.py: add .asm extension

2010-08-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: To me distutils does not support assembler files Do you think it should? and for other compilers this is required to build ctypes Sorry, I don’t understand. Can you rephrase? -- ___ Python tracker

[issue1057417] New BaseSMTPServer module

2010-08-23 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1057417 ___

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Ben, import of variables cannot be changed to export as this will produce crash in application (core dump/bus error etc.) that try to use them. -- ___ Python tracker rep...@bugs.python.org

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Why would this not be required for the standard exceptions then? It looks like PyAPI_DATA can be defined differently depending on whether we're building code as a built-in or as a loadable module. If _iomodule.c is really

[issue9665] Buid issues on Cygwin - _curses, _curses_panel, and _io

2010-08-23 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: This patch lets everything build ok, but a run of regrtest segfaults usually after a few tests (using -r) and there are nearly constant stack traces printed to stderr about not being able to remap the Cygwin bz2 DLL's address space. I used extern

[issue7546] msvc9compiler.py: add .asm extension

2010-08-23 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Please see my comments to issue 2942 - so I think compilers should support assembler suffixes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7546

[issue2830] Copy cgi.escape() to html

2010-08-23 Thread Pablo Mouzo
Pablo Mouzo pablomo...@gmail.com added the comment: Thanks Georg for the review, I'm attaching a new patch with those problems fixed. The new patch escapes ' when the quote parameter is true, and / always. -- Added file: http://bugs.python.org/file18619/issue2830.diff

[issue2830] Copy cgi.escape() to html

2010-08-23 Thread Pablo Mouzo
Changes by Pablo Mouzo pablomo...@gmail.com: Removed file: http://bugs.python.org/file18612/issue2830.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2830 ___

[issue2889] curses for windows (alternative patch)

2010-08-23 Thread Trundle
Changes by Trundle andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2889 ___ ___ Python-bugs-list

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-08-23 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - duplicate status: open - closed superseder: - Copy cgi.escape() to html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9061

[issue1162477] Parsing failures in parsedate_tz

2010-08-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Here's a patch (essentially the one provided by Thomas) with unit test. -- keywords: +patch stage: unit test needed - patch review Added file: http://bugs.python.org/file18620/parsedate.patch

[issue1194222] parsedate and Y2K

2010-08-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for working on this. I would prefer to have two patches: one that fixes the bug (and adds the unit tests) and a separate one for the cleanups (in a new issue). I agree that the fact that it isn't complying with the RFC makes it a

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-08-23 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20100824.zip is a new version of the regex module. More speedups. Getting towards Perl speed now, depending on the regex. :-) -- Added file: http://bugs.python.org/file18621/issue2636-20100824.zip

[issue9666] 'hasattr' fix to suppress only AttributeError

2010-08-23 Thread Yury Selivanov
New submission from Yury Selivanov yseliva...@gmail.com: As discussed on python-dev mailing list (http://mail.python.org/pipermail/python-dev/2010-August/103178.html), 'hasattr' default behaviour should be changed to suppress only AttributeError exceptions. Other should pass through. The

[issue9666] 'hasattr' fix to suppress only AttributeError

2010-08-23 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: d...@python - benjamin.peterson nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9666 ___

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2010-08-23 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1327971 ___ ___

[issue1490929] urllib.retrieve's reporthook called with non-helpful value

2010-08-23 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1490929 ___ ___

[issue9666] 'hasattr' fix to suppress only AttributeError

2010-08-23 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r84294. I will not backport to 3.1. Thanks for the contribution! -- keywords: +gsoc -patch resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7579] Patch to add docstrings to msvcrt

2010-08-23 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Committed to py3k in r84295. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7579