[issue14386] Expose dictproxy as a public type

2012-03-29 Thread poq
poq p...@gmx.com added the comment: It is exposed as types.DictProxyType in Python 2... -- nosy: +poq ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14386 ___

[issue14433] Python 3 interpreter crash with memoryview and os.fdopen

2012-03-29 Thread Alexis Daboville
Alexis Daboville alexis.dabovi...@gmail.com added the comment: And ctlD isn't how you shut down the interpreter on Windows, is it? No ctrlZ + enter is the equivalent (ctrlD does nothing under Windows, except printing ^D). And in a cmd window it just print another prompt (that's strange that

[issue14433] Python 3 interpreter crash with memoryview and os.fdopen

2012-03-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: sys.stdin and others are created with closefd=False, so close() has no effect. Try os.close(0) instead... -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It sounds like we just need to fix the TestCase inheritance, like we did in test_queue. We should also look more carefully at the threading setup/cleanup. At some point I think we changed the best-practice idiom to be independent of

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@ccpgames.com: floatobject.c has its own block allocator. This appears to be ancient, from before the time when obmalloc.c was invented. This patch removes this allocator and puts an upper limit on the freelist of floats. The purpose of this

[issue14433] Python 3 interpreter crash on windows when stdin closed

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, let's reopen this for someone to investigate that Windows crash. -- resolution: invalid - stage: committed/rejected - needs patch status: closed - open title: Python 3 interpreter crash with memoryview and os.fdopen - Python

[issue14433] Python 3 interpreter crash on windows when stdin closed in Python shell

2012-03-29 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- title: Python 3 interpreter crash on windows when stdin closed - Python 3 interpreter crash on windows when stdin closed in Python shell ___ Python tracker rep...@bugs.python.org

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: One way to exclude base classes from being loaded as tests is to have the base class *not* inherit from TestCase (just from object) - and use it as a mixin class for the actual TestCases. This isn't particularly elegant (but works

[issue14436] SocketHandler sends obejcts while they cannot be unpickled on receiver's side

2012-03-29 Thread Zbigniew Kacprzak
New submission from Zbigniew Kacprzak zbik...@gmail.com: I decided to use SocketHandler in multi-processes application. Log server, sending data, logging simple strings - works fine. The problem is with own classes (or external libraries). Looks like SocketHandler creates pickles that cannot be

[issue14434] Tutorial link in help() in Python3 points to Python2 tutorial

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It should be easy enough to patch this to use http://docs.python.org/major.minor/tutorial I think that is probably a good idea, but the doc folks should sign off on it. -- keywords: +easy nosy: +r.david.murray title: Tutorial

[issue14426] date format problem in Cookie/http.cookies

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the patch. However, the RFC is one thing, but what happens in the real world? Cookies are very messy in the real world, and we cannot just assume that the RFC version works. -- nosy: +r.david.murray

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I'm working on a patch using TestCase a la test_queue. Perhaps we should create an issue for a base class test case decorator or something to that effect? -- ___ Python tracker

[issue14433] Python 3 interpreter crash on windows when stdin closed in Python shell

2012-03-29 Thread Alexis Daboville
Alexis Daboville alexis.dabovi...@gmail.com added the comment: @Amaury: ok thanks, I never heard of this argument before. I tried to reproduce the crash in the Python shell embedded in IDLE and there's no crash (same version 3.2.2, Windows 7): http://i.imgur.com/ayT96.png --

[issue14437] _io build fails on cygwin

2012-03-29 Thread Alexey Luchko
New submission from Alexey Luchko l...@ank-sia.com: $ make ... gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bufferedio.o build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bytesio.o

[issue14437] _io build fails on cygwin

2012-03-29 Thread Alexey Luchko
Alexey Luchko l...@ank-sia.com added the comment: The error got building Python 2.7.2 2.7.3rc2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14437 ___

[issue14438] _cursesmodule build fails on cygwin

2012-03-29 Thread Alexey Luchko
New submission from Alexey Luchko l...@ank-sia.com: $ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/ ./configure $ make ... building '_curses' extension gcc -fno-strict-aliasing -I/usr/include/ncursesw/ -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude

[issue14416] syslog missing constants

2012-03-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 04c19ac9734a by R David Murray in branch '3.2': #14416: add missing LOG_SYSLOG facility to syslog docs. http://hg.python.org/cpython/rev/04c19ac9734a New changeset c40e5120a9b1 by R David Murray in branch '2.7':

