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
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
= 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
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
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
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
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
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
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
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
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
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
\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
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
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
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
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
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
)
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
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
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
() 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
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
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
24 matches
Mail list logo