Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Steven Bethard
On 5/23/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > Also, try > > http://pydoc.gbrandl.de:3000/os.path.exists Beautiful! STeVe -- I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a tiny blip on the distant coast of sanity. --- Bucky Katt, Get Fuzzy _

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Nick Craig-Wood
Georg Brandl <[EMAIL PROTECTED]> wrote: > Nick Craig-Wood schrieb: > > Being a seasoned unix user, I tend to reach for pydoc as my first stab > > at finding some documentation rather than (after excavating the mouse > > from under a pile of paper) use a web browser. > > > > If you've ever used py

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Dennis Benzinger
Am Wed, 23 May 2007 08:30:17 +0200 schrieb Georg Brandl <[EMAIL PROTECTED]>: > [...] > Also, try > > http://pydoc.gbrandl.de:3000/os.path.exists > [...] Looks good. But should the source pages really use syntax highlighting? I think if somebody is interested in the source then they should get th

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Armin Ronacher
Hoi, Dennis Benzinger gmx.net> writes: > Looks good. But should the source pages really use syntax highlighting? > I think if somebody is interested in the source then they should get > the real source without any highlighting. If you decide to keep the > syntax highlighting then the highlightin

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread skip
Nick> If you type "pydoc re" at the moment then it says in it Nick> MODULE DOCS Nick> http://www.python.org/doc/current/lib/module-re.html Nick> which is pretty much useless to me when ssh-ed in to a linux box Nick> half way around the world... I get quite a bit of i

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Laurent Gautier
2007/5/23, Nick Craig-Wood <[EMAIL PROTECTED]>: > Georg Brandl <[EMAIL PROTECTED]> wrote: > > Nick Craig-Wood schrieb: > > > Being a seasoned unix user, I tend to reach for pydoc as my first stab > > > at finding some documentation rather than (after excavating the mouse > > > from under a pile of

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Ronald Oussoren
On Wednesday, May 23, 2007, at 12:40PM, <[EMAIL PROTECTED]> wrote: > >Nick> If you type "pydoc re" at the moment then it says in it > >Nick> MODULE DOCS >Nick> http://www.python.org/doc/current/lib/module-re.html > >Nick> which is pretty much useless to me when ssh-ed in t

[Python-Dev] Return value from socket.fileno()

2007-05-23 Thread Alan Kennedy
Dear all, I am writing to seek information about the socket.fileno() method, and opinions on how best to implement it on jython. On cpython, socket.fileno() returns a file descriptor, i.e. an integer index into an array of file objects. This integer is then passed to select.select and select.p

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Georg Brandl
Nick Craig-Wood schrieb: >> > It is missing conversion of ``comment'' at the moment as I'm sure you >> > know... >> >> Sorry, what did you mean? > > ``comment'' produces smart quotes in latex if I remember correctly. > You probably want to convert it somehow because it looks a bit odd on > the

[Python-Dev] -OO and Docstrings

2007-05-23 Thread Georg Brandl
Bug #1722485 reports that Py 2.5+ doesn't ignore docstrings anymore if used with -OO. Attached patch should fix this. Georg Index: Python/compile.c === --- Python/compile.c (Revision 55526) +++ Python/compile.c (Arbeitskopie) @@ -111

Re: [Python-Dev] [Python-3000] Introduction and request for commit access to the sandbox.

2007-05-23 Thread Alexandre Vassalotti
On 5/23/07, Neal Norwitz <[EMAIL PROTECTED]> wrote: > On 5/22/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > > > > As you see, cStringIO's code also needs a good cleanup to make it, > > at least, conforms to PEP-7. > > Alexandre, > > It would be great if you could break up unrelated changes

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Fred L. Drake, Jr.
Nick Craig-Wood wrote: > ``comment'' produces smart quotes in latex if I remember correctly. > You probably want to convert it somehow because it looks a bit odd on > the web page as it stands. I'm not sure what the reST replacement > might be, but converting it just to "comment" would probabl

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Scott Dial
Nick Craig-Wood wrote: > ``comment'' produces smart quotes in latex if I remember correctly. > You probably want to convert it somehow because it looks a bit odd on > the web page as it stands. I'm not sure what the reST replacement > might be, but converting it just to "comment" would probably be

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Talin
Martin Blais wrote: > On 5/22/07, Martin Blais <[EMAIL PROTECTED]> wrote: >> ReST works well only when there is little markup. Writing code >> documentation generally requires a lot of markup, you want to make >> variables, classes, functions, parameters, constants, etc.. (A better >> avenue IMHO

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Kristján Valur Jónsson
> -Original Message- > From: "Martin v. Löwis" [mailto:[EMAIL PROTECTED] > > That couldn't work for me. I try avoid building on a network drive, and > with local drives, I just can't have a Windows build and a Linux build > on the same checkout - they live on separate file systems, after a

[Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-05-23 Thread Trent Mick
http://www.python.org/dev/buildbot/all/x86%20W2k%20trunk Is my buildbot the only reliable Windows buildbot machine? It is possible that within a couple of weeks or so I'll have to take this one offline. Are there others that can provide a Windows buildbot? It would probably be good to have two

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Ron Adam
Nick Craig-Wood wrote: > Georg Brandl <[EMAIL PROTECTED]> wrote: >> Nick Craig-Wood schrieb: >>> Being a seasoned unix user, I tend to reach for pydoc as my first stab >>> at finding some documentation rather than (after excavating the mouse >>> from under a pile of paper) use a web browser. >>> >

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Ron Adam
Laurent Gautier wrote: > 2007/5/23, Nick Craig-Wood <[EMAIL PROTECTED]>: >> Georg Brandl <[EMAIL PROTECTED]> wrote: >>> Nick Craig-Wood schrieb: Being a seasoned unix user, I tend to reach for pydoc as my first stab at finding some documentation rather than (after excavating the mouse >>

Re: [Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-05-23 Thread Thomas Heller
Trent Mick schrieb: > http://www.python.org/dev/buildbot/all/x86%20W2k%20trunk > > Is my buildbot the only reliable Windows buildbot machine? > It is possible that within a couple of weeks or so I'll have to take > this one offline. > > Are there others that can provide a Windows buildbot? It wo

Re: [Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-05-23 Thread Trent Mick
Thomas Heller wrote: >> Are there others that can provide a Windows buildbot? It would probably >> be good to have two -- and a WinXP one would be good. > > How much work is it to set one up, and to maintain it? Maybe I can offer an > XP VMWare image. It has been a while since I set it up. Tim

Re: [Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-05-23 Thread Titus Brown
On Wed, May 23, 2007 at 12:08:52PM -0700, Trent Mick wrote: -> Thomas Heller wrote: -> >> Are there others that can provide a Windows buildbot? It would probably -> >> be good to have two -- and a WinXP one would be good. -> > -> > How much work is it to set one up, and to maintain it? Maybe I c

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Trent Mick
[MarkH] >> I'm guessing vsextcomp doesn't use the Visual >> Studio 'ReleaseAMD64' configuration - would it be OK for me to check in >> changes to the PCBuild projects for this configuration? > [Martin v. Löwis] > Please don't. It exclusively relies on vsextcomp, and is only useful > if you have th

Re: [Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-05-23 Thread Trent Mick
Trent Mick wrote: > It has been a while since I set it up. Tim did so at about the same time > and wrote down his steps to setup... but I can't find the reference to > those instructions right now. http://wiki.python.org/moin/BuildbotOnWindows If you run into problems setting it up, feel free t

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Trent Mick
It seems the best thing might be to modify the PCBuild8 build process so the output binaries are in the ../PCBuild' directory - this way distutils and others continue to work fine. Does that sound reasonable? I think Kristjan will have to say a word here: I think he just likes it the way it is

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Alexey Borzenkov
On 5/23/07, Kristján Valur Jónsson <[EMAIL PROTECTED]> wrote: > > > Install in the ProgramFiles folder. > > Only over my dead body. *This* is silly. > Bill doesn't think so. And he gets to decide. I mean we do want > to play nice, don't we? Nothing installs itself in the root anymore, > not sinc

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Martin v. Löwis
> Very well, leaving linux aside, I don't see why this: > /win32mount/trunk/PCbuild/ > /x64mount/trunk/PCbuild/ > > Is any different from > /winmount/trunk/PCBuild/win32 > /winmount/trunk/PCBuild/x64 > > I don't understand this extraordinary reluctance to add a single extra > directory. > The wi

Re: [Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-05-23 Thread Martin v. Löwis
Trent Mick schrieb: > http://www.python.org/dev/buildbot/all/x86%20W2k%20trunk > > Is my buildbot the only reliable Windows buildbot machine? Tim Peter's machine comes and goes, depending on whether he starts the buildbot. Alan McIntyre's machien should be mostly he reliable, but nobody really no

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Martin v. Löwis
> I use this patch in ActivePython to get distutils to find the correct > PCbuild dir (see attached). Would you like to commit this to 2.6? (or perhaps 2.5 even?) Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/m

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Martin v. Löwis
> - Run the appropriate environment setup for the correct compiler. E.g., > for the Platform SDK AMD64 compiler and with the current Platform SDK > this is: > >C:\Program Files\Microsoft Platform SDK\SetEnv.Cmd /X64 /RETAIL > > - Run the solution file with "devenv.com" (IIRC, devenv.exe doe

Re: [Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-05-23 Thread Martin v. Löwis
>> Are there others that can provide a Windows buildbot? It would probably >> be good to have two -- and a WinXP one would be good. > > How much work is it to set one up, and to maintain it? Maybe I can offer an > XP VMWare image. Setting it up essentially requires to put all the software into

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Mark Hammond
> Very well, leaving linux aside, I don't see why this: > /win32mount/trunk/PCbuild/ > /x64mount/trunk/PCbuild/ > > Is any different from > /winmount/trunk/PCBuild/win32 > /winmount/trunk/PCBuild/x64 In the former case, assuming python is running from the 'trunk' directory, all architectures kno

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Trent Mick
Martin v. Löwis wrote: >> I use this patch in ActivePython to get distutils to find the correct >> PCbuild dir (see attached). > > Would you like to commit this to 2.6? (or perhaps 2.5 even?) Sure, if others think it is a good thing. Will do tomorrow unless I hear a -1 before then. Trent -- T

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Mark Hammond
> Martin v. Löwis wrote: > >> I use this patch in ActivePython to get distutils to find > the correct > >> PCbuild dir (see attached). > > > > Would you like to commit this to 2.6? (or perhaps 2.5 even?) > > Sure, if others think it is a good thing. Will do tomorrow > unless I hear > a -1 before th

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Trent Mick
> I'm not quite a '-1', but am a little confused about where this would leave > us. To some extent, this would formalize PCBuild8 and VC6 directories. > External tools would then slowly start growing support for these additional > directories and the previous benefits of "PCBuild is the canonical

[Python-Dev] nodef

2007-05-23 Thread Martin Blais
Hi I often have the need for a generic object to use as the default value for a function parameter, where 'None' is a valid value for the parameter. For example: _sentinel = object() def first(iterable, default=_sentinel): """Return the first element of the iterable, otherwise th

Re: [Python-Dev] nodef

2007-05-23 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 23, 2007, at 8:08 PM, Martin Blais wrote: > I often have the need for a generic object to use as the default value > for a function parameter, where 'None' is a valid value for the > parameter. I do the same thing for 'get' calls, where None i

Re: [Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-05-23 Thread Neal Norwitz
On 5/23/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Trent Mick schrieb: > > http://www.python.org/dev/buildbot/all/x86%20W2k%20trunk > > > > Is my buildbot the only reliable Windows buildbot machine? > > Tim Peter's machine comes and goes, depending on whether he starts > the buildbot. Alan

Re: [Python-Dev] Return value from socket.fileno()

2007-05-23 Thread Greg Ewing
Alan Kennedy wrote: > I am writing to seek information about the socket.fileno() method, and > opinions on how best to implement it on jython. I would hope that the new i/o system will make it unnecessary to use fileno() in portable code. It's really a unix-specific thing. > So the question I'm

Re: [Python-Dev] Return value from socket.fileno()

2007-05-23 Thread Guido van Rossum
On 5/23/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > Alan Kennedy wrote: > > I am writing to seek information about the socket.fileno() method, and > > opinions on how best to implement it on jython. > > I would hope that the new i/o system will make it > unnecessary to use fileno() in portable code

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Greg Ewing
Georg Brandl wrote: > Ahh, now the dime has fallen ;) (sorry, German phrase) In English it's "the penny has dropped", so it's not much different. :-) Although I thought dimes were an American thing, and Germans would be more likely to use a different coin. -- Greg Ewing, Computer Science Dept,

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Greg Ewing
Talin wrote: > As in the > above example, the use of backticks can be signal to the document > processor that the enclosed text should be examined for identifiers and > other Python syntax. Does this mean it's time for "pyST" -- Python-structured text?-) -- Greg Ewing, Computer Science Dept,

Re: [Python-Dev] nodef

2007-05-23 Thread Greg Ewing
Martin Blais wrote: > I don't know > what lives in the iterable, so why should I make assumptions? > > I think Python needs a builtin for this very purpose. I propose > 'nodef', a unique object whose sole purpose is to serve as a default > value. If the aforementioned iterable can yield *anythin

Re: [Python-Dev] nodef

2007-05-23 Thread Raymond Hettinger
From: "Greg Ewing" > If the aforementioned iterable can yield *anything*, > then it might yield this 'nodef' value as well. > > For this reason, there *can't* exist any *standard* > guaranteed-unambiguous sentinel value. Each use > case needs its own, to ensure it's truly unambiguous > in the con

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Talin
Greg Ewing wrote: > Talin wrote: >> As in the above example, the use of backticks can be signal to the >> document processor that the enclosed text should be examined for >> identifiers and other Python syntax. > > Does this mean it's time for "pyST" -- Python-structured > text?-) I wasn't goin