[issue14416] syslog missing constants

2012-03-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 91bafdf7d7a4 by R David Murray in branch 'default': Merge #14416: add missing LOG_SYSLOG facility to syslog docs. http://hg.python.org/cpython/rev/91bafdf7d7a4 -- ___

[issue14437] _io build fails on cygwin

2012-03-29 Thread Alexey Luchko
Alexey Luchko l...@ank-sia.com added the comment: Checked solution by David Robinow http://mail.python.org/pipermail/python-list/2012-March/1290038.html It works. Diff follows: --- Modules/_io/_iomodule.h.orig2012-03-16 03:26:36.0 +0200 +++ Modules/_io/_iomodule.h

[issue14386] Expose dictproxy as a public type

2012-03-29 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: It is exposed as types.DictProxyType in Python 2... Yes, but the purpose of the issue is to enable its constructor. You cannot instanciate a DictProxy in Python 2: import types types.DictProxyType type 'dictproxy'

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Yes, feel free to create an issue for that. If you provide a patch for it (with tests) I'll review it. The decorator itself can be applied to both TestCase and FunctionTestCase in unittest as well. One implementation would be to apply

[issue14416] syslog missing constants

2012-03-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset dc8e61044055 by R David Murray in branch 'default': #14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog. http://hg.python.org/cpython/rev/dc8e61044055 --

[issue14416] syslog missing constants

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks, Federico, and welcome to the ACKS file. It looks like you are planning to contribute more, so if you haven't already done so could you please submit a contributor agreement? http://www.python.org/psf/contrib/contrib-form/

[issue14386] Expose dictproxy as a public type

2012-03-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14386 ___

[issue14439] RunModule(): display the traceback on failure

2012-03-29 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@gmail.com: python -m module calls the C RunModule() function. If this function fails, the traceback is not displayed and so it is difficult to understand why the problem is. I propose to display the traceback when this function fails, as it is

[issue14437] _io build fails on cygwin

2012-03-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The proposed patch is correct; no extension module should use PyAPI_ for its own symbols. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue14436] SocketHandler sends obejcts while they cannot be unpickled on receiver's side

2012-03-29 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14436 ___ ___

[issue14386] Expose dictproxy as a public type

2012-03-29 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Patch version 4, it is ready for a review. Summary of the patch: - expose the internal dict_proxy() type (used for __dict__ of user classes) as types.MappingViewType (it was exposed a types.DictProxyType in Python 2) -

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Not particularly elegant? Why not? I find marking tests that should be executed by having them (and only them) inherit from TestCase to fit my sense of what is Pythonic, while having a hidden please-ignore-me attribute doesn't.

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Because you then have classes that inherit from object calling methods that clearly don't exist (until you subclass them *and* TestCase). It looks weird and also means the classes can't be tested in isolation. With a class decorator

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Hmm. OK, I guess we can just disagree on what looks straightforward, and since you are the maintainer of unittest you win :) But unless somebody pronounces, I'll probably keep using the mixin pattern for my own modules. --

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I guess I'm not really done talking about this, though my bow to you as maintainer still stands. The mixin tests *can't* be run in isolation, that's the whole point. Otherwise you could just let unittest run them, and wouldn't need to

