Re: [issue13792] The "os.execl" call doesn't give programs exit code

2012-01-16 Thread Amaury Forgeot d'Arc
Le 16 janv. 2012 00:09, "Kay Hayen" a écrit : > I am the author of the Python compiler Nuitka. It has the ability to immediately execute the created executable file. For that I am using "os.execl" to immediately replace the compiler and run the freshly created binary instead. > > This worked well

[issue13794] Copyright Year - Change it to 2012 please

2012-01-16 Thread Ezio Melotti
Ezio Melotti added the comment: I updated the tracker instances in http://svn.python.org/view?view=revision&revision=88930 and the devguide. docs.python.org is already ok, but www.python.org still needs to be updated. -- ___ Python tracker

[issue13794] Copyright Year - Change it to 2012 please

2012-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f3a3247972b by Ezio Melotti in branch 'default': #13794: Update copyright year to 2012 in the devguide. http://hg.python.org/devguide/rev/8f3a3247972b -- nosy: +python-dev ___ Python tracker

[issue10278] add time.wallclock() method

2012-01-16 Thread akira
Changes by akira <4kir4...@gmail.com>: -- nosy: +akira ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue13803] Under Solaris, distutils doesn't include bitness in the directory name

2012-01-16 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : When compiling modules under Solaris, distutils generates directories like "build/lib.solaris-2.10-i86pc-3.2". The "i86pc" part is the same both in 32 and 64 bits. So when building 32 and 64 bit C code, the binaries are mixed and the best result you can g

[issue6698] IDLE no longer opens only an edit window when configured to do so

2012-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I click r71126 it is mapped to bc084a97318b for #1529142 KBK msg85379 says "The -e option now only opens an editor window," I think I agree with Tal's suggestion as long as thing still work ok on Mac. It is trivial to open a new empty window from the shel

[issue964437] idle help is modal

2012-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that modal is a nuisance. Another problem with the help text window is that, on my system, it opens too narrow -- about 2/3rds the width of a shell or edit window. So many line are wrapped. Is this easy to fix and include with this patch, or does it n

[issue6559] add pass_fds paramter to subprocess.Popen()

2012-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: Wasn't thought about. I have seen something similar to that done in another c++ subprocess implementation since. If you have suggestions for a more useful API, feel free to propose them in a new issue. -- ___ P

[issue6559] add pass_fds paramter to subprocess.Popen()

2012-01-16 Thread Ferringb
Ferringb added the comment: Just noticed this patch... aside from liking the intention, the api for this is going to grow tiresome quick since it expects the FDs to already be in place; is there any reasons a mapping wasn't used here, specifically of (src_fd|src_fileobj) -> target_fd ? If th

[issue13703] Hash collision security issue

2012-01-16 Thread STINNER Victor
STINNER Victor added the comment: Some tests are still failing with my 2 patches: - test_dis - test_inspect - test_json - test_packaging - test_ttk_textonly - test_urllib -- ___ Python tracker __

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: attaching a better formatted one for review. -- Added file: http://bugs.python.org/file24256/subprocess-close-open-fds-gps02.diff ___ Python tracker

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: attaching a patch that implements this safely. -- keywords: +patch Added file: http://bugs.python.org/file24255/subprocess-close-open-fds-gps01.diff ___ Python tracker _

[issue13703] Hash collision security issue

2012-01-16 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file24254/random-fix_tests.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue13703] Hash collision security issue

2012-01-16 Thread STINNER Victor
STINNER Victor added the comment: Patch version 7: - Make PyOS_URandom() private (renamed to _PyOS_URandom) - os.urandom() releases the GIL for I/O operation for its implementation reading /dev/urandom - move _Py_unicode_hash_secret_t documentation into unicode_hash() I moved also fixes for

[issue7676] IDLE shell shouldn't use TABs

