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

2009-05-18 Thread Nick Craig-Wood
think you can safely say that compress is gone! The worst you are doing by removing compress support is getting the user of some 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 > cros

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

2009-01-26 Thread Nick Craig-Wood
ow of, eg in twisted and wxPython. I heard rumours of a pexpect port to Windows but I don't know how far that has progressed. A cross platform async subprocess would indeed be a boon! -- Nick Craig-Wood -- http://www.craig-wood.com/nick ___ Py

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

2009-01-16 Thread Nick Craig-Wood
Terry Reedy 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__ i

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

2009-01-16 Thread Nick Craig-Wood
quot;"Another Default init for the subclasses""" super(Field, self).__init__(data) class IntegerField(Field): def __init__(self, data): """Overridden init""" super(IntegerField, self).__init__(data) self.data

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

2008-11-10 Thread Nick Craig-Wood
. I think a compiler would have to be pretty stupid not to take this optimisation... But then there are some pretty stupid compilers out there! -- Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Py

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-14 Thread Nick Craig-Wood
hing which can run across networks of machines has security implications and I didn't see these spelt out in the documentation. Networked running should certainly be disabled by default and need explicitly enabling by the user - I'd hate for a new version of python to come with a remote e

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

2008-01-09 Thread Nick Craig-Wood
. Perhaps you 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/py

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

2007-06-27 Thread Nick Craig-Wood
x27;excel') >>> d.__class__ >>> > Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) > [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > &g

Re: [Python-Dev] The docs, reloaded

2007-05-25 Thread Nick Craig-Wood
or 5 line function. (give or take a > few lines) > > So it looks like most of these issues are more a matter of how to organize > the interfaces. It turns out that what I've done with pydoc, and what > Georg is doing with the main documentation should work together quite

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

Re: [Python-Dev] The docs, reloaded

2007-05-24 Thread Nick Craig-Wood
eing html it probably would be difficult to read unless pumped > through lynx -dump or something similar. I'm assuming that we do reST all the python documentation which would make it easier. -- Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick ___

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. &

Re: [Python-Dev] The docs, reloaded

2007-05-21 Thread Nick Craig-Wood
tion -- that would have > to be corrected once after conversion is done. It is missing conversion 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 d

Re: [Python-Dev] PEP 30XZ: Simplified Parsing

2007-05-07 Thread Nick Craig-Wood
> call_something( d''' > > first part > > second line > > third line > > ''' ) > > Surely > > from textwrap import dedent as d > > is close enough? A

Re: [Python-Dev] 2.3.6 for the unicode buffer overrun

2006-10-12 Thread Nick Craig-Wood
l be > 14 releases in 12 months. 16 releases in 12 months would just about > make me go crazy. I sympathise! I do released for my current workplace and it is time consuming and exacting work. -- 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
le)) == 0) printf("2: %g == 0.0\n", result); else printf("2: %g != 0.0\n", result); printf("The == way\n"); result = 0.0; if (result == 0.0) printf("3: %g == 0.0\n", result); else printf("3:

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

2006-10-03 Thread Nick Craig-Wood
that it was. For my application caching 0.0 is by far the most important. 0.0 has ~200,000 references - the next highest reference count is only about ~200. -- Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick ___ P

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

2006-10-03 Thread Nick Craig-Wood
relatively expensive b) better 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]>

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

2006-10-02 Thread Nick Craig-Wood
ike this. Literals > 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 mailin

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

2006-10-01 Thread Nick Craig-Wood
float values are never > cached and that it may cause you problems. Some users may expect them > to be because common strings and integers are cached. I have to say I was surprised to find out how many copies of 0.0 there were in my code and I guess I was subconsciously expecting the immutab

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

2006-10-01 Thread Nick Craig-Wood
of zeros, that's clearly > computation results, not literals. In my application I'm receiving all the zeros from a server over TCP as ASCII and these are being float()ed in python. -- Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick

[Python-Dev] Caching float(0.0)

2006-09-29 Thread Nick Craig-Wood
ce there are so many 'more' of them than integers and defining small isn't obvious. -- Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mai

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

2006-07-05 Thread Nick Craig-Wood
uch better if it had help from the core 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://ma

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

2006-03-02 Thread Nick Craig-Wood
ithout this patch), VM size falls relatively little from what 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@pytho

Re: [Python-Dev] str with base

2006-01-17 Thread Nick Craig-Wood
hex() and oct() 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 PROT

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

2006-01-11 Thread Nick Craig-Wood
ngs ;-) (Yes I know about the warnings 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.p

Re: [Python-Dev] Python 3 design principles

2005-09-01 Thread Nick Craig-Wood
, there is a 99% accurate program which can turn your python 2.x into python 3 code, then that would ease the transition greatly. -- Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick ___ Python-Dev mailing list Python-Dev@python.org

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

2005-03-02 Thread Nick Craig-Wood
ypeError it would make the code a lot cleaner. I have to say 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 (Ni

Re: [Python-Dev] The other Py2.4 issue

2004-12-12 Thread Nick Craig-Wood
g embedding Python into this project, and I'm wondering whether we can cross compile python using mingw (almost certainly by the sound of it), but probably harder would be to make python module build and install system work cross-wise. -- Nick Crai