[issue14455] plistlib unable to read json and binary plist files

2012-03-31 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

This patch is for Python 2. New features are accepted only for Python 3.3+. I 
ported the patch, but since I have no Mac, I can't check.

To date code was specified incorrectly.

The length of integers was calculated incorrectly. To convert integers, you can 
use int.from_bytes.

Objects identity was not preserved.

I'm not sure that the recognition of XML done enough. Should consider UTF-16 
and UTF-32 with the BOM and without.

Need tests.

Also I'm a bit cleaned up and modernizing the code. I believe that it should be 
rewritten in a more object-oriented style. It is also worth to implement writer.

--
nosy: +storchaka
Added file: http://bugs.python.org/file25077/plistlib_ext.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14455
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14406] Race condition in concurrent.futures

2012-03-31 Thread Matt Joiner

Matt Joiner anacro...@gmail.com added the comment:

Patch with a test included. Being a nondeterministic bug, please adjust the 
thread count, or timing as necessary, the parameters in the patch are as low as 
I can get them and still reasonably reproduce the bug (linux 3.2, i386).

There's a few complications in testing this. Firstly timeouts cannot be used, 
because at the end of the timeout, all the futures are checked to categorize 
them into done and not done. Except for taking the entire duration of the 
timeout given to return, the bug is masked in this case.

Secondly, it can't be known how long a wait *should* take, so failing after 
some duration and assuming a stall due to the race decrementing 
num_pending_calls would be a guess dependent on the capabilities of the system.

If a timeout needs to be added (and fired from an outside thread for reasons 
given above), please let me know, and direct me to an example of this kind of 
testing elsewhere in the stdlib, so I can do this idiomatically.

Without applying the patch, the test case provided will (usually) hang 
indefinitely.

--
Added file: 
http://bugs.python.org/file25078/concurrent.futures._AllCompletedWaiter.num_pending_calls-race-test.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14406
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13007] gdbm 1.9 has new magic that whichdb does not recognize

2012-03-31 Thread Niklas Br

Niklas Br n.brunb...@gmail.com added the comment:

David, print(magic) returns 

Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
AttributeError: 'module' object has no attribute 'open'


Ned, I tried the dmg first, but then I downloaded the source and built it 
locally, does this mean that the source does not contain it either?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13007
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-31 Thread Esben Agerbæk Black

Changes by Esben Agerbæk Black esbe...@gmail.com:


Added file: http://bugs.python.org/file25079/isodates.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14423
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-31 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Sounds like good fix to me.

--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14434
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14440] Close background process if IDLE closes abnormally.

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

I use Ubuntu Linux 11.10

Hmm, you are right: background process dies. But I'm pretty sure when I worked 
on IDLE bugs three weeks ago sometimes that process remained to live forever.

Aahh. 
At least sending SIGTERM (kill -9) to foreground IDLE process doesn't delete 
background. Also the same if foreground hangs by some error in code and should 
be killed from console. Ctrl-C doesn't help in this particular case, Ctrl+\ 
(SIGQUIT) terminates foreground but background lives forever.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14440
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14310] Socket duplication for windows

2012-03-31 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Still no responses?  I'll submit this then, unless someone objects.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14310
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10576] Add a progress callback to gcmodule

2012-03-31 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Thanks, Jim.
Unless anyone objects, I'll commit this then.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14440] Close background process if IDLE closes abnormally.

2012-03-31 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14440
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14039] Add metavar argument to add_subparsers() in argparse

2012-03-31 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14039
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9787] Release the TLS lock during allocations

2012-03-31 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Closing this since it applies only to our custom tls implementation.  Most 
platforms use native tls now.

--
resolution:  - wont fix
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9787
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14034] Add argparse howto

2012-03-31 Thread Tshepang Lekhonkhobe

Tshepang Lekhonkhobe tshep...@gmail.com added the comment:

Would be nice to get another review.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14034
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-31 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 2bc374182ed4 by Andrew Svetlov in branch 'default':
issue #3035: update PendingDeprecationWarning to DeprectionWarning, point 
deprecation in tkinter doc
http://hg.python.org/cpython/rev/2bc374182ed4

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3035
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10576] Add a progress callback to gcmodule

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Comments:

- the tests look fragile. How can you know a garbage collection will only 
collect your own objects? So you should call gc.collect() first at the 
beginning of each test and then initialize the self.visit list. We don't want 
weird failures because of the unittest machinery or anything else.

