[issue4498] Compiler warning "signed/unsigned comparison in mmapmodule"

2011-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I no longer have access to the compiler that emitted the warning. -- resolution: -> out of date status: open -> closed title: Compiler warning "signed/unsigned comparion in mmapmodule" -> Compiler warning "signed/unsigned comparison in mmapmodule"

[issue3056] Simplify the Integral ABC

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> low versions: +Python 3.3 -Python 2.6, Python 3.0 ___ Python tracker ___ ___ Pyth

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue7391] Re-title the "Using Backslash to Continue Statements" anti-idiom

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1602] windows console doesn't print or input Unicode

2011-03-22 Thread David-Sarah Hopwood
David-Sarah Hopwood added the comment: (For anyone wondering about the hold-up on this bug, I ended up switching to Ubuntu. Not to worry, I now have Python 3 building in XP under VirtualBox -- which is further than I ever got with my broken Vista install :-/ It seems to behave identically to

[issue11634] misleading comment on PyBytes_FromStringAndSize

2011-03-22 Thread Eli Bendersky
Changes by Eli Bendersky : -- keywords: +patch Added file: http://bugs.python.org/file21354/issue11634.1.patch ___ Python tracker ___

[issue11634] misleading comment on PyBytes_FromStringAndSize

2011-03-22 Thread Eli Bendersky
Eli Bendersky added the comment: I propose the attached patch (for the latest default branch). It simply removes the first paragraph of that comment, since it's misleading and redundant. The *last* paragraph explains the same thing just in a clear and correct way (except that it also has a sm

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: All done. -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue11647] function decorated with a context manager can only be invoked once

2011-03-22 Thread Nick Coghlan
Nick Coghlan added the comment: On Wed, Mar 23, 2011 at 12:04 PM, Antoine Pitrou wrote: > Clearly there is a problem in the API or its implementation, as in a function > decorated with a context manager can only be invoked once! This isn't good... The problem stems from a fundamentally bad ca

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: Committed with small wording changes and more docs. Thank you, and good luck for cpythonv! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57657393ceaf by Éric Araujo in branch '3.1': Fix obscure set crashers (#8420). Backport of d56b3cafb1e6, reviewed by Raymond. http://hg.python.org/cpython/rev/57657393ceaf -- nosy: +python-dev status: pending -> open

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset a364719e400a by Éric Araujo in branch 'default': Do not touch sys.path when site is imported and python was started with -S. http://hg.python.org/cpython/rev/a364719e400a -- nosy: +python-dev ___ Python

[issue11634] misleading comment on PyBytes_FromStringAndSize

2011-03-22 Thread Eli Bendersky
Eli Bendersky added the comment: Yes it does, but the comment says something about "parameter 'size'" which is clearly absent from the function signature of PyBytes_FromString. -- ___ Python tracker _

[issue11648] openlog()s 'logopt' keyword broken in syslog module

2011-03-22 Thread Tim Bielawa
Tim Bielawa added the comment: Classification update. -- versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Pyt

[issue11648] openlog()s 'logopt' keyword broken in syslog module

2011-03-22 Thread Tim Bielawa
Tim Bielawa added the comment: Trivial though it may be, the attached script demonstrates how to reproduce the bug described. -- Added file: http://bugs.python.org/file21353/syslogtest-pid.py ___ Python tracker _

[issue11648] openlog()s 'logopt' keyword broken in syslog module

2011-03-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.smith, jafo, pitrou, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11648] openlog()s 'logopt' keyword broken in syslog module

2011-03-22 Thread Tim Bielawa
New submission from Tim Bielawa : Issue 8451 unintentionally introduced a bug into the openlog() function in the syslog module. syslog.openlog() as documented [1] is defined as: syslog.openlog([ident[, logopt[, facility]]]). I believe this is caused by the patch for issue 8451 redefining the

[issue7391] Re-title the "Using Backslash to Continue Statements" anti-idiom

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: I also remember a discussion about updating this document with items from Code Like a Pythonista, so there’s value in restoring and updating it IMO. It’s not hopeless like the defunct Misc/cheatsheet. -- ___ Python t

[issue11627] segfault raising an arbitrary object as an exception

2011-03-22 Thread Andreas Stührk
Andreas Stührk added the comment: Another thing that can happen is that `__new__()` does return an instance of BaseException, but that the return value is not an instance of the expected class. Example: class MyException(OSError): def __new__(*args): return Exception() try:

[issue11635] concurrent.futures uses polling

