[issue11328] NESTED WHILE CYCLES ERROR

2011-02-26 Thread Alex
Alex alex.gay...@gmail.com added the comment: This is invalid, there's no bug. j doesn't get magically reinitialized to 0, in fact this code would do the same thing in any language I can think of. -- nosy: +alex ___ Python tracker

[issue11328] NESTED WHILE CYCLES ERROR

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11328 ___

[issue10866] Add sethostname()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not sure why you use PyTuple_Size() and PyTuple_GetItem(). You should be able to do a first call to PyArg_ParseTuple() (using the S specifier to mandate a bytes object), and call PyErr_Clear() and fallback to the second PyArg_ParseTuple() if

[issue11172] Avoid '.' as runpath on AIX

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Now backported as part of issue 941346. -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - AIX shared library fix ___ Python tracker rep...@bugs.python.org

[issue9795] nntplib.NNTP should support the context protocol

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Not sure that silencing errors from quit() is the right thing. Is there any reason? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9795

[issue10866] Add sethostname()

2011-02-26 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Here is a simplified version. -- Added file: http://bugs.python.org/file20904/sethostname_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10866

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, I think you're right. I've committed the patch to 3.3 in r88639 after having added a minimal test. Is there a full name I should credit? Thank you for contributing! -- assignee: theller - resolution: - fixed stage: patch review -

[issue11318] Python 3.2 FAQ example code typo?

2011-02-26 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Understood. Now I get it. If you create an instance c of the class C (so c = C() ) and try to get the variable count from that class, then c.count is the same reference as C.count. Please make that clearer in the FAQ by saying If you

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Reopening and reverted the commit in r88640. The patch changes behaviour by turning the previous unrooted filename ('libc.so.6') into a full path ('/lib64/libc.so.6'). This breaks builds where multiple versions of a library are available and

[issue11329] PyEval_InitThreads() not safe before Py_Initialize()

2011-02-26 Thread Juraj Ivancic
New submission from Juraj Ivancic juraj.ivan...@gmail.com: It seems that PyEval_InitThreads() can no longer be called before Py_Initialize(). I get a fatal error in PyThreadState_GET(). This contradicts the documentation http://docs.python.org/release/3.2/c-api/init.html#PyEval_InitThreads

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Hi Alexandre, I read your blog post, but I don't understand-- Why does bytecode need to be pickled in order to pickle live generators? I understand that the local variables need to be pickled, (and let's assume they're all pickleable,) and

[issue11329] PyEval_InitThreads() not safe before Py_Initialize()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Given the way the new GIL works, I'm afraid it's not really possible to support this (it needs some thread-state to be available). Note that there is no reason, AFAIK, why you would want to call PyEval_InitThreads() before Py_Initialize().

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0018 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Python crashes when dereferencing 0x0018, which is NULL + 24

[issue11322] encoding package's normalize_encoding() function is too slow

