[issue2775] Implement PEP 3108

2009-07-02 Thread Henry Precheur
Henry Precheur added the comment: I found some bsddb code left in setup.py. Patch attached. -- nosy: +henry.precheur Added file: http://bugs.python.org/file14434/setup.py.remove-bsddb.diff ___ Python tracker __

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-07-02 Thread R. David Murray
R. David Murray added the comment: Before r73742, test_socketserver and test_urllib2_localnet work, after this patchset is applied there are failures. This is on Gentoo linux, py3k. See also issue 6381 and issue 6382, which are the same problems on trunk. (The test_urllib2_localnet failure se

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2009-07-02 Thread R. David Murray
R. David Murray added the comment: Hmm. Looks like the patch is missing a unit test for the new feature. -- stage: patch review -> test needed ___ Python tracker ___ ___

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2009-07-02 Thread R. David Murray
R. David Murray added the comment: Find someone to review the patch and post their evaluation here. It doesn't have to be a committer, though that would be even better. -- nosy: +r.david.murray stage: -> patch review versions: +Python 2.7, Python 3.2 -Python 2.6 _

[issue6395] Add Pickle Support to the codecs Module

2009-07-02 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- nosy: +alexandre.vassalotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6404] 3.1 NEWS.txt points to alpha 2 file

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Already fixed... -- nosy: +benjamin.peterson resolution: -> out of date status: open -> closed ___ Python tracker ___ __

[issue6404] 3.1 NEWS.txt points to alpha 2 file

2009-07-02 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : On Thu, 02 Jul 2009 16:43:15 -0700, wrote: > On Mon, Jun 29, 2009, Sridhar Ratnakumar wrote: >> >> From http://www.python.org/download/releases/3.1/NEWS.txt >> >> (...) >> >> What's New in Python 3.1 alpha 2? >> = >> >> *R

[issue4601] directory permission error with make install in 3.0

2009-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Ok, fixed in r73788 and r73789. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ ___

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-02 Thread R. David Murray
R. David Murray added the comment: Ignoring unknown options in the configuration file is analogous to ignoring unknown tags in html: it makes it easier to use the same config file with multiple versions of the logger, with older versions ignoring the options they don't understand. This is a tra

[issue6403] distutils builds extension modules to root package directory

2009-07-02 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6363] __future__ statements break doctest

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r73782 and r73783. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6402] Crash after attempt to set the error indicator via PyErr_SetString()

2009-07-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6403] distutils builds extension modules to root package directory

2009-07-02 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue6403] distutils builds extension modules to root package directory

2009-07-02 Thread ivank
New submission from ivank : When I built Twisted, I noticed that 'python2.7 setup.py build' created _c_urlang.so in the wrong place: $ find . | grep _c_url ./twisted/protocols/_c_urlarg.c ./build/lib.linux-x86_64-2.7/_c_urlarg.so ./build/temp.linux-x86_64-2.7/twisted/protocols/_c_urlarg.o I not

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-07-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Yes, this works .. the file compiles. I tried modifying the value of > _XOPEN_SOURCE to 500 in pyconfig.h (currently set to 600). That's an HPUX bug then, please report it to HP. They should assume that any feature present in XPG 5 is also present in any l

[issue6402] Crash after attempt to set the error indicator via PyErr_SetString()

2009-07-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: This bug tracker is not a place to obtain help. If it is primarily help that you are after (which it seems to be from your last question), I recommend that we close the issue, and you ask for help elsewhere. Most likely, the error happens at a point in the cod

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-07-02 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : Added file: http://bugs.python.org/file14433/test.c_XOPEN_SOURCE_500_preprocessed.txt ___ Python tracker ___ _

[issue6389] os.chmod() documentation refers to non-existent documentation in stat