2011-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I would suggest that you base your patch on 3.3/default. Well, since the module is new, I think it would be nice to fix such quirks in the bugfix branch as well. So, following the recommended workflow, I've started with a 3.2 patch. -- _

[issue7391] Re-title the "Using Backslash to Continue Statements" anti-idiom

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

[issue11635] concurrent.futures uses polling

2011-03-22 Thread Brian Quinlan
Brian Quinlan added the comment: I would suggest that you base your patch on 3.3/default. -- ___ Python tracker ___ ___ Python-bugs-l

[issue7391] Re-title the "Using Backslash to Continue Statements" anti-idiom

2011-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Several people have spoken in favour of this document and you are the only one who finds it useless, apparently (*). I think it should therefore be restored in the repository. (*) see http://mail.python.org/pipermail/python-dev/2011-March/109513.html ---

[issue11647] function decorated with a context manager can only be invoked once

2011-03-22 Thread Antoine Pitrou
New submission from Antoine Pitrou : If you add the following test to text_contextlib: diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py --- a/Lib/test/test_contextlib.py +++ b/Lib/test/test_contextlib.py @@ -363,6 +363,8 @@ class TestContextDecorator(unittest.Test

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: The dance around imp.cache_from_source looks necessary, judging by Georg’s http://hg.python.org/cpython/rev/713c6b6ca5ce/#l8.53 -- nosy: +georg.brandl ___ Python tracker ___

[issue10550] Windows: leak in test_concurrent_futures

2011-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you try to see if the refleak is still there? I can't reproduce on my Windows 7 VM. -- nosy: +pitrou ___ Python tracker ___ __

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: Used wrong number in the commit message :/ Fixed in 24179f82b7de for 2.7. -- status: open -> pending ___ Python tracker ___ __

[issue4420] PyUnicode_Decode is not checked for NULL return value

2011-03-22 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg131834 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4420] PyUnicode_Decode is not checked for NULL return value

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 24179f82b7de by Éric Araujo in branch '2.7': Fix obscure set crashers (#4420). Backport of d56b3cafb1e6, reviewed by Raymond. http://hg.python.org/cpython/rev/24179f82b7de -- nosy: +python-dev ___ Pyth

[issue11635] concurrent.futures uses polling

2011-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: (patch is for 3.2, by the way. Perhaps this should only be fixed in default?) -- ___ Python tracker ___ ___

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Looks good. Can this be closed now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11635] concurrent.futures uses polling

2011-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, here is a patch. Summary: - leave a minimal amount of polling (every 600 seconds) to avoid blocking forever if there's a bug (shouldn't happen of course, but who knows? especially with multiprocessing) - when wanting to wakeup a worker, put None in its rec

[issue10771] descriptor protocol documentation has two different definitions of "owner" class

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset f28565867d22 by Raymond Hettinger in branch '2.7': Issue #10771: Clarify that descriptors get used in an *owner* class or one of its parents. http://hg.python.org/cpython/rev/f28565867d22 -- ___ Python

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file21350/ebe5760afa08.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue11644] 2to3 documentation should mention that the sample file requires 2.6 or better

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: http://docs.python.org/release/3.2/whatsnew/3.0#porting-to-python-3-0 -- resolution: -> out of date status: open -> pending ___ Python tracker __

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : Added file: http://bugs.python.org/file21350/ebe5760afa08.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11644] 2to3 documentation should mention that the sample file requires 2.6 or better

2011-03-22 Thread Eric Smith
Eric Smith added the comment: I'll agree that the documentation could mention that. Reopening. Patches accepted. -- components: -2to3 (2.x to 3.0 conversion tool) resolution: invalid -> stage: committed/rejected -> status: closed -> open title: 2to3 example.py is not a Python 2.x fi

[issue11644] 2to3 example.py is not a Python 2.x file

2011-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: I can't find where it is recommended to move code to Python 2.7 before porting. -- ___ Python tracker ___ __

[issue10610] Correct the float(), int() and complex() documentation

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed versions: +Python 2.7, Python 3.1, Python 3.3 ___ Python tracker ___ __

[issue10610] Correct the float(), int() and complex() documentation

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6853b480e388 by Raymond Hettinger in branch '3.1': Issue #10610: Document that int(), float(), and complex() accept numeric literals with the Nd property. http://hg.python.org/cpython/rev/6853b480e388 New changeset a1e685ceb3bd by Raymond Hettinge

[issue11645] "Expand 10 after" on rietveld shows a duplicate line

2011-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: I can reproduce it here (Chrome 9, and Iceweasel 3.5.16); line 1431 gets duplicated. It's fine to report it here; we are behind in the code base, so I'd like to investigate an upgrade first. -- status: pending -> open __

