[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-23 Thread R. David Murray
R. David Murray added the comment: Well, if the parameters aren't part of the path info, what are they part of? They are passed as part of path info now, just incorrectly encoded. I haven't found anything so far to make me think they belong anywhere else. --

Re: [issue9893] Usefulness of the Misc/Vim/ files?

2010-12-23 Thread Senthil Kumaran
On Sun, Dec 12, 2010 at 09:52:27PM +, Brett Cannon wrote: > At this point I'm willing to either hand maintenance of the files > over to someone else or to delete the files and shift what we point > people at. I think, just pointing to the script at vim.org location is a good idea. It is mainta

[issue10671] urllib2 redirect to another host doesn't work

2010-12-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Closing this as Invalid, because in the latest code, if the Host header is not explicitly specified by the request, then it is added to unredirected headers and if it explicitly specified by the request, then it is taken into account when the redirection hap

[issue8548] Building on CygWin 1.7: PATH_MAX redefined

2010-12-23 Thread Scott Rostrup
Scott Rostrup added the comment: I just encountered this error in python 3.1.3 on cygwin 1.7. I used the same fix as jbinder. Old Modules/main.c (line 13): #if defined(MS_WINDOWS) || defined(__CYGWIN__) #include #ifdef HAVE_FCNTL_H #include #define PATH_MAX MAXPATHLEN #endif #e

[issue3243] Support iterable bodies in httplib

2010-12-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: A mistake with Content-Length in the previous commit resolved in revision 87469. -- ___ Python tracker ___

[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Wed, Dec 22, 2010 at 12:20:24AM +, R. David Murray wrote: > Presumably all that is needed is to add ';' to 'safe' in the call > that encodes PATH_INFO? Well, that is what is required in order for the quote function call to ignore it, but I am not sure w

[issue10767] Lib/test/crashers/README is out of date

2010-12-23 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Among other things, README says: """ Each test should have a link to the bug report: # http://python.org/sf/BUG# """ but the only such link is found in crashers/infinite_loop_re.py and points to a closed issue 1541697. It looks like the pur

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

2010-12-23 Thread Jeffrey C. Jacobs
Jeffrey C. Jacobs added the comment: +1 on VC -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

Re: [issue4496] misleading comment in urllib2

2010-12-23 Thread Senthil Kumaran
On Thu, Dec 23, 2010 at 07:53:01PM +, R. David Murray wrote: > The sorting is based on a 'handler_order' attribute, by the way, and > presumably does control the order in which they are applied. Yes. Exactly. ___ Python-bugs-list mailing list Unsubs

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2010-12-23 Thread Andy Bailey
Changes by Andy Bailey : -- nosy: +GooseYArd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread STINNER Victor
STINNER Victor added the comment: Georg rejected this patch in Python 3.2: "I did say I like the feature, but that was a) before beta 2 was released, now the next release is a release candidate, and b) this thread showed that it is not at all obvious how the feature should look like. The fact

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

2010-12-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would like to start reviewing this code, but dated zip files on a tracker make a very inefficient VC setup. Would you consider exporting your development history to some public VC system? -- nosy: +belopolsky

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

2010-12-23 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20101224.zip is a new version of the regex module. Case-insensitive matching is now faster. The matching functions and methods now accept a keyword argument to release the GIL during matching to enable other Python threads to run concurrently:

[issue7198] Extraneous newlines with csv.writer on Windows

2010-12-23 Thread John Machin
John Machin added the comment: Please re-open this. The binary/text mode problem still exists with Python 3.X on Windows. Quite simply, there is no option available to the caller to open the output file in binary mode, because the module is throwing str objects at the file. The module's idea

[issue9063] TZ examples in datetime.rst are incorrect

2010-12-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r87463 (3.2), r87464 (2.7) and r87465 (3.1). -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed versions: +Python 3.1 ___ Python tracker

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-12-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue10766] optparse uses %s in gettext calls

2010-12-23 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +use proper gettext plurals forms in argparse and optparse ___ Python tracker ___ ___ Python

[issue10766] optparse uses %s in gettext calls

2010-12-23 Thread Éric Araujo
New submission from Éric Araujo : When you run xgettext other optparse.py, you get this warning: “'msgid' format string with unnamed arguments cannot be properly localized: The translator cannot reorder the arguments. Please consider using a format string with named arguments, and a mapping in

[issue10765] Build regression from automation changes on windows

2010-12-23 Thread Martin
Martin added the comment: Oh, and after building with this, I get: $ svn st ? PC/python3dll.obj So either that wants moving or svn:ignore needs updating. -- ___ Python tracker _

[issue4391] use proper gettext plurals forms in argparse and optparse

2010-12-23 Thread Éric Araujo
Éric Araujo added the comment: Updated patch for optparse. Georg: Is this okay for 3.2? Based on Steven’s decision for another patch that changed strings, these fixes won’t be backported. -- versions: -Python 2.7, Python 3.1 Added file: http://bugs.python.org/file20152/fix-optparse-

[issue10765] Build regression from automation changes on windows

2010-12-23 Thread Martin
New submission from Martin : The build changes in r87093 broke me, as my py3k branch is under a dir with a space in the name, and the OutDir path needs escaping in the makefiles. Various extra quoting seems to be sufficient, though inelegant. -- components: Build, Windows files: py3k_b

[issue1693546] email.Message set_param rfc2231 encoding incorrect

2010-12-23 Thread R. David Murray
R. David Murray added the comment: I take it back. Previously quotes didn't get added if they weren't already there. So my simpleminded fix may not be the best choice. -- ___ Python tracker __

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: r87460 -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

[issue1693546] email.Message set_param rfc2231 encoding incorrect

2010-12-23 Thread R. David Murray
R. David Murray added the comment: Reading the RFC again, I think you are right. The quoted vs unquoted sounds like it refers to the *n vs the [*n]* forms, and the latter doesn't use quoted strings but % encoding. I'm attaching a patch that adds some tests and fixes this. It's a visible be

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-12-23 Thread Éric Araujo
Éric Araujo added the comment: I can’t reproduce the crash when building in the source dir (and tests pass except for ctypes because its configure script refuses my directory path), and I can’t build in a subdir*, so this bug looks fixed. * Error messages: gcc: Parser/tokenizer_pgen.o: No suc

[issue10576] Add a progress callback to gcmodule

2010-12-23 Thread Lukas Lueg
Lukas Lueg added the comment: Why not make the start-callback be able to return a boolean value to the gcmodule that indicates if garbage collection should take place or not. For example, any value returned from the callback that evaluates to False (like null) will cause the module to evaluat

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread R. David Murray
R. David Murray added the comment: Got approval from Georg on IRC, so go ahead and commit it, Terry. Or assign it to me if you'd rather I do it. -- ___ Python tracker ___

[issue1155362] Bugs in parsedate_tz

2010-12-23 Thread R. David Murray
R. David Murray added the comment: Committed a slightly different patch in r87451, with tests. Although I do consider this a bug fix, it hasn't apparently caused any problems in real life and does represent a slight behavior change, so I'm not backporting it. -- resolution: -> fixed

[issue4496] misleading comment in urllib2

2010-12-23 Thread R. David Murray
R. David Murray added the comment: It is used in the tests, but I agree that it doesn't appear to be used in the code. I've removed the misleading comment and marked the self.handlers attribute as backward-compat-only in r87448, r87449, and r87450. The sorting is based on a 'handler_order' a

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread R. David Murray
R. David Murray added the comment: No, I don't think it qualifies as a common_type. But since this is technically a feature request we need Georg's approval for the commit. -- ___ Python tracker

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure; the common_types is actually for invalid but used types, like image/jpg (the correct one is image/jpeg and is listed in types_map). The status of IANA registration is unclear (thanks David for looking at that); since common tools understand that m

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I obviously misunderstood the instruction about 'x-' and will remove that. Should I leave the entry where it is or move as Éric suggested? -- Added file: http://bugs.python.org/file20149/mimetypes.svg2.diff ___ Pyth

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-12-23 Thread ipatrol
ipatrol added the comment: Purity shmurity. The point of distutils is largely to present a unified and simple interface. 'python setup.py install' should be all a user has to do on any platform. Unless you can come up with a better idea, MSVC is really the only big compiler on Windows. -

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-23 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Sounds good, but this doesn't belong to the virtualenv bug tracker (virtualenv does even support Python 3). Instead, it belongs to the virtualenv5 tracker: http://code.google.com/p/virtualenv5/issues/detail?id=6 -- resolution: -> invalid status:

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread R. David Murray
R. David Murray added the comment: Yes, adding the x- version would probably be pointless as most likely nobody uses it. Has anyone found any definitive info on where exactly in the approval process image/svg+xml is? I think we should probably just go ahead and put it in, but it would be nic

[issue10764] sysconfig and alternative implementations

2010-12-23 Thread Michael Foord
New submission from Michael Foord : sysconfig assumes there will be a makefile if the platform is posix, which isn't always true. For example IronPython on Mac OS X with mono. This leads to a traceback on startup with IronPython 2.7: $ ipy27 Traceback (most recent call last): File "/Second/m

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2010-12-23 Thread STINNER Victor
STINNER Victor added the comment: See also #9738 (Document the encoding of functions bytes arguments of the C API) to check which encoding is expected :-p -- ___ Python tracker

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2010-12-23 Thread STINNER Victor
STINNER Victor added the comment: p3k_i9313.diff is just a workaround, not the correct fix. The problem is that PyTokenizer_FindEncoding() doesn't get the filename. I wrote tokenizer_encoding_filename.patch which add PyTokenizer_FindEncodingFilename() and patch import.c and traceback.c to pas

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Éric Araujo
Éric Araujo added the comment: I believe the patch should add the used but non-standard image/svg+xml type to the common_type dictionary, not invent a new x- type. -- ___ Python tracker __

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-12-23 Thread Thorsten Behrens
Thorsten Behrens added the comment: You are right, this is not a bug in Python. The diff provides a workaround for a limitation in VC++ 2008 Express. This diff is a piece of user service. An equally as workable workaround is for the user to copy VC\bin\vcvars64.bat into VC\bin\amd64\vcvarsamd

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, I too agree that HTMLParser.unescape() should split-out malformed char-ref just as other browsers do. But, as unescape function has undocumented/unexposed for releases, I am not sure making it exposed is a good idea. HTMLParser is more for event based

[issue10762] strftime('%f') segfault

2010-12-23 Thread R. David Murray
R. David Murray added the comment: Note that this is a regression relative to 2.6, where the same call returns '' (which is different from what it returns on linux, where the result would be '%f', or OSX, where the result would be 'f'). (Tests done on windows XP using pythons installed from

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-12-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: IIUC, the issue is that people installing a 64-bit Python, and VS Express, and then wonder why they can't build extension modules. I'm not so sure that there is a bug in Python here - this setup is not supported (and that's really Microsoft's fault). Now, au

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread STINNER Victor
STINNER Victor added the comment: Tested on Ubuntu 10.04: all tests pass and apport intercepts the fault. Apport ignores the faults because I am testing a Python executable compiled from SVN (py3k). Apport logs (/var/log/apport.log): --- apport (pid 18148) Thu Dec 23 13:29:25 2010: called for

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > Note: To avoid the signal-safe requirement, another solution is to use > sigsetjmp()+siglongjmp(). FWIW, there is a caveat in the OpenBSD man page concerning the use of siglongjmp(): http://www.openbsd.org/cgi-bin/man.cgi?query=sigsetjmp

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread STINNER Victor
STINNER Victor added the comment: Tested on FreeBSD 8: all tests pass (all of the 4 signals are supported) and FreeBSD dumps a core file. -- ___ Python tracker ___ _

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread STINNER Victor
STINNER Victor added the comment: > I tested the patch version 11 on Windows: all tests pass. Oh, and I forgot to say that the Windows fault handler does catch the fault too (Windows opens a popup with a question like "Should the error be reported to Microsoft?"). -- ___

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread STINNER Victor
STINNER Victor added the comment: I tested the patch version 11 on Windows: all tests pass. But #include should be skipped on Windows (Python/fault.c): I will add #ifdef MS_WINDOWS. -- ___ Python tracker ___

[issue10763] subprocess.communicate() doesn't close pipes on Windows

2010-12-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +amaury.forgeotdarc, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10763] subprocess.communicate() doesn't close pipes on Windows

2010-12-23 Thread STINNER Victor
New submission from STINNER Victor : If more than one file (stdin, stdout and stderr) are pipes, Popen.communicate() uses threads calling _readerthread() on each pipe. But this method doesn't close the pipes, whereas all other communicate implementations (select, poll and the optimization if t

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-23 Thread Tarek Ziadé
Tarek Ziadé added the comment: I have investigated the problem and it turns out virtualenv patches distutils.sysconfig behavior by adding to the sys module a "real_prefix" attribute that points to the global Python install and is used instead of sys.prefix that points to the virtualenv local

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread STINNER Victor
STINNER Victor added the comment: Note: To avoid the signal-safe requirement, another solution is to use sigsetjmp()+siglongjmp(). -- ___ Python tracker ___

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread Stefan Krah
Stefan Krah added the comment: [Alexander] if sys.getenv('PYTHONSEGVHANDLER'): import segvhandler segvhandler.enable() +1 If this doesn't find support, I'd name sys.setsegfaultenabled() sys.setsegvhandlerenabled() or sys.enable_segvhandler(). -- nosy: +skrah __

Re: [issue10296] ctypes catches BreakPoint error on windows 32

2010-12-23 Thread Thomas Heller
ctypes has _always_ catched exceptions raised in function calls. On Windows ;-). ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-12-23 Thread Stefan Krah
Stefan Krah added the comment: Before anyone does any further testing: Tarek, can this go into distutils 2.7/3.2 (after 3.2 has been released)? Due to the popularity of this issue I think it might be worthwhile to make an exception and ignore the distutils freeze. -- _

[issue10762] strftime('%f') segfault

2010-12-23 Thread David Leonard
New submission from David Leonard : Installed http://www.python.org/ftp/python/2.7.1/python-2.7.1.amd64.msi on Windows 7, x64 into C:\Python27 C:\>\Python27\python.exe Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "li

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: Re: msg124528 Yes, XEmacs installs a signal handler on what are normally fatal errors. (I don't know about GNU Emacs but they probably do too.) The handler has two functions: to display a Lisp backtrace and to output a message explaining how to report

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: No, the other combined suffixes are not either. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Grygoriy Fuchedzhy
Grygoriy Fuchedzhy added the comment: Shouldn't .svgz be also added as 'image/x-svg+xml'? -- ___ Python tracker ___ ___ Python-bugs-l