2009-07-02 Thread R. David Murray
R. David Murray added the comment: I've added the documentation of the flags defined in the stat module in r73778, with the os.chmod references to the hyperlinked. The descriptions are taken from the linux stat(2) page, so if anyone spots any cross-platform inaccuracies let me know. (As far as

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-07-02 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: I've attached the files you requested. > As a wild guess, try defining _XOPEN_SOURCE to 500, > i.e. -D_XOPEN_SOURCE=500. Yes, this works .. the file compiles. I tried modifying the value of _XOPEN_SOURCE to 500 in pyconfig.h (currently set to 600). While

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-07-02 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : Added file: http://bugs.python.org/file14432/test.c.preprocessed.txt ___ Python tracker ___ ___ Python-bugs-lis

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-07-02 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : Added file: http://bugs.python.org/file14431/_mbstate_t.h ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue4618] print_function and unicode_literals don't work together

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

[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread chkneo
chkneo added the comment: Attaching the test patch -- Added file: http://bugs.python.org/file14430/5311_test.diff ___ Python tracker ___ _

[issue6119] Confusing DeprecationWarning

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

[issue6402] Crash after attempt to set the error indicator via PyErr_SetString()

2009-07-02 Thread Jan Lieskovsky
Changes by Jan Lieskovsky : -- nosy: +benjamin.peterson, gregory.p.smith, pitrou, psss ___ Python tracker ___ ___ Python-bugs-list mail

[issue6402] Crash after attempt to set the error indicator via PyErr_SetString()

2009-07-02 Thread Jan Lieskovsky
Changes by Jan Lieskovsky : Added file: http://bugs.python.org/file14429/core.31283.bz2 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue6402] Crash after attempt to set the error indicator via PyErr_SetString()

2009-07-02 Thread Jan Lieskovsky
New submission from Jan Lieskovsky : Hello guys, i am experiencing segmentation fault, when trying to set the error indicator via the PyErr_SetString() method called from C source. This occurs for all Python exceptions, as documented in: http://docs.python.org/c-api/exceptions.html Check

[issue4601] directory permission error with make install in 3.0

2009-07-02 Thread STINNER Victor
STINNER Victor added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue4753] Faster opcode dispatch on gcc

2009-07-02 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue6119] Confusing DeprecationWarning

2009-07-02 Thread djc
Changes by djc : -- nosy: +djc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/op

[issue4533] 3.0 file.read dreadfully slow

2009-07-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: This has been fixed as part of the big IO update in trunk. I assume nobody really cares about making a separate patch for 2.6, please re-open if you are interested! -- resolution: accepted -> fixed status: open -> closed ___

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro Santos
Alejandro Santos added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the bug report! Fixed in r73771. Now when I run it on mercurial/dispatch.py I get: --- mercurial/dispatch.py (original) +++ mercurial/dispatch.py (refactored) @@ -5,11 +5,11 @@ # This software may be used and distributed according to the terms of

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro Santos
Alejandro Santos added the comment: Sorry. Yes, there is an "__init__.py" script on the same level as the "commands.py". I forgot to mention it. /mymodule/commands.py /mymodule/a.py /mymodule/__init__.py This is the real repository: http://selenic.com/repo/hg/file/b81baf9e4dd6/mercurial

[issue6394] getppid support in os module on Windows

2009-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > Do these same issues exist on Unix systems? No. When the parent exits, the child process is attached to the 'init' process and getppid() returns 1. And collisions are not rare at all. Actually it seems that you get the same pid if you close and restart

[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Oh, I see the problem. mymodule/ isn't a package. If it has __init__.py, this should work. -- ___ Python tracker ___

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro
Alejandro added the comment: The one included on Python 3.1-rc2. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6394] getppid support in os module on Windows

2009-07-02 Thread Jon Anglin
Jon Anglin added the comment: Just some information, on Windows: - process ids are re-used. - parent process id is set at process creation time and never updated. (Windows Internal 4th Ed. by Russinovich and Solomon). Thus, I would say that a long running process can not rely on the value of i