2012-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #8285 as it merely reported a consequence of using tabs. The Command Prompt window used for interactive Python on Windows only uses fixed-pitch fonts. Idle (tk) allows any font. I happen to use Lucida Sans Unicode (variable pitch) for what I think is

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

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

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread R. David Murray
R. David Murray added the comment: That's not the kind of parameterization this ticket is about, though. You are talking about passing data in to a test run from the command line (or other source), which is a different issue (though the implementations might share some common infrastructure)

[issue13165] Integrate stringbench in the Tools directory

2012-01-16 Thread Jim Jewett
Jim Jewett added the comment: The URL got mangled in at least my browser, so I'm repasting it on its own line: http://svn.python.org/projects/sandbox/trunk/stringbench -- nosy: +Jim.Jewett ___ Python tracker

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2012-01-16 Thread Terry J. Reedy
New submission from Terry J. Reedy : In the Fonts/Tabs tab of the IDLE Preference dialog, the large box for examples of the font selected shows a small square of ascii chars. I think the box should also show 1 char for each of several alphabets so the consequence of choosing various fonts will

[issue13781] gzip module does the wrong thing with an os.fdopen()'ed fileobj

2012-01-16 Thread Nadeem Vawda
Nadeem Vawda added the comment: For 3.x, I think that ignoring non-string names is a reasonable fix. The docs for io.FileIO specify that its name attribute can be either a path or an integer file descriptor, and changing this doesn't seem to serve any purpose. As for the case of 2.7's bogus ""

[issue8285] IDLE not smart indenting correctly in nested statements

2012-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current indentation is a consequent of using tabs for indents. Changing that is the subject of #7676. #1196946 is a similar issue. -- nosy: +terry.reedy resolution: -> duplicate status: open -> closed superseder: -> IDLE shell shouldn't use TABs v

[issue11695] Improve argparse usage/help customization

2012-01-16 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berkerpeksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ow. Then I don't mind :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I named them following the other accessor macros: PyDateTime_TIME_GET_HOUR(), even though the check function is named PyTime_Check(). Which inconsistency do you prefer? :) -- ___ Python tracker

[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: The macros should be named PyDelta_XXX, as PyDelta_Check and friend. Otherwise, makes sense. -- nosy: +pitrou ___ Python tracker ___ __

[issue13165] Integrate stringbench in the Tools directory

2012-01-16 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berkerpeksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-01-16 Thread Berker Peksag
Changes by Berker Peksag : Added file: http://bugs.python.org/file24252/issue13641_v3_with_tests.diff ___ Python tracker ___ ___ Python-bugs-l

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread Mark Diekhans
Mark Diekhans added the comment: > R. David Murray added the comment: > > Meaning you want to run the same test suite with a variety of > different DB connections? That seems like a reasonable use > case. This is for external parameterization of a test to run in a different environment. Int

[issue13052] IDLE: replace ending with '\' causes crash

2012-01-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: The library manual has chapters for unittest: the generic testing framework (package) that any app can use test: a package with the Python test suite; test_x tests module x It has other modules and subpackages, probably not all documented. The test modules

[issue13793] hasattr, delattr, getattr fail with unnormalized names

2012-01-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: Because it's (very) expensive and the method you propose would fail in the case that someone had put the normalized and unnormalized string in the object's __dict__. -- ___ Python tracker

[issue12415] Missing: How to checkout the Doc sources

2012-01-16 Thread Sandro Tosi
Sandro Tosi added the comment: that looks ok to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue13793] hasattr, delattr, getattr fail with unnormalized names

2012-01-16 Thread Jim Jewett
Jim Jewett added the comment: Why is normalization in getattr unacceptable? I won't pretend to *like* it, but the difference between two canonically equal strings really is (by definition) just a representational issue. Would it be OK to normalize in object's own implementation, so that cust

[issue13695] "type specific" to "type-specific"

2012-01-16 Thread Georg Brandl
Georg Brandl added the comment: "numerous occasions" is not good enough. Why not let a native speaker decide? -- ___ Python tracker ___ _

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: I ported the patch to the 3.2 branch. This port required more extensive adjustments. In particular, the NullImporter no longer used (char *) for directory detection, but instead used platform-specific PyObjects. Therefore, the 3.2 diff creates a new function

