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
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
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
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
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
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/
_
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
__
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
>
/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
__
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
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
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
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.
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
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
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
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
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
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
> ---
>
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
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
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
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
>
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
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
>
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
> &
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
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/
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
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
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
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
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
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
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
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
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
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().
_
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
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
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
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-
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
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
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'
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
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.
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
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
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
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?
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
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
:) 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
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
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
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
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
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
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
60 matches
Mail list logo