[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch. It would be better if you also added a test to Lib/test/test_httplib.py (unless for some reason it's technically impossible to do so). -- nosy: +pitrou versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5

[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: What version of 2to3 are you using? -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python

[issue6401] Unexpected module garbage collection

2009-07-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is a quirk of module finalization semantics. You've got to consider the following facts: - a class doesn't hold a reference to the module it is defined it, because it doesn't need to (the __module__ attribute is a string) - a function (and a method) holds a

[issue6401] Unexpected module garbage collection

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: The class doesn't hold any references to the module, so naturally it will be collected if you don't. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker

[issue6394] getppid support in os module on Windows

2009-07-02 Thread Jon Anglin
Jon Anglin added the comment: I have addressed the issues brought up by Amaury Forgeot d'Arc except for the unit test. I will get a unit test in tommorrow. Thank you for the feedback. I have uploaded a new diff file Issue6394-2.diff. - Should I remove the old diff files? I ran some test w

[issue6401] Unexpected module garbage collection

2009-07-02 Thread j_pok
New submission from j_pok : This code does not behave as I expected. Removing module from sys.modules and from local variable causes garbage collection (?) of module in spite of there is an instance of a class from this module. Instance method test() from TestClass returns global variable cont

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro
New submission from Alejandro : I'm porting a project to Py3k wich contains a "commands.py" script on the project's module. Inside "a.py" there is an "import commands" statement: /mymodule/commands.py /mymodule/a.py The 2to3 tool replaces the "import commands" and all the "commands" ocurrence

[issue6396] No conversion specifier in the string, no __getitem__ method in the right hand value

2009-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: IMO, the *_FromFormat functions are wrong to decide whether the args object is a mapping. the code is: if (Py_TYPE(args)->tp_as_mapping && !PyTuple_Check(args) && !PyObject_TypeCheck(args, &PyBaseString_Type)) dict = args; But heap typ

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2009-07-02 Thread Andreas Kloeckner
Changes by Andreas Kloeckner : -- nosy: +inducer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6396] No conversion specifier in the string, no __getitem__ method in the right hand value

2009-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: If A is a simple class (old or new style): class A: pass Why is there a difference between: "" % object() and "" % A() ? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-02 Thread Mike
New submission from Mike : Hi, I had a logging.conf file with the following logger def in it: [logger_Builder] level=DEBUG handlers=consoleStderr qualname=Builder propogate=0 And I couldn't understand why all my log messages were coming out twice. It took me four hours :-\ to realise I had mis

[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread chkneo
Changes by chkneo : Added file: http://bugs.python.org/file14425/5111.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread chkneo
Changes by chkneo : Removed file: http://bugs.python.org/file14424/5111.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6398] README typo

2009-07-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: georg.brandl -> ezio.melotti nosy: +ezio.melotti priority: -> low ___ Python tracker ___ ___ Py

[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread chkneo
chkneo added the comment: RFC 2732 Section three have the following details. host = hostname | IPv4address | IPv6reference ipv6reference = "[" IPv6address "]" The patch contains check for : and adding the brackets -- ___ Python

[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread chkneo
chkneo added the comment: As per the RFC 2732 host header should be wrapped with []. I am attaching patch for this too which is applied on trunk(2.7) -- keywords: +patch nosy: +chkneo type: -> behavior Added file: http://bugs.python.org/file14424/5111.diff

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2009-07-02 Thread Colin Watson
Colin Watson added the comment: Is there anything more I can do to move this along? Thanks. -- ___ Python tracker ___ ___ Python-bugs-

[issue6026] test_(zipfile|zipimport|gzip|distutils) fail if zlib is not available

2009-07-02 Thread Ezio Melotti
Ezio Melotti added the comment: I'm working on a patch. There a few more tests that need to be skipped in test_zipfile when zlib is not available. test_gzip has to be skipped entirely if zlib is not available. I still have to look at test_zipimport and test_distutils. -- versions: +Pyth

[issue6026] test_(zipfile|zipimport|gzip|distutils) fail if zlib is not available

2009-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: test_zipfile and test_zipimport should be enabled when zlib is not available: a zip file can store data uncompressed, and does not need zlib in this case. Only disable tests that require compression. -- nosy: +amaury.forgeotdarc _

[issue6394] getppid support in os module on Windows

2009-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: First, I checked that the API does exist on Window 2000. And python does not have any "never fail guarantee", specially in low memory conditions. Then, some remarks: - If Process32First or Process32Next fail for any reason, "return win32_error(...)" is c