[issue13703] Hash collision security issue

2012-01-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Eric Snow wrote: > > Eric Snow added the comment: > >> The vulnerability is known since 2003 (Usenix 2003): read "Denial of >> Service via Algorithmic Complexity Attacks" by Scott A. Crosby and Dan >> S. Wallach. > > Crosby started a meaningful thread on

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file24251/4fdbc9f74235.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- hgrepos: +105 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue13801] The Python 3 Docs don't highlight nonlocal

2012-01-16 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13703] Hash collision security issue

2012-01-16 Thread Eric Snow
Eric Snow added the comment: > The vulnerability is known since 2003 (Usenix 2003): read "Denial of > Service via Algorithmic Complexity Attacks" by Scott A. Crosby and Dan > S. Wallach. Crosby started a meaningful thread on python-dev at that time similar to the current one: http://mail.py

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread R. David Murray
R. David Murray added the comment: Maybe we could add a recipe for doing this to the load_tests docs? I don't think that load_tests is going to be more readable, though, since it doesn't allow you to put the parameterization next to the class you are parameterizing (unless you do some additio

[issue13052] IDLE: replace ending with '\' causes crash

2012-01-16 Thread Roger Serwy
Roger Serwy added the comment: I'm not aware of any formal tests for IDLE. Can you show me the docs for writing proper unit tests? I'll see if I can write one for this. -- ___ Python tracker _

[issue13798] Pasting and then running code doesn't work in the IDLE Shell

2012-01-16 Thread Roger Serwy
Roger Serwy added the comment: This is a duplicate of #3559. -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13695] "type specific" to "type-specific"

2012-01-16 Thread Boštjan Mejak
Boštjan Mejak added the comment: I guess you're reffering to the "i'th" --> "i-th" thing. I found numerous occasions on the Internet that say like "n-th element blah blah blah", not "n'th element..." So I guess writting this thing as "i-th" would be correct here, too. -- _

[issue12705] Make compile('1\n2\n', '', 'single') raise an exception instead of silently truncating?

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

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, it seems I may be mistaken about the second point. m_index is actually generated such that all modules end up in the same position in the interpreters' respective modules_by_index lists. Sorry. -- ___ Python t

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: There seem to be two issues at play here: - the atexit module (and its companion helper _Py_PyAtExit()) doesn't know about sub-interpreters. - PyState_FindModule() doesn't know about sub-interpreters either, because the m_index field (which records the modul

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: 4aaf78f0dd10.diff is the same patch as that for 2.7 but ported to 3.1. -- ___ Python tracker ___ __

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file24250/4aaf78f0dd10.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- hgrepos: +104 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12409] Moving "Documenting Python" to Devguide

2012-01-16 Thread Sandro Tosi
Sandro Tosi added the comment: Éric, thanks for spotting it: removed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue12409] Moving "Documenting Python" to Devguide

2012-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7167c04780ed by Sandro Tosi in branch '2.7': Issue: #12409: remove obsolete susp-entries http://hg.python.org/cpython/rev/7167c04780ed New changeset 153e32333aaa by Sandro Tosi in branch '3.2': Issue: #12409: remove obsolete susp-entries http://hg.

[issue13609] Add "os.get_terminal_size()" function

2012-01-16 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: Does this need need more discussion, code review, testing, or just more time? -- ___ Python tracker ___

[issue13588] Change name of internal closure functions in importlib

2012-01-16 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Berker! It's all committed. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue13588] Change name of internal closure functions in importlib

2012-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9935f7837c4b by Brett Cannon in branch 'default': Issue #13588: Rename decorators in importlib. http://hg.python.org/cpython/rev/9935f7837c4b -- nosy: +python-dev ___ Python tracker

[issue8913] Document that datetime.__format__ is datetime.strftime

2012-01-16 Thread Éric Araujo
Éric Araujo added the comment: IMO, now that two official releases of Python 3 have shipped with this behavior (3.1 and 3.2), it is too late to think about changing what datetime.__format__ does, and we should merely document that it is the same as strftime. -- __

