[issue2693] IDLE doesn't work with Tk 8.5

2008-04-27 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > I wish I could be as cavalier about Tk 8.5. The last version of Tk 8.4 > just came out and it really shows its age, especially on Mac OS X, and > those are ~25% of our application's downloads. Still, why is that a problem to use it for ID

[issue2700] document PyNumber_ToBase

2008-04-27 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: You should mention that if base is none of 2, 8, 10, or 16, the output looks like "12#555" where 12 is the base. __ Tracker <[EMAIL PROTECTED]> _

[issue2702] pickling of large recursive structures crashes cPickle

2008-04-27 Thread Daniel Darabos
New submission from Daniel Darabos <[EMAIL PROTECTED]>: The documentation[1] says: Trying to pickle a highly recursive data structure may exceed the maximum recursion depth, a RuntimeError will be raised in this case. You can carefully raise this limit with sys.setrecursionlimit(). The li

[issue2480] eliminate recursion in pickling

2008-04-27 Thread Daniel Darabos
Daniel Darabos <[EMAIL PROTECTED]> added the comment: I have also described the crash, but it makes sense to handle it separately. So I have created issue 2702, and changed the title of this issue. -- title: pickling of large recursive structures fails -> eliminate recursion in pickling

[issue2702] pickling of large recursive structures crashes cPickle

2008-04-27 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: What operating system and compiler are you using? -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]> __

[issue2702] pickling of large recursive structures crashes cPickle

2008-04-27 Thread Daniel Darabos
Daniel Darabos <[EMAIL PROTECTED]> added the comment: Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 (Windows XP Professional 32 bits) __ Tracker <[EMAIL PROTECTED]> __

[issue2677] Argument rules for callables do not apply when function implementation uses PyArg_ParseTuple

2008-04-27 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Ah sorry, I should really read the OP next time. Added a note in r62521. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> ___

[issue2703] SimpleXMLRPCDispatcher.__init__ is not python2.4-backward-compatible

2008-04-27 Thread Matthias Klose
New submission from Matthias Klose <[EMAIL PROTECTED]>: [forwarded from http://bugs.debian.org/470645] "SimpleXMLRPCDispatcher.__init__ used to take a single argument (self) in python2.4 and now it takes three. The two new arguments need to get default values or else this breaks backwards compat

[issue2699] Exception name improperly indented

2008-04-27 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: You could add a function to the _testcapi module to invoke PyErr_Display. -- nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ _

[issue2337] Backport oct() and hex() to use __index__

2008-04-27 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I don't assume there are too many people using oct() and hex() with custom types anyway :) Since PyNumber_ToBase and the new oct() format octal numbers with "0o" instead of "0", I still think it's better if you need to import the new oct() from

[issue2701] csv.reader accepts string instead of file object (duck typing gone bad)

2008-04-27 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: It's not a mistake. In fact, the csv unit tests make use of being able to iterate over strings. I don't think this feature is going away. -- nosy: +skip.montanaro __ Tracker <[EMAIL PROTECTED]>

[issue2693] IDLE doesn't work with Tk 8.5

2008-04-27 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser <[EMAIL PROTECTED]>: -- nosy: +kbk __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: h

[issue2053] IDLE - standardize dialogs

2008-04-27 Thread Kurt B. Kaiser
Kurt B. Kaiser <[EMAIL PROTECTED]> added the comment: Please provide a single patch file. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-04-27 Thread Paul Winkler
Changes by Paul Winkler <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10105/python_distutils_1180_2.patch __ Tracker <[EMAIL PROTECTED]> __

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-04-27 Thread Paul Winkler
Paul Winkler <[EMAIL PROTECTED]> added the comment: Phillip, thanks, I missed that script_args is always passed by core.setup(). I'm replacing the patches with two new versions that check self.script_args instead of sys.argv (and assumes false if for some reason script_args isn't passed). We can

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-04-27 Thread Paul Winkler
Changes by Paul Winkler <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9763/python_distutils_1180.patch __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-04-27 Thread Paul Winkler
Paul Winkler <[EMAIL PROTECTED]> added the comment: and here's the revised version of the dependency-injection approach. Added file: http://bugs.python.org/file10122/python_distutils_1180_2.patch __ Tracker <[EMAIL PROTECTED]> _

