[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Rogi
Rogi added the comment: I may be wrong, but I think Py_Main() will _never_ return 1. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Changes by Mark Hammond : -- keywords: +needs review -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond added the comment: For completeness, here is a doc patch against 2.6 which corrects the documentation. -- keywords: +patch Added file: http://bugs.python.org/file21447/bug-6498.patch ___ Python tracker

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Rogi
Rogi added the comment: Fair. Still I dont liek it very much. I will return! -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond added the comment: > What teh docs says currently about SystemError calling > exit() is just _WRONG_. Correct - the docs should be fixed - which is what this bug is currently addressing (see the "Components" and "Assigned To" fields) > Also, I am not asking for a new feature. I'

[issue11708] argparse: suggestion for formatting optional positional args

2011-03-28 Thread Peter Williams
New submission from Peter Williams : At present, if a number (e.g. 2) of optional positional arguments are defined (e.g. arg1 and arg2) argparse formats them as follows: usage: program [arg1] [arg2] in the usage message. I would like to suggest that a better format would be: usage: program [a

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Rogi
Rogi added the comment: @mhammond You said: "The docs are wrong regardless - I don't think anyone would suggest the behaviour match the docs regarding SystemError - having Py_Main return on SystemError would be backwards incompatible." but teh problem is:

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

2011-03-28 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-03-28 Thread Jeff Ramnani
Jeff Ramnani added the comment: I've reviewed your patch and it looks good. I appreciate the review and cleanup. The tests succeed for me after applying your patch. I also tested with PYTHONOPTIMIZE and PYTHONDONTWRITEBYTECODE and got the output I expected. --

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

2011-03-28 Thread Westley Martínez
Westley Martínez added the comment: ('arch', '', '') -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2011-03-28 Thread Andreas Stührk
Andreas Stührk added the comment: In my opinion, it is expected behaviour (but then, I'm not a core developer). -- ___ Python tracker ___ ___

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

2011-03-28 Thread Elias Zamaria
Elias Zamaria added the comment: Is my issue a bug or is it expected behavior? -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2011-03-28 Thread Andreas Stührk
Andreas Stührk added the comment: The difference between 2.7 and 2.7.1 is issue #10068 (e2aa3b1d08bc). -- ___ Python tracker ___ ___

[issue11549] Rewrite peephole to work on AST

2011-03-28 Thread Raymond Hettinger
Raymond Hettinger 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 Elias Zamaria
Elias Zamaria 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

[issue11549] Rewrite peephole to work on AST

2011-03-28 Thread Eugene Toder
Eugene Toder 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 correspond to the ne

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond 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 *even if* we change Python t

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

2011-03-28 Thread Kaushik Kannan
Kaushik Kannan 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 ___ _

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Rogi
Rogi 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 interpreter _exiting_,

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

2011-03-28 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed status: open -> closed versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-

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

2011-03-28 Thread Roundup Robot
Roundup Robot 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 -- _

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

2011-03-28 Thread Raymond Hettinger
New submission from Raymond Hettinger : 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 as low or lower than the co

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

2011-03-28 Thread Roundup Robot
Roundup Robot 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 Vinay Sajip in bran

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Rogi
Rogi 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 affected by this. I recal

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

2011-03-28 Thread Andreas Stührk
Andreas Stührk 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 cleaned up immediately (see

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

2011-03-28 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: docs@python -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailin

[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 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 = multiprocessing.

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

2011-03-28 Thread Dave Peck
Dave Peck 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 subpackage attribute i

[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 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 required. -

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

2011-03-28 Thread Justin
Justin added the comment: Just following up on this. Now that 3.2 is out, has the patch been committed? -- ___ Python tracker ___ ___

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

2011-03-28 Thread Dave Malcolm
New submission from Dave Malcolm : 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 .`\"" \ -

[issue11256] inspect.getcallargs raises TypeError on valid arguments

2011-03-28 Thread Roundup Robot
Roundup Robot 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 branch '2.7': Cor

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

2011-03-28 Thread Alex Gaynor
Alex Gaynor 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 ___

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

2011-03-28 Thread Elias Zamaria
New submission from Elias Zamaria : 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 directly from the command

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

2011-03-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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: +amaury.forgeotdarc stage: -> patch

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

2011-03-28 Thread Nick Coghlan
Nick Coghlan 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 higher up in the pa

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

2011-03-28 Thread Jean-Marc Saffroy
Jean-Marc Saffroy 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: http://bugs.python.org/file21444/netrc.patch

[issue9067] Use macros from pyctype.h

2011-03-28 Thread Sandro Tosi
Sandro Tosi 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 ___ Python tracker

[issue8624] Aliasing warnings in multiprocessing.c

2011-03-28 Thread Sandro Tosi
Sandro Tosi 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

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

2011-03-28 Thread David Kirkby
David Kirkby 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 ___

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Mark Hammond
Mark Hammond 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 Py_Main return on SystemError

[issue10632] multiprocessing generates a fatal error

2011-03-28 Thread Sandro Tosi
Sandro Tosi added the comment: can we close this issue then? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 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 ___ P

[issue11700] mailbox.py proxy updates

2011-03-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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: -> patch review

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

2011-03-28 Thread Martin v . Löwis
Martin v. Löwis 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 here. -- __

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

2011-03-28 Thread Alex Gaynor
New submission from Alex Gaynor : 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 view. At a minimum it

[issue1294959] Problems with /usr/lib64 builds.

2011-03-28 Thread Barry A. Warsaw
Barry A. Warsaw 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: https://bugs.launchpad.net/ubuntu/+source/db4.

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-03-28 Thread Ivan Ivanenko
New submission from Ivan Ivanenko : 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: "http://docs.python.org/library/urllib.html#OK

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

2011-03-28 Thread Brian Curtin
Brian Curtin added the comment: Can you add your tests to Lib/test/test_netrc.py? -- nosy: +brian.curtin ___ Python tracker ___ ___ P

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

2011-03-28 Thread Jean-Marc Saffroy
Jean-Marc Saffroy 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 host). Lightly te

[issue11653] Problems with some tests using -j2

2011-03-28 Thread Ned Deily
Ned Deily 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 dynamic librarie

[issue11662] Redirect vulnerability in urllib/urllib2

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

[issue11662] Redirect vulnerability in urllib/urllib2

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

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-28 Thread Guido van Rossum
Guido van Rossum 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 _

[issue11662] Redirect vulnerability in urllib/urllib2

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

[issue10632] multiprocessing generates a fatal error

2011-03-28 Thread Brian Quinlan
Brian Quinlan added the comment: No, I wasn't able to replicate. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue11697] Unsigned type in mmap_move_method

2011-03-28 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11697] Unsigned type in mmap_move_method

2011-03-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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". An example o

[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 : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

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

2011-03-28 Thread Brett Cannon
Brett Cannon 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

[issue5872] New C API for declaring Python types

2011-03-28 Thread Martin v . Löwis
Martin v. Löwis 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 -> closed _

[issue10740] sqlite3 module should allow DDL statements in transactions

2011-03-28 Thread dholth
dholth 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

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Rogi
Rogi 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: http://docs.python.org/c-api/veryhigh.html int Py_M

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

2011-03-28 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue5340] Change in cgi behavior breaks existing software

2011-03-28 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10617] Collections ABCs can’t be linked to

2011-03-28 Thread Éric Araujo
Éric Araujo added the comment: Thanks Ezio. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11610] Improving property to accept abstract methods

2011-03-28 Thread Ned Deily
Ned Deily 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 don't know wh

[issue10632] multiprocessing generates a fatal error

2011-03-28 Thread Sandro Tosi
Sandro Tosi 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 = multiprocessing.Pool(4); sm = multi

[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 : -- nosy: -srid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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 : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1571878] Improvements to socket module exceptions

2011-03-28 Thread Sandro Tosi
Changes by Sandro Tosi : -- keywords: -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue1571878] Improvements to socket module exceptions

2011-03-28 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing

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

2011-03-28 Thread Santoso Wijaya
Changes by Santoso Wijaya : Added file: http://bugs.python.org/file21440/issue11397_py32.patch ___ Python tracker ___ ___ Python-bugs-list mai

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

2011-03-28 Thread Santoso Wijaya
Santoso Wijaya 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

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

2011-03-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 do you use?

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Rogi
Rogi added the comment: Sorry, some years have passed since I posted this. I will take a look on teh code again. -- ___ Python tracker ___ ___

[issue10617] Collections ABCs can’t be linked to

2011-03-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue10617] Collections ABCs can’t be linked to

2011-03-28 Thread Roundup Robot
Roundup Robot 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. http://hg.python.org/c

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-28 Thread Henri Salo
Henri Salo added the comment: CVE-2011-1521 has been assigned to this issue. -- nosy: +Henri.Salo ___ Python tracker ___ ___ Python-b

[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 : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

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

2011-03-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for checking. Closing as fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

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

2011-03-28 Thread Charles Solar
Charles Solar 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 -- ___ Python tracker

[issue11699] Documentation for get_option_group is wrong

2011-03-28 Thread Éric Araujo
Changes by Éric Araujo : -- 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

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

2011-03-28 Thread Mark Mc Mahon
New submission from Mark Mc Mahon : 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 it through

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

2011-03-28 Thread ysj.ray
ysj.ray 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. :) -- _

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

2011-03-28 Thread Brian Curtin
Brian Curtin 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 + HEAD suppo

[issue1673007] urllib2 requests history + HEAD support

2011-03-28 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11610] Improving property to accept abstract methods

2011-03-28 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2011-03-28 Thread Charles-Francois Natali
Changes by Charles-Francois Natali : Removed file: http://bugs.python.org/file17081/base_http_server_fqdn_lag.diff ___ Python tracker ___ ___ P

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2011-03-28 Thread knickerkicker
Changes by knickerkicker : -- nosy: +knicker.kicker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Eric Frederich
Eric Frederich 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 on sys.exit. That's just

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

2011-03-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: \|/ _ . | = Yes!? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2011-03-28 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : ... 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, "close", NULL); >>> mb =

[issue11700] mailbox.py proxy updates

2011-03-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Here's the patch. -- keywords: +patch Added file: http://bugs.python.org/file21438/11700.1.diff ___ Python tracker ___diff --git a/Lib/

[issue11700] mailbox.py proxy updates

2011-03-28 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : 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 = mailbox.Maildir('sdaoden', create=False) >

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

2011-03-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Westley Martínez wrote: > > Westley Martínez 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 patch) ? -- title: A

[issue11671] Security hole in wsgiref.headers.Headers

2011-03-28 Thread Felix Gröbert
Felix Gröbert 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. http://google.com/codesearch?as_

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

2011-03-28 Thread Vinay Sajip
Vinay Sajip 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 _

[issue10617] Collections ABCs can’t be linked to

2011-03-28 Thread Roundup Robot
Roundup Robot 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

  1   2   >