Re: [Python-Dev] More C API abstraction for user defined types

2010-07-17 Thread Petre Galan
Nick Coghlan gmail.com> writes: > >On Wed, Jul 14, 2010 at 11:50 PM, Petre Galan gmail.com wrote: >> No. The right interface is PyNumber_Long. The purpose of the PyNumber_Index >> (and nb_index slot) is as index in slicing. > > Allowing other objects to say "I'm a real integer, treat me as one"

Re: [Python-Dev] IDLE contributors and committers

2010-07-17 Thread Mark Lawrence
On 17/07/2010 22:57, Terry Reedy wrote: On 7/17/2010 8:41 AM, Mark Lawrence wrote: IIRC Terry Reedy is also interested in moving IDLE forward. Interested, yes. But until either a) I can commit patches, or b) there is someone who will respond to commit review recommendations with "No, here is

[Python-Dev] mkdir -p in python

2010-07-17 Thread Peng Yu
I don't see that there is a function in the library that mimic the behavior of 'mkdir -p'. If 'makedirs' is used, it will generate an error if the file already exists. There are some functions available on the website to close the gap. But I'd prefer this is in the library. Is there any plan to add

Re: [Python-Dev] IDLE contributors and committers

2010-07-17 Thread Terry Reedy
On 7/17/2010 8:41 AM, Mark Lawrence wrote: IIRC Terry Reedy is also interested in moving IDLE forward. Interested, yes. But until either a) I can commit patches, or b) there is someone who will respond to commit review recommendations with "No, here is why not" or "Yes, committed", I will wo

Re: [Python-Dev] [Idle-dev] IDLE contributors and committers

2010-07-17 Thread Tal Einat
On Sat, Jul 17, 2010 at 2:47 PM, Steve Holden wrote: > On 7/17/2010 7:33 AM, Antoine Pitrou wrote: >> >> Hello, >> >> On Sun, 11 Jul 2010 02:05:22 +0300 >> Tal Einat wrote: >>> >>> I would like to propose removing IDLE from the standard library. >>> >>> I have been using IDLE since 2002 and have b

Re: [Python-Dev] profiler decorator - is it worth for inclusion?

2010-07-17 Thread Giampaolo Rodolà
Provided a patch on the tracker: http://bugs.python.org/issue9285 Further comments can be submitted there, if any. --- Giampaolo http://code.google.com/p/pyftpdlib http://code.google.com/p/psutil 2010/7/15 Giampaolo Rodolà : > 2010/7/15 Brian Curtin : >> On Thu, Jul 15, 2010 at 13:45, Giampaolo

Re: [Python-Dev] Markup of command-line options in Python's .rst documentation

2010-07-17 Thread Eli Bendersky
On Sat, Jul 17, 2010 at 16:26, Michael Foord wrote: > On 17/07/2010 14:23, Eli Bendersky wrote: > > Hello, > > I'm currently working, together with Terry Reedy, on improving the > documentation of the trace module, and I ran into a peculiar convention of > marking command-line options which seems

Re: [Python-Dev] Markup of command-line options in Python's .rst documentation

2010-07-17 Thread Éric Araujo
> The "--help" option appears as a hyperlink leading to > http://docs.python.org/dev/py3k/using/cmdline.html#cmdoption--help, which is > hardly relevant or useful. [...] > > -h/:option:`--help` >print a short usage message and exit I think this is a doc bug in Doc/documenting/markup.rst :cmdo

Re: [Python-Dev] Markup of command-line options in Python's .rst documentation

2010-07-17 Thread Michael Foord
On 17/07/2010 14:23, Eli Bendersky wrote: Hello, I'm currently working, together with Terry Reedy, on improving the documentation of the trace module, and I ran into a peculiar convention of marking command-line options which seems to be widespread. Consider the documentation of timeit, for

[Python-Dev] Markup of command-line options in Python's .rst documentation

2010-07-17 Thread Eli Bendersky
Hello, I'm currently working, together with Terry Reedy, on improving the documentation of the trace module, and I ran into a peculiar convention of marking command-line options which seems to be widespread. Consider the documentation of timeit, for instance: http://docs.python.org/dev/py3k/libra

Re: [Python-Dev] IDLE contributors and committers

2010-07-17 Thread Mark Lawrence
On 17/07/2010 12:50, Michael Foord wrote: On 17/07/2010 12:47, Steve Holden wrote: On 7/17/2010 7:33 AM, Antoine Pitrou wrote: Hello, On Sun, 11 Jul 2010 02:05:22 +0300 Tal Einat wrote: I would like to propose removing IDLE from the standard library. I have been using IDLE since 2002 and hav

Re: [Python-Dev] IDLE contributors and committers

2010-07-17 Thread Michael Foord
On 17/07/2010 12:47, Steve Holden wrote: On 7/17/2010 7:33 AM, Antoine Pitrou wrote: Hello, On Sun, 11 Jul 2010 02:05:22 +0300 Tal Einat wrote: I would like to propose removing IDLE from the standard library. I have been using IDLE since 2002 and have been doing my best to help mai

Re: [Python-Dev] IDLE contributors and committers

2010-07-17 Thread Steve Holden
On 7/17/2010 7:33 AM, Antoine Pitrou wrote: > > Hello, > > On Sun, 11 Jul 2010 02:05:22 +0300 > Tal Einat wrote: >> >> I would like to propose removing IDLE from the standard library. >> >> I have been using IDLE since 2002 and have been doing my best to help >> maintain and further develop IDLE

Re: [Python-Dev] A suggestion

2010-07-17 Thread Steven D'Aprano
On Sat, 17 Jul 2010 12:38:40 pm Brandon Hayden wrote: > In the Python language, or any other language for that matter, I have > never understood why they don't have a loop function. Here's what I > mean, every time someone wants something to repeat itself, they have > to write a while loop like