[issue8502] support plurals in pygettext

2012-01-16 Thread Éric Araujo
Éric Araujo added the comment: Thank you for making a patch. I’ve been busy and could not find time to look at it, but after I add a testing machinery for scripts like pygettext I will look into this. -- assignee: docs@python -> dependencies: +Add tests for some scripts in Tools/scr

[issue13779] os.walk: bottom-up

2012-01-16 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: >>> os.makedirs('/tmp/a/b/c') >>> gen = os.walk('/tmp/a') >>> next(gen) ('/tmp/a', ['b'], []) >>> os.makedirs('/tmp/a/b2') >>> next(gen) ('/tmp/a/b', ['c'], []) >>> next(gen) ('/tmp/a/b/c', [], []) >>> gen = os.walk('/tmp/a', onerror=print) >>> next(gen) ('/tm

[issue13779] os.walk: bottom-up

2012-01-16 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: > The documentation of this function is generally ambiguous, because > os.walk is a generator. Thus "generate" means (1) yielded from a > generator and (2) prepared for later use within the generator. To avoid > the ambiguity, "generate" should be avoided if po

[issue5300] Distutils ignores file permissions

2012-01-16 Thread Éric Araujo
Éric Araujo added the comment: FTR it looks like http://mail.python.org/pipermail/python-list/2009-January/1188084.html was the original report for this. -- ___ Python tracker

[issue13412] Symbolic links omitted by os.listdir on some systems

2012-01-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: While this may in fact be related to #6727, I don't believe it's a proper duplicate. I believe there's a more fundamental issue that's causing both #6727 and #13412, and that's that stat/wstat is broken on Windows due to a regression in the MS C runtime: ht

[issue13588] Change name of internal closure functions in importlib

2012-01-16 Thread Brett Cannon
Brett Cannon added the comment: Sorry, been busy. I will definitely get to it this week. On Sun, Jan 15, 2012 at 19:58, Berker Peksag wrote: > > Berker Peksag added the comment: > > Hi Brett, did you have a chance to review the patch I submitted? > > -- > > __

[issue11805] package_data only allows one glob per-package

2012-01-16 Thread Éric Araujo
Éric Araujo added the comment: (To clarify quotes in my message: First is a copied message from me, marked [I], then one form Erik, and the last paragraph is me again. Sleep good, should get more of that.) -- ___ Python tracker

[issue12409] Moving "Documenting Python" to Devguide

2012-01-16 Thread Éric Araujo
Éric Araujo added the comment: Glad my action plan worked :) There are now obsolete entries in the Doc/tools/sphinxext/susp-ignored.csv file: All lines starting with “documenting” can be removed. -- ___ Python tracker

[issue11805] package_data only allows one glob per-package

2012-01-16 Thread Éric Araujo
Éric Araujo added the comment: Copied from #13712: [I] Problem is that the setup.cfg syntax does not define how to give more than one value. If it’s judged acceptable to disallow paths with embedded spaces, we could do something like this: [files] package_data = spam = first second thir

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-16 Thread Eric V. Smith
Eric V. Smith added the comment: Changing to a documentation issue. -- assignee: eric.smith -> docs@python components: +Documentation -Interpreter Core keywords: +easy nosy: +docs@python versions: +Python 2.7 ___ Python tracker

[issue12415] Missing: How to checkout the Doc sources

2012-01-16 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file24249/metadoc-where-are-the-sources.diff ___ Python tracker ___ ___ Python-bug

[issue12415] Missing: How to checkout the Doc sources

2012-01-16 Thread Éric Araujo
Éric Araujo added the comment: Please review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13796] use 'text=...' to define the text attribute of and xml.etree.ElementTree.Element

2012-01-16 Thread Pedro Andres Aranda Gutierrez
Pedro Andres Aranda Gutierrez added the comment: Touché :-) I was just frustrated because my XMLs never have tail or text as attributes and I wanted to have more compact code... On Mon, Jan 16, 2012 at 12:14 PM, patrick vrijlandt wrote: > > patrick vrijlandt added the comment: > > I agree the