- I also don't understand the logic in testCollect. Why can't you directly 
check the contents of self.visit instead of that convoluted code?

- In invoke_gc_callback(), i should be a Py_ssize_t, not an int

- In invoke_gc_callback(), in which situation can callbacks be something else 
than a list? I think the PyList_Check() should be an assert (and probably use 
PyList_CheckExact()).

- Finally, *please* try to follow PEP 8. Comments should have a space after the 
#. Otherwise they look unreadable.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14310] Socket duplication for windows

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

I would like to see this discussed on python-dev.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14310
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

I've updated the patch following David's recommendations, pushed it into 
default branch.

#14446 has been made to remove deprecated code in 3.4

Closing the issue as fixed.

--
resolution: remind - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3035
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9016] IDLE won't launch (Win XP)

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Closing as out if date and not active.

--
assignee:  - asvetlov
resolution:  - out of date
stage:  - committed/rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9016
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5136] Deprecating (and removing) globalcall, merge and globaleval

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Will do.

--
assignee:  - asvetlov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5136
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6124] Tkinter should support the OS X zoom button

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Closing as lack of interest from community.

--
resolution:  - wont fix
stage: test needed - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6124
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Closing again. Now IDLE works fine both in subprocess and inprocess mode. 

Future support of non-BMP can be continues after implementing codec for that — 
#14304

Now I like to close that as «good enough for now».
At least IDLE doesn't crashed on printing anything.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9016] IDLE won't launch (Win XP)

2012-03-31 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9016
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14458] Non-admin installation fails

2012-03-31 Thread Timothy Madden

Timothy Madden terminato...@gmail.com added the comment:

attaching the error message box

--
Added file: http://bugs.python.org/file25081/Install-admin-msg.png

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14458
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14458] Non-admin installation fails

2012-03-31 Thread Timothy Madden

New submission from Timothy Madden terminato...@gmail.com:

Trying to install the release package (python 3.2.2 x86-64 .msi, 2.7.2 x86-64 
.msi) without elevation fails, even if 'Install just for me' is selected in the 
installer options, and I have write permissions in the selected install folder.

Under the same account and conditions, other installers (Mozilla 
Firefox/Thunderbird, git, Beaver Debugger...) can install successfully.

Here the msiexec log file is attached, created with:
msiexec /package C:\Users\belladrianc\Downloads\python-3.2.2.amd64.msi /l*v 
install-3.2.2-x64.log

--
components: Installation
files: install-3.2.2-x64.log
messages: 157183
nosy: toughy
priority: normal
severity: normal
status: open
title: Non-admin installation fails
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file25080/install-3.2.2-x64.log

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14458
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14458] Non-admin installation fails

2012-03-31 Thread Timothy Madden

Timothy Madden terminato...@gmail.com added the comment:

This is happening on Windows Server 2008 R2 Enterprise, Service Pack 1 (64-bit)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14458
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14435] Remove special block allocation from floatobject.c

2012-03-31 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 10fcaf5903e6 by Kristján Valur Jónsson in branch 'default':
Issue #14435: Add Misc/NEWS and Misc/ACKS
http://hg.python.org/cpython/rev/10fcaf5903e6

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14435
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10576] Add a progress callback to gcmodule

2012-03-31 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Thank you Antoine. Your points:
- Yes, I can robustify this.
- I think I worried that the actual contents might be too complex to test for 
it. I'll see if I can't just simplify it as you suggest.
- right, thanks.
- gc.callbacks is a simple module attribute.  Anyone can set it to anything 
else, e.g. gc.callbacks=None.  We have to accomodate this possibility or else 
introduce annoying api functions to edit the list.  I thought it best to do 
things similarly to sys.import_hooks etc, simply expose a list object and trust 
the user to treat this list object with care, but check it regardless to avoid 
crashing.
- Pep8, yes sorry.  I do a lot of programming in other projects that are more 
lenient in comment styles, so it doesn't come automatically.  I personally have 
no problem whatsoever #to #read #such #comments :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10576] Add a progress callback to gcmodule

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 - gc.callbacks is a simple module attribute.  Anyone can set it to
 anything else, e.g. gc.callbacks=None.  We have to accomodate this
 possibility or else introduce annoying api functions to edit the list.
 I thought it best to do things similarly to sys.import_hooks etc,
 simply expose a list object and trust the user to treat this list
 object with care, but check it regardless to avoid crashing.

