[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond skippy.hamm...@gmail.com added the comment: Note the quoted documentation in comment 1, the paragraph Note that if an otherwise unhandled SystemError ... I don't think that paragraph is correct - SystemError doesn't seem to terminate Py_Main - but if you replace SystemError with

[issue7796] No way to find out if an object is an instance of a namedtuple

2011-03-28 Thread Jan Kaliszewski
Jan Kaliszewski z...@chopin.edu.pl added the comment: Thank you. Raymond is against the idea so I don't know if it makes sense to create the real patch for now (it would patch the collections module and, I suppose, addming tests, docs etc.). Anyway, if somebody would be interested in the

[issue11699] Documentation for get_option_group is wrong

2011-03-28 Thread Weeble
New submission from Weeble clockworksa...@gmail.com: The docs for optparse say this: OptionParser.get_option_group(opt_str) Return, if defined, the OptionGroup that has the title or the long description equals to opt_str After failing to get this to work at all, I looked at the

[issue1665333] Documentation missing for OptionGroup class in optparse

2011-03-28 Thread Weeble
Weeble clockworksa...@gmail.com added the comment: I think the documentation for get_option_group is not right. I've created a new bug: http://bugs.python.org/issue11699 -- nosy: +weeble ___ Python tracker rep...@bugs.python.org

[issue11699] Documentation for get_option_group is wrong

2011-03-28 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11699 ___ ___ Python-bugs-list

[issue11693] memory leak in email.generator.Generator().flatten() method

2011-03-28 Thread Kaushik Kannan
New submission from Kaushik Kannan kaushik1...@gmail.com: I wrote a daemon to monitor a directory and send out emails periodically. To create the email, I used MIMEMultipart() object. When as_string() method is called on the MIMEMultipart() object, it seemed to cause memory leaks. On looking

[issue11693] memory leak in email.generator.Generator().flatten() method

2011-03-28 Thread Kaushik Kannan
Kaushik Kannan kaushik1...@gmail.com added the comment: The memory usage trace as printed out by guppy is attached. For every new call of the Generator.flatten() method by the MIMEMultipart.as_string() method, the number of objects increases by 3 and the total size increases by 484Bytes.

[issue1690608] email.utils.formataddr() should be rfc2047 aware

2011-03-28 Thread Torsten Becker
Torsten Becker torsten.bec...@gmail.com added the comment: I incorporated that change as well. My rationale behind the previous version was to be consistent with how Lib/email/header.py handled this, unfortunately I did not look around in the other classes and didn't think about that kind of

[issue1690608] email.utils.formataddr() should be rfc2047 aware

2011-03-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, yes. Header is probably wrong there, I should fix that at some point. Sorry for the misytpes in my last message (it was late at night for me when I wrote it :) As for time, it probably didn't take any more time than it would have

[issue1690608] email.utils.formataddr() should be rfc2047 aware

2011-03-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- versions: -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1690608 ___

[issue10617] Collections ABCs can’t be linked to

2011-03-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset cc04b591d768 by Ezio Melotti in branch '2.7': #10617: add class directives to collections ABCs. http://hg.python.org/cpython/rev/cc04b591d768 -- nosy: +python-dev ___ Python tracker

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-28 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Attached is a simple script to show include and lib paths. The makefile location seems OK on my system. -- Added file: http://bugs.python.org/file21437/libdir.py ___ Python tracker

[issue11671] Security hole in wsgiref.headers.Headers

2011-03-28 Thread Felix Gröbert
Felix Gröbert groeb...@google.com added the comment: If the spec forbids control characters in headers, the module should enforce that. The most frequent example of header injection is the redirect-case: an application is forwarding using the Location header to a user-supplied URL.

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Westley Martínez wrote: Westley Martínez aniko...@gmail.com added the comment: I forgot to say, Arch Linux is rolling release so it doesn't have a version or id. Ok, but then what's the output of the function on Arch Linux (with the

[issue11700] mailbox.py proxy updates

2011-03-28 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: I'll send a patch that updates/fixes handling of file closes in the internal proxy-file classes. It could cause errors yet because self._file is del-eted but that field may still be used afterwards. mb =

[issue11700] mailbox.py proxy updates

2011-03-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Here's the patch. -- keywords: +patch Added file: http://bugs.python.org/file21438/11700.1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11700

[issue11701] email.parser.BytesParser() uses TextIOWrapper

2011-03-28 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: ... and that closes the original file, too! (I've also opened #11700 due to the mailbox.py side of this.) static PyObject * textiowrapper_close(textio *self, PyObject *args) return PyObject_CallMethod(self-buffer,

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-03-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: \|/ _ . | = Yes!? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Eric Frederich
Eric Frederich eric.freder...@gmail.com added the comment: So there is a disconnect. You can either change the documentation to match the behavior or you can change the code to match the documentation. I would prefer to leave the documentation alone and make Py_Main return rather than exit

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2011-03-28 Thread knickerkicker
Changes by knickerkicker knicker.kic...@gmail.com: -- nosy: +knicker.kicker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6085 ___ ___

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2011-03-28 Thread Charles-Francois Natali
Changes by Charles-Francois Natali neolo...@free.fr: Removed file: http://bugs.python.org/file17081/base_http_server_fqdn_lag.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6085 ___

[issue11610] Improving property to accept abstract methods

2011-03-28 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610 ___ ___ Python-bugs-list

[issue1673007] urllib2 requests history + HEAD support

2011-03-28 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1673007 ___ ___ Python-bugs-list

[issue8150] urllib needs ability to set METHOD for HTTP requests

2011-03-28 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Closing as duplicate. #1673007 tackles the same issues and has a few patches available. -- nosy: +brian.curtin resolution: - duplicate stage: test needed - committed/rejected status: open - closed superseder: - urllib2 requests history

[issue11647] function decorated with a context manager can only be invoked once

2011-03-28 Thread ysj.ray
ysj.ray ysj@gmail.com added the comment: Now I found that I am wrong and I feel OK with make the context manager reusable when used as a decorator. I missed one thing: the reusable behavior is regarded as in the decorated function but not in the decorator context manager. :) --

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-03-28 Thread Mark Mc Mahon
New submission from Mark Mc Mahon mtnbikingm...@gmail.com: Running the following code: import msilib db = msilib.OpenDatabase('c:/windows/installer/1c7a1.msi', 1) db _msi.Database object at 0x01E230A0 dir(db) (Python crashes - tested on current Trunk and Python 2.7.1). I tried tracking

[issue11699] Documentation for get_option_group is wrong

2011-03-28 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - docs@python components: +Documentation nosy: +docs@python, eric.araujo, georg.brandl, lunar_yorn, nnorwitz versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker

[issue9181] Solaris extension building does not work with 64 bit python

2011-03-28 Thread Charles Solar
Charles Solar charlesso...@gmail.com added the comment: Hello again, I got a copy of the latest python from the 2.7 branch, recompiled with CFLAGS=-m64 -O3 and LDFLAGS=-m64 and my extension compiled just fine. So I can verify this bug fixed -- ___

[issue9181] Solaris extension building does not work with 64 bit python

2011-03-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for checking. Closing as fixed. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9181 ___

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-03-28 Thread Filip Gruszczyński
Changes by Filip Gruszczyński grusz...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9544 ___ ___

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-28 Thread Henri Salo
Henri Salo he...@nerv.fi added the comment: CVE-2011-1521 has been assigned to this issue. -- nosy: +Henri.Salo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___

[issue10617] Collections ABCs can’t be linked to

2011-03-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset c5de208d205c by Ezio Melotti in branch '3.1': #10617: add class directives to collections ABCs. http://hg.python.org/cpython/rev/c5de208d205c New changeset 3daca2b76297 by Ezio Melotti in branch '3.2': #10617: merge with 3.1.

[issue10617] Collections ABCs can’t be linked to

2011-03-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10617 ___

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Rogi
Rogi r...@linuxmail.org added the comment: Sorry, some years have passed since I posted this. I will take a look on teh code again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___

[issue11693] memory leak in email.generator.Generator().flatten() method

2011-03-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I replaced guppy by a debug build of Python and a simple print sys.gettotalrefcount(). Indeed, I see a reference leak with Python2.6 (10 more references on every loop). There seems to be no leak with Python2.7. Which version of Python

[issue11397] os.path.realpath() may produce incorrect results

2011-03-28 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Attaching patches against 3.1 and 3.2 (due to unicode and slightly different unittest layout). -- Added file: http://bugs.python.org/file21439/issue11397_py31.patch ___ Python tracker

[issue11397] os.path.realpath() may produce incorrect results

2011-03-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Added file: http://bugs.python.org/file21440/issue11397_py32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397 ___

[issue1571878] Improvements to socket module exceptions

2011-03-28 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- nosy: +sandro.tosi versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1571878 ___

[issue1571878] Improvements to socket module exceptions

2011-03-28 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- keywords: -patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1571878 ___ ___ Python-bugs-list

[issue7796] No way to find out if an object is an instance of a namedtuple

2011-03-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7796 ___ ___ Python-bugs-list

[issue7796] No way to find out if an object is an instance of a namedtuple

2011-03-28 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- nosy: -srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7796 ___ ___

[issue10632] multiprocessing generates a fatal error

2011-03-28 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi Brian, are you able to replicate it? I just build 3.2 and default (3.3) on a Debian unstable system and wasn't able to replicate it (with a busy loop like while date ; do ./python -c import multiprocessing.managers ; mpp =

[issue11610] Improving property to accept abstract methods

2011-03-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: (Darren, I'm not sure why you are running into problems with that setup. I test with what sounds to be a very similar one including a MacPorts gettext port providing libintl although I do install ports as +universal (i386, x86_64) by default. And I

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___ ___ Python-bugs-list

[issue10617] Collections ABCs can’t be linked to

2011-03-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks Ezio. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10617 ___ ___ Python-bugs-list

[issue5340] Change in cgi behavior breaks existing software

2011-03-28 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5340 ___ ___ Python-bugs-list

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-03-28 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11702 ___ ___ Python-bugs-list mailing

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Rogi
Rogi r...@linuxmail.org added the comment: I reviewed teh problem and rewrote teh text to better explain what is happening. Also, I noticed teh change to teh docs, and in fact it is not correct that teh functions call exit() on SystemError. *** From teh docs:

[issue10740] sqlite3 module should allow DDL statements in transactions

2011-03-28 Thread dholth
dholth dho...@fastmail.fm added the comment: Torsten basically you are suggesting that PRAGMA would never work at all with my 'do not strcmp() the sql at all, always begin a transaction' approach? -- ___ Python tracker rep...@bugs.python.org

[issue5872] New C API for declaring Python types

2011-03-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: With PEP 384, this is now obsolete, so closing it as such. If you think that selected features of this patch should still be added, please submit them as separate patches. -- nosy: +loewis resolution: - out of date status: open -

[issue11676] imp.load_module and submodules - doc issue, or bug?

2011-03-28 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I say it's a documentation bug. -- assignee: - docs@python components: +Documentation -Interpreter Core, Library (Lib) nosy: +brett.cannon, docs@python stage: - needs patch ___ Python tracker

[issue7796] No way to find out if an object is an instance of a namedtuple

2011-03-28 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7796 ___ ___ Python-bugs-list

[issue11697] Unsigned type in mmap_move_method

2011-03-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Did you see a compiler warning? Indeed, this function (mmap.move) decodes its arguments with: PyArg_ParseTuple(args, kkk:move, dest, src, cnt) This looks wrong to me: these three numbers should be Py_ssize_t, and decoded with nnn.

[issue11697] Unsigned type in mmap_move_method

2011-03-28 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11697 ___ ___

[issue10632] multiprocessing generates a fatal error

2011-03-28 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: No, I wasn't able to replicate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10632 ___ ___

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-28 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: Added file: http://bugs.python.org/file21441/9d06d5eb1a7e.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-28 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Aha. I now see the point of raising an exception instead of just returning None. I have backported Senthil's patch to the 2.5 branch. Please review. -- ___ Python tracker rep...@bugs.python.org

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-28 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: Added file: http://bugs.python.org/file21442/f03e2acb9826.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-28 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: Removed file: http://bugs.python.org/file21441/9d06d5eb1a7e.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___

[issue11653] Problems with some tests using -j2

2011-03-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Antoine is correct in principle, however LD_LIBRARY_PATH does not work on OS X. To test without installing, you would need to use DYLD_LIBRARY_PATH instead. Also keep in mind that, unlike most other systems, OS X binaries embed absolute paths to

[issue11416] netrc module does not handle multiple entries for a single host

2011-03-28 Thread Jean-Marc Saffroy
Jean-Marc Saffroy saff...@gmail.com added the comment: So I finally cooked a little patch for netrc.py in python 2.6. The patch extends netrc.authenticators() with an extra parameter to select a login name, but otherwise the behaviour remains the same (still returns the last entry for a given

[issue11416] netrc module does not handle multiple entries for a single host

2011-03-28 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Can you add your tests to Lib/test/test_netrc.py? -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11416 ___

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-03-28 Thread Ivan Ivanenko
New submission from Ivan Ivanenko ivan.ivane...@gmail.com: result = urllib.urlopen(http://docs.python.org/library/urllib.html#OK;) print result.geturl() result = urllib2.urlopen(http://docs.python.org/library/urllib.html#OK;) print result.geturl() Python 2.6 returns:

[issue1294959] Problems with /usr/lib64 builds.

2011-03-28 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Please note another aspect of this problem will bite all Python developers on Ubuntu 11.04. With the introduction of multiarch, not all stdlib Python extension modules can be built out of the box, as seen here:

[issue11704] functools.partial doesn't create bound methods

2011-03-28 Thread Alex Gaynor
New submission from Alex Gaynor alex.gay...@gmail.com: This is related to the discussion we had at the PyCon language summit about C vs Python function binding. If you create a partial instance and put it on a class it doesn't create bound instances. This behavior is a tad surprising in my

[issue11685] possible SQL injection into db APIs via table names... sqlite3

2011-03-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Aren’t you supposed to use the DB API to get safe queries? http://docs.python.org/dev/library/sqlite3 Yes, but the OP complains that the DB API doesn't support specification of the table name from a parameter. So the DB API won't help

[issue11700] mailbox.py proxy updates

2011-03-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: mbf.close() should not fail when called twice. The close() method in the io module states that This method has no effect if the file is already closed. But then, is close=False necessary? -- nosy: +amaury.forgeotdarc stage: -

[issue10517] test_concurrent_futures crashes with --with-pydebug on RHEL5 with Fatal Python error: Invalid thread state for this thread

2011-03-28 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Is someone still able to replicate this crash? I'm not, with a fresh built 3.2 and default (3.3), --with-pydebug enabled. Brian confirmed on msg132418 that he can't any longer replicate it. -- nosy: +sandro.tosi

[issue10632] multiprocessing generates a fatal error

2011-03-28 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: can we close this issue then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10632 ___ ___

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond skippy.hamm...@gmail.com added the comment: @Rogi - you seem to have a problem with your keyboard - the 'h' and 'e' keys seem to have been swapped. The docs are wrong regardless - I don't think anyone would suggest the behaviour match the docs regarding SystemError - having

[issue11667] 'configure' script overrides users setting of CFLAGS

2011-03-28 Thread David Kirkby
David Kirkby david.kir...@onetel.net added the comment: Yes, I think this could do with being documented, as it is not obvious. Generally one would expect CFLAGS to do this, and not OPT. -- ___ Python tracker rep...@bugs.python.org

[issue8624] Aliasing warnings in multiprocessing.c

2011-03-28 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: This was fixed in f8fc2d03d7e4 by Benjamin Peterson. -- nosy: +sandro.tosi resolution: - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue9067] Use macros from pyctype.h

2011-03-28 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi Stefan, can you please expand a bit this issue and details the places you think can benefit from pyctype macros? you know, a patch would be the best :) -- nosy: +sandro.tosi versions: +Python 3.3

[issue11416] netrc module does not handle multiple entries for a single host

2011-03-28 Thread Jean-Marc Saffroy
Jean-Marc Saffroy saff...@gmail.com added the comment: Good that you mentioned the official tests, they let me see that netrc.hosts is actually part of the API, and my first patch broke it. Here is an updated patch, with extra tests. -- Added file:

[issue11704] functools.partial doesn't create bound methods

2011-03-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: True, this could be documented better - flagging as a docs bug. (It is mentioned at the bottom of http://docs.python.org/library/functools.html#partial-objects, but that could be referenced better from the main documentation of the function

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-03-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: A call to PyType_Ready() fixes the issue, see attached patch. I added a test that opens a random file in c:\windows\installer, I don't know if this is correct for all Windows version. -- keywords: +patch nosy:

[issue11705] sys.excepthook doesn't work in imported modules

2011-03-28 Thread Elias Zamaria
New submission from Elias Zamaria mikez...@gmail.com: I am trying to design a Python program that logs all uncaught exceptions using the logging module. I am doing this by using the sys.excepthook function to override the default exception handling. I noticed that if I run the program

[issue11704] functools.partial doesn't create bound methods

2011-03-28 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: Indeed I completely missed the section at the bottom. A note in the above section would be a useful addition. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11704

[issue11256] inspect.getcallargs raises TypeError on valid arguments

2011-03-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 57e99f5f5e8f by Benjamin Peterson in branch '3.2': Correct handling of functions with only kwarg args in getcallargs (closes #11256) http://hg.python.org/cpython/rev/57e99f5f5e8f New changeset b19d76d9d2a7 by Benjamin Peterson in

[issue11706] Build from hg fails with ancient hg version (0.9.3)

2011-03-28 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: With hg/mercurial 0.9.3, the build of CPython fails with this error: gcc -pthread -c -fno-strict-aliasing -g -O0 -Wall -Wstrict-prototypes-I. -IInclude -I./Include-DPy_BUILD_CORE \ -DHGVERSION=\`LC_ALL=C hg id -i .`\ \

[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2011-03-28 Thread Justin
Justin justin.warken...@gmail.com added the comment: Just following up on this. Now that 3.2 is out, has the patch been committed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11109 ___

[issue11706] Build from hg fails in Modules/getbuildinfo.c when built using ancient hg version (0.9.3)

2011-03-28 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Works OK with mercurial 1.3.1 (specifically, this is on a RHEL5 box, using mercurial-1.3.1-3.el5.i386.rpm from EPEL5) Closing this out, and changing title to help people searching for this. Not sure of the exact version of mercurial that's

[issue11676] imp.load_module and submodules - doc issue, or bug?

2011-03-28 Thread Dave Peck
Dave Peck davep...@gmail.com added the comment: Definitely could agree with this assessment, but it is surprising given the lack of parallel behavior between 'import' and 'imp'. Note that imp.load_module(subpackage) _does_ modify the parent module's attributes -- but it will never put the

[issue10517] test_concurrent_futures crashes with --with-pydebug on RHEL5 with Fatal Python error: Invalid thread state for this thread

2011-03-28 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: I tried again, and I'm still able to reproduce this bug on a RHEL5 box with cpython --with-pydebug as of a recent checkout (69030:00217100b9e7 as it happens): $ ./python -c import multiprocessing.managers ; mpp = multiprocessing.Pool(4); sm

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-28 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: docs@python - vinay.sajip nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11639 ___

[issue11705] sys.excepthook doesn't work in imported modules

2011-03-28 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: I really doubt that this issue has anything to do with `sys.excepthook` at all. It's rather that module members are set to `None` during module cleanup. Because the module raises an exception when one tries to import it, it will be

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Rogi
Rogi r...@linuxmail.org added the comment: @mhammond Maybe its just me but it seems to be a really bad idea to let those functions terminate your process as they wish. Teh programmer should be allowed to control teh flow of his application. However, I am not teh only one

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset bfa2a8d91859 by Vinay Sajip in branch '2.6': Issue #11639: Configuration function documentation referred to logging.XXX rather than logging.config.XXX. http://hg.python.org/cpython/rev/bfa2a8d91859 New changeset f494339674e7 by

[issue11707] Create C version of functools.cmp_to_key()

2011-03-28 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: For cases where the underlying comparison function is in C (strcoll for example), the pure Python dispatch in cmp_to_key dominates running time. This can be reduced considerably by writing cmp_to_key in C, making its overhead

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 1a5aab273332 by Vinay Sajip in branch '2.7': Issue #11639: Configuration function documentation referred to logging.XXX rather than logging.config.XXX. http://hg.python.org/cpython/rev/1a5aab273332 --

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-28 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- resolution: - fixed status: open - closed versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11639 ___

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Rogi
Rogi r...@linuxmail.org added the comment: @mhammond After reading your post again I noticed you talk about SystemError and not SystemExit. In fact, Py_Main() should not return on SystemError. Teh documentation states if the interpreter exits due to an exception, which implies teh

[issue11693] memory leak in email.generator.Generator().flatten() method

2011-03-28 Thread Kaushik Kannan
Kaushik Kannan kaushik1...@gmail.com added the comment: I'm on Ubuntu 10.04 with Python 2.6.5, Python 3.1 is also available in the repos, I'll try that and post back. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11693

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond skippy.hamm...@gmail.com added the comment: @Rogi - you might like to re-read my responses a couple more times: * I refer to SystemError as the docs *you quoted* refer to SystemError. Therefore, we should *not* make the implementation match the docs - the docs would be wrong

[issue11549] Rewrite peephole to work on AST

2011-03-28 Thread Eugene Toder
Eugene Toder elto...@gmail.com added the comment: If we have to preserve backward compatibility of Python AST API, we can do this relatively easily (at the expense of some code complexity): * Add 'version' argument to compile() and ast.parse() with default value of 1 (old AST). Value 2 will

[issue11705] sys.excepthook doesn't work in imported modules

2011-03-28 Thread Elias Zamaria
Elias Zamaria mikez...@gmail.com added the comment: Andreas, your explanation seems plausible. What has changed between 2.7 and 2.7.1 such that doing the same thing produces different results? -- ___ Python tracker rep...@bugs.python.org

[issue11549] Rewrite peephole to work on AST

2011-03-28 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Eugene, I think you're doing great work here and would like to see you succeed. In the near term, I don't have time to participate, but don't let that stop you. -- ___ Python tracker

[issue11705] sys.excepthook doesn't work in imported modules

2011-03-28 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: The difference between 2.7 and 2.7.1 is issue #10068 (e2aa3b1d08bc). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11705 ___

[issue11705] sys.excepthook doesn't work in imported modules

2011-03-28 Thread Elias Zamaria
Elias Zamaria mikez...@gmail.com added the comment: Is my issue a bug or is it expected behavior? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11705 ___

[issue11705] sys.excepthook doesn't work in imported modules

2011-03-28 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: In my opinion, it is expected behaviour (but then, I'm not a core developer). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11705

  1   2   >