Re: [Python-Dev] Is Py_WIN_WIDE_FILENAMES still alive?

2008-04-27 Thread ocean
> I believe the macro should be removed, as Python currently assumes Unicode > APIs are available in a number of places. My +1 for removal. Even 2.5 cannot be compiled without this macro, probably no one is using this. > This consistent with the versions > of Windows Python currently supports. I

Re: [Python-Dev] Python 2.6a2 execution times with various compilers

2008-04-27 Thread Mark Hammond
> Profile-guided optimization did not help much, as might be expected, it > pushed about the same kind of optimization as the mtune/march combination. > With gcc 4.1.3 i'm finding that profile guided optimization when trained > on pybench or regrtest does make a measurable difference (2-5% overal

Re: [Python-Dev] Is Py_WIN_WIDE_FILENAMES still alive?

2008-04-27 Thread Mark Hammond
> Hello. I noticed when I removes following line in trunk/PC/pyconfig.h > > #define Py_WIN_WIDE_FILENAMES > > _fileio.c and posixmodule.c (and maybe more) cannot be compiled on > Windows. > > When Py_WIN_WIDE_FILENAMES is not defined, how should python behave? > > - call posix functions like

Re: [Python-Dev] [Doc-SIG] Double specification of function signatures?

2008-04-27 Thread skip
Brett> They shouldn't. Maybe the tempfile module came from a third-party Brett> that had some internal doc rule of mentioning the call signature. Brett> Regardless, just rip it out. Done. Skip ___ Python-Dev mailing list Python-Dev@python.o

Re: [Python-Dev] [Doc-SIG] Double specification of function signatures?

2008-04-27 Thread skip
>> > Currently we have no way to extract the function signatures from C >> > code on-the-fly or in a preprocessing step (might be a good GSoC >> > project), Brett> It can still go on the wiki, though, so we don't forget about it. Done. Skip __

Re: [Python-Dev] [Doc-SIG] Double specification of function signatures?

2008-04-27 Thread Brett Cannon
On Sun, Apr 27, 2008 at 4:40 PM, Stephen J. Turnbull <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] writes: > > > Currently we have no way to extract the function signatures from C > > code on-the-fly or in a preprocessing step (might be a good GSoC > > project), > > +1 on GSoC, except for t

Re: [Python-Dev] [Doc-SIG] Double specification of function signatures?

2008-04-27 Thread Stephen J. Turnbull
[EMAIL PROTECTED] writes: > Currently we have no way to extract the function signatures from C > code on-the-fly or in a preprocessing step (might be a good GSoC > project), +1 on GSoC, except for the bad timing (maybe somebody will start sponsoring a "Winter Coding Sprint" event?) __

[Python-Dev] Warn about mktemp once again?

2008-04-27 Thread skip
Back in r29829, Guido commented out the security hole warning for tempfile.mktemp: r29829 | gvanrossum | 2002-11-22 09:56:29 -0600 (Fri, 22 Nov 2002) | 3 lines Comment out the warnings about mktemp(). These are too annoying, and often unavoidable. Any thought about whether this warn

Re: [Python-Dev] [Doc-SIG] Double specification of function signatures?

2008-04-27 Thread Brett Cannon
On Sun, Apr 27, 2008 at 3:29 PM, <[EMAIL PROTECTED]> wrote: > > Michael> It seems that any documentation or help tool worth its salt > Michael> should fetch the parameters from the definition and so > Michael> including them in the docstring should be redundant > Michael> duplicati

Re: [Python-Dev] [Doc-SIG] Double specification of function signatures?

2008-04-27 Thread skip
Michael> It seems that any documentation or help tool worth its salt Michael> should fetch the parameters from the definition and so Michael> including them in the docstring should be redundant Michael> duplication. That's my position as well. Currently we have no way to extract

Re: [Python-Dev] [Doc-SIG] Double specification of function signatures?

2008-04-27 Thread Michael Foord
[EMAIL PROTECTED] wrote: While cleaning up the documentation for the tempfile module I noticed that the docstrings for the mk*temp functions in the module itself list their signatures (incompletely) in the first line. I don't know if that was intentional, but it seems both redundant and error-pr

[Python-Dev] Double specification of function signatures?

2008-04-27 Thread skip
While cleaning up the documentation for the tempfile module I noticed that the docstrings for the mk*temp functions in the module itself list their signatures (incompletely) in the first line. I don't know if that was intentional, but it seems both redundant and error-prone to me. The help() func

[Python-Dev] Dealing with a desired change to warnings.showwarning()

2008-04-27 Thread Brett Cannon
As part of my rewrite of warnings into C, I added a new, optional argument to showwarning(): line, which defaults to None. As http://bugs.python.org/issue2705 points out, though, since the function has been documented as being allowed to be overridden, this potentially breaks existing showwarning(