The way I read it, you don't fetch it from the module dictionary,
though, you just use the static C variable, which shouldn't change when
the dict is mutated.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10576
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14310] Socket duplication for windows

2012-03-31 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

You are right, I was thinking more of pyobject attributes.  I'll fix this then.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14310
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14459] type([].append([]))

2012-03-31 Thread manolo69

New submission from manolo69 f114...@rppkn.com:

nonetype

--
messages: 157190
nosy: manolo69
priority: normal
severity: normal
status: open
title: type([].append([]))

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14459
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[issue14459] type([].append([]))

2012-03-31 Thread manolo69

manolo69 f114...@rppkn.com added the comment:

nonetype
should be list???

--
components: +None
versions: +Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14459
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14459] type([].append([]))

2012-03-31 Thread manolo69

manolo69 f114...@rppkn.com added the comment:

sorry

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14459
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8515] idle Run Module (F5) does not set __file__ variable

2012-03-31 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8515
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14459] type([].append([]))

2012-03-31 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Do you suggest that after myList = [], myList.append(1) should return the 
list?

--
nosy: +amaury.forgeotdarc

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14459
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13007] gdbm 1.9 has new magic that whichdb does not recognize

2012-03-31 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Ned: that shouldn't prevent whichdb from figuring out the type of the db file, 
though, if I understand correctly.

Niklas: that's unexpected, so I suspect something is not right about how you 
inserted the print. You did say you were a Python newbie...I think perhaps the 
best thing to do would be to post with your issue to the python mailing list 
and see if folks there can help you sort out whether there really is a bug in 
3.2.3rc2.

As for gdbm support in a source build, it can only be built if you have the 
right header files available for gdbm on your system when you do the compile.  
From what Ned said I suspect you have to do extra work to make that happen, 
which is again a better question for python-list rather than the bug tracker.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13007
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14446] Remove deprecated tkinter functions

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

See issue #3035 for details.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14446
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14459] type([].append([]))

2012-03-31 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

It sounds like manolo69 is just confused about what the append operation 
returns (which is None).  Since this is a carefully considered part of the 
design of Python (operations that mutate objects rather than creating a new 
object return None), I'm closing this issue as invalid.

--
nosy: +r.david.murray
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14459
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14458] Non-admin installation fails

2012-03-31 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +brian.curtin

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14458
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5136] Deprecating (and removing) globalcall, merge and globaleval

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Attaching the patch to make depredations.

--
keywords: +patch
stage:  - patch review
Added file: http://bugs.python.org/file25082/issue5136.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5136
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5136] Deprecating (and removing) globalcall, merge and globaleval

2012-03-31 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

LGTM (looks good to me).  In your NEWS entry, you don’t have to copy the whole 
explanation, just say something like “deprecated old, unused functions” and 
interested people will be able to come here read the details.  In your commit 
message, be sure to say that the patch does not add deprecation notices in the 
doc because the functions are undocumented.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5136
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-31 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset d478c0a68bcb by R David Murray in branch '3.2':
#14434: make tutorial link in 'help' banner version-specific
http://hg.python.org/cpython/rev/d478c0a68bcb

New changeset ee9b6574b497 by R David Murray in branch 'default':
Merge #14434: make tutorial link in 'help' banner version-specific
http://hg.python.org/cpython/rev/ee9b6574b497

New changeset b3a7b27953e0 by R David Murray in branch '2.7':
#14434: make tutorial link in 'help' banner version-specific
http://hg.python.org/cpython/rev/b3a7b27953e0

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14434
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-31 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Fixed.  Thanks for the report, Bill.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14434
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13007] gdbm 1.9 has new magic that whichdb does not recognize

2012-03-31 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

David, right you are. I verified that the current 3.2.3rc2 without gdbm does 
correctly recognize a shelve from another Python backed with gdbm 1.10:
  dbm.error: db type is dbm.gnu, but the module is not available
Niklas, yes, to build a Python from source on OS X with gdbm support, you will 
need to build and install the GNU gdbm library on your system first.  There are 
also third-party Python distributions for Mac OS X that optionally include gdbm 
support, like MacPorts.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13007
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5136] Deprecating (and removing) globalcall, merge and globaleval

