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

2010-07-04 Thread anatoly techtonik
anatoly techtonik added the comment: For me only http://www.python.org/doc/3.1.1/ gives 403. Seems like all other links should be updated from http://www.python.org/doc/2.3.2/ to http://docs.python.org/release/2.3.2/ format to avoid additional redirect. -- nosy: +techtonik _

[issue9162] License for multiprocessing files

2010-07-04 Thread Ask Solem
Changes by Ask Solem : -- nosy: +asksol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue9162] License for multiprocessing files

2010-07-04 Thread Michael Fladischer
New submission from Michael Fladischer : The files in Lib/multiprocessing (except __init__.py) are referring to their license by point to a nonexistent file called COPYING.txt. This possibly needs clarification as if this file is missing or the license is to be found somewhere else. -

[issue3964] quiet the freeze makefile

2010-07-04 Thread Mark Lawrence
Mark Lawrence added the comment: Assuming the patch works (I don't do makefiles) would anyone use this yes or no? -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue3802] smtpd.py __getaddr insufficient handling

2010-07-04 Thread Mark Lawrence
Mark Lawrence added the comment: Note there is a patch inline, not sure if a doc patch is needed for this. -- keywords: +patch nosy: +BreamoreBoy stage: -> unit test needed type: -> behavior ___ Python tracker __

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-04 Thread Craig McQueen
Craig McQueen added the comment: My program currently uses ASCII options, so I can change the Unicode string parameter to byte string. The optparse module still seems to match the option against the incoming Unicode argv, I guess by implicit string conversion. --

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Library (Lib), Unicode nosy: +ezio.melotti stage: -> unit test needed type: -> behavior ___ Python tracker ___

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

2010-07-04 Thread Éric Araujo
Éric Araujo added the comment: Sorry if I was unclear. Out of the four points I listed, this patch only did the refactoring (4). I have another patch to add and use a check_pep7 function, I’ll refresh it and post it. -- ___ Python tracker

[issue3268] Cleanup of tp_basicsize inheritance

2010-07-04 Thread Mark Lawrence
Mark Lawrence added the comment: This is a tiny patch against typeobject.c, could somebody please run with it? -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue9161] add_option in optparse no longer accepts unicode string

2010-07-04 Thread Craig McQueen
New submission from Craig McQueen : Working in Japan, I find it very helpful to be able to read full Unicode arguments in Python 2.x under Windows 2000/XP. So I am using the following: http://stackoverflow.com/questions/846850/how-to-read-unicode-characters-from-command-line-arguments-in-python

[issue3155] Python should expose a pthread_cond_timedwait API for threading

2010-07-04 Thread Mark Lawrence
Mark Lawrence added the comment: Is anybody with knowledge of the threading module likely to pick this one up? -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue2675] Curses terminal resize problems when Python is in interactive mode

2010-07-04 Thread Mark Lawrence
Mark Lawrence added the comment: Could somebody witht a nix box try this out, I'd do it myself if I had such a beast. -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue9149] colorsys.py function rgb_to_hls

2010-07-04 Thread David Hood
David Hood added the comment: And Mark would seem to be entirely correct in this. Colour me embarrassed for missing that one. -- status: open -> closed ___ Python tracker ___ ___

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

2010-07-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17864/issue5288.diff ___ Python tracker ___ ___ Python-bugs-list mai

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

2010-07-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file17865/issue5288.diff ___ Python tracker ___ ___ Python-bugs-list maili

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

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Hmm, it looks like patchcheck does not fix trailing whitespace in c files: $ grep ' $' Modules/datetimemodule.c| cat -ve $ GET_TD_DAYS(offset1) * 86400 - $ Py_DECREF(offset);$ if ((offset

[issue4679] Fork + shelve causes shelve corruption and backtrace

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Sorry, but I don't understand the point that you are trying to make. sq_dict is indeed considered for inclusion in python: see issue 3783. For this issue, we need a confirmation that the problem is present in the current version. -- _

[issue4679] Fork + shelve causes shelve corruption and backtrace

2010-07-04 Thread Alex Roper
Alex Roper added the comment: I've just been using the sq_dict module, which is a drop-in replacement for shelve written using sqlite3. BDB is a pretty squirraly piece of software in my experience. It may or may not be stable on it's own, but its APIs are pretty poorly documented and progra

[issue8470] Let cmd.cmd.intro be unicode friendly

2010-07-04 Thread Shashwat Anand
Shashwat Anand added the comment: Python 2.7 is already released. This is a non-issue on py3.x. Should this issue be closed or we work on it. -- ___ Python tracker ___ _

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

2010-07-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17857/issue5288.diff ___ Python tracker ___ ___ Python-bugs-list mai

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

2010-07-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: +patch Added file: http://bugs.python.org/file17864/issue5288.diff ___ Python tracker ___ __

[issue1170] shlex have problems with parsing unicode

2010-07-04 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1170] shlex have problems with parsing unicode

2010-07-04 Thread R. David Murray
R. David Murray added the comment: shlex may use unicode in py3k, but since the file still starts with a latin-1 coding cookie and the posix logic hasn't been changed, I suspect that it does not work correctly (ie: does not correctly identify word characters, per msg55969). It's too late for

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

2010-07-04 Thread Ezio Melotti
Ezio Melotti added the comment: Also most of the links in http://www.python.org/doc/versions/ don't work. -- nosy: +ezio.melotti priority: normal -> high versions: +Python 2.5 ___ Python tracker ___

[issue9158] PyArg_ParseTuple y* documentation is incorrect

2010-07-04 Thread STINNER Victor
STINNER Victor added the comment: y* and z* result is a Py_buffer, but in C you have to pass a reference to the result variable using &result. Full example: static PyObject * getargs_y_star(PyObject *self, PyObject *args) { Py_buffer buffer; PyObject *bytes; if (!PyArg_ParseTuple(a

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

[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
Changes by Demur Rumed : Removed file: http://bugs.python.org/file17859/cmpoprotdup.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

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

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

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

[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

[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

[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

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

[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

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

[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

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

[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

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

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

[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

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

[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

[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

[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

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

[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 Demur Rumed
Changes by Demur Rumed : -- title: Reserve COMPARE_OP for RichComparisons -> Reserve COMPARE_OP for rich comparisons ___ 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

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

[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

[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

[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

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

[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

[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). -- __

[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

[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

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

[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

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

[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

[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

[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

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

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

[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

[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

[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

[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

[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

[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

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

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

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

[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

[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

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

[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
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

[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

[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

  1   2   >