Re: [Python-3000] None in Comparisons: None vs. float("inf")

2008-11-13 Thread Jeffrey Yasskin
on-3000 mailing list >> Python-3000@python.org >> http://mail.python.org/mailman/listinfo/python-3000 >> Unsubscribe: >> http://mail.python.org/mailman/options/python-3000/bruce%40leapyear.org > > > ___ > Python-3000 maili

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

2008-05-27 Thread Jeffrey Yasskin
rite, which, if accepted, might obviate some of the rationale for this one. -- Namasté, Jeffrey Yasskin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/opti

Re: [Python-3000] python-safethread project status

2008-04-07 Thread Jeffrey Yasskin
systems with violent interruptions like posix signals and Haskell asynchronous exceptions, we'll need a way of blocking aborts in a scope, and unblocking them in a sub-scope. -- Namasté, Jeffrey Yasskin ___ Python-3000 mailing list Python-3000@py

[Python-3000] Exception tracebacks living too long in 3.0

2008-03-28 Thread Jeffrey Yasskin
I had thought that exc_info was automatically cleared at the end of any except block that caught an exception, but apparently that isn't the case. Is this a bug in 3.0, or do we need to keep sys.exc_clear() around? -- Namasté, Jeffrey Yasskin ___ Python-30

Re: [Python-3000] [Python-Dev] the release gods are angry at python

2008-03-28 Thread Jeffrey Yasskin
port in regrtest, although I wouldn't mind having it treat a timeout as a failure, as long as it's easier to diagnose than the SIGKILL it currently uses for timeouts. -- Namasté, Jeffrey Yasskin ___ Python-3000 mailing list Python-3000@python.org

Re: [Python-3000] python-safethread project status

2008-03-19 Thread Jeffrey Yasskin
gt; 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/jyasskin%40gmail.com > -- Namasté, Jeffrey Yasskin http://jeffrey.yasskin.info/ _

Re: [Python-3000] Set literal

2008-01-24 Thread Jeffrey Yasskin
time if I bother to create a set literal it would be to use it as a > constant. Agreed. I suspect that "frozenset" is just too long to type often, even if people are usually creating sets they don't intend to modify. -- Namasté, Jeffrey Yasskin __

Re: [Python-3000] Useless methods in Queue module

