[issue11328] NESTED WHILE CYCLES ERROR

2011-02-26 Thread Alex
Alex 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 : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10866] Add sethostname()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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 the first on

[issue11172] Avoid '.' as runpath on AIX

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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

[issue9795] nntplib.NNTP should support the context protocol

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not sure that silencing errors from quit() is the right thing. Is there any reason? -- ___ Python tracker ___ _

[issue10866] Add sethostname()

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

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

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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 -> committed/rej

[issue11318] Python 3.2 FAQ example code typo?

2011-02-26 Thread Boštjan Mejak
Boštjan Mejak 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 create an insta

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

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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 only one is loada

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

2011-02-26 Thread Juraj Ivancic
New submission from Juraj Ivancic : 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 Minimal repro: #include "P

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Ram Rachum
Ram Rachum 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 that a pointer to the

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

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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(). -- assignee

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

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali 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 This means that it

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

2011-02-26 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : -- nosy: +sdaoden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-02-26 Thread Ned Deily
Ned Deily 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 to run t

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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, st_uid=502, st_gid=20, st_siz

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

2011-02-26 Thread Edoardo Spadolini
Edoardo Spadolini 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 _

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

2011-02-26 Thread Eli Bendersky
Eli Bendersky 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 bytearrays raise d

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

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali 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 __