[issue13779] os.walk: bottom-up

2012-01-16 Thread patrick vrijlandt
patrick vrijlandt added the comment: The documentation of this function is generally ambiguous, because os.walk is a generator. Thus "generate" means (1) yielded from a generator and (2) prepared for later use within the generator. To avoid the ambiguity, "generate" should be avoided if possi

[issue13801] The Python 3 Docs don't highlight nonlocal

2012-01-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: The problem was until very recently, pygments omitted the nonlocal keyword. We probably need to wait for another pygments release. -- nosy: +benjamin.peterson ___ Python tracker

[issue12705] Make compile('1\n2\n', '', 'single') raise an exception instead of silently truncating?

2012-01-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think an exception is fine, but it should only happen in 3.3. -- ___ Python tracker ___ ___ Py

[issue13665] TypeError: string or integer address expected instead of str instance

2012-01-16 Thread Meador Inge
Meador Inge added the comment: LGTM. Thanks for fixing this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2012-01-16 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : -- nosy: +zbysz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue13793] hasattr, delattr, getattr fail with unnormalized names

2012-01-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: Normalizing the string in getattr() is unacceptable. We'll just have to document, that all identifiers are in NFKC. -- ___ Python tracker _

[issue13779] os.walk: bottom-up

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > However, the generated (files? and) dirs do not necessarily reflect the > current situation as produced by os.listdir. What do you mean exactly? Another process has re-created "b" in parallel? This race condition is pretty impossible to solve in the general

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-01-16 Thread Simon Sapin
Simon Sapin added the comment: heapq_merge_key_duplicate.patch is a new patch with two code path. It also updates the function’s docstring (which the previous patch did not). Raymond, do you think the speed is worth the DRY violation? -- Added file: http://bugs.python.org/file24248/he

[issue13801] The Python 3 Docs don't highlight nonlocal

2012-01-16 Thread Justin Wehnes
Justin Wehnes added the comment: Ahh yes I see it. Sorry about that. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue13801] The Python 3 Docs don't highlight nonlocal

2012-01-16 Thread Éric Araujo
Éric Araujo added the comment: Not really. If you follow the link given in the first message and compare how “is” and “nonlocal” are styled, you will see the bug. :) I hope that Sphinx configures Pygments to use a Python3Lexer, not Python. Georg? -- nosy: +eric.araujo stage: -> n

[issue13779] os.walk: bottom-up

2012-01-16 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: Hi, I think that the documentation is pretty clear ("[if topdown=False] ... the directories in dirnames have already been generated by the time dirnames itself is generated"). And such behaviour is what one would expect, since it is the result of the simplest

[issue13801] The Python 3 Docs doesn't highlight nonlocal

2012-01-16 Thread Justin Wehnes
Justin Wehnes added the comment: Nonlocal is highlighted under Language Reference under simple statements section 6.13 (http://docs.python.org/dev/reference/index.html). help("nonlocal") will also bring up the documentation (works for me in 3.3). -- nosy: +jwehnes __

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2012-01-16 Thread Christian Häggström
Changes by Christian Häggström : -- nosy: +chn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread Michael Foord
Michael Foord added the comment: Why not create a simple TestCase factory in load_tests? Before a patch can be produced a clean api that offers a clear benefit over the TestCase factory needs to be proposed. -- ___ Python tracker

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread Éric Araujo
Éric Araujo added the comment: Mark, would you like to work on a patch for this? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue13801] The Python 3 Docs doesn't highlight nonlocal

2012-01-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, georg.brandl versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mail

[issue13801] The Python 3 Docs doesn't highlight nonlocal

2012-01-16 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ _

[issue13801] The Python 3 Docs doesn't highlight nonlocal

2012-01-16 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- title: The Python 3 Docs don't highlight nonlocal -> The Python 3 Docs doesn't highlight nonlocal ___ Python tracker ___

[issue13801] The Python 3 Docs don't highlight nonlocal