2012-03-31 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 6023d73c6f87 by Andrew Svetlov in branch 'default':
fix issue #5136: deprecate old unused functions from tkinter.
http://hg.python.org/cpython/rev/6023d73c6f87

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5136
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14446] Remove deprecated tkinter functions

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Also see #5136 for deprecated C Functions from _tkinter.c
That set have to go away in 3.4 as well as deprecations from tkinter/__init__.py

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14446
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5136] Deprecating (and removing) globalcall, merge and globaleval

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Pushed deprecation warnings into default branch.
#14446 updated to add those function to remove list for 3.4 release.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5136
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5136] Deprecating (and removing) globalcall, merge and globaleval

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Thanks to Guilherme Polo for idea and to Éric Araujo for review.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5136
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

I reproduced the bug.

Roger Serwy, your patch looks working, but can you describe:
1. Why do you need `self.known_invalid` list?
2. Why do you always extend that list (`known_invalid` variable is 
just shared alias for `self.known_invalid` member, not list copy).

I'm a bit confusing with that logic.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11437
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14417] dict RuntimeError workaround

2012-03-31 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Attached script is a first cut at a multi-threading stress test for the new 
dict behaviour. It should be significantly worse than anything a real world app 
is likely to be doing to a dictionary that is shared between threads without 
any form of synchronisation.

It's late here though, so it's very possible it's only passing because I missed 
something in the implementation of the stress test.

--
nosy: +ncoghlan
Added file: http://bugs.python.org/file25083/hammer_dict.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14417
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-31 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

Without the known_invalid list, each call to GetCurrentKeySet would cause an 
error message to appear. The effect of keeping track of these bad key bindings 
is that the user receives a notification only once about a particular bad key 
binding. (The present architecture in IDLE calls GetCurrentKeySet too many 
times during initialization.)

The known_invalid list gets extended with any newly found invalid key bindings. 
Also, these newly found invalid keys generates an error message. This can occur 
again if the user modifies the key map with the configuration dialog.

Perhaps using a set instead of a list would make the code clearer.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11437
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14440] Close background process if IDLE closes abnormally.

2012-03-31 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

I can confirm this problem with Ubuntu 11.04.

--
nosy: +serwy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14440
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-03-31 Thread Chris Rebert

Chris Rebert pyb...@rebertia.com added the comment:

Links to the rambling Unicode threads for posterity and convenience:

Gets into several issues, among them, Unicode:
http://mail.python.org/pipermail/python-ideas/2012-February/013665.html

Unicode-specific offshoot of the above:
http://mail.python.org/pipermail/python-ideas/2012-February/013825.html

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13997
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Ok

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11437
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14417] dict RuntimeError workaround

2012-03-31 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Thanks, Nick, this is much better than speculation.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14417
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-31 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

I just realized that if the user, for whatever reason, fixes a bad key binding 
and then rebinds it to the previously bad one, no error message would appear. 
This can occur if the user is switching between key sets where one key set 
contains invalid bindings.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11437
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13210] Support Visual Studio 2010

2012-03-31 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

The errnomodule patch shouldn't be checked in as is. Instead, an elaborate 
comment needs to be added fully explaining the situation with the errno codes, 
and giving criteria under which cases it is necessary.

On the face value, it's incorrect: if the compiler defines EINVAL, that should 
be what is used to define errno.EINVAL. It's not at all clear that WSAEINVAL is 
a better choice.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13210
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5680] Command-line arguments when running in IDLE

2012-03-31 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
assignee:  - asvetlov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5680
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

You right. That was my concern.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11437
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3177] Add shutil.open

2012-03-31 Thread Chris Rebert

Chris Rebert pyb...@rebertia.com added the comment:

 The alternative is to call Popen(['xdg-open', etc.]) and check if we get 
 ENOENT, but I don’t know if this would be non-ambiguous (for example, do we 
 get ENOENT if xdg-open exists but not the file?).

It's unambiguous. Python itself never opens the target file, it just passes the 
filepath string along to the xdg-open command. If Popen raises 
EnvironmentError, then xdg-open could not be executed. If the target file is 
nonexistent, then xdg-open will exit with status 2 (see aforelinked manpage). 
Entirely different error mechanisms.

 A related question: what to do when we’re not on Windows nor Mac and xdg-open 
 doesn’t exist?  Raise NotImplemented?