[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 repla

[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 : -- assignee: docs@python -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mai

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

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-02-26 Thread Ned Deily
Ned Deily 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 F

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

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: This explains why you don't get a segfault: your libc is broken ;-) -- ___ Python tracker ___

[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 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 (compatibility version 1

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

2011-02-26 Thread Nick Coghlan
Nick Coghlan 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 application passing in

[issue11331] unused line in the logging-cookbook example

2011-02-26 Thread SilentGhost
Changes by SilentGhost : -- assignee: docs@python -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailin

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

2011-02-26 Thread Oliver Drake
New submission from Oliver Drake : 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 quite a few new test ca

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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, st_size=4294967300, st_a

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

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali 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 asctime returns NULL,

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

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> vinay.sajip nosy: +brett.cannon, vinay.sajip stage: -> patch review type: -> behavior versions: +Python 3.3 ___ Python tracker ___

[issue10866] Add sethostname()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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: http://bugs.python.org/file20909/sethostname_v3.pat

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

2011-02-26 Thread Daniel Urban
New submission from Daniel Urban : 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 possibly mean, that every nod

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

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali 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 p = asctime(&bu

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

2011-02-26 Thread Daniel Urban
Daniel Urban 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 added the comment: On Fri, Feb 25, 2011 at 03:43:06PM +, Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > r88586: Normalized the encoding names for Latin-1 and UTF-8 to > 'latin-1' and 'utf-8' in the stdlib. Even though - or maybe exactly bec

[issue11256] inspect.getcallargs raises TypeError on valid arguments

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

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

2011-02-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > >> If you agree, Raymond, I'll backport the patch. > > Yes. That will address Antoine's legitimate concern about making other > backports harder, and it will get all the Python's to us

[issue11298] unittest discovery needs better explanation

2011-02-26 Thread Michael Foord
Michael Foord 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 added the comment: It still fails under AMD64 OpenIndiana: == ERROR: test_offset_overflow (test.test_os.TestSendfile) -- Traceback (most recent

[issue9795] nntplib.NNTP should support the context protocol

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 suppressed. --

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

2011-02-26 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11325] compilation warning with sendfile

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11257] asyncore stores unnecessary object references

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' 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. -- ___ Python tracker <

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

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: What about Doc/whatsnew/3.3.rst? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2011-02-26 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2011-02-26 Thread Марк Коренберг
Марк Коренберг 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 __

[issue11082] ValueError: Content-Length should be specified

2011-02-26 Thread Éric Araujo
Éric Araujo 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 ___ __

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

2011-02-26 Thread Марк Коренберг
Changes by Марк Коренберг : Removed file: http://bugs.python.org/file20912/z.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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 _

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

2011-02-26 Thread Éric Araujo
Éric Araujo 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 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 also uses a more

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

2011-02-26 Thread Vinay Sajip
Vinay Sajip 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 tracker

[issue11085] expose _abcoll as collections.abc

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

[issue11331] unused line in the logging-cookbook example

2011-02-26 Thread Vinay Sajip
Vinay Sajip added the comment: Fix checked into py3k and release32-maint (r88645), thanks. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

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

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

[issue10882] Add os.sendfile()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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 2560.0 >>> 10

[issue11071] What's New review comments

2011-02-26 Thread Éric Araujo
Éric Araujo added the comment: The section about os.environb talks about unencoded bytes and unencoded environment variables instead of undecoded. -- ___ Python tracker ___ ___

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

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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 _

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

2011-02-26 Thread Марк Коренберг
Марк Коренберг 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 ___

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

2011-02-26 Thread Марк Коренберг
Марк Коренберг 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 length: 10 r

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

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

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

2011-02-26 Thread Vinay Sajip
Vinay Sajip 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 and avoid modifying the

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

2011-02-26 Thread Senthil Kumaran
Senthil Kumaran 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 added the comment: Fix checked into release32-maint (r88651). -- resolution: accepted -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker __

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

2011-02-26 Thread Vinay Sajip
Vinay Sajip 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 ___ Python tr

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

2011-02-26 Thread Merlijn van Deen
Merlijn van Deen 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 (r271:86832, Nov 27

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Alexandre Vassalotti
Alexandre Vassalotti 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 supports. Similarly,

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

2011-02-26 Thread Vinay Sajip
Vinay Sajip 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 _

[issue10866] Add sethostname()

2011-02-26 Thread Ross Lagerwall
Ross Lagerwall 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 versions can crea

[issue10866] Add sethostname()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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 "pyconfig.h

[issue10866] Add sethostname()

2011-02-26 Thread Ross Lagerwall
Ross Lagerwall 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 remake the GNU Build

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

2011-02-26 Thread Daniel Stutzbach
Daniel Stutzbach 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 added the comment: Sounds good to me. Thanks for the clarifications and satisfying my curiosity! :-) -- ___ Python tracker ___ ___

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

2011-02-26 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Ram Rachum
Ram Rachum 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 some arrangement so

[issue11334] Failed to build _multiprocessing on Mac OS X

2011-02-26 Thread dave
New submission from dave : 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 darwin Type "hel

[issue11334] Failed to build _multiprocessing on Mac OS X

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: ronaldoussoren -> nosy: +asksol, jnoller ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11334] Failed to build _multiprocessing on Mac OS X

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11335] Memory leak after key function failure in sort

2011-02-26 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : 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 messages: 129574 nosy:

[issue11335] Memory leak after key function failure in sort

2011-02-26 Thread Daniel Stutzbach
Daniel Stutzbach 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=markup&pathrev=88554#l1944 -- keywords: +3.2regression, needs review, patch Added file: http://bugs.python.org

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Terry J. Reedy
Terry J. Reedy 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

[issue11321] 9th import of module _pickle always crashes

2011-02-26 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +alexandre.vassalotti, brett.cannon, ncoghlan, pitrou ___ Python tracker ___ ___ Python-bugs-list ma

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

2011-02-26 Thread Filip Gruszczyński
Filip Gruszczyński 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: http://bugs.python.org/file20919/

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

2011-02-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Guido? -- assignee: -> gvanrossum nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list

[issue11335] Memory leak after key function failure in sort

2011-02-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: LGTM -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2011-02-26 Thread Éric Araujo
Éric Araujo added the comment: Thanks. Could you also add a test? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list

[issue9931] test_ttk_guionly hangs on XP5

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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 status: open

[issue8594] Add a "source_address" option to ftplib

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' 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. http://svn.python.org/view/python/trunk/Lib/test/test_socket.p

[issue11336] Typo in patch.rst

2011-02-26 Thread blokeley
New submission from blokeley : 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 components: Documentation

[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 : 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 messages: 129584 n

[issue11338] No list of Python hg repositories

2011-02-26 Thread blokeley
New submission from blokeley : 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 http://hg.python.org/ and some under

[issue11338] No list of Python hg repositories

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou 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" (http://code.python.org/hg/)

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11339] annotation for class being defined

2011-02-26 Thread Andy Harrington
New submission from Andy Harrington : 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 priority: normal sever

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

2011-02-26 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11340] test_distutils fails

2011-02-26 Thread Westley Martínez
New submission from Westley Martínez : 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 file: http://bugs.pytho

[issue11341] test_os fails

2011-02-26 Thread Westley Martínez
New submission from Westley Martínez : 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: http://bugs.python.org/file20924/test_os

[issue11336] Typo in patch.rst

2011-02-26 Thread Brett Cannon
Brett Cannon 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 tracker

  1   2   >