[issue4985] Idle hangs when given a nonexistent filename.

2009-08-12 Thread Guilherme Polo
Guilherme Polo added the comment: Closing this in favour of issue 3573. -- resolution: -> duplicate status: open -> closed superseder: -> IDLE hangs when passing invalid command line args (directory(ies) instead of file(s)) ___ Python tracker

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2009-08-12 Thread Guilherme Polo
Changes by Guilherme Polo : -- superseder: Idle hangs when given a nonexistent filename. -> ___ Python tracker ___ ___ Python-bugs-lis

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2009-08-12 Thread Guilherme Polo
Changes by Guilherme Polo : -- superseder: -> Idle hangs when given a nonexistent filename. ___ Python tracker ___ ___ Python-bugs-lis

[issue6692] asyncore kqueue support

2009-08-12 Thread Andrew Azarov
New submission from Andrew Azarov : Is there a possibility of such feature in the future releases of Python? Currently I see only select and epoll available, but on FreeBSD 7.2 with a lot of connections asyncore (1600+ active HTTP connections) has problems (not giving complete response) with epol

[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-12 Thread Berwyn
Berwyn added the comment: I agree with the patch, and it works fine: /bin/sh -c "gcc --version" gcc --version But I begin to wonder whether bash has a bug since bash only seems to observe the string, not the parameters after it. For example: $ bash -c "./printargs.py abc" def ghi jkl p

[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-12 Thread Ben Hoyt
Ben Hoyt added the comment: Oops, didn't intend to change the type, changing back. -- type: feature request -> behavior ___ Python tracker ___ ___

[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-12 Thread Ben Hoyt
Changes by Ben Hoyt : -- nosy: +benhoyt type: behavior -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue1612262] Class Browser doesn't show internal classes

2009-08-12 Thread Guilherme Polo
Changes by Guilherme Polo : Removed file: http://bugs.python.org/file14699/show_nested_objects.diff ___ Python tracker ___ ___ Python-bugs-l

[issue1612262] Class Browser doesn't show internal classes

2009-08-12 Thread Guilherme Polo
Guilherme Polo added the comment: I've removed the previous patch from here and attached an updated one on issue6691. Now the patch attached here only contains changes related to idlelib.ClassBrowser. -- dependencies: +Support for nested classes and function for pyclbr Added file: http

[issue6691] Support for nested classes and function for pyclbr

2009-08-12 Thread Guilherme Polo
Changes by Guilherme Polo : -- dependencies: -Support for nested classes and function for pyclbr Added file: http://bugs.python.org/file14705/pyclbr_nested_objects.diff ___ Python tracker __

[issue6691] Support for nested classes and function for pyclbr

2009-08-12 Thread Guilherme Polo
Changes by Guilherme Polo : Removed file: http://bugs.python.org/file14704/classbrowser_nesting_support.diff ___ Python tracker ___ ___ Python-

[issue6691] Support for nested classes and function for pyclbr

2009-08-12 Thread Guilherme Polo
Changes by Guilherme Polo : -- dependencies: +Support for nested classes and function for pyclbr Added file: http://bugs.python.org/file14704/classbrowser_nesting_support.diff ___ Python tracker

[issue6691] Support for nested classes and function for pyclbr

2009-08-12 Thread Guilherme Polo
Changes by Guilherme Polo : Removed file: http://bugs.python.org/file14703/pyclbr_nested_objects.diff ___ Python tracker ___ ___ Python-bugs-li

[issue6691] Support for nested classes and function for pyclbr

2009-08-12 Thread Guilherme Polo
New submission from Guilherme Polo : I have worked on a patch for adding support for nested classes and nested functions in pyclbr. I believe this might be useful for some applications, and also for issue1612262. The patch attached also contains a test and updated documentation. -- comp

[issue6599] 2to3 test_print_function_option fails on Windows

2009-08-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r74359. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue6690] BUILD_SET followed by COMPARE_OP (in) can be optimized if all items are consts

2009-08-12 Thread Alex
New submission from Alex : Just like we turn BUILD_LIST; COMPARE_OP (in) into a LOAD_CONST if all the members are consts, we can do the same for BUILD_SET, instead turning it into a LOAD_CONST of a frozenset. The following is the bytecode that is current produced for each datastructure. >>> dis

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-12 Thread Colin Stewart
Colin Stewart added the comment: Adding second patch. -- Added file: http://bugs.python.org/file14702/expatreader.py.patch2 ___ Python tracker ___ ___

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-12 Thread Colin Stewart
Colin Stewart added the comment: I'm not familiar with the inner workings of the expat integration with Python, so the attached patches need careful review. The first patch (expatreader.py.patch) is the minimum to resolve this issue. The second patch (expatreader.py.patch2) also exposes the ve

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2009-08-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: Would you like to contribute a patch? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list

[issue1068268] subprocess is not EINTR-safe

2009-08-12 Thread Chad Miller
Chad Miller added the comment: File "/home/cmiller/work/cabzr/desktopcouch/getport-at-call-time/desktopcouch/start_local_couchdb.py", line 93, in run_couchdb retcode = subprocess.call(local_exec) File "/usr/lib/python2.6/subprocess.py", line 444, in call return Popen(*popenargs, **kwar

[issue6680] Python 3.1 fails to build when db.h contains non-UTF-8 characters

2009-08-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r74357. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue3244] multipart/form-data encoding

2009-08-12 Thread Bertrand Janin
Changes by Bertrand Janin : -- nosy: +tamentis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2009-08-12 Thread Collin Winter
Collin Winter added the comment: FYI, Unladen Swallow includes several regex benchmark suites: a port of V8's regex benchmarks (regex_v8); some of the regexes used when tuning the existing sre engine 7-8 years ago (regex_effbot); and a regex_compile benchmark that tests regex compilation time

[issue1612262] Class Browser doesn't show internal classes

2009-08-12 Thread Guilherme Polo
Guilherme Polo added the comment: The attached patch adds support for nested objects in pyclbr and also in ClassBrowser. I have yet to find an optimal way to test this on test_pyclbr (I did some things here, none very nice), so you will notice tests are missing on this patch. -- keywor

[issue6582] test_telnetlib doesn't test Telnet.write

2009-08-12 Thread Jack Diederich
Jack Diederich added the comment: Thanks Rodrigo, I'll integrate this and check it in. -- ___ Python tracker ___ ___ Python-bugs-list

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

2009-08-12 Thread Walter Dörwald
Changes by Walter Dörwald : -- nosy: -doerwalter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2009-08-12 Thread Jeffrey C. Jacobs
Jeffrey C. Jacobs added the comment: Mea culpa et mes apologies, The '-s' option to John's expressions are indeed executed only once -- they are one-time setup lines. The final quoted expression is what's run multiple times. In other words, improving caching in regex will not help. >sigh< M

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

2009-08-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Remember, though, that > when run as a single instance, at least in the existing engine, the re > compiler caches recent compiles, so repeatedly compiling an expression > flattens the overhead in a single run to a single compile and lookup, > where as your tes

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

2009-08-12 Thread Jeffrey C. Jacobs
Jeffrey C. Jacobs added the comment: Re: timings Thanks for the info, John. First of all, I really like those tests and could you please submit a patch or other document so that we could combine them into the python test suite. The python test suite, which can be run as part of 'make test' o

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-12 Thread Chris Withers
Chris Withers added the comment: Well, for me, buffer size doesn't appear to have made any difference... -- ___ Python tracker ___ ___

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I must admit I don't understand the conflict between buffering and pipelined requests. This is all sequential reading and the buffer should be transparent, shouldn't it? -- nosy: +pitrou versions: +Python 2.7, Python 3.1, Python 3.2 ___

[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-12 Thread David Fraser
Changes by David Fraser : Added file: http://bugs.python.org/file14698/current-3.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-12 Thread David Fraser
New submission from David Fraser : (from http://stackoverflow.com/questions/1253122/why-does-subprocess-popen-with-shelltrue-work-differently-on-linux-vs-windows/1254322) When using subprocess.Popen(args, shell=True) to run "gcc --version" (just as an example), on Windows we get this: >>> from

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-12 Thread Chris Withers
Chris Withers added the comment: I tried to use the following to change the buffersize for a download: from base64 import encodestring from httplib import HTTPResponse,HTTPConnection,HTTPSConnection,_UNKNOWN from datetime import datetime class FHTTPResponse(HTTPResponse): def __init__(sel

[issue2304] subprocess under windows fails to quote properly when shell=True

2009-08-12 Thread David Fraser
Changes by David Fraser : -- nosy: +davidfraser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth