Re: [Python-3000] [Python-checkins] r62848 -python/trunk/Objects/setobject.c

2008-05-08 Thread Terry Reedy
Given that we cannot depend on timely mail/news propagation or on exact day-ahead scheduling of a freeze, a current freeze notice either from the repository or on a .../dev/status page might work better. ___ Python-3000 mailing list Python-3000@pyth

Re: [Python-3000] PEP 3138- String representation in Python 3000

2008-05-08 Thread Terry Reedy
Functions that map unicode->unicode or bytes->bytes could be called transcoders. Each type could be given a .transcode method to go along with but contrast with .encode or .decode. tjr ___ Python-3000 mailing list Python-3000@python.org http://mail

Re: [Python-3000] PEP 3138- String representation in Python 3000

2008-05-09 Thread Terry Reedy
"M.-A. Lemburg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On 2008-05-08 22:55, Terry Reedy wrote: | > Functions that map unicode->unicode or bytes->bytes could be called | > transcoders. Each type could be given a .transcode method to go along

Re: [Python-3000] PEP 3138- String representation in Python 3000

2008-05-15 Thread Terry Reedy
"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Guido van Rossum wrote: | | > Really? Don't you think it's pretty obvious that b.transform("gzip") | > compresses and b.untransform("gzip") decompresses? Or that | > b.transform("base64") generates base64 format? | | Well,

Re: [Python-3000] PEP 3138- String representation in Python 3000

2008-05-19 Thread Terry Reedy
"M.-A. Lemburg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Motivation: When was the last time you used a gzip compression | option (ie. yes there are options, but do you use them in the | general use case) ? Can you write code that applies UU encoding | without looking up the d

Re: [Python-3000] PEP 3138- String representation in Python 3000

2008-05-23 Thread Terry Reedy
"Atsuo Ishimoto" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Yes. My question is "Which do you feel comfortable, printing collect | glyphs or hex-escaped ASCII ?". I prefer printed glyphs for foreign | characters, but I had feeling that western people prefer hex-escaped | ASCII

Re: [Python-3000] UPDATED: PEP 3138- String representation in Python3000

2008-05-24 Thread Terry Reedy
| | - Add ``isprintable()`` method to the string type. ``str.isprintable()`` | return True if ``repr()`` should escape the characters in the string, | False otherwise. Is not this backwards? Isprintable to me mean should *not* escape. ___ Python-

Re: [Python-3000] Hello World!

2008-05-25 Thread Terry Reedy
"Manuel Kaufmann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hi, I'm Manuel Kaufmann (aka humitos) and I'm student of "System Engenieer" in | Santa Fé (Capital) Argentina. | | I met Python in the "1º Jornadas de Python en Santa Fé" three years ago, and | I'm happy with it. Ho

Re: [Python-3000] Hello World!

2008-05-25 Thread Terry Reedy
"Manuel Kaufmann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | El Sunday 25 May 2008 21:22:43 Terry Reedy escribió: | > Hi Manuel, | > This list (Python 3000 devel) is for discussion of development of a | > *future* version of Python, primarily by the de

Re: [Python-3000] stdlib as .zip by default, pydoc to view source?

2008-06-21 Thread Terry Reedy
Guido van Rossum wrote: I think this would be a mistake by default -- > being able to read the source *easily* (i.e. without any specific tools) is part of Python's success. For startup and import speed (and self-contained distributions), do not we only need a zip of the .pyc files? Not hav

Re: [Python-3000] Question to _users_ -- about over all perceptions/feelings

2008-06-21 Thread Terry Reedy
1. Non-issue to me, real issues to some. 2. Wrong group, expecially if you want dissenting opinions ;-). 3. print: 3.0 normal 'file = xxx' is visually prettier than 2.x idiosyncratic line-noisy '>> xxx'. I also prefer new 'except TypeError as t' to old 'except TypeError,t' since latter falsel

Re: [Python-3000] stdlib as .zip by default

2008-06-23 Thread Terry Reedy
Oleg Broytmann wrote: Less stat calls in exchange for seeking in the zip "filesystem" plus decompression. IWBN if someone shows real numbers... Decompression time is balanced, probably more than balanced, by shorter disk reading times. In the last twenty years, cpus have speed up much

Re: [Python-3000] about bytes

2008-06-27 Thread Terry Reedy
Only if you didn't know that b'' is an alternative to bytes(). The b'' notation is so much more compact and so much more helpful that I really don't want to go back to it. We will somehow have to deal with this through education and documentation. http://bugs.python.org/issue3220 Improve Bytes

Re: [Python-3000] Regular expressions, py3k and unicode

2008-06-28 Thread Terry Reedy
Guido van Rossum wrote: On Sat, Jun 28, 2008 at 1:45 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: Several posters (including a certain GvR) in the bug tracker (*) have been baffled by an apparent bug where the re.IGNORECASE flag didn't imply case-insensitivity for non-ASCII characters. It tur

Re: [Python-3000] xrange is still present in idlelib/EditorWindow.py

2008-06-29 Thread Terry Reedy
nirinA raseliarison wrote: Exception in Tkinter callback Traceback (most recent call last): File "/root/Py3kb1/lib/python3.0/tkinter/__init__.py", line 1409, in __call__ return self.func(*args) File "/root/Py3kb1/lib/python3.0/idlelib/MultiCall.py", line 165, in handler r = l[i]

[Python-3000] 2to3: update? doc?

2008-06-29 Thread Terry Reedy
WinXP 3.0 lib2to3 has grammar3.0.0.alpha.4.pickle was nothing updated for the beta? or did grammar3.0.0.beta.a.pickle only make 2.6b1? I cannot find any doc in the libref (it would belong, I believe, in Development Tools). Intentional? Not done yet? tjr __

Re: [Python-3000] 2to3: update? doc?

2008-06-29 Thread Terry Reedy
Martin v. Löwis wrote: Terry Reedy wrote: WinXP 3.0 specifically .0b1 lib2to3 has grammar3.0.0.alpha.4.pickle What do you mean by "has"? The standard sense of 'directory has file' Directory of C:\Program Files\Python30\Lib\lib2to3 06/19/2008 10:57 PM

Re: [Python-3000] 2to3: update? doc?

2008-06-29 Thread Terry Reedy
Martin v. Löwis wrote: I really need to know the exact sequence of actions done to this folder. One possible explanation is that you installed alpha4, then upgraded to beta1. .0a3 to .0a4 to .0b1. I do not know how to run 2to3 and do not remember trying to do so. pickle.load(...) failed say

Re: [Python-3000] Is this a bug with list comprehensions or not?

2008-07-10 Thread Terry Reedy
Antoine Pitrou wrote: > Carl Johnson carlsensei.com> writes: >> This raises the question, do we need both a ``break`` statement and >> ``raise StopIteration``? >> Can the former just be made into syntatic sugar >> for the later? Or is this the hobgoblin of a little mind? Yes, no, and ??. One

Re: [Python-3000] Is this a bug with list comprehensions or not?

2008-07-11 Thread Terry Reedy
Nick Coghlan wrote: Carl Johnson wrote: Certainly, it's an inconsistency compared to generator expressions, but is it a bug? I know that Python 3000 is making it so that list comprehension variables don't leak anymore, so I take it that the goal is to have them be more similar to generator e

Re: [Python-3000] Is this a bug with list comprehensions or not?

2008-07-11 Thread Terry Reedy
Greg Ewing wrote: Adam Olsen wrote: However, since the genexp considers all improper ones to be in error, it could wrap them with a RuntimeError and pass it through .next() instead. Would you do that only for genexps, or for generators in general? For me, the former. For generators in gen

Re: [Python-3000] adding gamma and error functions to math module

2008-07-15 Thread Terry Reedy
Mark Dickinson wrote: In any case, if you're interested in getting these in to 2.7/3.1 (it's too late for 2.6/3.0) then I'd suggest opening a feature request at bugs.python.org. (And assign it to me, if you like.) I'm interested also. Done and done. http://bugs.python.org/issue3366 __

Re: [Python-3000] Is this a bug with list comprehensions or not?

2008-07-15 Thread Terry Reedy
Guido van Rossum wrote: I don't see how this can be fixed, because there's no way for the list() constructor to know where the StopIteration is coming from. Sounds like a good analysis to me. No bug here. Move along, nothing to see here! I decided a couple of days ago that the easiest 'fix

[Python-3000] Undocumented new bytecodes (issue 3400)

2008-07-17 Thread Terry Reedy
http://bugs.python.org/issue3400 dis / Python Bytecode Instructions doc is missing entries for UNPACK_EX STORE_LOCALS LOAD_BUILD_CLASS MAKE_BYTES which appear in dis.opname (3.0 version). Based on examples, I suggested that the UNPACK_SEQUENCE entry be followed by UNPACK_EX(bytepair) Used for s

Re: [Python-3000] turtle.Screen- how to implement best a Singleton

2008-08-18 Thread Terry Reedy
I, for my part, prefer the latter solution (b). Example: a student, having (interactively) produced some design using some turtle t = Turtle() decides spontaneously to change backgroundcolor. s = Screen(); s.bgcolor("pink") should do this for her - My perhaps naive view is that students shou

Re: [Python-3000] Windows Installer - default install directory

2008-08-25 Thread Terry Reedy
PL wrote: Hi I'm new to the list. Sorry if this has been discussed before, but I didn't notice it. Is it possible for the Windows installer to install to some other directory than the root (i.e., somewhere else apart from C:\Python25 as 2.5 does). That is the default. You are free to put

Re: [Python-3000] About "daemon" in threading module

2008-09-08 Thread Terry Reedy
Nick Coghlan wrote: (I deliberately pronounce daemon as day-mon though, so I don't forget how to spell it - perhaps pronouncing it as dee-mon makes it harder to remember the order of the 'a' and the 'e'?) If it is just the specific typo as 'deamon' that concerns people, adding a property spec

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-30 Thread Terry Reedy
Guido van Rossum wrote: On Mon, Sep 29, 2008 at 8:55 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: Le Monday 29 September 2008 19:06:01 Guido van Rossum, vous avez écrit : I know I keep flipflopping on this one, but the more I think about it the more I believe it is better to drop those

Re: [Python-3000] New proposition for Python3 bytes filename issue

2008-09-30 Thread Terry Reedy
Guido van Rossum wrote: On Tue, Sep 30, 2008 at 11:13 AM, Georg Brandl <[EMAIL PROTECTED]> wrote: Victor Stinner schrieb: On Windows, we might reject bytes filenames for all file operations: open(), unlink(), os.path.join(), etc. (raise a TypeError or UnicodeError) Since I've seen no objection

Re: [Python-3000] New proposition for Python3 bytes filename issue

2008-09-30 Thread Terry Reedy
Terry Reedy wrote: Guido van Rossum wrote: I'm not sure either way. I've heard it claim that Windows filesystem APIs use Unicode natively. Does Python 3.0 on Windows currently support filenames expressed as bytes? Are they encoded first before passing to the Unicode APIs? Using wha

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-30 Thread Terry Reedy
Martin v. Löwis wrote: Guido van Rossum wrote: However the *proposed* behavior (returns bytes if the arg was bytes, and returns str when the arg was str) is IMO sane, and no different than the polymorphism found in len() or many builtin operations. My concern still is that it brings the bytes

[Python-3000] A plus for naked unbound methods

2008-10-05 Thread Terry Reedy
I have seen a couple of objections to leaving unbound methods naked (as functions) when retrieved in 3.0. Here is a plus. A c.l.p poster reported that 2.6 broke his code because the addition of default rich comparisons to object turned tests like hassattr(ob, '__lt__') from False to True. Th

Re: [Python-3000] A plus for naked unbound methods

2008-10-06 Thread Terry Reedy
Mark Seaborn wrote: Terry Reedy <[EMAIL PROTECTED]> wrote: I have seen a couple of objections to leaving unbound methods naked (as functions) when retrieved in 3.0. Here is a plus. A c.l.p poster reported that 2.6 broke his code because the addition of default rich comparisons to

Re: [Python-3000] A plus for naked unbound methods

2008-10-06 Thread Terry Reedy
Mark Seaborn wrote: Terry Reedy <[EMAIL PROTECTED]> wrote: Mark Seaborn wrote: Terry Reedy <[EMAIL PROTECTED]> wrote: I have seen a couple of objections to leaving unbound methods naked (as functions) when retrieved in 3.0. Here is a plus. A c.l.p poster reported that 2.6 br

Re: [Python-3000] A plus for naked unbound methods

2008-10-07 Thread Terry Reedy
Nick Coghlan wrote: (added Michael to the CC list) It isn't object that has grown an __lt__ method, but type. The extra check Michael actually wants is a way to make sure that the method isn't coming from the object's metaclass, and the only reliable way to do that is the way collections.Hashabl

Re: [Python-3000] [Python-Dev] Proposed Python 3.0 schedule

2008-10-07 Thread Terry Reedy
James Y Knight wrote: FWIW: Qt works fine with undecodeable filenames, and it too uses unicode strings everywhere in its API. I looked into what it does, and found that it uses your (Martin)'s original idea for solving this: it stores undecodeable bytes as characters from 0x10fe00 to 0x10feff

Re: [Python-3000] Proposed Python 3.0 schedule

2008-10-07 Thread Terry Reedy
Guido van Rossum wrote: On Mon, Oct 6, 2008 at 5:47 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: So, we need to come up with a new release schedule for Python 3.0. My suggestion: 15-Oct-2008 3.0 beta 4 05-Nov-2008 3.0 rc 2 19-Nov-2008 3.0 rc 3 03-Dec-2008 3.0 final Given what still needs to be

Re: [Python-3000] [Python-Dev] Filename as byte string in python 2.6 or 3.0?

2008-10-09 Thread Terry Reedy
Glenn Linderman wrote: My understanding of the Posix file names is that any byte values are valid except "/" and null. Is this a correct understanding? The UTF-8b proposal seems to translate from a non-UTF-8 byte stream to a Unicode character stream. Call the original byte stream FOO. The

Re: [Python-3000] email libraries: use byte or unicode strings?

2008-10-29 Thread Terry Reedy
Bill Janssen wrote: Victor Stinner <[EMAIL PROTECTED]> wrote: Note: imaplib and nntplib have no test :-( The examples in the manual should serve as a basis for a doctest. I'm concerned about the lack of test suites for these modules. They basically go untested unless someone sets up a serv

[Python-3000] [ANN] Python 3 Symbol Glossary

2008-11-01 Thread Terry Reedy
Over the years, people have complained about the difficulty of finding the meaning of symbols used in Python syntax. So ... I wrote a Python 3 Symbol Glossary http://code.google.com/p/xploro/downloads/list There are .txt and .odt versions. The first is usable, the second is nicer if you have

Re: [Python-3000] None in Comparisons

2008-11-11 Thread Terry Reedy
M.-A. Lemburg wrote: Why was the special case for None being "smaller" than all other objects in Python removed from Python 3.0 ? (see object.c in Py2.x) For one thing, it is only smallest when it controls the comparison. >>> class c(object): ... def __lt__(s,o): return True ... >>> cc = c()

Re: [Python-3000] Install python-3000 as python3

2008-11-14 Thread Terry Reedy
Guido van Rossum wrote: No, no, no! *Eventually* Python 3.0 will just be "python". Until then, it needs to be "python3.0". I think you should consider changing the installation policy to installing each file with its own pythonx.y name and alias exactly one, the system default, as 'python'.

Re: [Python-3000] Install python-3000 as python3

2008-11-14 Thread Terry Reedy
Martin v. Löwis wrote: Currently on Windows, python3.0 is installed as just plain 'python'. This already causes problems when I want to choose 2.5 or 3.0. In my quick start list, I have two entries which both say "Python (command line)" with the *same* icon. What is a quick start list, and ho

Re: [Python-3000] PyObject_HEAD_INIT

2008-11-21 Thread Terry Reedy
Roger Binns wrote: The problem is that unless you are clairvoyant you have no way of knowing about this change. Even in rc3 the documentation shows the old (wrong) way: http://docs.python.org/dev/3.0/extending/newtypes.html PyObject_HEAD_INIT is documented: http://docs.python.org/dev/3.0

[Python-3000] Please don't post 40000 lines [was re: make problem]

2008-12-08 Thread Terry Reedy
This is not a binary images list or group ;-) ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] self-contained exceptions