[issue11644] 2to3 example.py is not a Python 2.x file

2011-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: Then the docs should say that this is the 2.6 code, not 2.x -- ___ Python tracker ___ ___ Python

[issue11644] 2to3 example.py is not a Python 2.x file

2011-03-22 Thread Eric Smith
Eric Smith added the comment: Plus, it's recommended to move to 2.6 or 2.7 before trying to port to 3.x. -- nosy: +eric.smith ___ Python tracker ___

[issue11645] "Expand 10 after" on rietveld shows a duplicate line

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report, but I can’t reproduce (Iceweasel 3.5). Anyway, this would be a bug to report to the Rietveld project, not something specific to our installation. -- nosy: +eric.araujo, loewis resolution: -> invalid stage: -> committed/rejected

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: Here is a part of my 3.1 patch: +PyObject *key = entry->key; +long hash = entry->hash; assert(so->fill <= so->mask); /* at least one empty slot */ n_used = so->used; -Py_INCREF(entry->key); -if (set_insert_key(so, entry->key, (long) ent

[issue11646] 2to3: msvcrt.(get|put)ch -> (get|put)wch

2011-03-22 Thread anatoly techtonik
New submission from anatoly techtonik : msvcrt function calls need to be renamed to unicode equivalents, because now they return bytes, which doesn't support string methods used to process the output (e.g. lower()). http://docs.python.org/py3k/library/msvcrt.html msvcrt.getch() -> msvcrt.getw

[issue11645] Pypi reviews "Expand 10 after" shows a duplicate line

2011-03-22 Thread Yuval Greenfield
New submission from Yuval Greenfield : Just try and review any patch diff, eg http://bugs.python.org/review/6818/diff/2113/4194 and click "Expand 10 after" on either side (top or bottom) of the diff chunk. Notice that a duplicate line is introduced. -- messages: 131819 nosy: ubershmek

[issue11643] Use |version| instead of X.Y in the doc

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

[issue11644] 2to3 example.py is not a Python 2.x file

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: Your title is untrue: This example code from the 2.6 docs is valid 2.6 code. I can’t find a problem with that. -- nosy: +eric.araujo resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Pyt

[issue11644] 2to3 example.py is not a Python 2.x file

2011-03-22 Thread anatoly techtonik
Changes by anatoly techtonik : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___ P

[issue11644] 2to3 example.py is not a Python 2.x file

2011-03-22 Thread anatoly techtonik
New submission from anatoly techtonik : http://docs.python.org/library/2to3.html#using-2to3 contains an example.py sample which is claimed to be Python 2.x source, but that's not true: def greet(name): print "Hello, {0}!".format(name) print "What's your name?" name = raw_input() greet(name)

[issue11643] Use |version| instead of X.Y in the doc

2011-03-22 Thread Éric Araujo
New submission from Éric Araujo : Some files like site.rst use “X.Y” to refer to the Python version, but Sphinx helpfully provides a |version| construct that can be replaced by the current version at build time. -- assignee: docs@python components: Documentation keywords: easy messages

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: docs@python -> components: +Interpreter Core -Documentation, Library (Lib) keywords: +3.2regression nosy: +georg.brandl -docs@python ___ Python tracker ___

[issue11642] regression: input() doesn't strip a trailing newline on Windows

2011-03-22 Thread Brian Curtin
Brian Curtin added the comment: 3.2.1 will have the fix. -- nosy: +brian.curtin resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue11641] raw_input() -> input() security issue

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: I find http://docs.python.org/dev/library/functions#input clear enough. Remember that 3.x is a clean cut, it does not carry information for 2.x users; those have enough information with http://docs.python.org/py3k/whatsnew/3.0#builtins IMO. -- componen

[issue11642] regression: input() doesn't strip a trailing newline on Windows

2011-03-22 Thread Andreas Stührk
Andreas Stührk added the comment: This is a duplicate of issue #11272. -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list

[issue11642] regression: input() doesn't strip a trailing newline on Windows

2011-03-22 Thread anatoly techtonik
New submission from anatoly techtonik : Docs say that input() should strip trailing newline, but on Windows it doesn't happen. http://docs.python.org/py3k/library/functions.html#input Python 2.x Windows >>> raw_input() xyz 'xyz' >>> Python 3.2 Windows >>> input() zyx 'zyx\r' >>> -- c

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > Python 3.2, WinXP, IDLE edit window, F5 Run: > 'Processing ...' appears immediately, 'Done' 3 sec later. Terry, IDLE is completely different, its sys.stdout completely bypasses the new io stack, and there is no buffering... -- ___

[issue10771] descriptor protocol documentation has two different definitions of "owner" class

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ __

[issue11641] raw_input() -> input() security issue

2011-03-22 Thread Brian Curtin
Changes by Brian Curtin : -- type: security -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10771] descriptor protocol documentation has two different definitions of "owner" class

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset b31606ea7ce3 by Raymond Hettinger in branch '3.1': Issue #10771: Clarify that descriptors get used in an *owner* class or one of its parents. http://hg.python.org/cpython/rev/b31606ea7ce3 New changeset 4dfbf8c8f4e5 by Raymond Hettinger in branch '