2012-01-16 Thread Ramchandra Apte
New submission from Ramchandra Apte : The Python 3 Docs don't highlight nonlocal such as in the code example in the Python 3 documentation for itertools.zip_longest() (http://docs.python.org/py3k/library/itertools.html) -- messages: 151362 nosy: ramchandra.apte priority: normal severit

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread R. David Murray
R. David Murray added the comment: Drat, the tracker lost my post. In summary, given a concrete use case (running a test case with a variety of different DB connections) and the improved readablility for the common case of just changing class constants in the 'parameterized' subclasses, I'd

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-01-16 Thread Nick Coghlan
Nick Coghlan added the comment: Finally reviewed Stefan's latest patch. It mostly looks great to me. Aside from a few minor cosmetic quibbles, the only substantive change I would like is to expose the Py_buffer len field as "memoryview.size" instead of "memoryview.len" (to reduce confusion wi

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread R. David Murray
R. David Murray added the comment: Meaning you want to run the same test suite with a variety of different DB connections? That seems like a reasonable use case. Personally I find that while I sometimes create subclasses to adjust certain class parameters (thus creating a parameterized test

[issue12834] memoryview.tobytes() incorrect for non-contiguous arrays

2012-01-16 Thread Nick Coghlan
Nick Coghlan added the comment: Added 10181 as a dependency - as noted in my review comments on that issue, I think this becomes fairly trivial to fix (and test) given Stefan's other improvements. -- dependencies: +Problems with Py_buffer management in memoryobject.c (and elsewhere?)

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-16 Thread R. David Murray
R. David Murray added the comment: Good point. That should be fixed. It should be "empty format specification". -- ___ Python tracker ___ _

[issue13799] Base 16 should be hexadecimal in Unicode HOWTO

2012-01-16 Thread Ramchandra Apte
New submission from Ramchandra Apte : "base 16" should be "hexadecimal" in the Unicode HOWTO in both Python 2 and 3 docs. -- assignee: docs@python components: Documentation messages: 151354 nosy: docs@python, ramchandra.apte priority: normal severity: normal status: open title: Base 16

[issue13703] Hash collision security issue

2012-01-16 Thread STINNER Victor
STINNER Victor added the comment: The vulnerability is known since 2003 (Usenix 2003): read "Denial of Service via Algorithmic Complexity Attacks" by Scott A. Crosby and Dan S. Wallach. http://www.cs.rice.edu/~scrosby/hash/CrosbyWallach_UsenixSec2003.pdf This paper compares Perl 5.8 hash functi

[issue13798] Pasting and then running code doesn't work in the IDLE Shell

2012-01-16 Thread Ramchandra Apte
New submission from Ramchandra Apte : If you paste code with multiple lines which are not in a block of code into the IDLE Shell and press enter to run the code, only the first line of the code gets executed and the rest of the code is ignored. You can even put garbage such as "" in the li

[issue12705] Make compile('1\n2\n', '', 'single') raise an exception instead of silently truncating?

2012-01-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson stage: test needed -> needs patch ___ Python tracker ___ ___ Python-bugs-list

[issue13793] hasattr, delattr, getattr fail with unnormalized names

2012-01-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2012-01-16 Thread Nick Coghlan
Nick Coghlan added the comment: Reviewing Stefan's work on #10181 suggests to me that option 3 is the only feasible approach. (Allowing memoryview subclasses will permit types to pass their own state between __getbuffer__ and __releasebuffer__) -- ___

[issue13796] use 'text=...' to define the text attribute of and xml.etree.ElementTree.Element

2012-01-16 Thread patrick vrijlandt
patrick vrijlandt added the comment: I agree the Element syntax is sometimes awkward. But how would you represent text or tail attributes within this enhanced element? comes to mind ... -- nosy: +patrick.vrijlandt ___ Python tracker

[issue13695] "type specific" to "type-specific"

2012-01-16 Thread Georg Brandl
Georg Brandl added the comment: Would you care to explain why that change needs to be made? -- ___ Python tracker ___ ___ Python-bugs

  1   2   >