2007-01-11 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | The case for changing 'for' is weakest, for sure. As I understand the proposal, the rationale for restricting the exception target is the autodeletion, which is obviously bug-prone if applied to pre-existing struc

Re: [Python-3000] Exceptions internals and removing sys.exc_*

2007-01-22 Thread Terry Reedy
"Phillip J. Eby" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Um, you're not taking 2.6 into consideration here. Remember that there has | to be a way to spell all these APIs in 2.6 that will still work in 3.0. | IMO, this seems sufficient reason to keep sys.exc_info() around,

Re: [Python-3000] Thoughts on new I/O library and bytecode

2007-02-22 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | FWIW, I've updated PEP 358 (the bytes object) to more closely reflect | my plans for it, showing the preservation of most string methods. It | should be updated on the website in a few minutes. | | If someone would l

Re: [Python-3000] rename it.next() to it.__next__(), add a next() built-in

2007-03-05 Thread Terry Reedy
"Ka-Ping Yee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On the consistency argument: sorted(somelist) calls copy(somelist).sort, not copy(somelist).__sort__. But I don't expect to see this change proposed. | Transition Plan | === | | Two additional transformati

Re: [Python-3000] PEP: rename it.next() to it.__next__(), add a next() built-in

2007-03-05 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Can I suggest that next() and __next__() be dropped entirely and that iterators just be made callable. Can you do that without making the call a regular, slow call each time? Or at least without adding a lookup of '__call__' each tim