Seems reasonable to me.


So, the failure cases are:
(1) Platform doesn't support this feature - raise NotImplemented
(2) Target file doesn't exist
(3) Target file is inaccessible
(4) No application is associated with the file type in question

OS X and xdg-open report (2) and (4), does Windows?
OS X reports (3) indirectly/vaguely [generic exit status 1 w/ possibly unstable 
error message]; don't know what Windows and xdg-open do here.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3177
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

I like Eric's proposition, e.g. raising error if  (list, shell=True) or (str, 
shell=False)

If nobody object I can try to make initial patch for that.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7839
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13210] Support Visual Studio 2010

2012-03-31 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Why should python compiled with VS2010 have different error codes than one 
compiled with the older compilers?  We could revisit this in a new python 
version, but for now, we should maintain compatibility across compilers.

the errno codes (EAGAIN etc) are provided only as a compatibility for posix 
apps that test errno.  On windows, we use the WSA return values from the api 
functions and WsaGetLastError().

The reason this patch is required is that now, the errno constants get pulled 
in with the WSA ones, and therefore the conditional compilation in 
errnomodule.c gets mangled.  So, the proposed patch is not a change, it is 
merely reinforcing the previous practice of prefering the native error codes 
over the 'errno' emulation.  Of course, this should be clarified in a comment, 
as you point out.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13210
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14406] Race condition in concurrent.futures

2012-03-31 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 0312db5265d0 by Antoine Pitrou in branch '3.2':
Issue #14406: Fix a race condition when using 
`concurrent.futures.wait(return_when=ALL_COMPLETED)`.
http://hg.python.org/cpython/rev/0312db5265d0

New changeset 2c1432552213 by Antoine Pitrou in branch 'default':
Issue #14406: Fix a race condition when using 
`concurrent.futures.wait(return_when=ALL_COMPLETED)`.
http://hg.python.org/cpython/rev/2c1432552213

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14406
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14406] Race condition in concurrent.futures

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

The patch looks fine, I've committed it. Thanks!

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14406
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14440] Close background process if IDLE closes abnormally.

2012-03-31 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Andrew: I strongly agree with the goal that IDLE should not leave zombie 
processes. The background process should die if either 1) IDLE restarts the 
shell with a new background process, as with every edit-run cycle, or 2) IDLE 
dies. The desired behavior seems to be both somewhat fragile and system 
dependent. I do not know whether 100% compliance on every system is sensibly 
possible.

The issue I referred to is #12540. The problem there was worse: leaving a 
zombie for every shell restart on Windows. Perhaps the discussion there will 
give you some ideas.

Ctrl-\ does not seem to do anything on Windows. I do not know whether 
TaskManager 'Terminate process' corresponds to *nix SIGTERM, SIGQUIT, SIGKILL, 
something else, or is completely Windows specific.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14440
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2012-03-31 Thread Chris Rebert

Changes by Chris Rebert pyb...@rebertia.com:


--
nosy: +cvrebert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7839
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4653] Patch to fix typos in C code

2012-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4653
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14456] Relation between threads and signals unclear

2012-03-31 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 52e32f3b933d by Antoine Pitrou in branch '3.2':
Issue #14456: improve documentation of the signal module w.r.t. threads.
http://hg.python.org/cpython/rev/52e32f3b933d

New changeset 44d13f371811 by Antoine Pitrou in branch 'default':
Issue #14456: improve documentation of the signal module w.r.t. threads.
http://hg.python.org/cpython/rev/44d13f371811

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14456
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14456] Relation between threads and signals unclear

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Should be fixed now.

--
nosy: +pitrou
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14456
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9246] os.getcwd() hardcodes max path len

2012-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9246
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14373] C implementation of functools.lru_cache

2012-03-31 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

Matt, I'm attaching a pure python version to serve as a better map for how to 
implement this in C.

* it incorporate the recent lru_cache algorithmic updates (moving the root 
around the circular queue to re-use old links).

* it shows which parts should be implemented in C using a regular type and 
shows how to call it from pure python.

* it gives hints on use of #defines and PyDict_GetItem

* the critical sections are marked so you can use the GIL rather than using 
locks.

* there are hints for what datatypes to use (only the hits and misses need the 
ability to grow beyond sys.maxsize).

