[issue9086] Wrong linking terminology in windows FAQ

2010-07-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: I agree with John: this paragraph is technically incorrect. See http://msdn.microsoft.com/en-us/library/ms681914%28v=VS.85%29.aspx for an "official" definition of the relevant terms. I vaguely recall objecting to that text when it got added, but in the disc

[issue7673] audioop: check that length is a multiple of the size

2010-07-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems you introduced a reference leak, Victor. http://mail.python.org/pipermail/python-checkins/2010-July/094756.html -- priority: release blocker -> high resolution: fixed -> accepted status: closed -> open ___ P

[issue7673] audioop: check that length is a multiple of the size

2010-07-04 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r82527 (py3k), r82528 (release31-maint). -- status: open -> closed ___ Python tracker ___ _

[issue4640] optparse doesn’t disallow adding one-da sh long options (“-option”)

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: David committed a unit test in r82233. Who wants to propose a patch now? -- resolution: -> accepted stage: unit test needed -> needs patch ___ Python tracker

[issue9145] test_coercion fails in refleak runs

2010-07-04 Thread Florent Xicluna
Changes by Florent Xicluna : -- assignee: -> flox components: -Library (Lib) resolution: -> accepted stage: -> needs patch ___ Python tracker ___ _

[issue5672] Implement a way to change the python process name

2010-07-04 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: Hello everybody, I've finished porting the module to Python 3, so I think it's a good starting point for considering its inclusion into the stdlib. The source is already out; tomorrow I'll test for regressions on mac osx and release the package. I'm not go

[issue9012] Separate compilation of time and datetime modules

2010-07-04 Thread Matthias Klose
Matthias Klose added the comment: this breaks the build if the time and datetime extensions are built statically into the python interpreter. The build fails with a link error; adding the _time extension to Modules/Setup.dist @@ -160,6 +160,7 @@ #cmath cmathmodule.c _math.c # -lm # complex

[issue9012] Separate compilation of time and datetime modules

2010-07-04 Thread Matthias Klose
Changes by Matthias Klose : -- resolution: fixed -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9012] Separate compilation of time and datetime modules

2010-07-04 Thread Matthias Klose
Matthias Klose added the comment: please find attached a patch to build as a statically linked extension, registering the empty _time module. -- Added file: http://bugs.python.org/file17853/time.diff ___ Python tracker

[issue4640] optparse doesn’t disallow adding one-da sh long options (“-option”)

2010-07-04 Thread R. David Murray
R. David Murray added the comment: I didn't commit a unit test for the revised subject, my unit test was for the previous misunderstood diagnosis. So a unit test for disallowing single dash long options in add_option is still needed. Note that this appears (at least on a quick test) to apply

[issue8910] Write a text file explaining why Lib/test/data exists

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: Benjamin, is it too late? -- nosy: +benjamin.peterson versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___

[issue7829] dis module documentation gives no indication of the dangers of bytecode inspection

2010-07-04 Thread Éric Araujo
Changes by Éric Araujo : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9012] Separate compilation of time and datetime modules

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: _time.c is not supposed to be compiled into an extension. It is similar to _math.c - if you add a line _math _math.c to Setup, you get a similar compile error. What needs to be done, however, is to add _time.c to time and datetime lines. See issue901

[issue9145] test_coercion fails in refleak runs

2010-07-04 Thread Florent Xicluna
Florent Xicluna added the comment: Fixed with r82529 -- resolution: accepted -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue9012] Separate compilation of time and datetime modules

