[issue6528] builtins colored as keyword at beginning of line

2012-01-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2d4ce2cdd6d4 by Terry Jan Reedy in branch '3.2': #6528 None, True, False are keywords in 3.x. Patch by Roger Serwy. http://hg.python.org/cpython/rev/2d4ce2cdd6d4 New changeset 522f07bfa067 by Terry Jan Reedy in

[issue6528] builtins colored as keyword at beginning of line

2012-01-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I just realized that there is 'another' reason not to reuse builtin names (other than those usually given): they will be colorized as builtins even if they have no relation to the builtin. Make_pat uses the function any() defined just above

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

2012-01-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: If there are any tests for Idle, I have not found them. No idlelib/test/, no test/test_idle. There is a testcode.py with random code. I want to look at tkinter/test/ someday to see if it has any models for testing Idle. Roger, do you know of

[issue13435] Copybutton does not hide tracebacks

2012-01-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Now 2.7 uses Sphinx 1.0, but I think a full rebuild should be triggered in order to update all the files. Georg, can you do something about it? -- ___ Python tracker rep...@bugs.python.org

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

2012-01-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: If the patch works for you, I guess you can commit it; if tests can be added too, that's even better. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13052

[issue13695] type specific to type-specific

2012-01-16 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Found one little bug again in http://docs.python.org/library/stdtypes.html#sequence-types-str-unicode-list-tuple-bytearray-buffer-xrange Look at the table with the fields Operation, Result, Notes, and fix the fifth record of the Result

[issue6528] builtins colored as keyword at beginning of line

2012-01-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6528 ___ ___

[issue2292] Missing *-unpacking generalizations

2012-01-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___ ___ Python-bugs-list

[issue11906] test_argparse failure in interactive mode

2012-01-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11906 ___ ___ Python-bugs-list

[issue13122] Out of date links in the sidebar of the documentation index of versions 3.1 and 3.2

2012-01-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 'All Releases' rather than 'Everything else' is both more accurate and to me, more graceful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13122

[issue13756] Python3.2.2 make fail on cygwin

2012-01-16 Thread Luis Marsano
Luis Marsano luis.mars...@gmail.com added the comment: The README file implies support: [⋮] Build Instructions -- On Unix, Linux, BSD, OSX, and Cygwin: [⋮] -- components: +Build -Installation nosy: +Luis.Marsano ___ Python tracker

[issue13797] Add a __buffer__ special method to retrieve a PEP 3118 object

2012-01-16 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Currently, there's no straightforward way to create new classes in Python that delegate the PEP 3118 buffer APIs to another object that supports them (e.g. bytes, bytearray, memoryview, array.array, a NumPy array). I see a few possible ways

[issue13797] Add a Python level special method to retrieve a PEP 3118 object

2012-01-16 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- dependencies: +Problems with Py_buffer management in memoryobject.c (and elsewhere?) title: Add a __buffer__ special method to retrieve a PEP 3118 object - Add a Python level special method to retrieve a PEP 3118 object

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

2012-01-16 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- title: Add a Python level special method to retrieve a PEP 3118 object - Allow objects implemented in pure Python to export PEP 3118 buffers ___ Python tracker rep...@bugs.python.org

[issue13435] Copybutton does not hide tracebacks

2012-01-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: A full rebuild should be done anyway next time the script runs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13435 ___

[issue13695] type specific to type-specific

2012-01-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Would you care to explain why that change needs to be made? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13695 ___

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

2012-01-16 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment: I agree the Element syntax is sometimes awkward. But how would you represent text or tail attributes within this enhanced element? animal name=cat tail=yes comes to mind ... -- nosy: +patrick.vrijlandt

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

2012-01-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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__) --

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

2012-01-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13793 ___

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

2012-01-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson stage: test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12705 ___

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

2012-01-16 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: 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

[issue13703] Hash collision security issue

2012-01-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue13799] Base 16 should be hexadecimal in Unicode HOWTO

2012-01-16 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: 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:

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

2012-01-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Good point. That should be fixed. It should be empty format specification. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13790

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

2012-01-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2012-01-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2012-01-16 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: 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

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

2012-01-16 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: The Python 3 Docs don't highlight nonlocal - The Python 3 Docs doesn't highlight nonlocal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13801

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

2012-01-16 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- assignee: - docs@python components: +Documentation nosy: +docs@python versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13801

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

2012-01-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, georg.brandl versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13801 ___

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Mark, would you like to work on a patch for this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12600 ___

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk 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