2008-01-14 Thread Jeffrey Yasskin
On Jan 14, 2008 6:31 PM, Mike Klaas <[EMAIL PROTECTED]> wrote: > On 14-Jan-08, at 5:49 PM, Jeffrey Yasskin wrote: > > > On Jan 14, 2008 2:55 PM, Mike Klaas <[EMAIL PROTECTED]> wrote: > > >> This is a misleading name. The number returned from qsize() [not >

Re: [Python-3000] Useless methods in Queue module

2008-01-14 Thread Jeffrey Yasskin
/research/synchronization/pseudocode/duals.html looks like it could, but I haven't examined the implementation well enough to be sure. Nevertheless, it would be a bad idea to assume such data structures will never be designed. -- Namasté, Jeffrey Yasskin __

Re: [Python-3000] [Python-Dev] Rounding Decimals

2008-01-13 Thread Jeffrey Yasskin
ir denominators. That is, to me, the ABCs a type implements are more about how developers should think about the type than the implementation of the type. [ A new thread is probably appropriate if anyone wants to discuss the philosophy, but I probably won't participate... ] -- Namasté, Je

Re: [Python-3000] [Python-Dev] Rounding Decimals

2008-01-13 Thread Jeffrey Yasskin
On Jan 12, 2008 8:21 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On Jan 12, 2008 5:09 PM, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > > During the discussion about the new Rational implementation > > (http://bugs.python.org/issue1682), Guido and Raymond decid

Re: [Python-3000] [Python-Dev] Rounding Decimals

2008-01-12 Thread Jeffrey Yasskin
ng methods mentioned on this thread. -- Namasté, Jeffrey Yasskin ___ 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] [Python-Dev] Rounding Decimals

2008-01-07 Thread Jeffrey Yasskin
On Jan 6, 2008 10:51 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > [Jeffrey Yasskin] > >> > I'm not > >> > sure exactly what you're objecting to. Could you be more precise? > >> > >> You note said: "I'll implement Context.

Re: [Python-3000] [Python-Dev] Rounding Decimals

2008-01-06 Thread Jeffrey Yasskin
On Jan 6, 2008 7:40 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > [Jeffrey Yasskin] > > The other 3 methods > > specified by PEP 3141 aren't strictly necessary for 2.6, but they will > > be needed for 3.0. I'd rather not make the two versions of Decima

Re: [Python-3000] [Python-Dev] Rounding Decimals

2008-01-06 Thread Jeffrey Yasskin
ecessary for 2.6, but they will be needed for 3.0. I'd rather not make the two versions of Decimal gratuitously different, so this patch puts them in the 2.6 version too. That's basically all of the changes in this patch, so I'm not sure exactly what you're objecting to. Co

Re: [Python-3000] [Python-Dev] Rounding Decimals

2008-01-06 Thread Jeffrey Yasskin
On Jan 6, 2008 1:21 AM, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > On Jan 5, 2008 7:11 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > > I think pep 3141's round(x, ndigits) does (1). The only thing it > > > doesn't support yet is specifying the

Re: [Python-3000] [Python-Dev] Rounding Decimals

2008-01-06 Thread Jeffrey Yasskin
on.org/issue1623 tomorrow so we have something concrete to talk about. -- Namasté, Jeffrey Yasskin ___ 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

[Python-3000] Rounding Decimals

2008-01-05 Thread Jeffrey Yasskin
ich I'll update as soon as this thread comes to a conclusion. Other people who are interested in getting this right should add themselves to its nosy list so they can object before I check something dumb in. :) I currently plan to keep __round__ in 2.6's Decimal with 3.0's behavior beca

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

2007-11-03 Thread Jeffrey Yasskin
uot;buffer" means > "FIFO queue" most of the time, it would also be a lot more intuitive. > > Cheers, > Nick. > > -- > Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia > --- >

Re: [Python-3000] What to do about "".join([b""])?

2007-11-01 Thread Jeffrey Yasskin
d to remove the exception. Any opinions to the > contrary? > > -- > --Guido van Rossum (home page: http://www.python.org/~guido/) > ___ > Python-3000 mailing list > Python-3000@python.org > http://mail.python.org/mailman/listinfo/python-3000 > Unsubscribe: > ht

Re: [Python-3000] Please re-add __cmp__ to python 3000

2007-10-29 Thread Jeffrey Yasskin
On 10/29/07, Steven Bethard <[EMAIL PROTECTED]> wrote: > On 10/29/07, David A. Wheeler <[EMAIL PROTECTED]> wrote: > > I think several postings have explained better than I have on why __cmp__ > > is still very valuable. (See below.) > > > > Guido van Rossum posted earlier that he was willing to e

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

2007-10-09 Thread Jeffrey Yasskin
On 10/10/07, Gregory P. Smith <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > - remove buffer API from PyUnicode > > > > > > I'll take these two with a goal of having them done by the end of the > week. > > > > -gps > > I should've known not to believe the simple description. This one is > prov

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

2007-09-29 Thread Jeffrey Yasskin
ses a > problem with dictionaries, but I don't see how an unequal comparison > creates "unpredictable" behavior (as opposed to predictable failure to match). > > ___ > Python-3000 mailing list > Python-3000@python.org >

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

2007-09-26 Thread Jeffrey Yasskin
al case for each similar type. Comparisons with literal bytes could be done with: for b in bb: if b == b'x'[0]: ... or perhaps if b == int(b'x'): ... but you're right that's not ideal. -- Namasté, Jeffrey Yasskin

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

2007-09-24 Thread Jeffrey Yasskin
On 9/20/07, Adam Hupp <[EMAIL PROTECTED]> wrote: > On 9/20/07, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > > > > Thanks for the help! This brings up a policy question: For patches > > like the one I've attached here, do we want to start submitting them >

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

2007-09-20 Thread Jeffrey Yasskin
On 9/20/07, Adam Hupp <[EMAIL PROTECTED]> wrote: > On 9/20/07, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > > I've attached a very preliminary patch for this. It makes bytes > > immutable but doesn't do either of the other suggested changes. It's > &

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

2007-09-19 Thread Jeffrey Yasskin
odev test_pep277 test_socket_ssl test_socketserver test_ssl test_startfile test_timeout test_urllib2net test_urllibnet test_winreg test_winsound test_xmlrpc_net test_zipfile64 1 skip unexpected on darwin: test_ssl On 9/18/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 9/1

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

2007-09-18 Thread Jeffrey Yasskin
http://www.python.org/~guido/) > ___ > Python-3000 mailing list > Python-3000@python.org > http://mail.python.org/mailman/listinfo/python-3000 > Unsubscribe: > http://mail.python.org/mailman/

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

2007-08-22 Thread Jeffrey Yasskin
want to return an Integral? [__properfraction__ is probably subsumed by divmod(x, 1).] * How to give the removed methods (divmod, etc. on complex) good error messages without having them show up in help(complex)? I'll look into this during the sprint. On 8/2/07, Jeffrey Yasskin <[EM

Re: [Python-3000] Immutable bytes type and dbm modules

2007-08-08 Thread Jeffrey Yasskin
that bytes hasn't existed in any released Python. I was really asking why you picked mutable as the first type to experiment with, and I guess I/O is the answer to that, although it seems to me like a case of the tail wagging the dog. On 8/7/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > J

Re: [Python-3000] Immutable bytes type and dbm modules

2007-08-06 Thread Jeffrey Yasskin
just use list(). > > I don't think this is adequate. Too much lower-level API relies on > having memory blocks, and that couldn't be implemented efficiently > with a list. > > Regards, > Martin > -- Namasté, Jeffrey Yasskin

Re: [Python-3000] Immutable bytes type and dbm modules

2007-08-06 Thread Jeffrey Yasskin
On 8/6/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 8/6/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > For how long? Do you expect to receive further information that will > > make a decision simpler? > > I'm waiting for a show-stopper issue that can't be solved without > having an im

Re: [Python-3000] test_asyncore fails intermittently on Darwin

2007-08-04 Thread Jeffrey Yasskin
is a flag that you pass when > creating a socket to tell it to re-use an existing address, > not something to be used as a timeout value, as far as > I know. > > -- > Greg > ___ > Python-3000 mailing list > Python-3000@python.org &g

Re: [Python-3000] map() Returns Iterator

2007-08-04 Thread Jeffrey Yasskin
terator. I have my doubts on > map(), filter(), and zip(). Having them return iterators seems to > be a premature optimization. Could something be done in the ast phase > of compilation instead? > > > > > > > -- > KBK > ___________ > Python-3000 mailing list > Python-3

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

2007-08-02 Thread Jeffrey Yasskin
On 8/2/07, Terry Reedy <[EMAIL PROTECTED]> wrote: > "Jeffrey Yasskin" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > |def __bool__(self): > |"""True if self != 0.""" > |return

Re: [Python-3000] pep 3124 plans

2007-07-29 Thread Jeffrey Yasskin
d(int i, string s) { return do_something(i, s); } }; and am then surprised that Child c; c.method(Bar(...)); fails to compile. (Because I forgot the using declaration in Child. Again.) So the possibility is practically clumsy, but there's a precedent for it. -- Namasté, Jeffrey Yasskin ___ 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] struni and the Apple four-character-codes

2007-07-28 Thread Jeffrey Yasskin
On 7/27/07, Bob Ippolito <[EMAIL PROTECTED]> wrote: > On 7/27/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On 7/26/07, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > > > On 7/26/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > > (P

Re: [Python-3000] struni and the Apple four-character-codes

2007-07-26 Thread Jeffrey Yasskin
On 7/26/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > (Personally > I'd like to use strings for the keys since {'TEXT': 'stuff'} is a lot > clearer than {1413830740: 'stuff'} when encountered in a debugging > session.) Good argument. You now have a patch that uses str() instead of b2i(). _

Re: [Python-3000] pep 3124 plans

2007-07-26 Thread Jeffrey Yasskin
t, the penalty is the same. What's the benefit from generic functions here? -- Namasté, Jeffrey Yasskin ___ 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] struni and the Apple four-character-codes

2007-07-26 Thread Jeffrey Yasskin
d the Mac libraries for ages (from > way before OS9 was shiny and new). Did you mean to add him to this thread? > On Wednesday, July 25, 2007, at 07:18AM, "Jeffrey Yasskin" <[EMAIL > PROTECTED]> wrote: > > 5) Make a new hashable class for these codes which converts th

[Python-3000] struni and the Apple four-character-codes

2007-07-24 Thread Jeffrey Yasskin
I'm looking through a couple of the OS X tests and have run into the question of what to do with four-character codes. (For those of you who are unfamiliar with these, Apple, around the dawn of time, decided that C constants like 'TEXT' (yes, those are single quotes) would compile to the uint32_t 0

[Python-3000] Updated and simplified PEP 3141: A Type Hierarchy for Numbers

2007-05-16 Thread Jeffrey Yasskin
e updates as quickly as I can. PEP: 3141 Title: A Type Hierarchy for Numbers Version: $Revision: 54928 $ Last-Modified: $Date: 2007-04-23 16:37:29 -0700 (Mon, 23 Apr 2007) $ Author: Jeffrey Yasskin <[EMAIL PROTECTED]> Status: Draft Type: Standards Track Content-Type: text/x-rst Created: 23-

Re: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-29 Thread Jeffrey Yasskin
h about how metaclasses are typically used to know how that would conflict. -- Namasté, Jeffrey Yasskin ___ 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] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-28 Thread Jeffrey Yasskin
Thanks for the comments! On 4/26/07, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > > Forgive my ignorance, but I'm not really sure what this PEP is trying to > do. I don't want to sound negative, I really just don't understand the > purpose. I've just never encountered a problem this that I ca

Re: [Python-3000] [Numpy-discussion] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-28 Thread Jeffrey Yasskin
On 4/27/07, Alan Isaac <[EMAIL PROTECTED]> wrote: > On Fri, 27 Apr 2007, Jeffrey Yasskin wrote: > > Then again, doubles aren't a group either because of this > > imprecision, and I'm suggesting claiming they're > > a subclass of that, so maybe there'

Re: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-28 Thread Jeffrey Yasskin
On 4/25/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > On 4/25/07, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > > class MonoidUnderPlus(Abstract): > > Is this useful? Just because two things are both Monoid instances > doesn't mean I can add them -- they have t

Re: [Python-3000] string module trimming

2007-04-27 Thread Jeffrey Yasskin
that > > size. > > Agreed. But there aren't 40K (alphabetic) letters in any particular > locale. Most individual languages will have less than 100. Here's a relevant bunch of data from the CLDR: http://www.unicode.org/cldr/data/charts/by_type/misc.exemplarCharacters.

Re: [Python-3000] PEP 3119 - Introducing Abstract Base Classes

2007-04-27 Thread Jeffrey Yasskin
ain why Interfaces are better. I expect that much > of the work that went into e.g. defining the various shades of > "mapping-ness" and the nomenclature could easily be adapted for a > proposal to use Interfaces instead of ABCs. > > "Interfaces" in this context refers

Re: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-27 Thread Jeffrey Yasskin
es have finite precision and rationals don't, I don't think doubles are a subtype of the rationals, even if you juggle Nan/Inf to make them a subset. Then again, doubles aren't a group either because of this imprecision, and I'm s

Re: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-25 Thread Jeffrey Yasskin
uot; to an existing abstract class from a separate module. Hopefully Jim's thread will be fruitful. I haven't updated the PEP to correspond to this yet, in case it's even worse than what I have. :) -- Namasté, Jeffrey Yasskin ___ P

Re: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-25 Thread Jeffrey Yasskin
new numeric types who don't know the abstract algebra. I think we should be able to insulate people who are just using the types from the complexities underneath, and the people writing new types will benefit. Or will seeing "Ring" in a list of superclasses be enough to confuse people?

Re: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-25 Thread Jeffrey Yasskin
mean that the names and documentation in the numbers module need to be as clear as we can make them for non-mathematical audiences. I'm certainly open to suggestions on that front. -- Namasté, Jeffrey Yasskin ___ Python-3000 mailing list Python-3000@p

Re: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-25 Thread Jeffrey Yasskin
mean that the names and documentation in the numbers module need to be as clear as we can make them for non-mathematical audiences. I'm certainly open to suggestions on that front. -- Namasté, Jeffrey Yasskin ___ Python-3000 mailing list Python-3000@p

[Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-25 Thread Jeffrey Yasskin
:) This is my first PEP, so apologies for any obvious mistakes. I'd particularly like the numpy people's input on whether I've gotten floating-point support right. Thanks, Jeffrey Yasskin --- PEP: 3141 Title: A Type Hierarchy for Numbers (and other al

Re: [Python-3000] Need help completing ABC pep

2007-04-22 Thread Jeffrey Yasskin
On 4/21/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 4/21/07, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > > PartiallyOrdered: > > This ABC defines the 5 inequality operations <, <=, >=, >, and cmp(). > > Actually, I'm hoping to eliminat

Re: [Python-3000] Need help completing ABC pep

2007-04-21 Thread Jeffrey Yasskin
On 4/20/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 4/20/07, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > > On Sets: > > Do you have an example of a data structure that is a Set but not a > > ComposableSet? > > Take for example a set that is a cont

Re: [Python-3000] string module trimming

2007-04-20 Thread Jeffrey Yasskin
On 4/19/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > > "Jeffrey Yasskin" <[EMAIL PROTECTED]> wrote: > > > ... Are you saying that in your app, just because I've set > > > the en_US locale, I won't be able to type ""? Or that tho

Re: [Python-3000] Need help completing ABC pep

2007-04-20 Thread Jeffrey Yasskin
ebraic traits, and it looks like they plan a similarly detailed hierarchy of numbers, but the numbers aren't yet specified beyond integers and rationals. Cardinal is also useful as the argument to (Sequence * Cardinal). Index (Ix) is used in Haskell primarily in the form of tuples of Ints for

Re: [Python-3000] string module trimming

2007-04-19 Thread Jeffrey Yasskin
On 4/18/07, Josiah Carlson <[EMAIL PROTECTED]> wrote: > "Jeffrey Yasskin" <[EMAIL PROTECTED]> wrote: > > I missed the beginning of this discussion, so sorry if you've already > > covered this. Are you saying that in your app, just because I've se

Re: [Python-3000] string module trimming

2007-04-18 Thread Jeffrey Yasskin
this. Are you saying that in your app, just because I've set the en_US locale, I won't be able to type "こにちは"? Or that those characters won't be recognized as letters? The Unicode character database (http://www.unicode.org/ucd/) seems like the obvious way to ha