* it shows how to access the named tuple from within the C code (using a 
straight PyObject_Call).

* this code passes the test suite and should be directly translatable (and very 
fast).

* please follow the model and use PyList objects instead of C structure for 
links

* let me know if there are any questions.

--
Added file: http://bugs.python.org/file25084/lru_cache_class.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14373
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14440] Close background process if IDLE closes abnormally.

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Terry, sorry.

That's definitely posix-specific bug. I'll make a patch assuming Windows works 
well with killing IDLE.

To be polite I'll describe used signal names shortly.

SIGKILL, SIGTERM, SIGINT and SIGQUIT are used to stop process.
— SIGKILL is mimic to Windows TerminateProcess in some way. 
  It cannot be overloaded by target process and unconditionally terminates one.
— SIGTERM is default signal for kill utility. Used to stop process by some 
program.
— SIGINT sent if user press Ctrl+C in terminal. 
  Overridden very often.
  Python does it itself to translate this signal to KeyboardInterrupt exception.
— SIGQUIT bound to Ctrl+\ and used to stop program with memory dump. 
  The standard way to process it 
  (if need to, the most programs leaves that handler untouched) is: 
  close used resources and maybe write to stderr/logs some message. 
  Usually SIGQUIT sent to hang program to stop execution 
  if Ctrl+C doesn't help but potentially dangerous SIGKILL is not desirably 
  by risk of lacking important data or locking kernel objects.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14440
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14373] C implementation of functools.lru_cache

2012-03-31 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

Updated to show how to handle the kwd_mark and the try/except.

--
Added file: http://bugs.python.org/file25085/lru_cache_class.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14373
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14373] C implementation of functools.lru_cache

2012-03-31 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


Removed file: http://bugs.python.org/file25084/lru_cache_class.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14373
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2012-03-31 Thread Eric V. Smith

Eric V. Smith e...@trueblade.com added the comment:

While I still think raising those errors is a good thing, we should also look 
at Nick's shell-command:
http://shell-command.readthedocs.org/en/latest/index.html

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7839
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2012-03-31 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Nick's library is awesome and I +1 to include it into stdlib if Nick is ready 
to do.

But also I like to prevent obviously bad usage of popen.
We cannot and don't want to remove popen shell=True param, so let's add raising 
exception for useless parameters combination.

--
nosy: +ncoghlan

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7839
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14417] dict RuntimeError workaround

2012-03-31 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/issue14417
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14417] dict RuntimeError workaround

2012-03-31 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

By adding a slow __eq__() method to Nick's script I can trigger the
RuntimeError reliably.

--
nosy: +skrah
Added file: http://bugs.python.org/file25086/hammer_dict_eq.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14417
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2012-03-31 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Yes, Nick's library looks good, but that should be a separate issue, it isn't 
really relevant to this one.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7839
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14437] _io build fails on cygwin

2012-03-31 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset f96b603278cc by Antoine Pitrou in branch '3.2':
Issue #14437: Fix building the _io module under Cygwin.
http://hg.python.org/cpython/rev/f96b603278cc

New changeset 6f8dd543d80a by Antoine Pitrou in branch '2.7':
Issue #14437: Fix building the _io module under Cygwin.
http://hg.python.org/cpython/rev/6f8dd543d80a

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14437
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14437] _io build fails on cygwin

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Fix committed in 2.7 and 3.2. 3.3 shouldn't be affected. Thank you!

--
nosy: +pitrou
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed
versions:  -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14437
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14316] Broken link in grammar.rst

2012-03-31 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset b038bfc67e3d by Sandro Tosi in branch 'default':
Issue #14316: fix broken link; fix by Éric Araujo
http://hg.python.org/devguide/rev/b038bfc67e3d

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14316
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14316] Broken link in grammar.rst

2012-03-31 Thread Sandro Tosi

Changes by Sandro Tosi sandro.t...@gmail.com:


--
nosy: +sandro.tosi
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14316
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11273] asyncore creates selec (or poll) on every iteration

2012-03-31 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
versions:  -Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11273
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14339] Optimizing bin, oct and hex

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

While optimizing stuff is nice, I'm not sure there's a use case here. Does it 
significantly speed up a real-world workload you're having?

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14339
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14304] Implement utf-8-bmp codec

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