[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 paj...@kalvdans.no-ip.org: -- nosy: +chn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6531 ___ ___

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

2012-01-16 Thread Justin Wehnes
Justin Wehnes jweh...@gmail.com 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

[issue13779] os.walk: bottom-up

2012-01-16 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl 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

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

2012-01-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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:

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

2012-01-16 Thread Justin Wehnes
Justin Wehnes jweh...@gmail.com added the comment: Ahh yes I see it. Sorry about that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13801 ___

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

2012-01-16 Thread Simon Sapin
Simon Sapin simon.sa...@kozea.fr 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:

[issue13779] os.walk: bottom-up

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

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

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

2012-01-16 Thread Zbyszek Szmek
Changes by Zbyszek Szmek zbys...@in.waw.pl: -- nosy: +zbysz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1692335 ___ ___ Python-bugs-list mailing

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

2012-01-16 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: LGTM. Thanks for fixing this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13665 ___ ___

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

2012-01-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I think an exception is fine, but it should only happen in 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12705 ___

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

2012-01-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org 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

[issue13779] os.walk: bottom-up

2012-01-16 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com 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

[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 paag...@gmail.com 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 rep...@bugs.python.org wrote: patrick

[issue12415] Missing: How to checkout the Doc sources

2012-01-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Please review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12415 ___ ___ Python-bugs-list

[issue12415] Missing: How to checkout the Doc sources

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

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

2012-01-16 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com 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

[issue11805] package_data only allows one glob per-package

2012-01-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 =

[issue12409] Moving Documenting Python to Devguide

2012-01-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 mer...@netwok.org 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

[issue13588] Change name of internal closure functions in importlib

2012-01-16 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Sorry, been busy. I will definitely get to it this week. On Sun, Jan 15, 2012 at 19:58, Berker Peksag rep...@bugs.python.org wrote: Berker Peksag berker.pek...@gmail.com added the comment: Hi Brett, did you have a chance to review the patch

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

2012-01-16 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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

[issue5300] Distutils ignores file permissions

2012-01-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

[issue13779] os.walk: bottom-up

2012-01-16 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl 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

[issue13779] os.walk: bottom-up

2012-01-16 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl 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) ('/tmp/a',

[issue8502] support plurals in pygettext

2012-01-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-01-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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. --

[issue13588] Change name of internal closure functions in importlib

2012-01-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 ___

[issue13588] Change name of internal closure functions in importlib

2012-01-16 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Thanks for the patch, Berker! It's all committed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13588 ___

[issue13609] Add os.get_terminal_size() function

2012-01-16 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Does this need need more discussion, code review, testing, or just more time? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13609 ___

[issue12409] Moving Documenting Python to Devguide

2012-01-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue12409] Moving Documenting Python to Devguide

2012-01-16 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Éric, thanks for spotting it: removed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12409 ___

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- hgrepos: +104 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Added file: http://bugs.python.org/file24250/4aaf78f0dd10.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: 4aaf78f0dd10.diff is the same patch as that for 2.7 but ported to 3.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___

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

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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. --

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

2012-01-16 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12705 ___ ___ Python-bugs-list

[issue13695] type specific to type-specific

2012-01-16 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com 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.

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

2012-01-16 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This is a duplicate of #3559. -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13798 ___

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

2012-01-16 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com 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 rep...@bugs.python.org

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue13703] Hash collision security issue

2012-01-16 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com 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

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

2012-01-16 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13801 ___ ___ Python-bugs-list

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- hgrepos: +105 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Added file: http://bugs.python.org/file24251/4fdbc9f74235.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___

[issue13703] Hash collision security issue

2012-01-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Eric Snow wrote: Eric Snow ericsnowcurren...@gmail.com 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

[issue6727] ImportError when package is symlinked on Windows

2012-01-16 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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

[issue13695] type specific to type-specific

2012-01-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: numerous occasions is not good enough. Why not let a native speaker decide? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13695 ___

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

2012-01-16 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com 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

[issue12415] Missing: How to checkout the Doc sources

2012-01-16 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: that looks ok to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12415 ___ ___

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

2012-01-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org 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

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

2012-01-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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.

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread Mark Diekhans
Mark Diekhans ma...@kermodei.com added the comment: R. David Murray rdmur...@bitdance.com 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

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

2012-01-16 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: Added file: http://bugs.python.org/file24252/issue13641_v3_with_tests.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13641 ___

[issue13165] Integrate stringbench in the Tools directory

2012-01-16 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berkerpeksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13165 ___ ___

[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The macros should be named PyDelta_XXX, as PyDelta_Check and friend. Otherwise, makes sense. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13727

[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

[issue13727] Accessor macros for PyDateTime_Delta members

2012-01-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ow. Then I don't mind :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13727 ___ ___

[issue11695] Improve argparse usage/help customization

2012-01-16 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berkerpeksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11695 ___ ___

[issue8285] IDLE not smart indenting correctly in nested statements

2012-01-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2012-01-16 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

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

2012-01-16 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: 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

[issue13165] Integrate stringbench in the Tools directory

2012-01-16 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com 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

[issue12600] Support parameterized TestCases in unittest

2012-01-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2012-01-16 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6531 ___ ___ Python-bugs-list

  1   2   >