[issue2700] document PyNumber_ToBase

2008-04-27 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- versions: +Python 3.0 Added file: http://bugs.python.org/file10123/tobase_doc2.patch __ Tracker <[EMAIL PROTECTED]> __

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-04-27 Thread Roger Serwy
New submission from Roger Serwy <[EMAIL PROTECTED]>: See attached diff file. Patching PyShell.py Version 1.2.1 PyShell ignores letter/number key presses when the cursor is not on the command line. Instead it should redirect any letter/number key presses to the command line. (Changed ModifiedUndo

[issue2700] document PyNumber_ToBase

2008-04-27 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Okay, go ahead and commit. -- assignee: georg.brandl -> benjamin.peterson resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2700] document PyNumber_ToBase

2008-04-27 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Commited in r62535. -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Pyt

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-04-27 Thread Phillip J. Eby
Phillip J. Eby <[EMAIL PROTECTED]> added the comment: I much prefer the simpler of the two patches - better to monkeypatch in the tests than adding complications to the already over-complicated distutils.dist. I don't find monkeypatching in tests to be horrible at all, but if it really bothers y

[issue2337] Backport oct() and hex() to use __index__

2008-04-27 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Here's a patch for that. It warns for hex() when __hex__ is used, otherwise it uses __index__. (This doesn't work for old style classes because ob_tp->tp_as_number->tp_hex is filled.) Use of oct() just gets a warning. The __hex__ and __oct_

[issue2352] Use of __oct__/__hex__ should raise a Py3K warning

2008-04-27 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: This is being taken care of as #2337. -- nosy: +benjamin.peterson resolution: -> duplicate status: open -> closed superseder: -> Backport oct() and hex() to use __index__ __ Tracker <[EMAIL PROTEC

[issue2705] incompatible change to warnings.showwarning

2008-04-27 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>: In Python 2.5 and earlier, the `showwarning´ function in the `warnings´ module has this signature: def showwarning(message, category, filename, lineno, file=None): In trunk (and presumably what will become Python 2.6), this has beco

[issue2705] incompatible change to warnings.showwarning

2008-04-27 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Well, all you have to do is to change the hook's signature to the new one and, since the last parameter is optional, it should not cause any backwards compatibility problems. That is, the new hook should work fine on Python < 2.6 as well. Am I

[issue2705] incompatible change to warnings.showwarning

2008-04-27 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: We should have an entry under "Porting to 2.6" in whatsnew. -- nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> __ _

[issue2699] Exception name improperly indented

2008-04-27 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Sun, Apr 27, 2008 at 2:34 AM, Georg Brandl <[EMAIL PROTECTED]> wrote: > > Georg Brandl <[EMAIL PROTECTED]> added the comment: > > You could add a function to the _testcapi module to invoke PyErr_Display. > That's true and probably the only

[issue2705] incompatible change to warnings.showwarning

2008-04-27 Thread Glyph Lefkowitz
Glyph Lefkowitz <[EMAIL PROTECTED]> added the comment: pitrou: You're missing a few steps. If you are maintaining project X, which depends on library Y, that adds a showwarning hook for some reason, you need to: * check out a development version of library Y, which you do not normally maintain

[issue2705] incompatible change to warnings.showwarning

2008-04-27 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Is it a theoretical case or are you thinking about a specific library Y? Also, seeing some things break when a new Python version is released is not new as you certainly know : see http://twistedmatrix.com/trac/ticket/1867 _

[issue2705] incompatible change to warnings.showwarning

2008-04-27 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: I have emailed python-dev to try to decide how to handle this. -- assignee: -> brett.cannon nosy: +brett.cannon priority: -> critical __ Tracker <[EMAIL PROTECTED]> _