Re: [Python-3000] rename it.next() to it.__next__(), add a next() built-in

2007-03-05 Thread Terry Reedy
"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Terry Reedy wrote: | | > One of the virtues, and as I recall, design purposes, of .next calls is to | > be fast. After the first call, execution jumps directly into the | > pre-existing stack f

Re: [Python-3000] PEP 3113 transition plan

2007-03-07 Thread Terry Reedy
"Collin Winter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | >From the checked-in version, | | """ | Two additional transformations will be added to the 2to3 translation tool [3]: | |* Method definitions named next will be renamed to __next__. |* Explicit calls to the ne

Re: [Python-3000] Discussions with no PEPs

2007-03-08 Thread Terry Reedy
"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Barry Warsaw wrote: | | > We already have an established, community accepted implementation of | > interfaces, | | Really? Which one is that? I was wondering too. Has there been a concrete PEPed proposal that I missed?

Re: [Python-3000] PEP for Metaclasses in Python 3000

2007-03-12 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] FWIW, I agree that class definition meta-information should go in the header rather that the body. To me, metaclass=mymeta at the top is much prettier than __metaclass__ = mymeta in the body. It will also make it

Re: [Python-3000] Fwd: Re: Fwd: Re: Octal

2007-03-15 Thread Terry Reedy
"Nicko van Someren" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On 14 Mar 2007, at 23:08, Guido van Rossum wrote: | > IOW, the only thing I'm unsure about is whether int('0012', 0) should | > return 10 or complain like eval('0012') would. Perhaps it's best to | > say that int('0

Re: [Python-3000] Fwd: Re: Fwd: Re: Fwd: Re: Octal

2007-03-15 Thread Terry Reedy
"Stephen Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On 3/15/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: | > | > I'm neutral about the choice between 0o, 0c or 0t. | | | Interested Lurker Opinion: Can it be a "small" character? 0x1 leaps out for | me because of the

Re: [Python-3000] Updated PEP: Integer literal syntax and radices (wasoctal/binary discussion)

2007-03-19 Thread Terry Reedy
"Patrick Maupin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | The update includes issues discussed to date, plus the support of | uppercase on input of binary and hex, e.g. '0O123'. | | It was pointed out to me that, since I suggested upper/lowercase was | an issue for another PE

Re: [Python-3000] Total ordering and __cmp__

2007-03-20 Thread Terry Reedy
"Collin Winter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Quoting from the commit message for r51533, which removed the default ordering: | | What's the status on this? FWIW, I would like to see __cmp__ stay as a | fallback measure if __eq__, __ne__, __lt__, etc aren't define

Re: [Python-3000] Total ordering and __cmp__

2007-03-20 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | But can this work? It might end up calling cmp() on two incomparable | objects. For __lt__ etc. that might be the right answer, but for | __eq__ it is *not* -- the default __eq__ and __ne__ *must* compare | object id

Re: [Python-3000] Total ordering and __cmp__

2007-03-21 Thread Terry Reedy
"Georg Brandl" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Yes, but dictionaries had an explicit ordering in dict_compare() which was | deleted. Is dict_compare something added in 2.5? It is neither a builtin or dict method in 2.4. In any case, this point is that dict order

Re: [Python-3000] Question about PEP 3001 and fixing API flaws

2007-03-21 Thread Terry Reedy
"BJörn Lindqvist" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | No comments at all. :( Did I send the mail to the wrong list? No, perhaps everyone did as I did, and assumed someone else would answer ;-) | Either or, I still would like to know what the py3k rules are for | repai

Re: [Python-3000] Total ordering and __cmp__

2007-03-21 Thread Terry Reedy
Terry Reedy schrieb: | > In any case, this point is that dict ordering is as arbitrary as ordering, | > for instance, a dict and a string. Since Guido stopped the experiment of | > totally ordering all objects when complex nums were added, consistency | > suggests that all fake

Re: [Python-3000] Single-line blocks?

2007-03-23 Thread Terry Reedy
"Aahz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | IIRC, there was some discussion about removing single-line blocks like | this one in 3.0: | |if foo: bar() | | However, I can't find any discussion about making it happen, and it's | not in PEP 3099. Guido, does this need a

Re: [Python-3000] PEP 30xx: Access to Module/Class/Function CurrentlyBeing Defined (this)

2007-04-22 Thread Terry Reedy
"Jim Jewett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |Functions (including methods) often want access to themselves, |usually for a private storage location. Or for true recursion. At present, a function has to 'hope' that its definition name is not rebound. tjr

Re: [Python-3000] BList PEP

2007-05-01 Thread Terry Reedy
"Daniel Stutzbach" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Sort O(n log n) O(n log n) Tim Peters' list.sort is, I believe, better than nlogn for a number of practically important special cases. I believe he documented this in the code comme

Re: [Python-3000] Derivation of "pass" in Python (was Re: PEP: Supporting Non-ASCII Identifiers)

2007-05-01 Thread Terry Reedy
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |> Thus, when someone is offered something, they may say, "I'll pass", | > meaning they are declining to act. Ergo, to "pass" in Python is to | > decline to give up the opportunity to act. The person being quoted m

Re: [Python-3000] PEP: Supporting Non-ASCII Identifiers

2007-05-01 Thread Terry Reedy
"Giovanni Bajo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On 01/05/2007 12.52, Martin v. Löwis wrote: | Isn't this already blacklisted in PEP 3099? In today's Pep Parade post, he implies no. "PEP: Supporting Non-ASCII identifiers (Martin von Loewis) I'm on record as not liki

[Python-3000] PEP3099 += 'Assignment will not become an operation'

2007-05-02 Thread Terry Reedy
and hence '=' will not become an operator and hence '=' will not become overloadable. (unless, of course, Guido has revised previous rejections). Came up again today on c.l.p. Surprised not alread in PEP. tjr ___ Python-3000 mailing list Python-30

Re: [Python-3000] PEP3099 += 'Assignment will not become anoperation'

2007-05-03 Thread Terry Reedy
"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Terry Reedy wrote: | > and hence '=' will not become an operator and hence '=' will not become | > overloadable. | | Actually, '=' *is* overloadable in most cases, It

Re: [Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.

2007-05-10 Thread Terry Reedy
"Phillip J. Eby" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | At 08:43 PM 5/9/2007 -0600, Steven Bethard wrote: | Yeah, and the dilemma is that if I go back and add in all the | examples and clarifications that have come up in these threads, it's | going to be even bigger. Ditto

Re: [Python-3000] Support for PEP 3131

2007-05-13 Thread Terry Reedy
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | That's a red herring. That is how I felt when you dismissed my effort to make your proposal more useful and more acceptable to some (by addressing transliteration) with the little molehill problem that Norwegians

Re: [Python-3000] PEP 3131 - the details

2007-05-16 Thread Terry Reedy
"Talin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | While there has been a lot of discussion as to whether to accept PEP | 3131 as a whole, there has been little discussion as to the specific | details of the PEP. In particular, is it generally agreed that the | Unicode character

Re: [Python-3000] Support for PEP 3131

2007-05-21 Thread Terry Reedy
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | I'm not aware of an algorithm that | can do transliteration for all Unicode characters. Were you proposing to allow all Unicode characters in Python names?-) | Therefore, I cannot add transliteration into the PEP.

Re: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?

2007-05-25 Thread Terry Reedy
"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Guido van Rossum wrote: | | > Last call for discussion! I'm tempted to reject this -- the ability to | > generate optimized code based on the shortcut semantics of and/or is | > pretty important to me. | | Please don't be

Re: [Python-3000] map, filter, reduce

2007-06-01 Thread Terry Reedy
"Jason Orendorff" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | PEP 3100 still isn't clear on the fate of these guys, except that | reduce() is gone. | | How about moving all three to the functools module instead? The current reduce is broken due to being a mashing together of tw

Re: [Python-3000] map, filter, reduce

2007-06-01 Thread Terry Reedy
"Georg Brandl" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | How should an "ireduce" work? The result is not a sequence which could be | returned lazily. It would generate the sequence of partial reductions (potentially indefinately). list(ireduce(summer, 0, range(5)) = [0, 1, 3

Re: [Python-3000] Renumbering old PEPs now targeted for Py3k?

2007-06-06 Thread Terry Reedy
"Chris Monson" <[EMAIL PROTECTED]> wrote in message | Leaving (old PEP number) in place as a stripped down PEP that just points to | the new number: +1 Good idea. And new number = next available. Special PEP numbers should be for special PEPs. tjr _

Re: [Python-3000] Announcing PEP 3136

2007-07-03 Thread Terry Reedy
"John S. Yates, Jr." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On Tue, 3 Jul 2007, "Guido van Rossum" <[EMAIL PROTECTED]> wrote: | | >However, I'm rejecting it on the basis that code so complicated to | >require this feature is very rare. | | I assume that you are familiar wit

Re: [Python-3000] Change to class construction?

2007-07-07 Thread Terry Reedy
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Georg is correct. A list comprehension like: | | [(x * y) for x in seq1 for y in seq2] | | expands to the following in 2.x (% prefixes the compiler's hidden | variables): | | %n = [] | for x in seq1: | for y in s

Re: [Python-3000] PEP 368: Standard image protocol and class

2007-07-07 Thread Terry Reedy
Reference Implementation If this PEP is accepted, the author will provide a reference implementation of the new classes in pure Python (that can run in CPython, PyPy, Jython and IronPython) and a second one optimized for speed in Python and C, suitable for inclusion in th

[Python-3000] PEP 3099 += no bool change?

2007-07-11 Thread Terry Reedy
Someone asked if Py3 would get a "real" or "pure" bool type (one not subclassing int). [The usual complaints and rehash about current bool ensured.] I believe (and said so) that this is a settled question. If so, please add a line under Standard types * bool will continue to subclass int. tj

Re: [Python-3000] pep 3124 plans

2007-07-19 Thread Terry Reedy
"Phillip J. Eby" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] By the way, I recently came across a use case for @around that I hadn't mentioned before. I'm in the process of re-implementing RuleDispatch's expression features in PEAK-Rules, and as I was defining the rules for inter

Re: [Python-3000] base64 - bytes and strings

2007-07-29 Thread Terry Reedy
"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Nick Coghlan wrote: | > Py3k strings are unicode, so returning a string would mean you just have | > to encode it again using the ascii codec to get the bytes to put on the | > wire. | | I still believe that producing a s

Re: [Python-3000] Updated and simplified PEP 3141: A Type Hierarchyfor Numbers

2007-08-02 Thread Terry Reedy
"Jeffrey Yasskin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |def __bool__(self): |"""True if self != 0.""" |return self != 0 Could this be a Number rather than Complex method? --- | There is no built-in rational type Floats constitu

Re: [Python-3000] Updated and simplified PEP 3141: A TypeHierarchyfor Numbers

2007-08-02 Thread Terry Reedy
"Terry Reedy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] || In short, having read up to the beginning of Exact vs. Inexact Classes, my | suggestion is to delete the unrealizable 'real' class Less than a minute after hitting Send, I realized that one

Re: [Python-3000] Default dict iterator should have been iteritems()

2007-09-04 Thread Terry Reedy
"Noam Raphael" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | The reasoning is simple: Iteration over an object usually gets all the | data it contains. A dict can be seen as an unordered collection of | tuples (key, value), indexed by key. So, iteration over a dict should | yield

Re: [Python-3000] C API for ints and strings

2007-09-10 Thread Terry Reedy
"Nicholas Bastin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Yeah, my point was mostly an aside to anyone that might have | questioned my earlier results of a 2.3x slowdown on integer-sized | values because I used 1. A quick switch to 200 netted the exact same | results, Curr

Re: [Python-3000] Stackless anyone ?

2007-09-16 Thread Terry Reedy
"Sascha Peilicke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | is or has there been any discussion about stackless and py3k? No. C. Tismer has focused his current efforts on PyPy. ___ Python-3000 mailing list Python-3000@python.or

Re: [Python-3000] bytes & Py_TPFLAGS_BASETYPE

2007-09-17 Thread Terry Reedy
"Mathieu Fenniak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | method (for pickling subclass instances). I was going to upload this | to the SF patch manager, but it appears to be closed to permit only | project members access. Because SF is only an archive now. We are now usin

Re: [Python-3000] New io system and binary data

2007-09-19 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Changing the mode between text and binary is not feasible (since it | would have to change the class). But it is perfectly acceptable to use | sys.std{in,out}.buffer if you need to write a binary transparent | filter

Re: [Python-3000] Immutable bytes -- looking for volunteer

2007-09-20 Thread Terry Reedy
"Jeffrey Yasskin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On 9/20/07, Adam Hupp <[EMAIL PROTECTED]> wrote: || > | > I have fixes for the following: ... | > I'll post a patch later today. | | Thanks for the help! This brings up a policy question: For patches | like the one I'

Re: [Python-3000] decorators for variable assignments?

2007-09-21 Thread Terry Reedy
| @validate_proxy | proxy = "http://user:[EMAIL PROTECTED]:port/" | | be a syntactical sugar for: | proxy = validate_proxy("http://user:[EMAIL PROTECTED]:port/") Sorry, to me, this is syntactical pepper -- or worse ;-) tjr ___ Python-3000 mailing

Re: [Python-3000] Unicode and OS strings

2007-09-21 Thread Terry Reedy
"Michael Urman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | If there's not something straightforward to put in the ... below that | would allow simple iteration and processing of all files passed on the | command line, preferably interchangeably on both unix (where filenames |

Re: [Python-3000] bytes and dicts (was: PEP 3137: Immutable Bytesand Mutable Buffer)

2007-09-28 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | | Well, if we wanted "x" and b"x" to compare unequal instead of raising | an exception, we could just define it that way (it was that way until | just before 3.0a1). But we're explicitly defining it to raise a | Type

Re: [Python-3000] bytes and dicts (was: PEP 3137: ImmutableBytesand Mutable Buffer)

2007-09-29 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Until just before 3.0a1, they were unequal. I think it valuable that in the language as delivered, 'o==p' (as well as 'bool(o)' )always return True or False. Both make reasoning about code easier since one does n

Re: [Python-3000] Last call for PEP 3137: Immutable Bytes and Mutable Buffer

2007-10-01 Thread Terry Reedy
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Brett Cannon wrote: | > +1 from me. | | Looks good to me too: +1 | | I wouldn't mind seeing some iteration-in-C bit-bashing operations in | there eventually, but they aren't needed on the first pass, and even | being abl

Re: [Python-3000] Last call for PEP 3137: Immutable Bytes andMutable Buffer

2007-10-02 Thread Terry Reedy
"Christian Heimes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Terry Reedy wrote: | > If orig_data were mutable (the new buffer, as proposed in the PEP), would | > not | > | > for i in range(len(orig_data)): | > orig_data[i] &= 0x1F | >

Re: [Python-3000] PEP 3137 plan of attack

2007-10-15 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | > > > As I work on these.. Should the mutable PyBytes_ (buffer) objects implement | > > > the following methods inplace and return an additional reference to self? | > | > > > .capitalize(), .center(), .expandtabs

Re: [Python-3000] need help fixing broken tests in py3k-pep3137branch

2007-11-03 Thread Terry Reedy
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] || I'd love a better term. It seems we could use several new names: | | 1. a new name for what PEP 3137 calls buffer The definining difference is mutability or editability, so 'mubytes' or 'ebytes'. | 2. a new name

Re: [Python-3000] pyvm module - low level interface to Python's VM

2007-11-29 Thread Terry Reedy
"Christian Heimes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Shorah! | | I've started to work on a pyvm module patch today. The new | module is going to contain low level interfaces to Python's VM and some | low level types, too. So far my first version contains only a bunch o

<    1   2   3   >