[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: I agree with Roger's patch. But I'm pretty sure Ankit had another problem just because IDLE shell works for everyone without that patch. -- ___ Python tracker rep...@bugs.python.org

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: It still looks weird to see code calling methods that obviously don't exist, and with no indication *at the call site* where they come from. Making it clearer with naming would help: TestThingMixin or similar. There are classes like

[issue14440] Close background process if IDLE closes abnormally.

2012-03-29 Thread Andrew Svetlov
New submission from Andrew Svetlov andrew.svet...@gmail.com: Now if IDLE was ran from console and then terminated by Ctrl-\ or kill signal — background process keep living forever. That process have to stop itself if there are no frontend IDLE. -- assignee: asvetlov messages: 157043

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Besides which, the mixin pattern won't *stop* working if we provide this extra functionality - it would just be an alternative for those (like myself) who think it impedes code readability. :-) At this point we're off topic for the

[issue14440] Close background process if IDLE closes abnormally.

2012-03-29 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- components: +IDLE ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14440 ___ ___

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The convention in the stdlib is to name the mixin classes TestXXXBase. Granted, a lot of those inherit from TestCase. I have no objection to calling them Mixin instead, I'm just pointing out that there is an existing convention. (As

[issue13744] raw byte strings are described in a confusing way

2012-03-29 Thread Joseph Chadwick
Joseph Chadwick josephholyhe...@gmail.com added the comment: The attached replaces the text for the documentation in 2.4.1 between the lexical definitions table and the escape sequence table. The only change is the following addition to the paragraph on string and byte literals prefixed by 'r'

[issue13744] raw byte strings are described in a confusing way

2012-03-29 Thread Joseph Chadwick
Joseph Chadwick josephholyhe...@gmail.com added the comment: I uploaded before making the final save, so the first document is incomplete. (that's embarrassing) -- Added file: http://bugs.python.org/file25065/stringByteLiteralBR.docx ___ Python

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Walter Cheuk
New submission from Walter Cheuk wwych...@gmail.com: Please add new directives for decimal-number month, day and hour that have neither leading zero nor leading space. Currently %m, %d and %I are used, but they have leading zeroes and are not suitable for some languages such as Chinese. GNOME

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: We pretty much follow the posix standard on strftime. I doubt that we would introduce non-standard specifiers. Are there any in widespread use for your use case? -- nosy: +belopolsky, r.david.murray

[issue13744] raw byte strings are described in a confusing way

2012-03-29 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Removed file: http://bugs.python.org/file25064/stringByteLiteralBR.docx ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13744 ___

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Walter Cheuk
Walter Cheuk wwych...@gmail.com added the comment: Yes, this is standard in all Chinese locales, including China, Taiwan, Hong Kong, Macau and Singapore. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14441

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm asking if there are specific % codes commonly used for this case. (Even if there are there is no guarantee we are going to add them, but it makes it possible to make a case for it.) --

[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread Pino Toscano
New submission from Pino Toscano toscano.p...@tiscali.it: In Lib/test/test_smtplib.py, there's a try ... except which checks the errno of the IOError exception; though, the errno module is not imported, eventually causing | NameError: global name 'errno' is not defined in such case.

[issue14408] Support ./python -m unittest in the stdlib tests

2012-03-29 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: It could in fact be necessary, if the inheritance cannot be juggled to give the right MRO. Fortunately this is not the case, I should have a patch using TestCase inheritance for discovery tomorrow. --

[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: IDLE contains keyboard configuration in config-keys.def (Mac, Windows, UNIX) and in configHandler.py. GetCoreKeys contains the keyBindings dict which has fall-back values in case the given key set is missing values (a warning is printed).

[issue14433] Python 3 interpreter crash on windows when stdin closed in Python shell

2012-03-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The crash occurs in the my_fgets implementation, namely when the CRT performs its (standards-violating) parameter validation. The attached patch works around this CRT bug (as has been done in other places already). -- keywords:

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Walter Cheuk
Walter Cheuk wwych...@gmail.com added the comment: Usually %m, %d and %I are used instead, but the result is not satisfactory. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14441 ___

[issue13608] remove born-deprecated PyUnicode_AsUnicodeAndSize

2012-03-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I fail to see the issue. Even though the function is born-deprecated, there are valid use cases for it, even for new code (see http://www.python.org/dev/peps/pep-0393/#deprecations-removals-and-incompatibilities). Closing the issue as

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It turns out that there is standard way to do this (well, a de-facto standard, anyway). glibc (and apparently others) support 'modifiers', of which the '-' modifier will suppress 0 padding. Furthermore, since we pass the format string

[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 26b2407c644e by Andrew Svetlov in branch '3.2': Issue #14409: IDLE doesn't not execute commands from shell with default keybinding for Return. http://hg.python.org/cpython/rev/26b2407c644e -- nosy:

[issue14437] _io build fails on cygwin

2012-03-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - commit review versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14437 ___

[issue14439] RunModule(): display the traceback on failure

2012-03-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14439 ___ ___ Python-bugs-list mailing

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: One thing: PyFloat_ClearFreeList() is supposed to return the number of objects previously in the freelist, not zero. Also, perhaps 10 is a bit on the small side for the number of objects kept on the freelist. 100 instead? Or do you think that's

[issue14417] dict RuntimeError workaround

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I must admit to being concerned by the possible impact of this change as well. So am I. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14417

[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +easy nosy: +giampaolo.rodola, r.david.murray stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14442 ___

[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9c2b710da3c7 by Ross Lagerwall in branch 'default': Issue #14442: Add missing errno import in test_smtplib. http://hg.python.org/cpython/rev/9c2b710da3c7 -- nosy: +python-dev

[issue14406] Race condition in concurrent.futures

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Could your patch also include a proper test case in Lib/test/test_concurrent_futures.py ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14406

[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks Ross. I don't think this is worth a news item, even though the bug was shipped in an alpha. If someone disagrees please add one. -- stage: needs patch - committed/rejected status: open - closed type: - behavior

[issue14443] Distutils test failure

2012-03-29 Thread Ross Lagerwall
New submission from Ross Lagerwall rosslagerw...@gmail.com: On an up to date Fedora 16: == CPython 3.3.0a1+ (default:d528b2d2+, Mar 29 2012, 18:04:26) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] == Linux-3.3.0-4.fc16.x86_64-x86_64-with-fedora-16-Verne little-endian ==

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: Summary of this thread: http://mail.python.org/pipermail/python-dev/2012-March/118233.html When upgrading a host from Python 2.6.7 to 2.6.8 or from 2.7.2 to 2.7.3, virtualenvs will no longer work if they attempt to use os.urandom. I have

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- versions: +Python 3.1 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1 ___ ___

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: 3.1 and 3.2 are affected as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1 ___

[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 87ada87057a2 by Andrew Svetlov in branch '2.7': Backport of Issue #14409 to 2.7 http://hg.python.org/cpython/rev/87ada87057a2 -- ___ Python tracker rep...@bugs.python.org

[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Roger, now your solution is completely clean for me. I pushed your patch to 2.7, 3.2 and 3.3 branches. Thank you. -- assignee: - asvetlov resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14409 ___ ___

[issue14445] Providing more fine-grained control over assert statements

2012-03-29 Thread Max
New submission from Max maxmo...@gmail.com: Currently -O optimizer flag disables assert statements. I want to ask that more fine-grained control is offered to users over the assert statements. In many cases, it would be nice to have the option of keeping asserts in release code, while still

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Yes, it is supposed to, but no one is actually looking at that value. It was used in debugging information during PyFloat_Fini() which is no longer relevant if this block information is removed. Sure, 100 or 10 does not matter,

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Yes, it is supposed to, but no one is actually looking at that value. It was used in debugging information during PyFloat_Fini() which is no longer relevant if this block information is removed. Still, let's honour the API rather than break

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Correction: The number returned was the number of floats in existence, not the size of the freelist. Do you think I should add a counter to support that functionality? I´d rather change it to be the size of the old freelist,

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Do you think I should add a counter to support that functionality? I ´d rather change it to be the size of the old freelist, similar to PyTuple_ClearFreeList(). It should be the size of the old freelist, indeed. --

[issue14445] Providing more fine-grained control over assert statements

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This should be discussed on python-dev (http://mail.python.org/mailman/listinfo/python-dev) or python-ideas (http://mail.python.org/mailman/listinfo/python-ideas). -- nosy: +pitrou ___ Python tracker

[issue14443] Distutils test failure

2012-03-29 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: The output of running rpmbuild from bash: $ rpmbuild RPM version 4.9.1.2 Copyright (C) 1998-2002 - Red Hat, Inc. This program may be freely redistributed under the terms of the GNU GPL Usage: rpmbuild [-v?] [-bp] [-bc] [-bi] [-bl] [-ba]

[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Thanks Ross. I don't think this is worth a news item, even though the bug was shipped in an alpha. If someone disagrees please add one. I did add it to the [Tests] section in 9c2b710da3c7. Hardly worth it, but ... -- nosy:

[issue14442] test_smtplib.py lacks import errno

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, woops, I *thought* I'd looked at the diff, but obviously I didn't. Sigh. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14442

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Carl Meyer
Carl Meyer c...@dirtcircle.com added the comment: Alternatively, the conditional definition of urandom in os.py (removed in http://hg.python.org/cpython/rev/a0f43f4481e0#l7.1) could be reintroduced, allowing the new stdlib to be used with older interpreters. (Thanks to Dave Malcolm for

[issue14417] dict RuntimeError workaround

2012-03-29 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: On Thu, Mar 29, 2012 at 9:12 AM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: I must admit to being concerned by the possible impact of this change as well. So am I. I think it's time

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Mar 29, 2012, at 06:25 PM, Carl Meyer wrote: Carl Meyer c...@dirtcircle.com added the comment: Alternatively, the conditional definition of urandom in os.py (removed in http://hg.python.org/cpython/rev/a0f43f4481e0#l7.1) could be

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-29 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Updated patch. Warning type is DeprecationWarning, docs mentioned that. -- Added file: http://bugs.python.org/file25067/issue3035.diff ___ Python tracker rep...@bugs.python.org

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-29 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3035 ___ ___

[issue14386] Expose dictproxy as a public type

2012-03-29 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I'd like to bikeshed a little on the name. I think it should be MappingProxy. (We don't use view much but the place where we do use it, for keys/values/items views, is very different I think. Also collections.abc already defines MappingView as

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: Can we change this to a documentation bug? I was unaware of the use of '-', and I think most other people are, too. Although having just checked, it doesn't work under Windows :(. So maybe we shouldn't document it. Thinking out loud: I've

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think there may even be an issue for that, but with the currently broken issue search I'm not sure. Issue 3173 *might* be what I'm thinking of (thanks, google). And yes, the fact that stuff like this is not cross-platform is why it

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: Heh. You're correct about 3173. And I'm even nosy on that issue! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14441 ___

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm not so sure that it is desirable to make it compatible. It is ultimately virtualenv's fault to use the 2.7.3 library with a 2.7.2 binary. If we get this to work, people will still not gain the hash randomization. IOW, they get the

[issue14436] SocketHandler sends obejcts while they cannot be unpickled on receiver's side

2012-03-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset eda0ae0d2c68 by Vinay Sajip in branch '2.7': Closes #14436: Convert msg + args to string before pickling. http://hg.python.org/cpython/rev/eda0ae0d2c68 New changeset cd8347e15f62 by Vinay Sajip in branch '3.2':

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Raymond is suggesting removal in 3.4, and given that we are doing it I don't see any reason to wait for 3.5, either, so you probably want to update the warning messages to say 3.4 instead of 3.5. Otherwise it looks good to me. Ezio

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Martin makes a good point, but I see it somewhat differently. virtualenv and its users have always accepted the risk of running an old interpreter against a different standard library (of the same minor version). So the risk of not

[issue14446] Remove deprecated tkinter functions

2012-03-29 Thread Andrew Svetlov
New submission from Andrew Svetlov andrew.svet...@gmail.com: We need to remove deprecated tkinter.AtEnd and family in 3.4 -- assignee: asvetlov components: Tkinter keywords: easy messages: 157091 nosy: asvetlov, r.david.murray priority: release blocker severity: normal status: open

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-29 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Thank you, David. I've updated the patch. I think making new test for check is easy but Issue14446 is good enough. Running stupid test doesn't make sense for this case. -- Added file:

[issue14417] dict RuntimeError workaround

2012-03-29 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14417 ___ ___

[issue14447] marshal.load() reads entire remaining file instead of just next value

2012-03-29 Thread Matt Chaput
New submission from Matt Chaput m...@whoosh.ca: In Python 3.2, if you write several values to a file with multiple calls to marshal.dump(), and then try to read them back, the first marshal.load() returns the first value, but reads to the end of the file, so subsequent calls to marshal.load()

[issue14409] IDLE: not executing commands from shell, error with default keybinding for Return

2012-03-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: (Thanks for the expanded analysis, Roger. I missed the implication of the title update you made.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14409

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2012-03-29 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Roger, can you help me? What steps should I do to reproduce the issue? Pushing config from George.Dhoore into ~/.idlerc does nothing. IDLE starts fine as usual. -- ___ Python tracker

[issue14447] marshal.load() reads entire remaining file instead of just next value

2012-03-29 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: You are correct. I got: Python 3.1.2 (release31-maint, Dec 9 2011, 20:50:50) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. import marshall Traceback (most recent call last): File stdin,

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-03-29 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Running the python interpreter against a different version of the stdlib is completely unsupported, and I'm surprised it hasn't broken more. I'm rejecting any shims for it for 2.7 and 3.1. --

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2012-03-29 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Andrew, after placing config-keys.cfg into .idlerc, launch IDLE and change the key map to Xip's keyset. You'll get a traceback on the terminal when you click ok. -- ___ Python tracker

[issue14447] marshal.load() reads entire remaining file instead of just next value

2012-03-29 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: The previous test was on linux mint 10 (Julia) with python 3.1.2 here is the same test on windows XP with python 3.2.2 Python 3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on win32 Type copyright, credits or

  1   2   >