2010-07-04 Thread Matthias Klose
Matthias Klose added the comment: doesn't work: ranlib libpython3.2.a Modules/_time.o: In function `_PyTime_DoubleToTimet': /scratch/packages/python/3.2/python3.2-3.2~~20100704/build-shared/../Modules/_time.c:11: multiple definition of `_PyTime_DoubleToTimet' Modules/_time.o:/s

[issue9012] Separate compilation of time and datetime modules

2010-07-04 Thread Mark Dickinson
Mark Dickinson added the comment: Matthias, does building both the math and cmath modules statically into the interpreter fail in a similar manner? -- ___ Python tracker ___ ___

[issue8892] 2to3 fails with assertion failure on "from itertools import *"

2010-07-04 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> benjamin.peterson nosy: +benjamin.peterson stage: -> unit test needed ___ Python tracker ___ ___

[issue1506122] Add "compose" function to the functools

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: Gregory, any update on this? Maybe you can poll python-ideas. Collin, any download stats and feedback on your package? -- nosy: +merwok ___ Python tracker

[issue9012] Separate compilation of time and datetime modules

2010-07-04 Thread Matthias Klose
Matthias Klose added the comment: yes, same issue with math/cmath. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9012] Separate compilation of time and datetime modules

2010-07-04 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks. Looks like we need a general solution to the problem of shared (non-module) dependencies in modules. So all that's needed is a way to stop _time.o showing up twice in MODOBJS in the Makefile, right? (For some reason, ranlib on OS X doesn't seem to h

[issue8472] itertools.filterfalse() function missing

2010-07-04 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9141] Allow objects to decide if they can be collected by GC

2010-07-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I don't understand the tp_del / tp_dealloc argument here. This is really not the concern of gc. Gc only goes and finds unreachable objects, and if they are deemend collectable, makes them go away by clearing their references. GC only cares that durin

[issue9153] Run tests and demos as part of the test suite

2010-07-04 Thread Éric Araujo
New submission from Éric Araujo : I propose than tests and demos be run during the test suite, as a sanity check to prevent them getting badly out of sync (see “Signs of neglect thread?” starting at http://mail.python.org/pipermail/python-dev/2010-June/101092.html) Is this a good idea? --

[issue9153] Run tests and demos as part of the test suite

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: I propose that tests and demos be run during the test suite, as a sanity check to prevent them from getting badly out of sync (see “Signs of neglect thread?” starting at http://mail.python.org/pipermail/python-dev/2010-June/101092.html) Is this a good idea? ---

[issue9153] Run tests and demos as part of the test suite

2010-07-04 Thread Éric Araujo
Changes by Éric Araujo : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/optio

[issue9141] Allow objects to decide if they can be collected by GC

2010-07-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > GC only cares that during the final release of any objects in a > reference cycle, no non-trivial code may run (for various technical > reasons). So, objects deemed "sensitive" in this way, are left alone > (and put in gc.garbage instead). Which is really th

[issue8892] 2to3 fails with assertion failure on "from itertools import *"

2010-07-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r82530. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue9149] colorsys.py function rgb_to_hls

2010-07-04 Thread Mark Dickinson
Mark Dickinson added the comment: I think the arguments to rgb_to_hls are supposed to be floats in the range [0.0, 1.0]. -- nosy: +mark.dickinson ___ Python tracker ___

[issue9128] Parser module fails to validate class decorators correctly.

2010-07-04 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9152] Dead code in datetime module

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r82533. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue9128] Parser module fails to validate class decorators correctly.

2010-07-04 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r82532 (release27-maint) and r82534 (release26-maint). -- versions: -Python 2.6, Python 2.7 ___ Python tracker ___ ___

[issue7582] Use ISO timestamp in diff.py

2010-07-04 Thread Éric Araujo
Changes by Éric Araujo : -- title: [patch] diff.py to use iso timestamp -> Use ISO timestamp in diff.py ___ Python tracker ___ ___ Pyth

[issue444582] Finding programs in PATH, addition to os

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: Is a “which” function that useful, since we have os.exec* functions that search the PATH for us? It seems to me that wanting to know the exact path of an executable is a specialized need, and that adding this function would make beginners use it instead of the o

[issue9152] Dead code in datetime module

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Merged in 3.1 in r82536. -- stage: commit review -> committed/rejected versions: +Python 3.1 ___ Python tracker ___ __

[issue9128] Parser module fails to validate class decorators correctly.

2010-07-04 Thread Mark Dickinson
Mark Dickinson added the comment: and in r82537 (py3k), r82539 (release31-maint). -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue9153] Run tests and demos as part of the test suite

2010-07-04 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +holdenweb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7962] Demo and Tools need to be tested and pruned

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: I’m making this a meta-bug to record the evaluation of demos and tools, in followup with the thread “Signs of neglect?” started on http://mail.python.org/pipermail/python-dev/2010-June/101092.html. Some of them have already been adopted or deleted. Please add yo

[issue9083] At least some Tools utilities are still Python 2

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: I opened a bug about testing demos and tools: #9153. There was already a bug about cleaning up demos, #7962, so I’ve made it into a meta-bug for demos and tools, superseding this one. Steve, I’m adding you to the nosy there, but I don’t feel confident enough to

[issue9118] help() on a property descriptor launches interactive help

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r82547. I am leaving it open to decide whether this is a 3.1-backport candidate. Also I am not sure this is NEWS-worthy. Jack, Does this address your issue? Note that >>> help(X.foo.fset) will still not return help on X.foo, but it wi

[issue9141] Allow objects to decide if they can be collected by GC

2010-07-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I'm confused, Antoine. _I_ am not preferring anything. I am not modifying the way finalizers are called. I'm merely providing a way for objects to signal that they _have_ (or don't have) non-trivial finalizers. A finalizer _may_ be tp_del, but it ma

[issue9141] Allow objects to decide if they can be collected by GC

2010-07-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > A finalizer _may_ be tp_del, but it may be any code that is called as > part of tp_dealloc(). This patch allows an object to say: Calling > tp_dealloc() is currently unsafe from a gc.collect() run. Well, I don't know what you mean. tp_dealloc should always

[issue9153] Run tests and demos as part of the test suite

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Many demos already include a self-test: $ grep '^def test(' Demo/*/*.py Demo/classes/Complex.py:def test(): Demo/classes/Dates.py:def test(firstyear, lastyear): Demo/classes/Range.py:def test(): Demo/classes/Vec.py:def test(): Demo/parser/test_parser.py:d

[issue7962] Demo and Tools need to be tested and pruned

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I fixed Dates.py. See issue9151. I also committed a minimal fix for Complex.py in r82524. -- dependencies: +Demo/classes/Dates.py does not work in 3.x nosy: +belopolsky ___ Python tracker

[issue8472] itertools.filterfalse() function missing

2010-07-04 Thread Georg Brandl
Georg Brandl added the comment: Thanks, applied the suggestion in r82548. -- status: open -> closed ___ Python tracker ___ ___ Python-

[issue7962] Demo and Tools need to be tested and pruned

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I fixed Rev.py in r82550, but I don't think it is worth keeping in the current form. Maybe it can be replaced with a pure python reimplementation of builtins.reversed. Note that slicing does not work for Rev: >>> r = Rev([1,2,3]) >>> r[:] Traceback (

[issue7962] Demo and Tools need to be tested and pruned

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Fixed Range.py in r82551. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue9141] Allow objects to decide if they can be collected by GC

2010-07-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: tp_del() is generally invoked by tp_dealloc(). See for example typeobject.c:849. gc.collect() never invokes tp_del() directy, that is left for the objects themselves (as part of tp_dealloc()) Now, gc already knows that if tp_del is present, it canno

[issue9151] Demo/classes/Dates.py does not work in 3.x

2010-07-04 Thread Éric Araujo
Changes by Éric Araujo : -- stage: patch review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue9151] Demo/classes/Dates.py does not work in 3.x

2010-07-04 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: accepted -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue9141] Allow objects to decide if they can be collected by GC

2010-07-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > All this patch does, is to generalize the mechanism already provided > for genobject.c (by PyGen_NeedsFinalizing()), to any object: Any > object can signal to gc that: a) it is ok to collect a cycle with me > in it, or b) no, it is unsafe to do so. With this

[issue7962] Demo and Tools need to be tested and pruned

2010-07-04 Thread Brian Curtin
Brian Curtin added the comment: I should note here that I fixed Demo/md5test/md5driver.py in r82351 (py3k) and r82352 (release31-maint). -- nosy: +brian.curtin ___ Python tracker __

[issue9118] help() on a property descriptor launches interactive help

2010-07-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: The doc says that help takes one optional arg: No arg: interactive help system String: interpret as name of something Any other object: help page for that object [by implication, multiple args: TypeError] Not returning help for None is a bug, so I say yes, back

[issue9153] Run tests and demos as part of the test suite

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: Yep, my idea was to add a really thin regrtest integration layer for these self-tests (which have no reason to move to Lib/tests, really), e.g. add a tests.test_demos_tools module that would import all these test functions and stuff them into a unittest test sui

[issue9130] Parser module fails on short relative imports

2010-07-04 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in revisions r82543, r82546, r82552, r82553, r82554. Leaving open because I'm suspicious that the parser module isn't handling relative imports with more than three dots correctly in py3k (since ... gets parsed as an ellipsis token). -- __

[issue9130] Parser module fails on short relative imports

2010-07-04 Thread Mark Dickinson
Mark Dickinson added the comment: Ellipsis token validation fixed in r82555 (py3k), r82556 (release31-maint). -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue9095] patchcheck should handle extraneous whitespace in .rst files

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: Please apply the refactor patch in #8912 -- dependencies: +`make patchcheck` should check the whitespace of .c/.h files versions: +Python 3.2 ___ Python tracker __

[issue8999] Add Mercurial support to patchcheck

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: > [...] using a simple "hg status" of the working copy will not do the right > thing I think all of these workflows share a step where you have edits in your working directory that are not in the working dir’s parent changeset. Thus, I argue that hg status is h

[issue9154] Parser module doesn't understand function annotations.

2010-07-04 Thread Mark Dickinson
New submission from Mark Dickinson : Python 3.2a0 (py3k:82529M, Jul 4 2010, 17:35:10) [GCC 4.2.1 (Apple Inc. build 5659)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import parser [38213 refs] >>> parser.sequence2st(parser.suite("def f(a:int) -> int: pas

[issue9132] Documentation for comparing dictionaries is out of date

2010-07-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: On the 'patch' keyword: I thought the same as you (only for diff) until yesterday morning when Brett Cannon specifically told me that I should also set it for in-message text patches. This was in the context of him having not noticed for months (until I pinge

[issue9096] importlib doesn't handle valid marshalled data with invalid semantics

2010-07-04 Thread Brett Cannon
Brett Cannon added the comment: This was fixed in r82523. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ _

[issue9155] Reserve COMPARE_OP for RichComparisons

2010-07-04 Thread Demur Rumed
New submission from Demur Rumed : Currently, COMPARE_OP is burdened by a needless, and unorthogonal, extra layer of indirection. I've modified it to only handle the rich comparison case, moving the other five cases to BINARY_IN, BINARY_NOT_IN, BINARY_IS, BINARY_IS_NOT, and BINARY_EXC_MATCH To

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-04 Thread Demur Rumed
Changes by Demur Rumed : -- title: Reserve COMPARE_OP for RichComparisons -> Reserve COMPARE_OP for rich comparisons ___ Python tracker ___ __

[issue9132] Documentation for comparing dictionaries is out of date

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the explanation of the patch keyword. Its description (click on “Keywords”) is indeed generic (“contains patch”), http://www.python.org/dev/patches/ should probably say it too. I don’t have enough knowledge to make a useful comment on the rest of your

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-04 Thread Mark Dickinson
Mark Dickinson added the comment: Any chance you could regenerate the patch without all the unnecessary whitespace changes? It's kinda hard to read right now. -- nosy: +mark.dickinson ___ Python tracker _

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-04 Thread Demur Rumed
Changes by Demur Rumed : Added file: http://bugs.python.org/file17856/cmpoppatch2.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a rough patch which removes timedelta -> int minutes -> timedelta round trips from utcoffset handling code. I think the result is an improvement, but needs more polishing. Mark, Do you think this is worth pursuing? I am not intending t

[issue834840] Unhelpful error message from cgi module

2010-07-04 Thread Mark Lawrence
Mark Lawrence added the comment: Could a CGI expert pick this up, failing that why not simply close it as opened nearely 7 years ago. -- nosy: +BreamoreBoy ___ Python tracker

[issue4727] pickle/copyreg doesn't support keyword only arguments in __new__

2010-07-04 Thread Mark Lawrence
Mark Lawrence added the comment: http://bugs.python.org/issue1398 has already been fixed and closed. http://bugs.python.org/issue4331 is still open and has seen activity as recently as 2010-02-23, so can this be closed or must it remain open? -- nosy: +BreamoreBoy

[issue4727] pickle/copyreg doesn't support keyword only arguments in __new__

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Please keep this open. This issue is separate from pickling partial objects. -- nosy: +belopolsky ___ Python tracker ___

[issue4727] pickle/copyreg doesn't support keyword only arguments in __new__

2010-07-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: -> needs patch versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Py

[issue4679] Fork + shelve causes shelve corruption and backtrace

2010-07-04 Thread Mark Lawrence
Mark Lawrence added the comment: Hi Alex, Looks like nothing will happen with this unless you do something yourself. -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue2830] Copy cgi.escape() to html

2010-07-04 Thread Mark Lawrence
Mark Lawrence added the comment: I'm guessing that this has simply slipped under the radar. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-07-04 Thread Brett Cannon
Brett Cannon added the comment: Committed in r82567. I also cleaned up the output slightly so that "N file(s)" pluralizes "file" properly based on N. Also now list what files have their whitespace fixed. -- ___ Python tracker

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-07-04 Thread Brett Cannon
Changes by Brett Cannon : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue4679] Fork + shelve causes shelve corruption and backtrace

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The wikisource file in the report is no longer available, but with latest wikisource and python 2.7, $ curl http://download.wikimedia.org/enwikisource/latest/enwikisource-latest-pages-articles.xml.bz2| bzip2 -cd | ./python.exe convert.py /tmp 8388608

[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-04 Thread Mark Lawrence
Mark Lawrence added the comment: I intended testing this but the patch file appears to have a dangling else at the bottom, or am I missing something? -- nosy: +BreamoreBoy ___ Python tracker __

[issue4968] Clarify inspect.is method docs

2010-07-04 Thread Mark Lawrence
Mark Lawrence added the comment: Has this issue simply slipped under the radar? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Pytho

[issue2830] Copy cgi.escape() to html

2010-07-04 Thread Brett Cannon
Brett Cannon added the comment: Yep since it is not a critical change. If someone came up with a patch to move the code and docs over, make cgi.escape use the moved code, and add a PendingDeprecationWarning then it would get done. -- keywords: +easy priority: normal -> low __

[issue2830] Copy cgi.escape() to html

2010-07-04 Thread Brett Cannon
Changes by Brett Cannon : -- versions: +Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5023] Segfault in datetime.time.strftime("%z")

2010-07-04 Thread Eric Wald
Eric Wald added the comment: Reproduced again in version 2.7rc2; I had thought that it went away, but it turns out that --with-pydebug hides the problem. Compiling GDB now. -- status: pending -> open versions: +Python 2.7 ___ Python tracker

[issue9132] Documentation for comparing dictionaries is out of date

2010-07-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I intentionally began my first post with "The RefMan section is 5.9. Comparisons." Look there, particularly the definition of comp_operator. In this context, I think 'order comparison' is pretty clearly a comparison with an order operator, '<' and '>'. But fi

[issue7829] dis module documentation gives no indication of the dangers of bytecode inspection

2010-07-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe Brett meant to leave this open until he finished it by backporting to 2.7 (which is now reopened for patches). Otherwise, it might get forgotten. Sidenote: this is the issue I referred to in #9132 re the 'patch' keyword. -- status: closed ->

[issue7829] dis module documentation gives no indication of the dangers of bytecode inspection

2010-07-04 Thread Brett Cannon
Brett Cannon added the comment: On Sun, Jul 4, 2010 at 17:01, Terry J. Reedy wrote: > I believe Brett meant to leave this open until he finished it by backporting > to 2.7 (which is now reopened for patches). Otherwise, it might get forgotten. Exactly right, Terry. -- _

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-04 Thread Demur Rumed
Demur Rumed added the comment: I've attached the original patch without whitespace, and am also including modifications to this portion of the interpreter which remove ROT_FOUR, DUP_TOPX while adding ROT_THREE_TWO, DUP_TOP_TWO, DUP_ROT_THREE. I've seen a 5% speed increase with timeit.Timer("a

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-04 Thread Demur Rumed
Demur Rumed added the comment: I've attached the original patch without whitespace, and am also including modifications to this portion of the interpreter which remove ROT_FOUR, DUP_TOPX while adding ROT_THREE_TWO, DUP_TOP_TWO, DUP_ROT_THREE. I've seen a 4% speed increase with timeit.Timer("a

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-04 Thread Demur Rumed
Changes by Demur Rumed : Removed file: http://bugs.python.org/file17859/cmpoprotdup.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9156] socket._fileobject: read raises AttributeError when closed in another thread

2010-07-04 Thread Mathias Panzenböck
New submission from Mathias Panzenböck : When you open a socket._fileobject through sock.makefile('rb') or similar and you read blocking in one thread and close the file object from another thread the reading thread gets an AttributeError. This is because the close method sets the underlying f

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-04 Thread Demur Rumed
Demur Rumed added the comment: Fixed regression in ROT_THREE_TWO and a missed DUP_TOP2 -> DUP_TOP_TWO. Now there are only the odd segfaults -- Added file: http://bugs.python.org/file17861/cmpoprotdup2.diff ___ Python tracker

[issue9157] Allow inspection of used decorators on a function

2010-07-04 Thread Mitar
New submission from Mitar : Sometimes it is useful to be able to check which decorators are already applied to a function, especially when you are constructing them dynamically. I am proposing that for all decorators in Python would be suggested that they maintain a list of used decorators on

[issue9136] RuntimeError when profiling Decimal

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: +try: +dc = DefaultContext +except NameError: +pass + +self.prec = dc.prec if prec is None else prec I don't quite understand the point of catching NameError here, but it looks like if it is caught, it will

[issue9158] PyArg_ParseTuple y* documentation is incorrect

2010-07-04 Thread Terrence Cole
New submission from Terrence Cole : The documented C type for y* should be [Py_buffer], not [Py_buffer *], as with the documentation for z* and the convention followed by the other types. I'm not sure what 'type' this issue should have. I've set it at 'crash' initially, since that's how the b

[issue9158] PyArg_ParseTuple y* documentation is incorrect

2010-07-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +haypo stage: -> patch review type: crash -> feature request ___ Python tracker ___ ___ Python-bugs

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-04 Thread Tim Peters
Tim Peters added the comment: > ... > Another is tzinfo attribute of time. With time t, > t.utcoffset() is kid of useless given that you > cannot subtract it from t Sure you can - but you have to write your code to do time arithmetic. The time implementation does so under the covers when two

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-04 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9159] asyncore.file_wrapper does not register its fd to socket_map

2010-07-04 Thread kimhyunkang
New submission from kimhyunkang : In current stable python 2.6, the test code below does nothing, which is inconsistent with other default dispatcher's behavior. import asyncore class test_reader(asyncore.file_wrapper) def writable(self): return False def handle_read(self):

[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-04 Thread Derek Morr
Derek Morr added the comment: You're right. My mistake when I made the patch. I've attached a new one without the trailing else -- Added file: http://bugs.python.org/file17863/smtplib.patch ___ Python tracker

[issue9159] asyncore.file_wrapper does not register its fd to socket_map

2010-07-04 Thread kimhyunkang
Changes by kimhyunkang : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9160] Documentation link of 3.2 not working at docs.python.org

2010-07-04 Thread Eli Bendersky
New submission from Eli Bendersky : This link: http://docs.python.org/dev/py3k/ Isn't working. I have always used it to see the latest documentation from 3.2, and it is linked in the left-hand side of the screen on docs.python.org as "Python 3.2 (in development)" under "Docs for other versions

[issue9160] Documentation link of 3.2 not working at docs.python.org

2010-07-04 Thread Eli Bendersky
Changes by Eli Bendersky : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

  1   2   >