John Nagle wrote:
Python's concept of immutability is useful, but it could be more
general.
In the beginning, strings, tuples, and numbers were immutable, and
everything else was mutable. That was simple enough. But over time,
Python has acquired more immutable types - immutable sets
Stefan Behnel wrote:
Nigel Rantor wrote:
John Nagle wrote:
Immutability is interesting for threaded programs, because
immutable objects can be shared without risk. Consider a programming
model where objects shared between threads must be either immutable or
synchronized in the sense
r wrote:
I'd like to present a bug report to evolution, obviously the garbage
collector is malfunctioning.
I think most people think that when they read the drivel that you generate.
I'm done with your threads and posts.
*plonk*
--
http://mail.python.org/mailman/listinfo/python-list
Hendrik van Rooyen wrote:
On Sunday 30 August 2009 22:46:49 Dennis Lee Bieber wrote:
Rather elitist viewpoint... Why don't we just drop nukes on some 60%
of populated landmasses that don't have a western culture and avoid
the whole problem?
Now yer talking, boyo! It will surely help
kj wrote:
Needless to say, I'm pretty beat by this point. Any help would be
appreciated.
Thanks,
Based on your statement above, and the fact that multiple people have
now explained *exactly* why your attempt at recursion hasn't worked, it
might be a good idea to step back, accept the
MRAB wrote:
Sjoerd Mullender wrote:
Martin P. Hellwig wrote:
Shailen wrote:
Is there any Python module that helps with US and foreign zip-code
lookups? I'm thinking of something that provides basic mappings of zip
to cities, city to zips, etc. Since this kind of information is so
often used
Jean-Michel Pichavant wrote:
Your solution will work, for sure. The problem is that it will dumb down
the Base class interface, multiplying the number of methods by 2. This
would not be an issue in many cases, in mine there's already too much
meaningful methods in my class for me to add
Jean-Michel Pichavant wrote:
Nigel Rantor wrote:
Jean-Michel Pichavant wrote:
Your solution will work, for sure. The problem is that it will dumb
down the Base class interface, multiplying the number of methods by
2. This would not be an issue in many cases, in mine there's already
too
Tim Harig wrote:
warning font=small print
This is a joke. Do not take it seriously. I do not actually suggest
anybody use this method to measure the size of their drive. I do not take any
responsibility for any damages incurred by using this method. I will laugh
at you if you do. Offer
Sparky wrote:
Hey! I am developing a small application that tests multiple websites
and compares their response time. Some of these sites do not respond
to a ping and, for the measurement to be standardized, all sites must
have the same action preformed upon them. Another problem is that not
Hendrik van Rooyen wrote:
Nigel Rantor wi...@wiggly.org wrote:
It just smells to me that you've created this elaborate and brittle hack
to work around the fact that you couldn't think of any other way of
getting the thread to change it's behaviour whilst waiting on input.
I am
Hendrik van Rooyen wrote:
If you have any interest, contact me and I will
send you the source.
Maybe you could tell people what the point is...
n
--
http://mail.python.org/mailman/listinfo/python-list
Hendrik van Rooyen wrote:
Nigel Rantor wi...@wiggly.org wrote:
Hendrik van Rooyen wrote:
If you have any interest, contact me and I will
send you the source.
Maybe you could tell people what the point is...
Well its a long story, but you did ask...
[snip]
Maybe I should have said
why
Hendrik van Rooyen wrote:
It is not something that would find common use - in fact, I have
never, until I started struggling with my current problem, ever even
considered the possibility of converting a pointer to a string and
back to a pointer again, and I would be surprised if anybody else
Adam Olsen wrote:
On Apr 16, 11:15 am, SpreadTooThin bjobrie...@gmail.com wrote:
And yes he is right CRCs hashing all have a probability of saying that
the files are identical when in fact they are not.
Here's the bottom line. It is either:
A) Several hundred years of mathematics and
Adam Olsen wrote:
On Apr 16, 4:27 pm, Rhodri James rho...@wildebst.demon.co.uk
wrote:
On Thu, 16 Apr 2009 10:44:06 +0100, Adam Olsen rha...@gmail.com wrote:
On Apr 16, 3:16 am, Nigel Rantor wig...@wiggly.org wrote:
Okay, before I tell you about the empirical, real-world evidence I have
could
Adam Olsen wrote:
On Apr 16, 3:16 am, Nigel Rantor wig...@wiggly.org wrote:
Adam Olsen wrote:
On Apr 15, 12:56 pm, Nigel Rantor wig...@wiggly.org wrote:
Adam Olsen wrote:
The chance of *accidentally* producing a collision, although
technically possible, is so extraordinarily rare that it's
Adam Olsen wrote:
On Apr 15, 12:56 pm, Nigel Rantor wig...@wiggly.org wrote:
Adam Olsen wrote:
The chance of *accidentally* producing a collision, although
technically possible, is so extraordinarily rare that it's completely
overshadowed by the risk of a hardware or software failure producing
Martin wrote:
On Wed, Apr 15, 2009 at 11:03 AM, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
The checksum does look at every byte in each file. Checksumming isn't a
way to avoid looking at each byte of the two files, it is a way of
mapping all the bytes to a single number.
My
Grant Edwards wrote:
We all rail against premature optimization, but using a
checksum instead of a direct comparison is premature
unoptimization. ;)
And more than that, will provide false positives for some inputs.
So, basically it's a worse-than-useless approach for determining if two
Adam Olsen wrote:
The chance of *accidentally* producing a collision, although
technically possible, is so extraordinarily rare that it's completely
overshadowed by the risk of a hardware or software failure producing
an incorrect result.
Not when you're using them to compare lots of files.
Aahz wrote:
In article 9a5d59e1-2798-4864-a938-9b39792c5...@s9g2000prg.googlegroups.com,
Raymond Hettinger pyt...@rcn.com wrote:
Here's a new, fun recipe for you guys:
http://code.activestate.com/recipes/576694/
That is *sick* and perverted.
I'm not sure why.
Would it be less sick if it
bruce wrote:
Hi.
Got a bit of a question/issue that I'm trying to resolve. I'm asking
this of a few groups so bear with me.
I'm considering a situation where I have multiple processes running,
and each process is going to access a number of files in a dir. Each
process accesses a unique group
koranthala wrote:
On Mar 1, 2:28 pm, Nigel Rantor wig...@wiggly.org wrote:
bruce wrote:
Hi.
Got a bit of a question/issue that I'm trying to resolve. I'm asking
this of a few groups so bear with me.
I'm considering a situation where I have multiple processes running,
and each process is going
=earthlink@python.org
[mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf
Of Nigel Rantor
Sent: Sunday, March 01, 2009 2:00 AM
To: koranthala
Cc: python-list@python.org
Subject: Re: file locking...
koranthala wrote:
On Mar 1, 2:28 pm, Nigel Rantor wig...@wiggly.org wrote
zugnush wrote:
You could do something like this so that every process will know if
the file belongs to it without prior coordination, it means a lot
of redundant hashing though.
In [36]: import md5
In [37]: pool = 11
In [38]: process = 5
In [39]: [f for f in glob.glob('*') if
Trip Technician wrote:
anyone interested in looking at the following problem.
if you can give me a good reason why this is not homework I'd love to
hear it...I just don't see how this is a real problem.
we are trying to express numbers as minimal expressions using only the
digits one two
:39 PM, Nigel Rantor wig...@wiggly.org
mailto:wig...@wiggly.org wrote:
Trip Technician wrote:
anyone interested in looking at the following problem.
if you can give me a good reason why this is not homework I'd
love to hear it...I just don't see how
Trip Technician wrote:
yes n^n^n would be fine. agree it is connected to factorisation.
building a tree of possible expressions is my next angle.
I think building trees of the possible expressions as a couple of other
people have suggested is simply a more structured way of doing what
James Stroud wrote:
Andreas Waldenburger wrote:
Is it me, or has c.l.p. developed a slightly harsher tone recently?
(Haven't been following for a while.)
Yep. I can only post here for about a week or two until someone blows a
cylinder and gets ugly because they interpreted something I said
Roy Smith wrote:
There's a well known theory in studies of the human brain which says people
are capable of processing about 7 +/- 2 pieces of information at once.
It's not about processing multiple taks, it's about the amount of things
that can be held in working memory.
n
--
Jonathan Gardner wrote:
[...eloquent and interesting discussion of variable system snipped...]
Is Python's variable system better than perl's? It depends on which
way you prefer. As for me, being a long-time veteran of perl and
Python, I don't think having a complicated variable system such as
Calvin Spealman wrote:
Ruby (on Rails) people love to talk about Ruby (on Rails).
Python people are too busy getting things done to talk as loudly.
Have you read this list?
I would suggest your comment indicates not.
Throwaway comments like yours that are pithy, emotional and devoid of
any
Fredrik Lundh wrote:
Nigel Rantor wrote:
Throwaway comments like yours that are pithy, emotional and devoid of
any factual content are just the kind of thing that makes lists such
as this less useful than they could be.
Oh, please. It's a fact that Python advocacy is a lot more low-key
Calvin Spealman wrote:
God forbid I try to make a joke.
Ah, sorry, sense of humour failure for me today obviously.
n
--
http://mail.python.org/mailman/listinfo/python-list
Palindrom wrote:
### Python ###
liste = [1,2,3]
def foo( my_list ):
my_list = []
The above points the my_list reference at a different object. In this
case a newly created list. It does not modify the liste object, it
points my_list to a completely different object.
### Perl ###
Gros Bedo wrote:
Thank you guys for your help. My problem is that I project to use this command
to terminate a script when uninstalling the software, so I can't store the PID.
This command will be integrated in the spec file of the RPM package. Here's the
script I'll use, it may help someone
gert wrote:
Could not one of you just say @staticmethod for once damnit :)
why were you asking if you knew the answer?
yeesh
--
http://mail.python.org/mailman/listinfo/python-list
gert wrote:
On Nov 2, 12:27 pm, Boris Borcic [EMAIL PROTECTED] wrote:
gert wrote:
class Test(object):
def execute(self,v):
return v
def escape(v):
return v
if __name__ == '__main__':
gert = Test()
print gert.m1('1')
print Test.m2('2')
Why doesn't
J. Clifford Dyer wrote:
Maybe I'm missing something obvious, but it sounds like you are
over-complicating the idea of inheritance. Do you just want to create a
subclass of the other class?
Nope, that isn't my problem.
I have an IDL file that is used to generate a set of stub and skeleton
Peter Otten wrote:
Nigel Rantor wrote:
So, if I have a tool that generates python code for me (in my case,
CORBA stubs/skels) in a particular package is there a way of placing my
own code under the same package hierarchy without all the code living in
the same directory structure.
http
Hi all,
Python newbie here with what I hope is a blindingly obvious question
that I simply can't find the answer for in the documentation.
So, if I have a tool that generates python code for me (in my case,
CORBA stubs/skels) in a particular package is there a way of placing my
own code
Peter Otten wrote:
Nigel Rantor wrote:
Peter Otten wrote:
Nigel Rantor wrote:
So, if I have a tool that generates python code for me (in my case,
CORBA stubs/skels) in a particular package is there a way of placing my
own code under the same package hierarchy without all the code living
43 matches
Mail list logo