[issue2705] incompatible change to warnings.showwarning

2008-04-27 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- priority: critical -> release blocker __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mai

[issue2705] incompatible change to warnings.showwarning

2008-04-27 Thread Jean-Paul Calderone
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment: By the way, I just noticed that Lib/idlelib/PyShell.py includes an override of `showwarning´ which is defined with the old signature. I ran idle from trunk and verified that is indeed breaks warning reporting. __

[issue2706] datetime: define division timedelta/timedelta

2008-04-27 Thread webograph
New submission from webograph <[EMAIL PROTECTED]>: i suggest that division be defined for timedelta1/timedelta2, in that sense that it gives how many times timedelta2 fits in timedelta1 (ie the usual meaning of division), using integer arithmetics for floor division (//) and returning float for t

[issue1196903] smarter behaviour for home key in IDLE

2008-04-27 Thread Kurt B. Kaiser
Kurt B. Kaiser <[EMAIL PROTECTED]> added the comment: The toggling is useful when ending a def. If other IDEs have this binding, I can't see a problem. I've been running the patch for awhile now, and notice that Ctrl-A also has this new action now. It seems useful, let's give it a try. r62546

[issue2062] IDLE - autocompletion logic optimization

2008-04-27 Thread Kurt B. Kaiser
Kurt B. Kaiser <[EMAIL PROTECTED]> added the comment: r62548 -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue2061] IDLE - autocompletion to support alternate path separators

2008-04-27 Thread Kurt B. Kaiser
Kurt B. Kaiser <[EMAIL PROTECTED]> added the comment: r62549 -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue2663] shutil.copytree glob-style filtering [patch]

2008-04-27 Thread Tarek Ziadé
Tarek Ziadé <[EMAIL PROTECTED]> added the comment: Agreed, rmtree should have it as well. I'll add that in the patch as well, __ Tracker <[EMAIL PROTECTED]> __ _

[issue2663] shutil.copytree glob-style filtering [patch]

2008-04-27 Thread Tarek Ziadé
Tarek Ziadé <[EMAIL PROTECTED]> added the comment: while working on the patch to add the same feature in rmtree, I realized this is a non sense since the root folder itself is removed at the end of the function when all its content is removed. So, unless we change this behavior, which I doubt it

[issue2663] shutil.copytree glob-style filtering [patch]

2008-04-27 Thread Tarek Ziadé
Tarek Ziadé <[EMAIL PROTECTED]> added the comment: I have thaught of various ways to write this new API for the deletion use case, but I think nothing makes it easier and shorter than a simple os.walk call. __ Tracker <[EMAIL PROTECTED]>

[issue2663] shutil.copytree glob-style filtering [patch]

2008-04-27 Thread Tarek Ziadé
Tarek Ziadé <[EMAIL PROTECTED]> added the comment: This patch includes the documentation for shutils.rst as well. (I removed the older patches) Added file: http://bugs.python.org/file10127/shutil.copytree.patch __ Tracker <[EMAIL PROTECTED]>

[issue2663] shutil.copytree glob-style filtering [patch]

2008-04-27 Thread Tarek Ziadé
Changes by Tarek Ziadé <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10066/shutil.copytree.filtering.patch __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2663] shutil.copytree glob-style filtering [patch]

2008-04-27 Thread Tarek Ziadé
Changes by Tarek Ziadé <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10073/shutil.copytree.filtering.patch __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2699] Exception name improperly indented

2008-04-27 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Fix in revision 62555. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2707] Tiny fix for os.walk docstring

2008-04-27 Thread Yinon Ehrlich
New submission from Yinon Ehrlich <[EMAIL PROTECTED]>: os.walk.__doc__ has the following example-line (os.py, line 271): for root, dirs, files in walk('python/Lib/email'): it should be os.walk -- components: Library (Lib) messages: 65911 nosy: Yinon severity: normal status: open title