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

2011-07-29 Thread Roundup Robot
Roundup Robot 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 12

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

2011-07-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the bug report and patch. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

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

2011-07-29 Thread Eli Bendersky
New submission from Eli Bendersky : 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

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

2011-07-29 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2011-07-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-07-29 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2011-07-29 Thread Marian Ganisin
Marian Ganisin 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 __setstat

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

2011-07-29 Thread Barry A. Warsaw
Barry A. Warsaw 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 ___

[issue12653] Provide accelerators for all buttons in Windows installers

2011-07-29 Thread Ram Rachum
New submission from Ram Rachum : 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

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

2011-07-29 Thread Eli Bendersky
Eli Bendersky 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

[issue12531] documentation index entries for * and **

2011-07-29 Thread Roundup Robot
Roundup Robot 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

[issue12531] documentation index entries for * and **

2011-07-29 Thread Eli Bendersky
Eli Bendersky 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. -- _

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

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

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

2011-07-29 Thread Terry J. Reedy
Terry J. Reedy 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 an

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

2011-07-29 Thread Antoine Pitrou
Antoine Pitrou 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

[issue12255] A few changes to .*ignore

2011-07-29 Thread Roundup Robot
Roundup Robot 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

[issue12417] Inappropriate copyright on profile files

2011-07-29 Thread Roundup Robot
Roundup Robot 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 f

[issue10318] "make altinstall" installs many files with incorrect shebangs

2011-07-29 Thread Roundup Robot
Roundup Robot 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

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

2011-07-29 Thread Roundup Robot
Roundup Robot 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

[issue9723] Add shlex.quote

2011-07-29 Thread Roundup Robot
Roundup Robot 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 tra

[issue12222] All pysetup commands should respect exit codes

2011-07-29 Thread Roundup Robot
Roundup Robot 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 track

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

[issue12043] Update shutil documentation

2011-07-29 Thread Roundup Robot
Roundup Robot 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

[issue12542] Remove duplicates of cmp_to_key used in tests

2011-07-29 Thread Roundup Robot
Roundup Robot 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

[issue12255] A few changes to .*ignore

2011-07-29 Thread Roundup Robot
Roundup Robot 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

[issue12043] Update shutil documentation

2011-07-29 Thread Roundup Robot
Roundup Robot 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

[issue12417] Inappropriate copyright on profile files

2011-07-29 Thread Roundup Robot
Roundup Robot 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, als

[issue10318] "make altinstall" installs many files with incorrect shebangs

2011-07-29 Thread Roundup Robot
Roundup Robot 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

[issue12531] documentation index entries for * and **

2011-07-29 Thread Éric Araujo
Éric Araujo 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

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

2011-07-29 Thread Éric Araujo
Éric Araujo 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 ___

[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Éric Araujo
Éric Araujo 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

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

2011-07-29 Thread Éric Araujo
Éric Araujo added the comment: Can you set DISTUTILS_DEBUG in your environment, retry to run the command and post the output? -- ___ Python tracker ___

[issue12654] sum() works with bytes objects

2011-07-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : ... while it apparently shouldn't: >>> sum([b'', b''], b'') b'' >>> sum([b'', b''], bytearray()) Traceback (most recent call last): File "", line 1, in TypeError: sum() can't sum bytes [use b''.join(seq) instead] In 2.7, the situation is the reverse: >>

[issue12531] documentation index entries for * and **

2011-07-29 Thread Eli Bendersky
Eli Bendersky 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 ___

[issue12255] A few changes to .*ignore

2011-07-29 Thread Éric Araujo
Éric Araujo 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

[issue12417] Inappropriate copyright on profile files

2011-07-29 Thread Éric Araujo
Éric Araujo 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

[issue12562] calling mmap twice fails on Windows

2011-07-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, pitrou, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-29 Thread Antoine Pitrou
Antoine Pitrou 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 show

[issue9723] Add shlex.quote

2011-07-29 Thread Roundup Robot
Roundup Robot 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 ___

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Another possibility yet is to add an "excepthook" argument to the InteractiveInterpreter / InteractiveConsole constructors. -- ___ Python tracker

[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Jason R. Coombs
Jason R. Coombs 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 ___

[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Eli Bendersky
Eli Bendersky 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 _

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

2011-07-29 Thread R. David Murray
R. David Murray 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 :) --

[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Roundup Robot
Roundup Robot 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 --

[issue9723] Add shlex.quote

2011-07-29 Thread Éric Araujo
Éric Araujo 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 revie

[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Jason R. Coombs
Jason R. Coombs 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

[issue10639] reindent.py should not convert newlines

2011-07-29 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- stage: needs patch -> commit review status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue12043] Update shutil documentation

2011-07-29 Thread Éric Araujo
Éric Araujo added the comment: Done! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

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

[issue12222] All pysetup commands should respect exit codes

2011-07-29 Thread Éric Araujo
Éric Araujo 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 --pr

[issue9723] Add shlex.quote

2011-07-29 Thread R. David Murray
R. David Murray 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 __

[issue12542] Remove duplicates of cmp_to_key used in tests

2011-07-29 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: accepted -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue9723] Add shlex.quote

2011-07-29 Thread Éric Araujo
Éric Araujo 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

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2011-07-29 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file22686/modulefinder-no-recurse.diff ___ Python tracker ___ ___ Python-bugs-

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2011-07-29 Thread Éric Araujo
Éric Araujo 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 _

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

2011-07-29 Thread Éric Araujo
Éric Araujo added the comment: The module docstring (which duplicates the reST docs) still mentions list2cmdline. I’d vote for removal there too. -- ___ Python tracker ___ ___

[issue9723] Add shlex.quote

2011-07-29 Thread R. David Murray
R. David Murray 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 faste

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

2011-07-29 Thread Éric Araujo
Éric Araujo added the comment: I can run LANG=C python -m test test_packaging successfully. Can we close this? -- ___ Python tracker ___ ___

[issue12167] test_packaging reference leak

2011-07-29 Thread Éric Araujo
Éric Araujo 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 c

[issue9723] Add shlex.quote

2011-07-29 Thread Éric Araujo
Éric Araujo 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 __

[issue9723] Add shlex.quote

2011-07-29 Thread R. David Murray
R. David Murray 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 mig

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

2011-07-29 Thread Roundup Robot
Roundup Robot 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

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

2011-07-29 Thread Roundup Robot
Roundup Robot 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

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

2011-07-29 Thread Éric Araujo
Éric Araujo added the comment: Thanks again for the useful review. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker _

[issue12648] Wrong import module search order on Windows

2011-07-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +brett.cannon, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue12653] Provide accelerators for all buttons in Windows installers

2011-07-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +loewis versions: -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2011-07-29 Thread Éric Araujo
Éric Araujo 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

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

2011-07-29 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file22793/__import__-mention-importlib-2.7.diff ___ Python tracker ___ ___ Python-

[issue9788] atexit and execution order

2011-07-29 Thread Roundup Robot
Roundup Robot 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

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

2011-07-29 Thread Roundup Robot
Roundup Robot 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

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

2011-07-29 Thread Roundup Robot
Roundup Robot 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 _

[issue9788] atexit and execution order

2011-07-29 Thread Roundup Robot
Roundup Robot 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

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

2011-07-29 Thread Roundup Robot
Roundup Robot 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 _

[issue9788] atexit and execution order

2011-07-29 Thread Éric Araujo
Éric Araujo 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 n

[issue12618] py_compile cannot create files in current directory

2011-07-29 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +easy nosy: +eric.araujo stage: -> test needed versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___

[issue12622] failfast argument to TextTestRunner not documented

2011-07-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +docs@python, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue12626] run test cases based on a glob filter

