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
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
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
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
.
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
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
.
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
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
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
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
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
___
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.
&
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
> call_something( d'''
> > first part
> > second line
> > third line
> > ''' )
>
> Surely
>
> from textwrap import dedent as d
>
> is close enough?
A
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
__
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:
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
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]>
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
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
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
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
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
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
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
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
, 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
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
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
29 matches
Mail list logo