2011-02-26 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- nosy: +sdaoden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11322 ___ ___

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: From the path names in the trace you appear to have a MacPorts Python 2.7 installed. For what it's worth, the standard library test_time works for me on OS X 10.6.6 with a current MacPorts 2.7.1 as well as a python.org 2.7.1. Exactly how did you try

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: 11:12 ~/tmp $ python3 ~/usr/opt/py3k/lib/python3.3/test_zlib.py Bus error Your code snippet: 11:21 ~/tmp $ /usr/bin/time -lp python3 test.py posix.stat_result(st_mode=33184, st_ino=10066605, st_dev=234881025, st_nlink=1,

[issue10868] ABCMeta.register() should work as a decorator

2011-02-26 Thread Edoardo Spadolini
Edoardo Spadolini keri...@gmail.com added the comment: Not really, but putting something in your inheritance lattice only to mark a class as providing an interface just doesn't seem right to me. -- ___ Python tracker rep...@bugs.python.org

[issue10516] Add list.clear() and list.copy()

2011-02-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Attaching a patch adding copy() and clear() to bytearrays, with tests and doc. I didn't add the methods to MutableSequence because I have a doubt about it - in particular which exception get raised by .pop if it's empty. Curiously, lists and

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: True with the following: import time time.asctime((2011, 2, 26, -1, 0, 0, 0, 0, 0)) You'll get a segfault. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11327

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread akira
New submission from akira 4kir4...@gmail.com: Since Python 3.2 logging package doesn't support formatting flags for the `asctime` keyword, but the documentation uses them. For example in Doc/library/logging.rst: FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s' should be

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: docs@python - vinay.sajip nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11330 ___

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11327 ___ ___ Python-bugs-list

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: $ /opt/local/bin/python2.7 Python 2.7.1 (r271:86832, Dec 31 2010, 11:59:23) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. import time time.asctime((2011, 2, 26, -1, 0, 0, 0, 0, 0)) 'Mon

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: This explains why you don't get a segfault: your libc is broken ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11327 ___

[issue11331] unused line in the logging-cookbook example

2011-02-26 Thread akira
New submission from akira 4kir4...@gmail.com: The line with `LoggerAdapter` is not used in http://docs.python.org/dev/howto/logging-cookbook.html#using-filters-to-impart-contextual-information Here's a patch for Doc/howto/logging-cookbook.rst: doc-logging-cookbook-unused-line-r88640.patch

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: If it's broken, complain to Apple. $ otool -L $(/opt/local/bin/python2.7 -c 'import time;print(time.__file__)') /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so: /usr/lib/libSystem.B.dylib

[issue11286] Some trivial python 2.x pickles fails to load in Python 3.2

2011-02-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: People may use SystemError for other purposes, but the docs are pretty clear it is only for internal errors that indicate an interpreter bug: http://docs.python.org/dev/library/exceptions.html#SystemError Extension modules or an embedding

[issue11331] unused line in the logging-cookbook example

2011-02-26 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: -- assignee: docs@python - vinay.sajip nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11331 ___

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Oliver Drake
New submission from Oliver Drake obdrak...@gmail.com: Purely a modification to test_logging.py with the focus being to increase coverage. coverage.py now measures 97% (when running test_logging.py by itself). I'm not sure if I've followed py-dev unit test conventions exactly, I've created

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I'll give you the same result again but with additional clock(), just for a heart's pleasure: clock(): 0.100958 , fstat(): posix.stat_result(st_mode=33184, st_ino=10075508, st_dev=234881025, st_nlink=1, st_uid=502, st_gid=20,

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: If it's broken, complain to Apple. Actually, I checked glibc's asctime, and it has the same behaviour. But the point is that asctime can return NULL. That still doesn't explain the OP's crash on OS X 10.6.6. Yes it does. If

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - vinay.sajip nosy: +brett.cannon, vinay.sajip stage: - patch review type: - behavior versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11332

[issue10866] Add sethostname()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New patch including a check for PyObject_GetBuffer()'s return value, the missing declaration of HAVE_SETHOSTNAME in pyconfig.h.in, and a test for giving a bytes values to the function. -- Added file:

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-02-26 Thread Daniel Urban
New submission from Daniel Urban urban.dani...@gmail.com: Currently instances of classes which inherit an ABC in collections.abc will have a __dict__. This can be a problem for example a tree-like data structure. It would make sense to inherit for example MutableMapping, but that would

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: I updated my local svn checkout, and the code has been fixed recently: r87648 | alexander.belopolsky | 2011-01-02 15:48:22 -0500 (Sun, 02 Jan 2011) | 1 line Issue #8013: Fixed time.asctime segfault when OS's asctime fails

[issue10868] ABCMeta.register() should work as a decorator

2011-02-26 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: In what use-cases would you want to call MyABC.register() when defining a class instead of inheriting from MyABC? For example if you don't want to inherit a __dict__ for a tree-like data structure (see also issue11333). --

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Fri, Feb 25, 2011 at 03:43:06PM +, Marc-Andre Lemburg wrote: Marc-Andre Lemburg m...@egenix.com added the comment: r88586: Normalized the encoding names for Latin-1 and UTF-8 to 'latin-1' and 'utf-8' in the stdlib.

[issue11256] inspect.getcallargs raises TypeError on valid arguments

2011-02-26 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Updated patch with extra tests. -- Added file: http://bugs.python.org/file20911/issue11256_2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11256

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Raymond Hettinger wrote: Raymond Hettinger rhettin...@users.sourceforge.net added the comment: If you agree, Raymond, I'll backport the patch. Yes. That will address Antoine's legitimate concern about making other backports

[issue11298] unittest discovery needs better explanation

2011-02-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: No, tests as top level modules work fine too. Importability is the only requirement. (Projects themselves are not typically packages but contain packages - so the wording needs to change slightly but I like the rest.) --

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It still fails under AMD64 OpenIndiana: == ERROR: test_offset_overflow (test.test_os.TestSendfile) --

[issue9795] nntplib.NNTP should support the context protocol

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: (socket.error, EOFError) after quit() indicates that the socket is disconnected, in which case we should not raise any error (or at least, this is the approach we're using in ftplib) while all other NNTPError related errors are not

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11323 ___ ___

[issue11325] compilation warning with sendfile

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11325 ___ ___ Python-bugs-list

[issue11257] asyncore stores unnecessary object references

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Unless there's a way to automatically call close() when a dispatcher instance is no longer referenced (and I can't think of anything to do that) I'd say we better close this as rejected. --

[issue4761] create Python wrappers for openat() and others

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: What about Doc/whatsnew/3.3.rst? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4761 ___

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-02-26 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11333 ___ ___

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: Real patch is the first hunk of attached file. Other 2 hunks are optimizations.. -- keywords: +patch Added file: http://bugs.python.org/file20912/z.patch ___ Python tracker rep...@bugs.python.org

[issue11082] ValueError: Content-Length should be specified

2011-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW, there was no entry in Misc/NEWS, so this was not in whatsnew/3.2.rst. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11082

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Changes by Марк Коренберг socketp...@gmail.com: Removed file: http://bugs.python.org/file20912/z.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11259 ___

[issue4761] create Python wrappers for openat() and others

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What about Doc/whatsnew/3.3.rst? This is filled by Raymond (or other people) when the release nears. No need to care about it in regular commits. -- ___ Python tracker rep...@bugs.python.org

[issue11171] Python 2.7.1 does not start when ./configure is used with --prefix != --exec-prefix

2011-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I was unclear. distutils.sysconfig does not play a role in the startup of python anymore. My question was: does distutils.sysconfig._get_makefile_filename have the same bug as the one that was fixed in sysconfig._get_makefile_filename?

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, so the root cause is that sendfile() under Solaris can fail with EINVAL when the offset is past the end of file (but only on 64-bit builds, strangely :-)). Here is a patch, tested under Linux, 32-bit OpenSolaris and 64-bit OpenSolaris. It

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into py3k and release32-maint (r88644). Support was reinstated - the docs weren't changed. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python

[issue11085] expose _abcoll as collections.abc

2011-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Some missed doc changes. -- keywords: +patch Added file: http://bugs.python.org/file20914/collections.abc-in-docs.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11085

[issue11331] unused line in the logging-cookbook example

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into py3k and release32-maint (r88645), thanks. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Shouldn’t there be a regression test for this? -- components: +Library (Lib) -Documentation nosy: +eric.araujo -docs@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11330

[issue10882] Add os.sendfile()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It seems we have a failure on Leopard: I think the issue is you request a 4096 transfer near the end of file, but there aren't that many bytes remaining. Apparently OS X then doesn't transfer anything and returns 0. Hint: 10485760. / 4096

[issue11071] What's New review comments

2011-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The section about os.environb talks about unencoded bytes and unencoded environment variables instead of undecoded. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11071

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Should be fixed in r88647. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: only first hunk is really the patch. 2 next hunks are optimizations. -- Added file: http://bugs.python.org/file20915/z.patch ___ Python tracker rep...@bugs.python.org

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: = ORIGINAL === $ ./qwe.py 10 read length: 10 read data: xx should read test. read: test $ ./qwe.py -10 read length: -10 read data: xx should read test. read: test = PATCHED === $ ./qwe.py 10 read

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Changes by Марк Коренберг socketp...@gmail.com: Added file: http://bugs.python.org/file20917/shorttest.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11259 ___

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Thanks for doing this, I appreciate the effort you've put into it. My comments: 1. Each test class ought to be independent, but they aren't - for example, if I comment out all of your test classes other than LoggerTest, it fails. 2. I try

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-26 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I fail to see the bug here. Python's getpass.py is mimicing the behavior of getpass.c

[issue9441] increase logging handlers test coverage

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into release32-maint (r88651). -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: There should, and I'm looking at some additional tests suggested for inclusion in #11332. I'll mark the issue as pending to remind me to ensure that the test gets added soon. -- status: closed - pending

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-26 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: No, I do not, for several reasons. First of all, this is not a change *from* previous behaviour, but a change *back to* previous behaviour. And sensible behaviour, too. Secondly, I have tested what getpass does on windows (Python 2.7.1

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: The value of the instruction pointer depends on the byte-code. So it's not portable either. But, the bigger issue is the fact generator objects do not have names we can refer to, unlike top-level functions and classes which pickle

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Regression test added to py3k and release32-maint (r88654). I just had to modify an existing test case. -- status: pending - closed ___ Python tracker rep...@bugs.python.org

[issue10866] Add sethostname()

2011-02-26 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: The patch looks good. Just to be clear, on my system running autoreconf adds the correct stuff to pyconfig.h.in Isn't it best to leave it up to the committer to generate configure and pyconfig.h.in, especially since different autoconf

[issue10866] Add sethostname()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch looks good. Just to be clear, on my system running autoreconf adds the correct stuff to pyconfig.h.in Ah, strange. I used autoconf and it didn't... Isn't it best to leave it up to the committer to generate configure and

[issue10866] Add sethostname()

2011-02-26 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Ah, strange. I used autoconf and it didn't... From the man page of autoreconf: Run `autoconf' (and `autoheader', `aclocal', `automake', `autopoint' (formerly `gettextize'), and `libtoolize' where appropriate) repeatedly to

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-02-26 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: +1. I've bumped into exactly this problem (https://github.com/DanielStutzbach/blist/issues/closed#issue/29) I'm not intimately familiar with how __slots__ works. Are there any drawbacks to adding an empty __slots__ to the ABCs?

[issue10868] ABCMeta.register() should work as a decorator

2011-02-26 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: Sounds good to me. Thanks for the clarifications and satisfying my curiosity! :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10868

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: *generator objects do not have names we can refer to* How about referring to the generator function that created them and to all the arguments? Regarding instruction pointer, I really don't know the internals of how this works. Can we make

[issue11334] Failed to build _multiprocessing on Mac OS X

2011-02-26 Thread dave
New submission from dave de...@gmx.de: hi community, i cannot import multiprocessing since it fails(?) during build. could someone point out a solution for me? thanks a lot in advance. dave $ python Python 2.7.1 (r271:86832, Feb 26 2011, 17:19:29) [GCC 4.2.1 (Apple Inc. build 5664)] on

[issue11334] Failed to build _multiprocessing on Mac OS X

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: ronaldoussoren - nosy: +asksol, jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11334 ___

[issue11334] Failed to build _multiprocessing on Mac OS X

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11334 ___ ___ Python-bugs-list mailing

[issue11335] Memory leak after key function failure in sort

2011-02-26 Thread Daniel Stutzbach
New submission from Daniel Stutzbach stutzb...@google.com: In list.sort, if a key function throws an exception, the memory to store the keys is never freed. I introduced the bug in r86937. I'll upload a patch for review shortly. -- assignee: stutzbach components: Interpreter Core

[issue11335] Memory leak after key function failure in sort

2011-02-26 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: Below is a link to the code where leak occurs and the patch goes: http://svn.python.org/view/python/branches/py3k/Objects/listobject.c?view=markuppathrev=88554#l1944 -- keywords: +3.2regression, needs review, patch Added file:

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Alexandre, Do the considerations against pickling apply to deep copying? It would seem that copying bytecode and pointer within a run should be ok. -- ___ Python tracker rep...@bugs.python.org

[issue11321] 9th import of module _pickle always crashes

2011-02-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +alexandre.vassalotti, brett.cannon, ncoghlan, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11321 ___

[issue11174] add argparse formatting option to display type names for metavar

2011-02-26 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: First draft of patch with this functionality. Test, patch and docs are included. I'll gladly work further on this, so I would appreciate some advice and suggestions. -- keywords: +patch nosy: +gruszczy Added file:

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-02-26 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Guido? -- assignee: - gvanrossum nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11333 ___

[issue11335] Memory leak after key function failure in sort

2011-02-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: LGTM -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11335 ___

[issue11324] ConfigParser(interpolation=None) doesn't work

2011-02-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks. Could you also add a test? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11324 ___

[issue9931] test_ttk_guionly hangs on XP5

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r88652 (3.3) and r88655 (3.2). Unfortunately, Paul's buildbot seems a bit stuck in a previous build... (I didn't commit to 2.7 since things look fine there) -- nosy: +pitrou resolution: - fixed stage: - committed/rejected

[issue8594] Add a source_address option to ftplib

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Patch in attachment set source_address attribute and updates doc. It still keeps using support.find_unused_port() which is also used in test_socket.py though [1], so it shouldn't cause problems.

[issue11336] Typo in patch.rst

2011-02-26 Thread blokeley
New submission from blokeley bloke...@gmail.com: I think that a typographical error was made in patch.rst. Should (do not that not all checks apply to non-core developers) read (note that not all checks apply to non-core developers)? Patch attached. -- assignee: docs@python

[issue11337] Nothing refers to footnote [1] on page 6. Simple Statements in Language Reference

2011-02-26 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: I can't find a reference to footnote [1] on page 6. Simple Statements in Language Reference. Either the footnote should be removed or a [1] link to it should appear on the page. -- assignee: docs@python components: Documentation

[issue11338] No list of Python hg repositories

2011-02-26 Thread blokeley
New submission from blokeley bloke...@gmail.com: Recently, I've logged a few issues on http://bugs.python.org/ and tried to submit patches where possible. However, I have not been able to find any documentation that states where the hg repositories are. There are some under

[issue11338] No list of Python hg repositories

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thank you for the suggestion. We are actually starting our official transition to hg, which makes things a bit unstable. The final URL (http://hg.python.org/cpython/) is currently a test repo, while the usable for work right now

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___ ___ Python-bugs-list

[issue11339] annotation for class being defined

2011-02-26 Thread Andy Harrington
New submission from Andy Harrington ahar...@luc.edu: You cannot make a self-referential annotation like class Graph: def reverse(self) - Graph: # ... This corresponds to a common coding situation. -- components: Interpreter Core messages: 129587 nosy: andyharrington

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11327 ___

[issue11340] test_distutils fails

2011-02-26 Thread Westley Martínez
New submission from Westley Martínez aniko...@gmail.com: test_compressed_deprecated failed -- components: Tests files: test_distutils messages: 129588 nosy: anikom15 priority: normal severity: normal status: open title: test_distutils fails type: behavior versions: Python 3.3 Added

[issue11341] test_os fails

2011-02-26 Thread Westley Martínez
New submission from Westley Martínez aniko...@gmail.com: test_invalid_offset failed on linux2. -- components: Tests files: test_os messages: 129589 nosy: anikom15 priority: normal severity: normal status: open title: test_os fails versions: Python 3.3 Added file:

[issue11336] Typo in patch.rst

2011-02-26 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Thanks for the patch, but the wording was completely changed a little while ago so the error has been dealt with. -- nosy: +brett.cannon resolution: - out of date status: open - closed ___ Python

[issue11339] annotation for class being defined

2011-02-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This has been true forever. I suggest you try python-ideas. -- nosy: +benjamin.peterson resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org

  1   2   >