[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-29 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Terry,

 When I tried the same fix in idlelib/PyShell.py, adding 'import subprocess' 
and changing
self.rpcpid = os.spawnv(os.P_NOWAIT, sys.executable, args)
to
self.rpcpid = subprocess.Popen(args).pid
(args begins with sys.executable) IDLE failed to start. The only evidence that 
it had been invoked was a brief (1/4 second?) appearance of 1 pythonw process 
in task manager. On a subsequent tries, without touching the file, I do not see 
even that. Is there any obvious mistake in the above? 

No, when I do the same, things seem to go fine. No zombie is left running after 
IDLE is closed, and even Restart shell works without leaving a zombie.

Maybe you had other modifications in your idlelib sources? 

Anyway, this wouldn't be a complete fix, because in:

def unix_terminate(self):
UNIX: make sure subprocess is terminated and collect status
if hasattr(os, 'kill'):
try:
os.kill(self.rpcpid, SIGTERM)
except OSError:
# process already terminated:
return
else:
try:
os.waitpid(self.rpcpid, 0)
except OSError:
return

os.waitpid on Windows also expects a process handle, not pid. 

I think the complete solution, in addition to replacing os.spawnv by 
subprocess.Popen, would be to use Popen.kill and then Popen.wait instead of 
os.kill and then os.wait in the code above. This would require keeping the 
Popen object somewhere in self.

--

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



[issue12644] document the %a conversion in the old string formatting operations

2011-07-29 Thread Roundup Robot

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

New changeset 9846f6463f23 by Eli Bendersky in branch '3.2':
Issue #12644: document the '%a' conversion in the old string formatting 
operations. Patch prepared together with Ezio Melotti
http://hg.python.org/cpython/rev/9846f6463f23

New changeset 80a3bf889cf6 by Eli Bendersky in branch 'default':
Merge from 3.2: Issue #12644: document the '%a' conversion in the old string 
formatting operations. Patch prepared together with Ezio Melotti
http://hg.python.org/cpython/rev/80a3bf889cf6

--
nosy: +python-dev

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



[issue12644] document the %a conversion in the old string formatting operations

2011-07-29 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Ezio, I've taken the liberty to adapt your patch with the suggested fixes and 
commit it to both 3.2 and 3.3

If everything is OK, this issue can be close (I'll do it in a few days if no 
one else does :-)

--

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



[issue12644] document the %a conversion in the old string formatting operations

2011-07-29 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

The commit looks fine, the issue can be closed.

--

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



[issue12644] document the %a conversion in the old string formatting operations

2011-07-29 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-29 Thread Roundup Robot

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

New changeset 56e7b42089c8 by Raymond Hettinger in branch '2.7':
Issue 12514: Use try/finally to assure that timeit restores GC when done.
http://hg.python.org/cpython/rev/56e7b42089c8

--
nosy: +python-dev

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



[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-29 Thread Roundup Robot

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

New changeset 1cdb281a78ce by Raymond Hettinger in branch '3.2':
Issue 12514: Use try/finally to assure that timeit restores GC when done.
http://hg.python.org/cpython/rev/1cdb281a78ce

New changeset 7df53f5788a4 by Raymond Hettinger in branch 'default':
Issue 12514: Use try/finally to assure that timeit restores GC when done.
http://hg.python.org/cpython/rev/7df53f5788a4

--

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



[issue12514] timeit disables garbage collection if timed code raises an exception

2011-07-29 Thread Raymond Hettinger

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

Thanks for the bug report and patch.

--
resolution:  - fixed
status: open - closed

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



[issue12652] Move documentation of test.support into the devguide

2011-07-29 Thread Eli Bendersky

New submission from Eli Bendersky eli...@gmail.com:

First step in transition:

Attaching a patch to devguide's runtests.rst to incorporate existing 
test.support documentation from 3.3 head, with some small markup changes 
suitable for the devguide.

--
components: Devguide
files: devguide_test_support.1.patch
keywords: patch
messages: 141337
nosy: brett.cannon, docs@python, eli.bendersky, ncoghlan
priority: low
severity: normal
stage: patch review
status: open
title: Move documentation of test.support into the devguide
type: behavior
Added file: http://bugs.python.org/file22790/devguide_test_support.1.patch

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



[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-29 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
nosy:  -haypo

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



[issue12652] Move documentation of test.support into the devguide

2011-07-29 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue11699] Doc for optparse.OptionParser.get_option_group is wrong

2011-07-29 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
nosy: +eli.bendersky

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



[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2011-07-29 Thread Marian Ganisin

Marian Ganisin marian.gani...@gmail.com added the comment:

xml.dom.minicompat.NodeList provides __reduce__/__reduce_ex__ methods, they 
return state as well as list iterator. However one of those seems to be 
absolutely enough for reconstruction of instance (__reduce__/__reduce_ex__ are 
inherited, methods __setstate/__getstate__ aka state provider/consumer are 
defined in NodeList).

deepcopy (actually its helper function _reconstruct) uses both, state and list 
iterator for copying, first it calls __setstate__(state) on new copy, then it 
goes through iterator and calls append(item) (as it is probably common for 
lists). This is it! (state and list iterator contain same information, list of 
items)

Prior to some minor 2.7 update deepcopy used list iterator and state in 
opposite order, first it run append through iterator, then __setstate__ (this 
overwrote new content at all, no unwanted copies appeared). So the issue is 
there all the time, just with no impact in the past.

Issue also occurs with simple copy.copy() on NodeList:

 import copy
 from xml.dom import minidom
 doc = minidom.parseString('root/')
 print copy.copy(doc.childNodes)
[DOM Element: root at 0xb73fbbcc, DOM Element: root at 0xb73fbbcc]

I am strongly convinced NodeList doesn't require __setstate__/__getstate__ 
methods (even more I believe they are not desired in subclass of list). 
Therefore I am proposing patch with removal of these methods.

If I am wrong in my final decision, somebody smarter has to find a solution. 
This is the reason why I described issue in deep. :)

--
keywords: +patch
nosy: +Marian.Ganisin
Added file: 
http://bugs.python.org/file22791/mganisin-Issue10131-Python-2.7.2.patch

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



[issue12652] Move documentation of test.support into the devguide

2011-07-29 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

As I just mentioned on python-dev (via Gmane), I'm uncomfortable with moving 
the documentation for test.support into the devguide.

--
nosy: +barry

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



[issue12653] Provide accelerators for all buttons in Windows installers

2011-07-29 Thread Ram Rachum

New submission from Ram Rachum r...@rachum.com:

I was installing Python 3.2.1 on my laptop today, and was unable to efficiently 
use the keyboard in order to navigate the installation dialogs. Every button 
should have an accelerator, e.g. Next should be Next so Alt-N will press 
it. (I don't know whether you use the ampersand notation or something else.)

--
messages: 141340
nosy: cool-RR
priority: normal
severity: normal
status: open
title: Provide accelerators for all buttons in Windows installers
versions: Python 3.3, Python 3.4

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



[issue11699] Doc for optparse.OptionParser.get_option_group is wrong

2011-07-29 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Petri,

I think the to after belongs is redundant.

Also, the issue lists 3.2 and 3.3 - is the fix relevant there too? If yes, can 
you prepare a patch for 3.2? (I will merge it to 3.3 too)

--

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



[issue12531] documentation index entries for * and **

2011-07-29 Thread Roundup Robot

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

New changeset 8328fe952303 by Eli Bendersky in branch '2.7':
Issue #12531: add index entries to documentation of * and ** in function calls
http://hg.python.org/cpython/rev/8328fe952303

--
nosy: +python-dev

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



[issue12531] documentation index entries for * and **

2011-07-29 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

I've committed a fix into 2.7, taking Terry's advice (in function calls 
subsection instead of statement) and Eric's sequence/iterable correction into 
account.

If this looks OK, I will commit a similar fix to the 3.x branches as well.

--

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



[issue12652] Move documentation of test.support into the devguide

2011-07-29 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-29 Thread Terry J. Reedy

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

I was working with the freshly reinstalled 3.2 which is not the same as a 
pristine 3.2 install because it still had the problem that 3.2.1 has and the 
3.2.1 sys.version. 3.2.1 uninstall in not complete (a different issue). So I 
should reinstall 3.2.1 again and try again.

I agree about fully switching t. subprocess. If self.rpcpid is not used 
anywhere other than unix_terminate (which I think should be renamed)), then 
self.subproc could replace self.rpcpid.

--
keywords: +buildbot

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



[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-29 Thread Antoine Pitrou

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

I also think this is a bug that should be fixed. Not being able to parse 
real-world HTML is a nuisance.

I agree with Ezio's review comments about the custom regex.

--
assignee: fdrake - 
nosy: +pitrou
stage:  - patch review

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



[issue12255] A few changes to .*ignore

2011-07-29 Thread Roundup Robot

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

New changeset 4d351135f128 by Éric Araujo in branch '3.2':
Make VCSes ignore the compiled shared library file (#12255)
http://hg.python.org/cpython/rev/4d351135f128

New changeset bdad5bc9a2ed by Éric Araujo in branch '3.2':
Stop ignoring Mercurial merge conflits files (#12255).
http://hg.python.org/cpython/rev/bdad5bc9a2ed

--
nosy: +python-dev

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



[issue12417] Inappropriate copyright on profile files

2011-07-29 Thread Roundup Robot

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

New changeset 1b3c21b12e92 by Éric Araujo in branch '3.1':
Remove mentions of previous license in profile module docs (#12417 followup).
http://hg.python.org/cpython/rev/1b3c21b12e92

New changeset 0fbc56b53848 by Éric Araujo in branch '3.2':
Merge profile docs followup (#12417) from 3.1
http://hg.python.org/cpython/rev/0fbc56b53848

--

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



[issue10318] make altinstall installs many files with incorrect shebangs

2011-07-29 Thread Roundup Robot

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

New changeset 65d5ecefd50d by Éric Araujo in branch '3.2':
Fix missing or wrong shebangs and missing executable bits for scripts (#10318)
http://hg.python.org/cpython/rev/65d5ecefd50d

New changeset 5467abaaf5eb by Éric Araujo in branch 'default':
Merge from 3.2 (#10318, #12255, #12043, #12417 and other fixes)
http://hg.python.org/cpython/rev/5467abaaf5eb

--
nosy: +python-dev

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



[issue10968] threading.Timer should be a class so that it can be derived

2011-07-29 Thread Roundup Robot

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

New changeset 7f606223578a by Éric Araujo in branch 'default':
Remove indirection in threading (issue #10968).
http://hg.python.org/cpython/rev/7f606223578a

--
nosy: +python-dev

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



[issue9723] Add shlex.quote

2011-07-29 Thread Roundup Robot

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

New changeset 5966eeb0457d by Éric Araujo in branch 'default':
Add shlex.quote function, to escape filenames and command lines (#9723).
http://hg.python.org/cpython/rev/5966eeb0457d

--
nosy: +python-dev

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



[issue12222] All pysetup commands should respect exit codes

2011-07-29 Thread Roundup Robot

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

New changeset 998566bf7fba by Éric Araujo in branch 'default':
Let all pysetup actions return a meaningful 0 or 1 exit code (#1).
http://hg.python.org/cpython/rev/998566bf7fba

--
nosy: +python-dev

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



[issue11409] pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.

2011-07-29 Thread Roundup Robot

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

New changeset 88545218e155 by Éric Araujo in branch 'default':
Let pysetup list exit with a non-zero code when no result is found (#11409).
http://hg.python.org/cpython/rev/88545218e155

--
nosy: +python-dev

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



[issue12043] Update shutil documentation

2011-07-29 Thread Roundup Robot

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

New changeset 836548ce4cd2 by Éric Araujo in branch '3.2':
Update documentation for shutil.move (#12043) and fix a few typos.
http://hg.python.org/cpython/rev/836548ce4cd2

--
nosy: +python-dev

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



[issue12542] Remove duplicates of cmp_to_key used in tests

2011-07-29 Thread Roundup Robot

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

New changeset fefb7d355361 by Éric Araujo in branch '3.2':
Remove duplicates of cmp_to_key (#12542, reviewed by Raymond Hettinger)
http://hg.python.org/cpython/rev/fefb7d355361

--
nosy: +python-dev

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



[issue12255] A few changes to .*ignore

2011-07-29 Thread Roundup Robot

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

New changeset 9356d2d61e9f by Éric Araujo in branch '2.7':
Make VCSes ignore the compiled shared library file (#12255)
http://hg.python.org/cpython/rev/9356d2d61e9f

New changeset 4e5127874adf by Éric Araujo in branch '2.7':
Stop ignoring Mercurial merge conflits files (#12255).
http://hg.python.org/cpython/rev/4e5127874adf

--

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



[issue12043] Update shutil documentation

2011-07-29 Thread Roundup Robot

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

New changeset 6bf168b55d07 by Éric Araujo in branch '2.7':
Update documentation for shutil.move (#12043) and fix a few typos.
http://hg.python.org/cpython/rev/6bf168b55d07

--

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



[issue12417] Inappropriate copyright on profile files

2011-07-29 Thread Roundup Robot

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

New changeset b9a95ce2692c by Éric Araujo in branch '2.6':
Remove mentions of previous license in profile module (#12417 followup)
http://hg.python.org/cpython/rev/b9a95ce2692c

New changeset 25a496966ecf by Éric Araujo in branch '2.7':
Merge #12417 followup, also removing an extra docstring
http://hg.python.org/cpython/rev/25a496966ecf

--

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



[issue10318] make altinstall installs many files with incorrect shebangs

2011-07-29 Thread Roundup Robot

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

New changeset 7fb0abf928e0 by Éric Araujo in branch '2.7':
Fix missing or shebangs and executable bits for scripts (#10318)
http://hg.python.org/cpython/rev/7fb0abf928e0

--

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



[issue12531] documentation index entries for * and **

2011-07-29 Thread Éric Araujo

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

Looks good to me.

One tip for commits: it’s often better to let a line exceed 80 characters in 
order to make for a smaller diff.  Here, only one word was changed but four 
lines were marked as changed, which makes reviews longer.  Lines are rewrapped 
when doing larger rewritings.

--

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



[issue11699] Doc for optparse.OptionParser.get_option_group is wrong

2011-07-29 Thread Éric Araujo

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

Yep, the “to” is already present before the verb :)

I think we mark None as ``None``, not *None*.  (If the rest of the file does 
otherwise, then do that.)

--

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



[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Éric Araujo

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

I agree that using globals instead function arguments sucks, but let’s fix this 
bug without rewriting the whole file (unless this affects only the code new in 
3.3).

--

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



[issue11472] upload command fails to read auth information from .pypirc

2011-07-29 Thread Éric Araujo

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

Can you set DISTUTILS_DEBUG in your environment, retry to run the command and 
post the output?

--

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



[issue12654] sum() works with bytes objects

2011-07-29 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

... while it apparently shouldn't:

 sum([b'', b''], b'')
b''
 sum([b'', b''], bytearray())
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: sum() can't sum bytes [use b''.join(seq) instead]


In 2.7, the situation is the reverse:

 sum([b'', b''], b'')
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: sum() can't sum strings [use ''.join(seq) instead]
 sum([b'', b''], bytearray())
bytearray(b'')

--
components: Interpreter Core
messages: 141363
nosy: mark.dickinson, pitrou, rhettinger
priority: normal
severity: normal
stage: needs patch
status: open
title: sum() works with bytes objects
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

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



[issue12531] documentation index entries for * and **

2011-07-29 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Éric - when I was just starting contributing patches to Python, I was strictly 
disciplined by veteran devs to stay within 80 chars no matter what :-)

--

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



[issue12255] A few changes to .*ignore

2011-07-29 Thread Éric Araujo

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

This is also fixed in 3.3, but I missed a reference in the merge commit message.

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

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



[issue12417] Inappropriate copyright on profile files

2011-07-29 Thread Éric Araujo

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

Of course, I had all 2.6 and 3.1 changesets in my existing clones :)  I 
committed my patch to all branches.

--
status: open - closed

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



[issue12562] calling mmap twice fails on Windows

2011-07-29 Thread Antoine Pitrou

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


--
nosy: +brian.curtin, pitrou, tim.golden

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



[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-29 Thread Antoine Pitrou

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

If someone is setting sys.excepthook, they are not expecting it to be ignored, 
so I think there's no reason to preserve existing behaviour. On the other hand, 
it is easy to customize exception printout by subclassing InteractiveConsole 
and overriding the showtraceback() method.

aliles, if you want to work on a patch, we have a developer's guide at 
http://docs.python.org/devguide/.

--
nosy: +pitrou
stage:  - needs patch
versions: +Python 3.3

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



[issue9723] Add shlex.quote

2011-07-29 Thread Roundup Robot

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

New changeset 43c41e19527a by Éric Araujo in branch 'default':
Expand shlex.quote example (#9723)
http://hg.python.org/cpython/rev/43c41e19527a

--

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



[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-29 Thread Antoine Pitrou

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

Another possibility yet is to add an excepthook argument to the 
InteractiveInterpreter / InteractiveConsole constructors.

--

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



[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

The 'spec_newline' in particular is only in the trunk (not in the backports), 
as it's part of the new --newline option.

--

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



[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Jason, one way or another, a prompt fix for trunk is required, since `make 
patchcheck` is an important step for committing patches.

--

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



[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-29 Thread R. David Murray

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

It sounds like the early consensus on python-dev is that html5 support is a 
good thing.  I'm happy with that.  I presume that means the 'strict' keyword in 
3.x becomes strict-per-html5, and possibly useless :)

--

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



[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Roundup Robot

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

New changeset 2547f7965733 by Jason R. Coombs in branch 'default':
Issue #10639: spec_newline wasn't defined globally unless main() was called; 
now spec_newline is set at module import/execution
http://hg.python.org/cpython/rev/2547f7965733

--

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



[issue9723] Add shlex.quote

2011-07-29 Thread Éric Araujo

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

I suck at regexes, but the one I came up with lets quote pass the tests that 
existed for pipes.quote, so I figure it’s good.  I did not change the string 
operations at the end of the function (+ and replace) as it was simple and 
working.

In the absence of review or opposition here, I have committed my patch.  
Feedback welcome.

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

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



[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

I hadn't realized that the other global variables were defined at the module 
level or I would have implemented this originally. Please let me know if this 
patch doesn't correct the issue.

--

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



[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Jason R. Coombs

Changes by Jason R. Coombs jar...@jaraco.com:


--
stage: needs patch - commit review
status: open - closed

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



[issue12043] Update shutil documentation

2011-07-29 Thread Éric Araujo

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

Done!

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

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



[issue11409] pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.

2011-07-29 Thread Éric Araujo

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

Adapted and committed.

--
assignee: tarek - eric.araujo
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
versions:  -3rd party, Python 2.7, Python 3.2

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



[issue12222] All pysetup commands should respect exit codes

2011-07-29 Thread Éric Araujo

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

I committed my patch, except for one change in the run action.  It returns the 
dist.Distribution instance, which is needed by test_uninstall and not trivial 
to fix.  I tried changing the code to use Distribution and command objects 
directly but suddenly the --prefix option was not respected, so I stopped after 
a few tries.

--

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



[issue9723] Add shlex.quote

2011-07-29 Thread R. David Murray

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

Sorry I didn't look at the patch earlier.  I thought we were just *moving* 
pipes.quote.  Why is a new regex involved?

--

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



[issue12542] Remove duplicates of cmp_to_key used in tests

2011-07-29 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


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

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



[issue9723] Add shlex.quote

2011-07-29 Thread Éric Araujo

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

Because I choose to follow Ian’s remark in msg127957:
 the implementation could use a couple regexes instead of iterating
 over strings though

I have not touched the tests, so I felt confident with my regex.  FWIW, I’ve 
also changed the argument name, since the function is not limited to file names 
(as I hopefully made clear in the doc).

--

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



[issue1284670] Allow to restrict ModuleFinder to get direct dependencies

2011-07-29 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


Removed file: http://bugs.python.org/file22686/modulefinder-no-recurse.diff

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



[issue1284670] Allow to restrict ModuleFinder to get direct dependencies

2011-07-29 Thread Éric Araujo

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

I modernized modulefinder a bit in 1521d9837d16; here’s a refreshed patch.

--
Added file: http://bugs.python.org/file22792/modulefinder-no-recurse.diff

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



[issue11827] mention of list2cmdline() in docs of subprocess.Popen

2011-07-29 Thread Éric Araujo

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

The module docstring (which duplicates the reST docs) still mentions 
list2cmdline.  I’d vote for removal there too.

--

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



[issue9723] Add shlex.quote

2011-07-29 Thread R. David Murray

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

Well, it's a micro-optimization (it would be interesting to benchmark, but not 
worth it).  I find the original code much more readable than the regex, but it 
doesn't matter all that much.  (And as far as optimization goes, using 
translate might be even faster.)

--

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



[issue12112] The new packaging module should not use the locale encoding

2011-07-29 Thread Éric Araujo

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

I can run LANG=C python -m test test_packaging successfully.  Can we close this?

--

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



[issue12167] test_packaging reference leak

2011-07-29 Thread Éric Araujo

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

I edited my patch to use a copy instead of an explicit empty dict, but I found 
a bug.  The restore code unpacks the saved_caches object to (cache, items), but 
saved_caches is (id(cache), cache, cache.copy()).  I’m surprised the unpacking 
works; I don’t want to commit before I understand that.

--

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



[issue9723] Add shlex.quote

2011-07-29 Thread Éric Araujo

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

str.translate is not an option, as the code does not replace but add characters 
(quotes).

Out of sheer curiosity, I may actually benchmark this.

--

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



[issue9723] Add shlex.quote

2011-07-29 Thread R. David Murray

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

You aren't using a regex to replace the quotes, either.

 len('abcd'.translate(str.maketrans('', '', string.ascii_letters )))  0
False

I don't know if this is faster than the corresponding search regex, but 
depending on how much overhead regex has, it might be.  Note that the translate 
table can be pre-built, just like the compiled regex.

--

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



[issue8887] pydoc str works but not pydoc str.translate

2011-07-29 Thread Roundup Robot

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

New changeset 68df566cbf92 by Éric Araujo in branch '2.7':
Make “pydoc somebuiltin.somemethod” work (#8887)
http://hg.python.org/cpython/rev/68df566cbf92

--
nosy: +python-dev

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



[issue8887] pydoc str works but not pydoc str.translate

2011-07-29 Thread Roundup Robot

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

New changeset f02a8f906342 by Éric Araujo in branch '3.2':
Make “pydoc somebuiltin.somemethod” work (#8887)
http://hg.python.org/cpython/rev/f02a8f906342

New changeset 91d6cabf77d6 by Éric Araujo in branch 'default':
Merge fix for #8887 from 3.2
http://hg.python.org/cpython/rev/91d6cabf77d6

--

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



[issue8887] pydoc str works but not pydoc str.translate

2011-07-29 Thread Éric Araujo

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

Thanks again for the useful review.

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

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



[issue12648] Wrong import module search order on Windows

2011-07-29 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +brett.cannon, ncoghlan

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



[issue12653] Provide accelerators for all buttons in Windows installers

2011-07-29 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +loewis
versions:  -Python 3.4

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



[issue9254] __import__ docstring should recommend importlib.import_module()

2011-07-29 Thread Éric Araujo

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

Patch committed in 3.2.

Attached patch ports the docstring change to 2.7 and edits the reST docs, 
please approve.

--
assignee: docs@python - eric.araujo

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



[issue9254] __import__ docstring should recommend importlib.import_module()

2011-07-29 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


Added file: 
http://bugs.python.org/file22793/__import__-mention-importlib-2.7.diff

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



[issue9788] atexit and execution order

2011-07-29 Thread Roundup Robot

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

New changeset e37fa30c4be4 by Éric Araujo in branch '3.2':
Document that atexit execution order is undefined (#9788)
http://hg.python.org/cpython/rev/e37fa30c4be4

--
nosy: +python-dev

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



[issue9254] __import__ docstring should recommend importlib.import_module()

2011-07-29 Thread Roundup Robot

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

New changeset 7bfc0a45542c by Éric Araujo in branch '3.2':
Let the doc of __import__ link to importlib (#9254).
http://hg.python.org/cpython/rev/7bfc0a45542c

New changeset 4a6cb2d9e906 by Éric Araujo in branch 'default':
Merge from 3.2 (#9254, #8982, #9788)
http://hg.python.org/cpython/rev/4a6cb2d9e906

--
nosy: +python-dev

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



[issue8982] argparse docs cross reference Namespace as a class but the Namespace class is not documented

2011-07-29 Thread Roundup Robot

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

New changeset 939631c6bc6f by Éric Araujo in branch '3.2':
Add a link target for argparse.Namespace (#8982)
http://hg.python.org/cpython/rev/939631c6bc6f

--

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



[issue9788] atexit and execution order

2011-07-29 Thread Roundup Robot

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

New changeset df415bfbb652 by Éric Araujo in branch '2.7':
Document that atexit execution order is undefined (#9788)
http://hg.python.org/cpython/rev/df415bfbb652

--

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



[issue8982] argparse docs cross reference Namespace as a class but the Namespace class is not documented

2011-07-29 Thread Roundup Robot

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

New changeset 01722022f88d by Éric Araujo in branch '2.7':
Add a link target for argparse.Namespace (#8982)
http://hg.python.org/cpython/rev/01722022f88d

--

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



[issue9788] atexit and execution order

2011-07-29 Thread Éric Araujo

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

Given Benjamin and Giampaolo’s support, I committed my patch, so that at least 
the current behavior is documented.  I personally have no opinion on LIFO vs. 
FIFO vs. undefined; I just think that the atexit module is not a wrapper around 
C’s atexit, and as such not bound by the same rules, and undefined sounds fine. 
 If you feel very strongly about that, then please follow up on python-dev.

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

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



[issue12618] py_compile cannot create files in current directory

2011-07-29 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
keywords: +easy
nosy: +eric.araujo
stage:  - test needed
versions: +Python 2.7, Python 3.3

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



[issue12622] failfast argument to TextTestRunner not documented

2011-07-29 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +docs@python, eric.araujo

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



[issue12626] run test cases based on a glob filter

2011-07-29 Thread Éric Araujo

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

I’d love this in regrtest and unittest.

--
nosy: +eric.araujo
versions:  -Python 3.2

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



[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-07-29 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo, r.david.murray

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



[issue12633] sys.modules doc entry should reflect restrictions

2011-07-29 Thread Éric Araujo

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

The note’s spirit is good, but I think something more concise would do.

Side note: Please don’t mix up unrelated cosmetic changes in your diffs.

--
nosy: +eric.araujo

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



[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-29 Thread Roundup Robot

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

New changeset 5f7e71cfbcd6 by Charles-François Natali in branch '3.2':
Issue #12464: tempfile.TemporaryDirectory.cleanup() should not follow symlinks:
http://hg.python.org/cpython/rev/5f7e71cfbcd6

New changeset c0bae008df81 by Charles-François Natali in branch 'default':
Issue #12464: tempfile.TemporaryDirectory.cleanup() should not follow symlinks:
http://hg.python.org/cpython/rev/c0bae008df81

--
nosy: +python-dev

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



[issue12655] Expose sched.h functions

2011-07-29 Thread Benjamin Peterson

New submission from Benjamin Peterson benja...@python.org:

For fun and profit. :)

--
components: Extension Modules
files: sched_stuff.patch
keywords: patch
messages: 141401
nosy: benjamin.peterson, pitrou
priority: normal
severity: normal
status: open
title: Expose sched.h functions
type: feature request
versions: Python 3.3
Added file: http://bugs.python.org/file22794/sched_stuff.patch

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



[issue12655] Expose sched.h functions

2011-07-29 Thread Amaury Forgeot d'Arc

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

 @@ -10330,26 +10899,34 @@ INITFUNC(void)
I know that it's only an increase of 5%, but I feel that posixmodule.c is 
already large enough.
Does this feature belongs to the os module?
Or is it time to split posixmodule.c in several pieces?

--
nosy: +amaury.forgeotdarc

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



[issue12655] Expose sched.h functions

2011-07-29 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

2011/7/29 Amaury Forgeot d'Arc rep...@bugs.python.org:

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

 @@ -10330,26 +10899,34 @@ INITFUNC(void)
 I know that it's only an increase of 5%, but I feel that posixmodule.c is 
 already large enough.
 Does this feature belongs to the os module?
 Or is it time to split posixmodule.c in several pieces?

I completely agree with you, but that's a separate issue.

--

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



[issue12656] test.test_asyncore: add tests for AF_INET6 and AF_UNIX sockets

2011-07-29 Thread Charles-François Natali

New submission from Charles-François Natali neolo...@free.fr:

As noted in issue #12502, test_asyncore only tests AF_INET sockets.
With the patch attached, the vast majority of the tests will also be run with 
AF_UNIX and AF_INET6 sockets (if supported by the host OS).

--
components: Tests
files: test_ayncore.diff
keywords: needs review, patch
messages: 141404
nosy: giampaolo.rodola, neologix
priority: low
severity: normal
stage: patch review
status: open
title: test.test_asyncore: add tests for AF_INET6 and AF_UNIX sockets
type: feature request
versions: Python 3.3
Added file: http://bugs.python.org/file22795/test_ayncore.diff

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



[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-29 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

Committed.
Petri, thanks for the patch.

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

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



[issue12657] Cannot override JSON encoding of basic type subclasses

2011-07-29 Thread Barry A. Warsaw

New submission from Barry A. Warsaw ba...@python.org:

I found this out while experimenting with enum types that inherit from int.  
The json library provides for extending the encoder to handle non-basic types; 
in those cases, your class's .default() method is called.  However, it is 
impossible to override how basic types are encoded.

Worse, if you subclass int, you cannot override how instances of your subclass 
get encoded, because _iterencode() does isinstance() checks.  So enum values 
which subclass int cannot be properly encoded.

I think the isinstance checks should be changed to explicit type equality 
tests, e.g. `type(o) is int`.

--
components: Library (Lib)
messages: 141406
nosy: barry
priority: normal
severity: normal
status: open
title: Cannot override JSON encoding of basic type subclasses
versions: Python 3.3

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



[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-29 Thread phep

phep patrice.pil...@teletopie.net added the comment:

These are the changeset details:
changeset:   18337:c2a60de91d2c
branch:  legacy-trunk
user:Guido van Rossum gu...@python.org
date:Fri Jun 29 13:06:06 2001 +
summary: Solve SF bug #231249: cgi.py opens too many (temporary) files.


You're right that we might use environment variables or tempfile.tempdir
to attain the same goal but this would impact _all_ of the code executed
during request data parsing given the monolithic construction of
FieldStorage. This implies that the context of every call to tempfile
members would be impacted during this process.  Presently this is not a
problem at all, but this looks fragile for future developments. 

On the other hand:
1) this has the advantage of not changing FieldStorage interface,
2) this alleviates us of wondering if passing to FieldStorage
constructor all of the arguments to NamedTemporaryFile is a possibility
worth considering ;-).

After pondering this for a while I think the simpler is the better and I
propose to add documentation to inform the reader that changing the
temp directory through os.environ of tempfile.tempdir might worth
consideration.

As for other use cases for changing the temp directory, I thought about
letting the user choose the FS of its choice with regard to
performance or security (crypted FS) or even having the temp files created in a 
directory with 700 permissions. 

Last, you're perfectly right about the None argument.

I fiddled last night with setting an environment to deploy and test a patched 
Python (I had some problem to understand what happened when I encountered 
6755). This now works and the patch does not introduced any regression. I still 
have to add unit tests (I only tested with my embryonic cgi script) and update 
the documentation before to send the patch. I should be able to do that in a 
few days at most.

--

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



[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2011-07-29 Thread phep

Changes by phep patrice.pil...@teletopie.net:


--
nosy: +phep

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



[issue12654] sum() works with bytes objects

2011-07-29 Thread Roundup Robot

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

New changeset 7368d0e9b33e by Benjamin Peterson in branch 'default':
bytes should be verboten in sum() (fixes #12654)
http://hg.python.org/cpython/rev/7368d0e9b33e

--
nosy: +python-dev

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



[issue9788] atexit and execution order

2011-07-29 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

Thanks. After all, I think that keeping atexit simple is the best solution 
and a doc adjustement is just fine.

--

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



[issue12575] add a AST validator

2011-07-29 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

It'd be nice to get this in soon, so phase 2 can begin.

--

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



[issue12654] sum() works with bytes objects

2011-07-29 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue12655] Expose sched.h functions

2011-07-29 Thread Antoine Pitrou

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

Haven't reviewed the implementation, but +1 for adding this functionality.

As for splitting apart posixmodule.c, I agree that's a separate concern. 
Something like the _io module splitup (several C files compiled in a single 
extension module) looks workable.

We could also consider having a separate module for this, but I can't think of 
any good name. sched is AFAIK already taken, and scheduler is too close to 
the former not to be confusing.

--
nosy: +neologix, rosslagerwall
stage:  - patch review

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



[issue12652] Move documentation of test.support into the devguide

2011-07-29 Thread Sandro Tosi

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


--
nosy: +sandro.tosi

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



  1   2   >