[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14450] Log rotate cant execute in Windows. (logging module)

2012-03-29 Thread shinta.nakayama
New submission from shinta.nakayama : I found a bug in logging module in Windows. I wrote that at here. https://gist.github.com/2247692 my OS is Windows7 32bit. C:\Python27>python Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "cred

[issue14443] Distutils test failure

2012-03-29 Thread Éric Araujo
Éric Araujo added the comment: Related to #1533164. Could you bisect the problem to see if it’s related to old commits or my changes for pycache directories? -- ___ Python tracker ___

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-03-29 Thread Jeff Dean
Jeff Dean added the comment: I just saw Brian Curtin's Pycon 2012 presentation. If a goal is to make it easy for new users to run python, consider installing a desktop shortcut. This would make it very easy for new users (easier than starting up a shell). This is independent of the Path cha

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

2012-03-29 Thread Éric Araujo
Éric Araujo added the comment: Actually it’s fine, we already have the text in your message :) -- ___ Python tracker ___ ___ Python-b

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

2012-03-29 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the contribution. Could you post your suggested wording as a plain text file? -- nosy: +eric.araujo ___ Python tracker ___ __

[issue14406] Race condition in concurrent.futures

2012-03-29 Thread Matt Joiner
Matt Joiner added the comment: I'll add this shortly. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue12864] 2to3 creates illegal code on import a.b inside a package

2012-03-29 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14439] Easier error diagnosis when bootstrapping the runpy module in main

2012-03-29 Thread Nick Coghlan
Nick Coghlan added the comment: Taking a closer look at the four affected cases, I've changed my mind - the patch looks reasonable, go ahead and add it (as the new output actually still makes sense in the RunMainFromImporter case) However, additional test cases should be added to test_cmd_lin

[issue14439] Easier error diagnosis when bootstrapping the runpy module in main

2012-03-29 Thread Nick Coghlan
Changes by Nick Coghlan : -- title: RunModule(): display the traceback on failure -> Easier error diagnosis when bootstrapping the runpy module in main ___ Python tracker ___ __

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

2012-03-29 Thread Nick Coghlan
Nick Coghlan added the comment: Never mind, I just looked at your patch and better understand what you're wanting to improve (i.e. diagnosing problems with bootstrapping runpy itself, not the errors that occur after runpy has already been found). However, your proposed solution is questionabl

[issue14449] argparse optional arguments should follow getopt_long(3)

2012-03-29 Thread R. David Murray
R. David Murray added the comment: If I understand correctly, this would be a backward incompatible change, so I doubt it will be accepted. Maybe there's some other way to achieve the same end? -- nosy: +bethard, r.david.murray ___ Python tracker

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

2012-03-29 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 12291. 3.1 is in security-fix only mode. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> file written using marshal in 3.2 can be read by 2.7, but not

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

2012-03-29 Thread Nick Coghlan
Nick Coghlan added the comment: Huh? Demonstration please, as the -m switch absolutely does display tracebacks when the call fails: $ python -m timeit -s "raise RuntimeError" Traceback (most recent call last): File "/usr/lib64/python2.7/timeit.py", line 298, in main x = t.timeit(number)

[issue14449] argparse optional arguments should follow getopt_long(3)

2012-03-29 Thread Ernest N. Mamikonyan
Changes by Ernest N. Mamikonyan : -- title: argparse optional arguments sh -> argparse optional arguments should follow getopt_long(3) ___ Python tracker ___ ___

[issue14449] argparse optional arguments sh

2012-03-29 Thread Ernest N. Mamikonyan
New submission from Ernest N. Mamikonyan : The nargs='?' option should probably follow the getopt_long(1) convention and only consume an (optional) argument if it's in the same argv element, i.e., without a space. Otherwise, it can only be given as the last option on the command-line. For exam

[issue14449] argparse optional arguments sh

2012-03-29 Thread Ernest N. Mamikonyan
Changes by Ernest N. Mamikonyan : -- components: Library (Lib) nosy: mamikonyan priority: normal severity: normal status: open title: argparse optional arguments sh type: behavior versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tra

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Here is a new patch, with the suggested changes. The variable names and macros are similarly named as those for other objects such as lists. -- Added file: http://bugs.python.org/file25071/nofreelist.patch

[issue14386] Expose dictproxy as a public type

2012-03-29 Thread Éric Araujo
Éric Araujo added the comment: > MappingView is a strange ABC: it should probably declare __contains__ as an > abstract method. I think that was not done because it would not be very useful: MappingView seems to exist only as a base class for the other *View, which define __contains__. > I d

[issue14386] Expose dictproxy as a public type

2012-03-29 Thread STINNER Victor
STINNER Victor added the comment: Oh, collections.abc contains also the mappingview type exposed with the name "dict_proxy": dict_proxy = type(type.__dict__) It was exposed as _abcoll.dict_proxy in Python 3.2. It is not documented. Should we keep it for backward compatibility, or can it be r

[issue14386] Expose dictproxy as a public type