[issue11641] raw_input() -> input() security issue

2011-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: Sorry. I've incidentally run converted file with Python 2.x. To avoid future confusions, should there be a reference in 2to3 docs to the behavior change for input() function? >From http://docs.python.org/library/2to3#2to3fixer-raw_input to >http://docs.py

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The attached patch calls "if file.isatty(): file.flush()" at the end of the print function: - only when an "end" argument was specified - errors in file.isatty() are ignored (and then no flush occurs) -- keywords: +patch Added file: http://bugs.p

[issue11641] raw_input() -> input() security issue

2011-03-22 Thread Eric Smith
Changes by Eric Smith : -- resolution: -> invalid status: open -> closed type: security -> ___ Python tracker ___ ___ Python-bugs-li

[issue11641] raw_input() -> input() security issue

2011-03-22 Thread Brian Curtin
Brian Curtin added the comment: This is incorrect. Please look at Python/bltinmodule.c for how input() is implemented - there is no eval involved. -- nosy: +brian.curtin ___ Python tracker ___

[issue11641] raw_input() -> input() security issue

2011-03-22 Thread Andreas Stührk
Andreas Stührk added the comment: `input()` in Python 3 is the same as `raw_input()` in Python 2. It does not evaluate the input as Python code. -- nosy: +Trundle ___ Python tracker __

[issue11641] raw_input() -> input() security issue

2011-03-22 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file21348/python3-security.py ___ Python tracker ___ ___ Python-bugs-list ma

[issue11641] raw_input() -> input() security issue

2011-03-22 Thread anatoly techtonik
New submission from anatoly techtonik : 2to3 converts raw_input() calls into input(), and input() runs all user data through eval(). This opens a hole in previously secure Python2.x applications. Is the author of this change aware of the issue? -- components: 2to3 (2.x to 3.0 conversio

[issue10787] [random.gammavariate] Add the expression of the distribution in a comprehensive form for random.gammavariate

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sure, go ahead and apply to 3.1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10787] [random.gammavariate] Add the expression of the distribution in a comprehensive form for random.gammavariate

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset e880020e7e6a by Raymond Hettinger in branch '3.1': Issue 10787: Document the probability density function for random.gammavariate. http://hg.python.org/cpython/rev/e880020e7e6a New changeset f882b284d260 by Raymond Hettinger in branch '3.2': Issue

[issue10787] [random.gammavariate] Add the expression of the distribution in a comprehensive form for random.gammavariate

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 42816be02b9b by Raymond Hettinger in branch '2.7': Issue 10787: Document the probability density function for random.gammavariate. http://hg.python.org/cpython/rev/42816be02b9b -- nosy: +python-dev ___ P

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: Is it a candidate for 3.1 too? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python 3.2, WinXP, IDLE edit window, F5 Run: 'Processing ...' appears immediately, 'Done' 3 sec later. The only difference between printtest2/3 is where 'Done' appears. Behavior is same when pasting into interactive interpreter -- has to be since the first two

[issue11627] segfault raising an arbitrary object as an exception

2011-03-22 Thread Andreas Stührk
Changes by Andreas Stührk : Added file: http://bugs.python.org/file21347/issue11627_py27.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue11640] Shelve references globals in its __del__ method

2011-03-22 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11627] segfault raising an arbitrary object as an exception

2011-03-22 Thread Andreas Stührk
Andreas Stührk added the comment: Thanks Nick, that is indeed much nicer. I updated the patch. I also created a patch for 2.7, in case anyone thinks it's a good idea to fix it there, too. -- Added file: http://bugs.python.org/file21346/issue11627_3.patch _

[issue10988] Descriptor protocol documentation for super bindings is incorrect

2011-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed. Thanks for the bug report. -- resolution: -> fixed status: open -> closed versions: +Python 3.3 -Python 2.5, Python 2.6 ___ Python tracker _

