Re: [Python-Dev] LZW support in tarfile ?

2009-05-18 Thread Nick Craig-Wood
ancient platform to download one of the binaries here first. http://www.gzip.org/#exe As plugging in external compression tools is less likely to work cross-platform wouldn't it be both easier and better to deprecate (and not replace) the compress support. Agreed. -- Nick Craig-Wood n

Re: [Python-Dev] subprocess crossplatformness and async communication

2009-01-26 Thread Nick Craig-Wood
progressed. A cross platform async subprocess would indeed be a boon! -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

[Python-Dev] py3k: TypeError: object.__init__() takes no parameters

2009-01-16 Thread Nick Craig-Wood
= int(data) class StringField(Field): pass f1 = StringField('abc') f2 = IntegerField('10') print(f1=%r % f1.data) print(f2=%r % f2.data) print(type(f1)) print(type(f2)) Is this a bug or a feature? Is there a better work-around? -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig

Re: [Python-Dev] py3k: TypeError: object.__init__() takes no parameters

2009-01-16 Thread Nick Craig-Wood
Terry Reedy tjre...@udel.edu wrote: Nick Craig-Wood wrote: I've noticed with latest python 3.1 checkout (68631) if I have this object hierarchy with a default __init__ in the superclass to be used by the subclasses which don't necessarily need an __init__ it blows up with a TypeError

Re: [Python-Dev] Optionally using GMP to implement long if available

2008-11-10 Thread Nick Craig-Wood
compilers out there! -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] PEP: Lazy module imports and post import hook

2008-01-09 Thread Nick Craig-Wood
should separate these two things into two PEPs and implementations? -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] csv changed from python 2.4 to 2.5

2007-06-27 Thread Nick Craig-Wood
2007, 16:56:35) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 Type help, copyright, credits or license for more information. import csv d = csv.excel d.delimiter = ',' Don't you want to do this anyway? import csv class my_dialect(csv.excel): delimeter = , -- Nick Craig-Wood

Re: [Python-Dev] The docs, reloaded

2007-05-25 Thread Nick Craig-Wood
is doing with the main documentation should work together quite nicely. Sounds good! Nick -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] The docs, reloaded

2007-05-24 Thread Nick Craig-Wood
reST all the python documentation which would make it easier. -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] The docs, reloaded

2007-05-24 Thread Nick Craig-Wood
On Wed, May 23, 2007 at 12:46:50PM -0500, Ron Adam wrote: Nick Craig-Wood wrote: So I'll be able to read the main docs for a module in a terminal without reaching for the web browser (or info)? That would be great! How would pydoc decide which bit of docs it is going to show? Pydoc

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 pydoc you'll

Re: [Python-Dev] The docs, reloaded

2007-05-21 Thread Nick Craig-Wood
of ``comment'' at the moment as I'm sure you know... You will need to make your conversion perfect before you convince the people who wrote most of that documentation I suspect! -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick

Re: [Python-Dev] Caching float(0.0)

2006-10-04 Thread Nick Craig-Wood
\n, result); return 0; } -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman

Re: [Python-Dev] Caching float(0.0)

2006-10-03 Thread Nick Craig-Wood
caching of the value c) less cache thrashing I think you'll find that even in the no memory saving case a few cycles spent on comparison with 0.0 (or maybe a few other values) will speed up programs. -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick

Re: [Python-Dev] Caching float(0.0)

2006-10-03 Thread Nick Craig-Wood
is only about ~200. -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] Caching float(0.0)

2006-10-02 Thread Nick Craig-Wood
in different compilation units, even for the same value, don't. That makes sense - thanks for the explanation! -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] Caching float(0.0)

2006-10-01 Thread Nick Craig-Wood
as ASCII and these are being float()ed in python. -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org

Re: [Python-Dev] Caching float(0.0)

2006-10-01 Thread Nick Craig-Wood
was surprised to find out how many copies of 0.0 there were in my code and I guess I was subconsciously expecting the immutable 0.0s to be cached even though I know consciously I've never seen anything but int and str mentioned in the docs. -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig

[Python-Dev] Caching float(0.0)

2006-09-29 Thread Nick Craig-Wood
) 134738828 134738844 Is there any reason why float() shouldn't cache the value of 0.0 since it is by far and away the most common value? A full cache of floats probably doesn't make much sense though since there are so many 'more' of them than integers and defining small isn't obvious. -- Nick Craig

Re: [Python-Dev] Time-out in URL Open

2006-07-05 Thread Nick Craig-Wood
though. -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive

Re: [Python-Dev] Arena-freeing obmalloc ready for testing

2006-03-02 Thread Nick Craig-Wood
it is at the full prompt Excellent work! -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman

Re: [Python-Dev] str with base

2006-01-17 Thread Nick Craig-Wood
() another parameter, base, so you'd do hex(123123123, 2). Perhaps a little counter-intuitive, but if you were looking for base conversion functions you'd find hex() pretty quickly and the documentation would mention the other parameter. -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com

Re: [Python-Dev] Include ctypes into core Python?

2006-01-11 Thread Nick Craig-Wood
module!) -- Nick Craig-Wood [EMAIL PROTECTED] -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive

Re: [Python-Dev] Decimal returning NotImplemented (or not)

2005-03-02 Thread Nick Craig-Wood
when I read the python language docs, I assumed there was a mistake in them and they meant to say raise NotImplementedError instead of return NotImplemented. Why is it like that? And could it be changed (Nick Coghlan's proposal seems good to me)? -- Nick Craig-Wood [EMAIL PROTECTED] -- http