2011-07-29 Thread Éric Araujo
Éric Araujo added the comment: I’d love this in regrtest and unittest. -- nosy: +eric.araujo versions: -Python 3.2 ___ Python tracker ___ __

[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-07-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12633] sys.modules doc entry should reflect restrictions

2011-07-29 Thread Éric Araujo
Éric Araujo 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

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-29 Thread Roundup Robot
Roundup Robot 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 '

[issue12655] Expose sched.h functions

2011-07-29 Thread Benjamin Peterson
New submission from Benjamin Peterson : 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 v

[issue12655] Expose sched.h functions

2011-07-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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

[issue12655] Expose sched.h functions

2011-07-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/7/29 Amaury Forgeot d'Arc : > > Amaury Forgeot d'Arc 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

[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 : 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_ay

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-29 Thread Charles-François Natali
Charles-François Natali added the comment: Committed. Petri, thanks for the patch. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-07-29 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : 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

[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-29 Thread phep
phep added the comment: These are the changeset details: changeset: 18337:c2a60de91d2c branch: legacy-trunk user:Guido van Rossum 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 u

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

2011-07-29 Thread phep
Changes by phep : -- nosy: +phep ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/

[issue12654] sum() works with bytes objects

2011-07-29 Thread Roundup Robot
Roundup Robot 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

[issue9788] atexit and execution order

2011-07-29 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 ___ _

[issue12575] add a AST validator

2011-07-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: It'd be nice to get this in soon, so phase 2 can begin. -- ___ Python tracker ___ ___ Python-bug

[issue12654] sum() works with bytes objects

2011-07-29 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12655] Expose sched.h functions

2011-07-29 Thread Antoine Pitrou
Antoine Pitrou 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.

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

2011-07-29 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12626] run test cases based on a glob filter

2011-07-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5d7a2bd9a3d1 by Antoine Pitrou in branch '3.2': Issue #12626: In regrtest, allow to filter tests using a glob filter http://hg.python.org/cpython/rev/5d7a2bd9a3d1 New changeset 018e14a46454 by Antoine Pitrou in branch 'default': Issue #12626: In re

[issue12626] run test cases based on a glob filter

2011-07-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed a slightly updated patch that also works with -j. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-29 Thread phep
phep added the comment: So, this is the patch. -- keywords: +patch Added file: http://bugs.python.org/file22796/fix9968.patch ___ Python tracker ___ _

[issue12655] Expose sched.h functions

2011-07-29 Thread Charles-François Natali
Charles-François Natali added the comment: I'm +0. It would certainly be fun, but I'm not so sure about the "profit" part. The main usage of the scheduler API is for real-time policies, and I somehow doubt Python is commonly used in this area (but I could be wrong). Furthermore, the same functio

[issue12655] Expose sched.h functions

2011-07-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: I actually implemented this because I wanted to confine a Python process to a cpu to prevent keep it from being tossed from core to core. It made sense to bring the other scheduling functions along for the ride. --

[issue12655] Expose sched.h functions

2011-07-29 Thread Benjamin Peterson
Changes by Benjamin Peterson : Added file: http://bugs.python.org/file22797/sched_stuff.patch ___ Python tracker ___ ___ Python-bugs-list mail

  1   2   >