[issue10988] Descriptor protocol documentation for super bindings is incorrect

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e3c46a3dce8 by Raymond Hettinger in branch '3.1': Issue 10988: fix description of super's descriptor call. http://hg.python.org/cpython/rev/3e3c46a3dce8 New changeset 40698c68a32c by Raymond Hettinger in branch '3.2': Issue 10988: fix description

[issue11629] Reference implementation for PEP 397

2011-03-22 Thread Craig McQueen
Changes by Craig McQueen : -- nosy: +cmcqueen1975 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10988] Descriptor protocol documentation for super bindings is incorrect

2011-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50cc60852a76 by Raymond Hettinger in branch '2.7': Issue 10988: fix description of super's descriptor call. http://hg.python.org/cpython/rev/50cc60852a76 -- nosy: +python-dev ___ Python tracker

[issue1479611] speed up function calls

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-

[issue10225] Fix doctest runable examples in python manual

2011-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: These are fine except for the changes to collections.py. Please leave the deployed code for named tuple as-is. Doctest may have issues with trailing whitespace, but that is doctest's problem, not named tuple's. -- assignee: rhettinger -> belopols

[issue11640] Shelve references globals in its __del__ method

2011-03-22 Thread Peter Davies
New submission from Peter Davies : Shelf.__setitem__ (which is called from __del__ when writeback is enabled) references globals. This was causing exceptions on interpreter shutdown (due to another exception) for me. I have attached a patch which stores the relevant globals in the Shelf objec

[issue11626] Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT

2011-03-22 Thread Rainer Schaaf
Rainer Schaaf added the comment: OK now I got it. Yes for others this would be "very" helpful. Specially as the Py_LIMITED_API promises to solve the changing API issue on windows and Parse_Tuple is one of the main API's used in extensions this would be helpful I guess. I personally decided

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-22 Thread Santoso Wijaya
New submission from Santoso Wijaya : For example, the function `fileConfig` is listed in the documentation [1] as `logging.fileConfig`. This was a surprise for me when trying it gave me an AttributeError. Only after reading the source code that I found out this function is defined in the `logg

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Mar 22, 2011 at 5:29 PM, Éric Araujo wrote: .. >> I would rather keep code and documentation changes separate. > I don’t follow; my comment about bad phrasing was about the text added to the > docstrings. The text added to docstrings was copied

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: The revised patch looks good. Please make the same change for set_add_entry. If the tests run, go ahead and apply. -- ___ Python tracker ___

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: > I would rather keep code and documentation changes separate. I don’t follow; my comment about bad phrasing was about the text added to the docstrings. > Not that we have any strict docstrings conventions. :-) Not enforced, but still useful to follow: PEP 257.

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread RonnyPfannschmidt
Changes by RonnyPfannschmidt : Added file: http://bugs.python.org/file21344/hgdistver.py ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10291] Clean-up turtledemo in-package documentation

2011-03-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Mar 22, 2011 at 5:15 PM, Éric Araujo wrote: >.. > The patch contains one unrelated code change. > Yes, I noticed that, but it may not be that unrelated. Of course the two changes need to be committed separately, but the pop-under issue (issue115

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread RonnyPfannschmidt
RonnyPfannschmidt added the comment: actually its enough to have the version_hook set the version to u'0.0' -- ___ Python tracker ___ ___

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread RonnyPfannschmidt
Changes by RonnyPfannschmidt : Added file: http://bugs.python.org/file21343/setup.cfg ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread RonnyPfannschmidt
RonnyPfannschmidt added the comment: here the file that passed in the unicode string via hook note that all of the passed characters are actually ascii -- Added file: http://bugs.python.org/file21342/hgdistver.py ___ Python tracker

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: BTW, set_add_entry still uses entry->hash. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: I assume you meant “hash = entry->hash”, not “entry->key”. Updated patch attached. -- Added file: http://bugs.python.org/file21341/fix-set-crashers-2.7.diff ___ Python tracker _

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread Éric Araujo
Éric Araujo added the comment: What is the version? Can you also include the setup.cfg file? -- ___ Python tracker ___ ___ Python-bu

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-03-22 Thread RonnyPfannschmidt
New submission from RonnyPfannschmidt : i passed in a unicode value as version by accident, resulted in: Traceback (most recent call last): File "/home/ronny/.local/venvs/clean/bin/pysetup", line 7, in execfile(__file__) File "/home/ronny/Projects/distutils2/distutils2/pysetup", line 5,

  1   2   >