On Fri, 12 Jun 2009 18:33:13 -0400
Nikolaus Rath nikol...@rath.org wrote:
Nikolaus Rath nikol...@rath.org writes:
Hi,
Please consider this example:
[]
I think I managed to narrow down the problem a bit. It seems that when
a function returns normally, its local variables are
On Jun 14, 10:38 am, koranthala koranth...@gmail.com wrote:
Software Tools - Seems to be a classic - not sure whether I will buy.
In that vein but more modern -- Art of Unix Programming by Eric
Raymond (available online)
Some of my old favorites:
Intro to functional programming by Bird and Wadler
On Jun 14, 12:27 pm, pdlem...@earthlink.net wrote:
On Sat, 13 Jun 2009 19:03:38 -0700 (PDT), John Machin
sjmac...@lexicon.net wrote:
On Jun 14, 10:20 am, pdlem...@earthlink.net wrote:
Now no error message, but it will go on forever despite repeatedly
entering 0. Have to get out with
Jack Diederich wrote:
the square brackets always expect an int or a slice.
true only for lists :)
In [1]: mydict = {}
In [2]: mydict[1,2,3] = 'hi'
In [3]: print mydict[1,2,3]
-- print(mydict[1,2,3])
hi
--
By ZeD
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber wlfr...@ix.netcom.com writes:
Either way -- it was still a change from expiration at some
date... Though since (Netcom/Mindspring)Earthlink seems to have
subcontracted NNTP service to Giganews (or some such) it wouldn't
surprise me to learn that service also keeps a
Piet van Oostrum wrote:
kj no.em...@please.post (k) wrote:
k Switching from Perl here, and having a hard time letting go...
k Suppose I have an array foo, and that I'm interested in the 4th, 8th,
k second, and last element in that array. In Perl I could write:
k my @wanted = @foo[3,
David Bolen db3l@gmail.com writes:
Individual messages could include an Expires: header if they wished,
Since we're already well off-topic: NNTP, HTTP, and email, and probably
other protocols as well, all deal with messages. They are all consistent
in defining a message [0] as having
Brian D wrote:
On Jun 11, 9:22 am, Brian D brianden...@gmail.com wrote:
On Jun 11, 2:01 am, Lie Ryan lie.1...@gmail.com wrote:
504cr...@gmail.com wrote:
I've encountered a problem with my RegEx learning curve -- how to
escape hash characters # in strings being matched, e.g.:
string =
On Sun, 14 Jun 2009 00:46:16 -0700 (PDT)
Mr . Waqar Akbar wqr.ak...@gmail.com wrote:
...
Judging by the typo in the last subject, someone indeed types all this
crap in manually! Oh my god...
--
Mike Kazantsev // fraggod.net
signature.asc
Description: PGP signature
--
Mr . Waqar Akbar wqr.ak...@gmail.com writes:
A computer is a collection of modular electronic components, i.e.
components that can be replaced by other components that may have
different characteristics that are capable of running computer
programs.
And also storing and manipulating all
I released pyTenjin 0.8.1.
http://www.kuwata-lab.com/tenjin/
http://pypi.python.org/pypi/Tenjin/
pyTenjin is the fastest template engine for Python.
* Very fast (about 10 times faster than Django template engine)
* Easy to learn (no need to learn template-original language)
* Full-featured
In message d177c9ea-4643-4dbe-
a889-6556ff32d...@x1g2000prh.googlegroups.com, koranthala wrote:
I do have Mythical Man-Month - a great book indeed.
I was looking for more technical books ...
No-one has mentioned Andrew Tanenbaum's Computer Networks. So much of
programming seems to involve
In message slrnh33j2b.4bu.pe...@box8.pjb.com.au, Peter Billam wrote:
Are there any modules, packages, whatever, that will
measure the fractal dimensions of a dataset, e.g. a time-series ?
I don't think any countable set, even a countably-infinite set, can have a
fractal dimension. It's got to
In message qoteitso8ru@ruuvi.it.helsinki.fi, Jussi Piitulainen wrote:
Miles Kaufmann writes:
I'm curious what algorithm calls for random numbers on a closed
interval.
The Box-Muller transform, polar form. At least Wikipedia says so.
Doesn't seem to be necessary, if I interpret the
In message mailman.1366.1244592006.8015.python-l...@python.org, Esmail
wrote:
I'm implementing a Particle Swarm Optimizer. Depending on what paper you
read you'll see mention of required random values between 0 and 1
which is somewhat ambiguous. I came across one paper that specified
the
In message mailman.1368.1244607807.8015.python-l...@python.org, Esmail wrote:
Here is part of the specification of an algorithm I'm implementing that
shows the reason for my original query:
vid = w * vid + c1 * rand( ) * ( pid – xid ) + c2 * Rand( ) * (pgd –xid ) (1a)
xid = xid + vid (1b)
In message mailman.1510.1244832141.8015.python-l...@python.org, Rhodri
James wrote:
2. That output string has severe leaning toothpick syndrome. Python
accepts both single and double quotes to help avoid creating something
so unreadable: use them.
Backslashes are more scalable.
--
On 8 Ιούν, 21:46, Terry Reedy tjre...@udel.edu wrote:
madigre...@yahoo.gr wrote:
I execute my code in linux environment.
My code is:
from os import *
def insert_text_file(self, strng):
t=open(elements_file.txt, a)
t.write(strng)
t.close()
I'm getting this error:
I am sure people have thought of this before, but I cant find where.
I think that python should adapt a way of defining different types of
mapping functions by proceeding a letter before the curly brackets.
i.e ordered = o{}, multidict = m{} (like paste multidict). So you
could define an
On Sun, 14 Jun 2009 04:02:47 -0700 (PDT)
kindly kin...@gmail.com wrote:
Am I crazy to think this is a good idea? I have not looked deeply
pythons grammer to see if it conflicts with anything, but on the
surface it looks fine.
I'd say on the surface it looks like perl ;)
I'd prefer to use
On Jun 14, 12:25 pm, Mike Kazantsev mk.frag...@gmail.com wrote:
On Sun, 14 Jun 2009 04:02:47 -0700 (PDT)
kindly kin...@gmail.com wrote:
Am I crazy to think this is a good idea? I have not looked deeply
pythons grammer to see if it conflicts with anything, but on the
surface it looks
Hi,
this kind of stuff is commonly discussed on the python-ideas mailing list.
You might want to search that list and/or repost this over there.
Stefan
kindly wrote:
I am sure people have thought of this before, but I cant find where.
I think that python should adapt a way of defining
In article 7x4ouj7dc5@ruckus.brouhaha.com,
Paul Rubin http://phr...@nospam.invalid wrote:
Roy Smith r...@panix.com writes:
In the same vein, Death March, by Ed Yourdon.
I've been wanting to read Antipatterns.
I didn't think that was so great. It had a lot of hype, which lead to be
Ben Finney ben+pyt...@benfinney.id.au writes:
David Bolen db3l@gmail.com writes:
Individual messages could include an Expires: header if they wished,
Since we're already well off-topic: NNTP, HTTP, and email, and probably
other protocols as well, all deal with messages. They are all
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes:
In message slrnh33j2b.4bu.pe...@box8.pjb.com.au, Peter Billam wrote:
Are there any modules, packages, whatever, that will
measure the fractal dimensions of a dataset, e.g. a time-series ?
I don't think any countable set, even a
Arnaud Delobelle arno...@googlemail.com writes:
I think there are attempts to estimate the fractal dimension of a set
using a finite sample from this set. But I can't remember where I got
this thought from!
There are image data compression schemes that work like that, trying
to detect
On Sun, 14 Jun 2009 04:36:17 -0700 (PDT)
kindly kin...@gmail.com wrote:
Python already has it for strings rfoo or ubar. So I do not think
its going against the grain.
flame_war_alert
Yes, and there's other syntactic sugar like ; (barely used),
mentioned string types, (element,), %s%var or
Stefan Behnel wrote:
Hi,
this kind of stuff is commonly discussed on the python-ideas mailing list.
You might want to search that list and/or repost this over there.
Please don't top-post here.
If the OP takes this idea to python-ideas, chances are he'll be told to take
the concept here
kj wrote:
OK, I see: if Python allowed foo[3,7,1,-1], then foo[3] would be
ambiguous: does it mean the fourth element of foo, or the tuple
consisting of this element alone? I suppose that's good enough
reason to veto this idea...
There's nothing ambiguous about it. obj.__getitem__(x)
Nathan Stoddard wrote:
The best way to become a good programmer is to program. Write a lot of
code; work on some large projects. This will improve your skill more than
anything else.
I think there are about 100 million VB code-monkeys who prove that theory
wrong.
Seriously, and without
Stefan Behnel wrote:
Hi,
this kind of stuff is commonly discussed on the python-ideas mailing list.
You might want to search that list and/or repost this over there.
Stefan
kindly wrote:
I am sure people have thought of this before, but I cant find where.
I think that python should adapt a
On 2009-06-14 03:34:34 +0100, Paul Rubin http://phr...@nospam.invalid said:
Roy Smith r...@panix.com writes:
In the same vein, Death March, by Ed Yourdon.
I've been wanting to read Antipatterns.
I bought it but couldn't get into it. Light on meat, heavy on boredom
(for me - these things
The analogy with raw strings is faulty: r changes the way the compiler
interprets the characters between the quotes, it doesn't create a different
type of object.
But u does, as does the new bytestring-literal in Python3. So there is
precedent.
Diez
--
On 2009-06-14 14:04:02 +0100, Steven D'Aprano
st...@removethis.cybersource.com.au said:
Nathan Stoddard wrote:
The best way to become a good programmer is to program. Write a lot of
code; work on some large projects. This will improve your skill more than
anything else.
I think there are
John Yeung wrote:
Paul LaFollette is probably thinking along the lines of formal logic
or set theory. It's a little bit confused because programming isn't
quite the same as math, and so it's a common question when designing
and implementing programming languages how far to take certain
Hi,
Which are the classic books in computer science which one should
peruse?
From having read this discussion up to now I'd recomend you to read code
written by good programmers.
Christof
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 14, 4:02 am, kindly kin...@gmail.com wrote:
I am sure people have thought of this before, but I cant find where.
I think that python should adapt a way of defining different types of
mapping functions by proceeding a letter before the curly brackets.
i.e ordered = o{}, multidict =
On Jun 14, 1:59 pm, Steven D'Aprano
st...@removethis.cybersource.com.au wrote:
Stefan Behnel wrote:
Hi,
this kind of stuff is commonly discussed on the python-ideas mailing list.
You might want to search that list and/or repost this over there.
Please don't top-post here.
If the OP
On Jun 14, 6:30 am, kindly kin...@gmail.com wrote:
On Jun 14, 1:59 pm, Steven D'Aprano
snip
I am glad the ordered dict will be in 2.7 and 3.1. I
was just imagining what would be the next step in definition of
structures. New languages like clojure have adopted the dict as top
level. I
Lawrence D'Oliveiro wrote:
In message slrnh33j2b.4bu.pe...@box8.pjb.com.au, Peter Billam wrote:
Are there any modules, packages, whatever, that will
measure the fractal dimensions of a dataset, e.g. a time-series ?
I don't think any countable set, even a countably-infinite set, can have a
Steven D'Aprano wrote:
... or {1}∩0. (If that character between the set and zero ends up missing,
it's meant to be INTERSECTION u'\u2229'.)
Note that you can write this in a quite readable way in ASCII:
it's meant to be the character u'\N{INTERSECTION}'.
--Scott David Daniels
Hi, please forgive the multi-posting on this general topic.
Some time ago, I recommended a pursuit of keeping 'persistent
composite' types on disk, to be read and updated at other times by
other processes. Databases provide this functionality, with the
exception that field types in any given
John Yeung wrote:
And I accept your answer, as well as Steven's and Paul's for that
matter. I still think it is understandable (and people may choose to
understand in a condescending way, if they wish) that someone might
not get the difference between what you are saying and the statement
On Jun 14, 3:27 pm, Aaron Brady castiro...@gmail.com wrote:
Hi, please forgive the multi-posting on this general topic.
Some time ago, I recommended a pursuit of keeping 'persistent
composite' types on disk, to be read and updated at other times by
other processes. Databases provide this
On Jun 14, 6:04 pm, Steven D'Aprano
st...@removethis.cybersource.com.au wrote:
I think there are about 100 million VB code-monkeys who prove that theory
wrong.
Seriously, and without denigrating any specific language, you can program by
(almost) mindlessly following a fixed number of recipes
Graham Ashton wrote:
On 2009-06-14 14:04:02 +0100, Steven D'Aprano
st...@removethis.cybersource.com.au said:
Nathan Stoddard wrote:
The best way to become a good programmer is to program. Write a lot of
code; work on some large projects. This will improve your skill more
than anything
Aaron Brady wrote:
Some time ago, I recommended a pursuit of keeping 'persistent
composite' types on disk, to be read and updated at other times by
other processes. Databases provide this functionality, with the
exception that field types in any given table are required to be
uniform.
John Yeung gallium.arsen...@gmail.com (JY) wrote:
JY I've never heard a mathematician use the term bottom. It certainly
JY could be that I just haven't talked to the right types of
JY mathematicians.
Bottom is a term from lattice theory, which is a branch of mathematics.
--
Piet van Oostrum
Hello there everyone, I used to be on this a long time ago but then I got so
much spam I gave up.
But this strategy has come a little unstuck. I have binary output from a
Fortran program that is in a big-endian C-structured binary file. The
output can be very variable and many options create
On Sat, Jun 13, 2009 at 7:23 PM, John Yeunggallium.arsen...@gmail.com wrote:
Paul LaFollette is probably thinking along the lines of formal logic
or set theory. It's a little bit confused because programming isn't
quite the same as math, and so it's a common question when designing
and
where line 175 is the assignment to self.unique_name. After a little
back-and-forth with his user it turns out that her computer's hostname
contains non-ASCII data, so presumably self.hostname is a unicode object.
Most likely, it is not. It's rather the hostname encoded in the ANSI
code page.
i can traverse a directory using os.listdir() or os.walk(). but if a
directory has a very large number of files, these methods produce very
large objects talking a lot of memory.
in other languages one can avoid generating such an object by walking
a directory as a liked list. for example, in c,
On Jun 14, 8:24 am, Steven D'Aprano
st...@removethis.cybersource.com.au wrote:
Aaron Brady wrote:
Some time ago, I recommended a pursuit of keeping 'persistent
composite' types on disk, to be read and updated at other times by
other processes. Databases provide this functionality, with the
Thank you all for your thoughtful and useful comments. Since this has
largely morphed into a discussion of my 3rd question, perhaps it would
interest you to hear my reason for asking it.
John is just about spot on. Part of my research involves the
enumeration and generation of various
Steven D'Aprano st...@removethis.cybersource.com.au writes:
So-called vacuous truth. It's often useful to have all([]) return true,
but it's not *always* useful -- there are reasonable cases where the
opposite behaviour would be useful:
if all(the evidence points to the Defendant's guilt)
Helmut Fritz wrote:
Hello there everyone, I used to be on this a long time ago but then I
got so much spam I gave up.
But this strategy has come a little unstuck. I have binary output from
a Fortran program that is in a big-endian C-structured binary file. The
output can be very variable
On Sun, Jun 14, 2009 at 4:27 PM, Aaron Bradycastiro...@gmail.com wrote:
Before I go and flesh out the entire interfaces for the provided
types, does anyone have a use for it?
A real-world application of persistent data structures can be found here:
http://stevekrenzel.com/persistent-list
On Sun, Jun 14, 2009 at 6:49 PM, Paul
LaFollettepaul.lafolle...@gmail.com wrote:
Now, suppose that I want to generate, say, the set of all ordered
trees with N nodes. I need to be able to represent the empty ordered
tree, i.e. the tree with with zero nodes. There are a lot of ways I
could
tom wrote:
i can traverse a directory using os.listdir() or os.walk(). but if a
directory has a very large number of files, these methods produce very
large objects talking a lot of memory.
in other languages one can avoid generating such an object by walking
a directory as a liked list. for
Andre Engels wrote:
On Sun, Jun 14, 2009 at 6:49 PM, Paul
LaFollettepaul.lafolle...@gmail.com wrote:
Now, suppose that I want to generate, say, the set of all ordered
trees with N nodes. I need to be able to represent the empty ordered
tree, i.e. the tree with with zero nodes. There are a
On Jun 14, 1:35 pm, Tim Golden m...@timgolden.me.uk wrote:
If you're on Windows, you can use the win32file.FindFilesIterator
function from the pywin32 package. (Which wraps the Win32 API
FindFirstFile / FindNextFile pattern).
thanks, tim.
however, i'm not using windows. freebsd and os x.
--
On Jun 14, 10:02 am, Arnaud Delobelle arno...@googlemail.com wrote:
snip
guilt, it doesn't mean they will be convicted. There needs to be enough
evidence to convince the jury. So it would be something like:
if sum(guilt_weight(e) for e in evidence) GUILT_THRESHOLD:
the defendant is
Hello,
I'm using weakrefs in a small multi-threaded application. I have been
using object IDs as dictionary keys with weakrefs to execute removal
code, and was glad to find out that this is in fact recommended
practice (http://docs.python.org/library/weakref.html)
This simple example shows how
On Sun, Jun 14, 2009 at 9:04 AM, Steven D'Aprano
st...@removethis.cybersource.com.au wrote:
Nathan Stoddard wrote:
The best way to become a good programmer is to program. Write a lot of
code; work on some large projects. This will improve your skill more than
anything else.
I think
Andre Engels andreeng...@gmail.com writes:
I don't see why that would be the case. Something of the type thingy
is ONE thingy. Nothing is ZERO thingies, so it is not something of the
type thingy. A car is a single car. Nothing is zero cars, which is
not a car, just like two cars is not a car.
tom wrote:
On Jun 14, 1:35 pm, Tim Golden m...@timgolden.me.uk wrote:
If you're on Windows, you can use the win32file.FindFilesIterator
function from the pywin32 package. (Which wraps the Win32 API
FindFirstFile / FindNextFile pattern).
thanks, tim.
however, i'm not using windows. freebsd
On Sun, Jun 14, 2009 at 9:37 PM, Paul Rubinhttp://phr...@nospam.invalid wrote:
Andre Engels andreeng...@gmail.com writes:
I don't see why that would be the case. Something of the type thingy
is ONE thingy. Nothing is ZERO thingies, so it is not something of the
type thingy. A car is a single
On Sun, Jun 14, 2009 at 09:04:02AM EDT, Steven D'Aprano wrote:
Nathan Stoddard wrote:
The best way to become a good programmer is to program. Write a lot of
code; work on some large projects. This will improve your skill more than
anything else.
I think there are about 100 million VB
Andre Engels andreeng...@gmail.com writes:
That seems to confuse values with collections of them. Â A car is not
the same as a one-element list of cars. Â Nothing is not the same as a
zero-element list of cars.
So you are of the opinion that nothing _is_ a car?
Eh? No of course not. a
MRAB wrote:
Helmut Fritz wrote:
I have binary output
from a Fortran program that is in a big-endian C-structured binary
file. The output can be very variable and many options create
different orderings in the binary file. So I'd like to keep the
header-reading in python.
Anyhoo, I've so
On Sun, Jun 14, 2009 at 10:21 PM, Paul
Rubinhttp://phr...@nospam.invalid wrote:
Andre Engels andreeng...@gmail.com writes:
That seems to confuse values with collections of them. Â A car is not
the same as a one-element list of cars. Â Nothing is not the same as a
zero-element list of cars.
On Sun, Jun 14, 2009 at 6:35 PM, tomf...@thefsb.org wrote:
i can traverse a directory using os.listdir() or os.walk(). but if a
directory has a very large number of files, these methods produce very
large objects talking a lot of memory.
in other languages one can avoid generating such an
I'm wanting to purchase some of the titles that have been raised in
this thread. When I look they are very expensive books which is
understandable. Do you think getting earlier editions that are cheaper
is a daft thing or should I fork out the extra £10-£30 to get the
latest edition?
--
On Sun, 14 Jun 2009 14:19:13 +0100, Graham Ashton
graham.ash...@gmail.com wrote:
On 2009-06-14 14:04:02 +0100, Steven D'Aprano
st...@removethis.cybersource.com.au said:
Nathan Stoddard wrote:
The best way to become a good programmer is to program. Write a lot of
code; work on some large
In message 0050ecf7$0$9684$c3e8...@news.astraweb.com, Steven D'Aprano
wrote:
Graham Ashton wrote:
On 2009-06-14 14:04:02 +0100, Steven D'Aprano
st...@removethis.cybersource.com.au said:
Nathan Stoddard wrote:
The best way to become a good programmer is to program. Write a lot of
Rhodri James wrote:
On Sun, 14 Jun 2009 14:19:13 +0100, Graham Ashton
graham.ash...@gmail.com wrote:
On 2009-06-14 14:04:02 +0100, Steven D'Aprano
st...@removethis.cybersource.com.au said:
Nathan Stoddard wrote:
The best way to become a good programmer is to program. Write a lot of
code;
On Sun, 14 Jun 2009 10:43:30 +0100, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message mailman.1510.1244832141.8015.python-l...@python.org, Rhodri
James wrote:
2. That output string has severe leaning toothpick syndrome. Python
accepts both single and double quotes to
In message slrnh33j2b.4bu.pe...@box8.pjb.com.au, Peter Billam wrote:
Are there any modules, packages, whatever, that will
measure the fractal dimensions of a dataset, e.g. a time-series ?
Lawrence D'Oliveiro wrote:
I don't think any countable set, even a countably-infinite set, can
have a
Steven D'Aprano wrote:
So-called vacuous truth. It's often useful to have all([]) return
true, but it's not *always* useful -- there are reasonable cases
where the opposite behaviour would be useful:
if all(the evidence points to the Defendant's guilt) then: the
Defendant is guilty execute(the
Mel wrote:
John Yeung wrote:
And I accept your answer, as well as Steven's and Paul's for that
matter. I still think it is understandable (and people may choose to
understand in a condescending way, if they wish) that someone might
not get the difference between what you are saying and the
Paul LaFollette wrote:
Thank you all for your thoughtful and useful comments. Since this has
largely morphed into a discussion of my 3rd question, perhaps it would
interest you to hear my reason for asking it.
John is just about spot on. Part of my research involves the
enumeration and
tom schrieb:
i can traverse a directory using os.listdir() or os.walk(). but if a
directory has a very large number of files, these methods produce very
large objects talking a lot of memory.
in other languages one can avoid generating such an object by walking
a directory as a liked list.
tom wrote:
i can traverse a directory using os.listdir() or os.walk(). but if a
directory has a very large number of files, these methods produce very
large objects talking a lot of memory.
in other languages one can avoid generating such an object by walking
a directory as a liked list. for
Poor Yorick org.python.pythonlist at pooryorick.com writes:
The following code produces an error (python-2.6.2). Either of the following
eliminates the error:
. assign something besides mod1 (the newly-created module) to d1
. remove the call to shelve.open
[snip]
$
Poor Yorick wrote:
The following code produces an error (python-2.6.2).
You forgot to post the error traceback.
--
http://mail.python.org/mailman/listinfo/python-list
Andre Engels wrote:
What kind of directories are those that just a list of files would
result in a very large object? I don't think I have ever seen
directories with more than a few thousand files...
I've seen directories with several hundreds of thousand files. Depending
on the file system
Christian Heimes wrote:
tom schrieb:
i can traverse a directory using os.listdir() or os.walk(). but if a
directory has a very large number of files, these methods produce very
large objects talking a lot of memory.
in other languages one can avoid generating such an object by walking
a
Terry Reedy wrote:
You did not specify version. In Python3, os.walk has become a generater
function. So, to answer your question, use 3.1.
I'm sorry to inform you that Python 3.x still returns a list, not a
generator.
ython 3.1rc1+ (py3k:73396, Jun 12 2009, 22:45:18)
[GCC 4.3.3] on linux2
In message mailman.1565.1245019944.8015.python-l...@python.org, Rhodri
James wrote:
On Sun, 14 Jun 2009 10:43:30 +0100, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message mailman.1510.1244832141.8015.python-l...@python.org, Rhodri
James wrote:
2. That output string
In message mailman.1560.1245011753.8015.python-l...@python.org, Andre
Engels wrote:
On Sun, Jun 14, 2009 at 6:35 PM, tomf...@thefsb.org wrote:
in other languages one can avoid generating such an object by walking
a directory as a liked list.
I suppose it depends how well-liked it is. Nerdy
On Jun 14, 12:37 pm, Paul Rubin http://phr...@nospam.invalid wrote:
Andre Engels andreeng...@gmail.com writes:
snip
type thingy. A car is a single car. Nothing is zero cars, which is
not a car, just like two cars is not a car.
That seems to confuse values with collections of them. A car is
Poor Yorick wrote:
div class=moz-text-flowed style=font-family: -moz-fixedThe
following code produces an error (python-2.6.2). Either of the following
eliminates the error:
. assign something besides mod1 (the newly-created module) to d1
. remove the call to shelve.open
Why is there
i can traverse a directory using os.listdir() or os.walk(). but if a
directory has a very large number of files, these methods produce very
large objects talking a lot of memory.
in other languages one can avoid generating such an object by walking
a directory as a liked list. for example, in c,
Terry Reedy wrote:
Poor Yorick wrote:
The following code produces an error (python-2.6.2).
You forgot to post the error traceback.
There was no traceback, but following John Machin's prodding, I read back
through some older posts (including one of yours) which I hadn't guessed were
relevant
In message mailman.1517.1244860701.8015.python-l...@python.org, John
Machin wrote:
What a long journey: parse xml, base64 decode, gunzip,
and you're still not home; next stop is struct.unpack ...
Binary data in an XML file?? Were these the same folks who worked on OOXML,
by any chance?
--
In message mailman.1494.1244814858.8015.python-l...@python.org, David
Cournapeau wrote:
Basically, there are some functions which are erroneously declared
in the .lib, but they don't actually exist in the MS C runtime.
Isn't this a MinGW bug?
--
if you wnat to know about cisco certification it books and dump
http://ciscocity.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
Rhodri James wrote:
On Sun, 14 Jun 2009 14:19:13 +0100, Graham Ashton
graham.ash...@gmail.com wrote:
On 2009-06-14 14:04:02 +0100, Steven D'Aprano
st...@removethis.cybersource.com.au said:
Nathan Stoddard wrote:
The best way to become a good programmer is to program. Write a lot of
On Mon, 15 Jun 2009 10:39:50 +1200, Lawrence D'Oliveiro wrote:
Shame on you for deliberately cutting out my more serious and nuanced
answer while leaving a silly quip.
Can't have been very serious and nuanced if it could be summed up by
such a silly quip though, could it?
But it can't be
Thanks for the answers. My goal was to try to avoid hard coding
and add a little shine to the code I have inherited. But its
too far gone already and time is short. So have used Mike's answer.
Mike answer with minor changes:
import datetime
import pprint
import operator
import time
entries =
1 - 100 of 162 matches
Mail list logo