The solution outlined in the issue title (utf-8-bmp codec) sounds like a 
rather dubious idea.

--
nosy: +loewis, pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14304
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13872] socket.detach doesn't mark socket._closed

2012-03-31 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 3a220feafa15 by Antoine Pitrou in branch '3.2':
Issue #13872: socket.detach() now marks the socket closed (as mirrored in the 
socket repr()).
http://hg.python.org/cpython/rev/3a220feafa15

New changeset d2f0c3eb1eed by Antoine Pitrou in branch 'default':
Issue #13872: socket.detach() now marks the socket closed (as mirrored in the 
socket repr()).
http://hg.python.org/cpython/rev/d2f0c3eb1eed

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13872
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13872] socket.detach doesn't mark socket._closed

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Thank you Matt. I've now committed the patch in relevant versions.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
versions:  -Python 2.6, Python 2.7, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13872
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14456] Relation between threads and signals unclear

2012-03-31 Thread Sven Marnach

Sven Marnach s...@marnach.net added the comment:

Thanks, Antoine!  It's perfectly clear now, and the newly introduces headlines 
are a definite improvement.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14456
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14300] dup_socket() on Windows should use WSA_FLAG_OVERLAPPED

2012-03-31 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 5be4d8fc9c44 by Antoine Pitrou in branch 'default':
Issue #14300: Under Windows, sockets created using socket.dup() now allow 
overlapped I/O.
http://hg.python.org/cpython/rev/5be4d8fc9c44

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14300
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14300] dup_socket() on Windows should use WSA_FLAG_OVERLAPPED

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Ok, I've committed the patch to 3.3 since it can be useful with the new wait() 
method. Thanks!

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14300
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14286] xxlimited.obj: unresolved external symbol __imp__PyObject_New

2012-03-31 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14286
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14286] xxlimited.obj: unresolved external symbol __imp__PyObject_New

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Hmm... seems to work here (in release mode, for some reason it's skipped in 
debug mode).

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14286
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14116] threading classes' __enter__ should return self

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Closing then.

--
resolution:  - rejected
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14116
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1641544] rlcompleter tab completion in pdb

2012-03-31 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +georg.brandl
stage: test needed - patch review
versions: +Python 3.3 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1641544
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14141] 2.7.2 64-bit Windows library has __impt_Py* for several symbols instead of __imp__Py*

2012-03-31 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14141
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14151] multiprocessing.connection.Listener fails with invalid address

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Thanks for the patch. I don't think it deserves to be a public API (it could be 
a private function, i.e. starting with an underscore).
Also, it's better if you can add a test (to Lib/test/test_multiprocessing.py) 
checking that ValueError is raised when applicable.

--
nosy: +pitrou
versions: +Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14151
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue672115] Assignment to __bases__ of direct object subclasses

2012-03-31 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
assignee: mwh - 
nosy: +benjamin.peterson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue672115
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14059] Implement multiprocessing.Barrier

2012-03-31 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
dependencies: +multiprocessing.Condition.wait_for missing

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14059
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14087] multiprocessing.Condition.wait_for missing

2012-03-31 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

AFAICT (Raw)Value relies on ctypes, so the tests should be skipped if ctypes is 
unavailable. Or I guess you could use a Semaphore instead.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14087
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14440] Close background process if IDLE closes abnormally.

2012-03-31 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Just a bit more info: ^D and ^\ in Command Prompt interpreter print '^D' or 
'^\'. Return causes syntax error. ^Z\n in interpreter causes silent close. 
(Because DOS used ^Z as end-of-file.)

^D in IDLE causes silent close. IDLE ignores ^\ and ^Z both -- nothing printed 
or stored. Following \n gets prompt back. The difference is not nice for 
Windows users, but I presume IDLE behavior is same as on *nix and consider 
consistency across platforms good and should be kept.

If I understand, IDLE needs to install a SIGQUIT handler to terminate the 
background process 'resource'. That should work on Windows too as either 
SIGQUIT will never happens, or if it does, same should happen on Windows too. I 
know SIGKILL cannot be caught. What about SIGTERM?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14440
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3177] Add shutil.open

2012-03-31 Thread STINNER Victor

STINNER Victor victor.stin...@gmail.com added the comment:

 (1) Platform doesn't support this feature - raise NotImplemented

It's better to not define the function if the platform doesn't support
the feature.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3177
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >