Re: [Python-Dev] Patch Ready for review

2009-02-28 Thread Heracles
Well, what got me interested in Python was the fact that it had support for reading mail files and for the curses library. When I found out there was a need for folks to work on this module I thought I would start contributing, I would love to become a primary maintainer of this particular module

Re: [Python-Dev] More on Py3K urllib -- urlencode()

2009-02-28 Thread Dan Mahn
Bill Janssen wrote: Bill Janssen wrote: Dan Mahn wrote: 3) Regarding the following code fragment in urlencode(): k = quote_plus(str(k)) if isinstance(v, str): v = quote_plus(v) l.append(k + '=' + v)

Re: [Python-Dev] More on Py3K urllib -- urlencode()

2009-02-28 Thread Bill Janssen
Bill Janssen wrote: > Dan Mahn wrote: > > > 3) Regarding the following code fragment in urlencode(): > > > >k = quote_plus(str(k)) > > if isinstance(v, str): > >v = quote_plus(v) > >l.append(k + '=' + v) > >elif isinstance(v, st

Re: [Python-Dev] More on Py3K urllib -- urlencode()

2009-02-28 Thread Bill Janssen
Dan Mahn wrote: > 3) Regarding the following code fragment in urlencode(): > >k = quote_plus(str(k)) > if isinstance(v, str): >v = quote_plus(v) >l.append(k + '=' + v) >elif isinstance(v, str): ># is there a reason

Re: [Python-Dev] OS X Installer for 3.0.1 and supported versions

2009-02-28 Thread Martin v. Löwis
> Do Python 2.6 and 3.0 support building with Tcl/Tk 8.5? Yes, that works fine. The Windows binaries ship with 8.5, and there weren't any complaints (in this respect). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python

[Python-Dev] More on Py3K urllib -- urlencode()

2009-02-28 Thread Dan Mahn
Hi. I've been using Py3K successfully for a while now, and have some questions about urlencode(). 1) The docs mention that items sent to urlencode() are quoted using quote_plus(). However, instances of type "bytes" are not handled like they are with quote_plus() because urlencode() converts

Re: [Python-Dev] Googlebot and the mail.python.org python-dev archive

2009-02-28 Thread A.M. Kuchling
On Sat, Feb 28, 2009 at 09:53:10PM +1000, Nick Coghlan wrote: > Is pydotorg-www still the place for website questions?* If so, I should > probably take this over there... Just 'pydotorg' is the current list (http://mail.python.org/mailman/listinfo/pydotorg). Looking at the access logs, mail.pytho

Re: [Python-Dev] Challenge: Please break this! [Now with blog post]

2009-02-28 Thread Samuele Pedroni
Guido van Rossum wrote: On Mon, Feb 23, 2009 at 3:16 PM, "Martin v. Löwis" wrote: Don't I remember the previous restricted module dying a similar "death of 1,000 cuts" before it was concluded to be unsafe at any height and abandoned? I think you are slightly misremembering. It got cu

Re: [Python-Dev] OS X Installer for 3.0.1 and supported versions

2009-02-28 Thread Ronald Oussoren
On 27 Feb, 2009, at 1:57, Ned Deily wrote: In article , "Russell E. Owen" wrote: I want to follow up on this a bit. In the past if the Mac Python installer was built on a machine that did NOT have a locally installed Tcl/Tk then it would fail to work with a locally installed Tcl/Tk: Python

Re: [Python-Dev] What type of object mmap.read_byte should return on py3k?

2009-02-28 Thread Hirokazu Yamamoto
Victor Stinner wrote: About m.read_byte(), we have two choices: (a) Py_BuildValue("b", value) => 0 (b) Py_BuildValue("y#", &value, 1) => b"\x00" About m.write_byte(x), we have also two choices: (a) PyArg_ParseTuple(args, "b:write_byte", &value): write_byte(0) (b) PyArg_ParseTuple(args, "y#:

Re: [Python-Dev] What type of object mmap.read_byt e should return on py3k?

2009-02-28 Thread Victor Stinner
Le Saturday 28 February 2009 15:06:38 Hirokazu Yamamoto, vous avez écrit : > I greped py3k source tree with "c", I found another Py_BuildValue("c" in > curse module. But this function returns unicode in else clause, so > probably this is correct usage. I used different regex on to catch "...c..."

Re: [Python-Dev] What type of object mmap.read_byte should return on py3k?

2009-02-28 Thread Victor Stinner
About m.read_byte(), we have two choices: (a) Py_BuildValue("b", value) => 0 (b) Py_BuildValue("y#", &value, 1) => b"\x00" About m.write_byte(x), we have also two choices: (a) PyArg_ParseTuple(args, "b:write_byte", &value): write_byte(0) (b) PyArg_ParseTuple(args, "y#:write_byte", &value, &len

Re: [Python-Dev] What type of object mmap.read_byte should return on py3k?

2009-02-28 Thread Hirokazu Yamamoto
It certainly seems like mmap should be playing in an all-bytes world (where only already encoded strings are allowed). Agreed. On the specific question of whether it would be better for read_byte()/write_byte to use 1-length bytes objects or integers, I have no strong opinion (the former is cl

Re: [Python-Dev] Googlebot and the mail.python.org python-dev?archive

2009-02-28 Thread A.M. Kuchling
On Sat, Feb 28, 2009 at 10:37:09AM +, Antoine Pitrou wrote: > have the following HTML tag in them: > > which explicitly instructs Web spiders *not* to index contents nor follow > links. I believe this makes spiders not index this page, but does follow links. Individual messages have "in

Re: [Python-Dev] Googlebot and the mail.python.org pyth on-dev archive

2009-02-28 Thread Antoine Pitrou
Nick Coghlan gmail.com> writes: > > > > > which explicitly instructs Web spiders *not* to index contents nor follow links. > > That's not quite true - that meta tag says not to index the current > page, but *do* follow the links to other pages. The archive page and the > monthly summary pa

Re: [Python-Dev] What type of object mmap.read_byte should return on py3k?

2009-02-28 Thread Nick Coghlan
Hirokazu Yamamoto wrote: > Hello. I noticed mmap.read_byte returns 1-length unicode on py3k. I felt > this was strange, so I created issue on bug tracker > (http://bugs.python.org/issue5391) and Martin proposed this is suitable > for discussion on python-dev. I'll quote messages on bug tracker here

Re: [Python-Dev] Googlebot and the mail.python.org python-dev archive

2009-02-28 Thread Nick Coghlan
Antoine Pitrou wrote: > Georg Brandl gmx.net> writes: >> Guido van Rossum schrieb: >>> I think the better syntax would be to add site:mail.python.org to the >>> query, but you're right, that doesn't seem to find recent messages. >>> Maybe the absence of a robots.txt file on mail.python.org could b

[Python-Dev] What type of object mmap.read_byte should return on py3k?

2009-02-28 Thread Hirokazu Yamamoto
Hello. I noticed mmap.read_byte returns 1-length unicode on py3k. I felt this was strange, so I created issue on bug tracker (http://bugs.python.org/issue5391) and Martin proposed this is suitable for discussion on python-dev. I'll quote messages on bug tracker here. I wrote: On Python3000, m

Re: [Python-Dev] Googlebot and the mail.python.org pyth on-dev archive

2009-02-28 Thread Antoine Pitrou
Georg Brandl gmx.net> writes: > > Guido van Rossum schrieb: > > I think the better syntax would be to add site:mail.python.org to the > > query, but you're right, that doesn't seem to find recent messages. > > Maybe the absence of a robots.txt file on mail.python.org could be a > > partial explan

Re: [Python-Dev] Googlebot and the mail.python.org python-dev archive

2009-02-28 Thread Georg Brandl
Guido van Rossum schrieb: > I think the better syntax would be to add site:mail.python.org to the > query, but you're right, that doesn't seem to find recent messages. > Maybe the absence of a robots.txt file on mail.python.org could be a > partial explanation? Doesn't the absence of a robots.txt