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

2009-07-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: No, it's not logical that there should be an exception. The result looks right to me. You are incorrectly assuming that it would always invoke __getitem__ in this case, which is not true: py a string with a single placeholder: %s % c 'a

[issue6394] getppid support in os module on Windows

2009-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

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

2009-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

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

2009-07-02 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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.

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

2009-07-02 Thread Colin Watson
Colin Watson cjwat...@users.sourceforge.net added the comment: Is there anything more I can do to move this along? Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1652 ___

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

2009-07-02 Thread chkneo
chkneo chk...@gmail.com 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

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

2009-07-02 Thread chkneo
chkneo chk...@gmail.com 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 --

[issue6398] README typo

2009-07-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: georg.brandl - ezio.melotti nosy: +ezio.melotti priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6398 ___

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

2009-07-02 Thread chkneo
Changes by chkneo chk...@gmail.com: Removed file: http://bugs.python.org/file14424/5111.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5111 ___ ___

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

2009-07-02 Thread chkneo
Changes by chkneo chk...@gmail.com: Added file: http://bugs.python.org/file14425/5111.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5111 ___ ___

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

2009-07-02 Thread Mike
New submission from Mike pyt...@amadron.com: 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 :-\

[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 amaur...@gmail.com 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

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

2009-07-02 Thread Andreas Kloeckner
Changes by Andreas Kloeckner inf...@tiker.net: -- nosy: +inducer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1652 ___ ___ Python-bugs-list

[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 amaur...@gmail.com 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;

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro
New submission from Alejandro alej...@alejolp.com: 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

[issue6401] Unexpected module garbage collection

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org 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

[issue6401] Unexpected module garbage collection

2009-07-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: What version of 2to3 are you using? -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6400 ___

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

2009-07-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue6401] Unexpected module garbage collection

2009-07-02 Thread j_pok
New submission from j_pok pyst...@gmail.com: 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

[issue6394] getppid support in os module on Windows

2009-07-02 Thread Jon Anglin
Jon Anglin jang...@fortresgrand.com 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

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro
Alejandro alej...@alejolp.com added the comment: The one included on Python 3.1-rc2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6400 ___ ___

[issue6400] incorrect commands import

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

[issue6394] getppid support in os module on Windows

2009-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro Santos
Alejandro Santos alej...@alejolp.com 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:

[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org 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

[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6400 ___

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro Santos
Alejandro Santos alej...@alejolp.com added the comment: Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6400 ___ ___ Python-bugs-list

[issue4533] 3.0 file.read dreadfully slow

2009-07-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue6119] Confusing DeprecationWarning

2009-07-02 Thread djc
Changes by djc dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6119 ___ ___ Python-bugs-list mailing list

[issue4753] Faster opcode dispatch on gcc

2009-07-02 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4753 ___ ___ Python-bugs-list mailing list

[issue4601] directory permission error with make install in 3.0

2009-07-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4601 ___ ___ Python-bugs-list

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

2009-07-02 Thread Jan Lieskovsky
New submission from Jan Lieskovsky ian...@seznam.cz: 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:

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

2009-07-02 Thread Jan Lieskovsky
Changes by Jan Lieskovsky ian...@seznam.cz: Added file: http://bugs.python.org/file14429/core.31283.bz2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6402 ___

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

2009-07-02 Thread Jan Lieskovsky
Changes by Jan Lieskovsky ian...@seznam.cz: -- nosy: +benjamin.peterson, gregory.p.smith, pitrou, psss ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6402 ___

[issue6119] Confusing DeprecationWarning

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r73774. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6119

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

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

[issue4618] print_function and unicode_literals don't work together

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r73776. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4618

[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 sridh...@activestate.com: Added file: http://bugs.python.org/file14431/_mbstate_t.h ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5999 ___

[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 sridh...@activestate.com: Added file: http://bugs.python.org/file14432/test.c.preprocessed.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5999 ___

[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 sridh...@activestate.com 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

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

2009-07-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[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 sridh...@activestate.com: Added file: http://bugs.python.org/file14433/test.c_XOPEN_SOURCE_500_preprocessed.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5999 ___

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

2009-07-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[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 mar...@v.loewis.de 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

[issue6403] distutils builds extension modules to root package directory

2009-07-02 Thread ivank
New submission from ivank i...@ludios.org: 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

[issue6403] distutils builds extension modules to root package directory

2009-07-02 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone exar...@divmod.com: -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6403 ___ ___ Python-bugs-list

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

2009-07-02 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6402 ___

[issue6363] __future__ statements break doctest

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r73782 and r73783. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6363

[issue6403] distutils builds extension modules to root package directory

2009-07-02 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6403 ___ ___

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

2009-07-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue4601] directory permission error with make install in 3.0

2009-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Ok, fixed in r73788 and r73789. -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4601

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

2009-07-02 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: On Thu, 02 Jul 2009 16:43:15 -0700, webmas...@python.org 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?

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

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Already fixed... -- nosy: +benjamin.peterson resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6404

[issue6395] Add Pickle Support to the codecs Module

2009-07-02 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: -- nosy: +alexandre.vassalotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6395 ___ ___

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

2009-07-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Hmm. Looks like the patch is missing a unit test for the new feature. -- stage: patch review - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1652

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-07-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue2775] Implement PEP 3108

2009-07-02 Thread Henry Precheur
Henry Precheur he...@precheur.org 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 rep...@bugs.python.org