2012-03-29 Thread STINNER Victor
STINNER Victor added the comment: > (We don't use "view" much but the place where we do use > it, for keys/values/items views, is very different I think.) You are right, it's closer to a proxy because it has the same methods than a mapping (except of some methods used to modify a mapping), whe

[issue14448] Mention pytz in datetime's docs

2012-03-29 Thread Éric Araujo
Éric Araujo added the comment: Good idea. The patch has a few English and markup errors; I’ll update it when I get home. To catch such errors in the future, you can re-run “make html”. -- nosy: +eric.araujo title: Metnion pytz in datetime's docs -> Mention pytz in datetime's docs ver

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

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

[issue13749] socketserver can't stop

2012-03-29 Thread R. David Murray
R. David Murray added the comment: At the very least the docs should be clarified to say that you have to call shutdown from a separate thread. (The one example of using it does do that.) I don't have a strong opinion about the proposed new method, not having used socketserver except for run

[issue14423] Getting the starting date of iso week from a week number and a year.

2012-03-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2012-03-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2012-03-29 Thread Carl Meyer
Carl Meyer added the comment: I'd been thinking the "escape the security fix" argument didn't apply, because the security fix requires opt-in anyway and the -R flag would fail immediately on a non-updated virtualenv. But there is also the environment variable. It is quite possible that someon

[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 added the comment: On Mar 29, 2012, at 09:24 PM, Jason R. Coombs wrote: >My mistake - Georg has not yet weighed in. Perhaps it's best to wait for his >opinion. I'm happy to go along with RM consensus. It should work the same in all stable releases. -- ___

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

2012-03-29 Thread Georg Brandl
Georg Brandl added the comment: I am with Benjamin. First we put a lot of effort into fixing this issue, and then we're letting quite a lot of deployments (and I assume that quite a lot of deployments *are* in virtualenvs) "escape" the fix? That doesn't sound right. --

[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 added the comment: My mistake - Georg has not yet weighed in. Perhaps it's best to wait for his opinion. -- ___ Python tracker ___ _

[issue14448] Metnion pytz in datetime's docs

2012-03-29 Thread Andrew Svetlov
New submission from Andrew Svetlov : Python Standard Library itself has not timezone objects. There are well-maintained project named pytz. Let's mention pytz in datetime docs. I have attached a patch, please review it. -- assignee: docs@python components: Documentation files: pytz.dif

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

2012-03-29 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13749] socketserver can't stop

2012-03-29 Thread Daniel Swanson
Daniel Swanson added the comment: What about os._exit? or CTR-ALT-DEL (windows only) I'd say that socketserver.serveforever is very well named (Hey, if you can't turn it off then it's serving forever) -- nosy: +weirdink13 ___ Python tracker

[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 added the comment: The consensus from the release managers seems to be "don't patch", so I propose we move forward with including the release notes as drafted. -- ___ Python tracker __

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

2012-03-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: This "bug" will only happen in virtualenvs, though, so I expect virtualenv will be blamed. -- ___ Python tracker ___ __

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

2012-03-29 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2012-03-29 Thread Carl Meyer
Carl Meyer added the comment: There's no question that this is a case of virtualenv allowing users to do something that's not supported. Nonetheless, virtualenv is very widely used, and in practice it does not break "more often". This, however, will break for lots of users, and those users wi

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

2012-03-29 Thread Daniel Swanson
Daniel Swanson 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 "license()" for more inform

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

2012-03-29 Thread Roger Serwy
Roger Serwy 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

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

2012-03-29 Thread Benjamin Peterson
Benjamin Peterson 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. -- ___ Python tracker

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

2012-03-29 Thread Daniel Swanson
Daniel Swanson 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 "", line 1, in ImportError:

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

2012-03-29 Thread Andrew Svetlov
Andrew Svetlov 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

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

2012-03-29 Thread Ned Deily
Ned Deily added the comment: (Thanks for the expanded analysis, Roger. I missed the implication of the title update you made.) -- ___ Python tracker ___ ___

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

2012-03-29 Thread Matt Chaput
New submission from Matt Chaput : 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() raise an EOFEr

[issue14417] dict RuntimeError workaround

2012-03-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-29 Thread Andrew Svetlov
Andrew Svetlov 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: http://bugs.python.org/file25068/issue3035.diff __

[issue14446] Remove deprecated tkinter functions

2012-03-29 Thread Andrew Svetlov
New submission from Andrew Svetlov : 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 title: Remove deprecated tkin

[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 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 receiving the security pat

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-29 Thread R. David Murray
R. David Murray 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 suggested adding a test t

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

2012-03-29 Thread Roundup Robot
Roundup Robot 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': Closes #14436: Convert msg + args to

[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 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 library update, but

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

2012-03-29 Thread Eric V. Smith
Eric V. Smith added the comment: Heh. You're correct about 3173. And I'm even nosy on that issue! -- ___ Python tracker ___ ___ Pytho

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

2012-03-29 Thread R. David Murray
R. David Murray 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 isn't documented, and

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

2012-03-29 Thread Eric V. Smith
Eric V. Smith 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 often thought we sho

[issue14386] Expose dictproxy as a public type

2012-03-29 Thread Guido van Rossum
Guido van Rossum 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 the base class

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue3035] Removing apparently unwanted functions from Tkinter

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

[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 added the comment: On Mar 29, 2012, at 06:25 PM, Carl Meyer wrote: > >Carl Meyer 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

[issue14417] dict RuntimeError workaround

2012-03-29 Thread Guido van Rossum
Guido van Rossum added the comment: On Thu, Mar 29, 2012 at 9:12 AM, Antoine Pitrou wrote: > > Antoine Pitrou 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 to bring this up in python-dev . --

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

2012-03-29 Thread Carl Meyer
Carl Meyer 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 pointing this out.) This s

[issue14442] test_smtplib.py lacks "import errno"

2012-03-29 Thread R. David Murray
R. David Murray added the comment: Ah, woops, I *thought* I'd looked at the diff, but obviously I didn't. Sigh. -- ___ Python tracker ___ __

[issue14442] test_smtplib.py lacks "import errno"

2012-03-29 Thread Ross Lagerwall
Ross Lagerwall 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: +rosslagerwall ___

[issue14443] Distutils test failure

2012-03-29 Thread Ross Lagerwall
Ross Lagerwall 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] [-bb] [-bs] [-tp]

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

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou 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

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou 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. -- _

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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, similar to PyTuple_Clea

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou 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 it. > Here's

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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, I see 100 being used i

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

2012-03-29 Thread Max
New submission from Max : 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 performing optimizat

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

2012-03-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2012-03-29 Thread Andrew Svetlov
Andrew Svetlov 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 Roundup Robot
Roundup Robot 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 __

[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 added the comment: 3.1 and 3.2 are affected as well. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[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 : -- versions: +Python 3.1 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[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 : 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 not yet investiga

[issue14443] Distutils test failure

2012-03-29 Thread Ross Lagerwall
New submission from Ross Lagerwall : 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 == /home/ross/src/cpythondev/temp/build/test_pyth

[issue14442] test_smtplib.py lacks "import errno"

2012-03-29 Thread R. David Murray
R. David Murray 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 __

[issue14406] Race condition in concurrent.futures

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Could your patch also include a proper test case in Lib/test/test_concurrent_futures.py ? -- ___ Python tracker ___ __

[issue14442] test_smtplib.py lacks "import errno"

2012-03-29 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

[issue14442] test_smtplib.py lacks "import errno"

2012-03-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +easy nosy: +giampaolo.rodola, r.david.murray stage: -> needs patch ___ Python tracker ___ _

[issue14417] dict RuntimeError workaround

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou 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 ___

[issue14435] Remove special block allocation from floatobject.c

2012-03-29 Thread Antoine Pitrou
Antoine Pitrou 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 too large? ---

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

2012-03-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14437] _io build fails on cygwin

2012-03-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> commit review versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

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

2012-03-29 Thread Roundup Robot
Roundup Robot 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 . http://hg.python.org/cpython/rev/26b2407c644e -- nosy: +python-dev __

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

2012-03-29 Thread R. David Murray
R. David Murray 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 through to glibc, Pyt

[issue13608] remove born-deprecated PyUnicode_AsUnicodeAndSize

2012-03-29 Thread Martin v . Löwis
Martin v. Löwis 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 invalid. -- no

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

2012-03-29 Thread Walter Cheuk
Walter Cheuk added the comment: Usually %m, %d and %I are used instead, but the result is not satisfactory. -- ___ Python tracker ___ ___

[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 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: +patch nosy: +loewis A

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

2012-03-29 Thread Roger Serwy
Roger Serwy 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). Ankit's screenshot

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

2012-03-29 Thread Matt Joiner
Matt Joiner 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. -- ___ Python trac

[issue14442] test_smtplib.py lacks "import errno"

2012-03-29 Thread Pino Toscano
New submission from Pino Toscano : 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. -- components: Tests mess

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

2012-03-29 Thread R. David Murray
R. David Murray 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.) -- ___ Python tracker

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

2012-03-29 Thread Walter Cheuk
Walter Cheuk added the comment: Yes, this is standard in all Chinese locales, including China, Taiwan, Hong Kong, Macau and Singapore. -- ___ Python tracker ___ ___

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

2012-03-29 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file25064/stringByteLiteralBR.docx ___ Python tracker ___ ___ Python-bugs-li

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

2012-03-29 Thread R. David Murray
R. David Murray 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 ___ Python t

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

2012-03-29 Thread Walter Cheuk
New submission from Walter Cheuk : 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 provides %e and %l

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

2012-03-29 Thread Joseph Chadwick
Joseph Chadwick 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 tracker

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

2012-03-29 Thread Joseph Chadwick
Joseph Chadwick 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' or 'R': When a byte lit

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

2012-03-29 Thread R. David Murray
R. David Murray 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 an aside, when I first

  1   2   >