On Fri, Mar 12, 2010 at 11:23 AM, Paul Rubin wrote:
> "D'Arcy J.M. Cain" writes:
>> Just curious, what database were you using that wouldn't keep up with
>> you? I use PostgreSQL and would never consider going back to flat
>> files.
>
> Try making a file with a billion or so names and addresses,
On Sat, 13 Mar 2010 16:34:55 -0800, kuru wrote:
> I want this class to accept multiple data types but process them as they
> are same when the classs deals with the instances.
The usual term for this is "polymorphism".
> myvec=Vector(1,2,3)
>
> vect=[1,2,3]
> myvec=Vec(vect)
I assume you mean V
On Sun, 14 Mar 2010 11:20:15 +1300, Gib Bogle wrote:
> Mark Lawrence wrote:
>>
>> I'm certain that members of the Guinea Pig Club might have something to
>> say on that one, see :-
>> http://en.wikipedia.org/wiki/Guinea_Pig_Club
>>
>>
> You mean, something like: "That's not funny"?
Or possibly
On Sat, 13 Mar 2010 13:42:12 -0800 (PST) vsoler
wrote:
> By the way, I suppose I am the OP. Since I am not an native English
> speaking person, I do not know what it stands for. Perhaps you can
> tell me.
>
Perhaps you can find out yourself:
http://www.urbandictionary.com/define.php?term=op
/W
On Sat, 13 Mar 2010 12:52:39 -0600, John Bokma wrote:
>Steven D'Aprano writes:
>
>> As the old proverb goes: give a man a fish, and you feed him for a day.
>> Teach him how to fish, and he has food forever.
>
>True, but you don't teach someone fishing by poking an eye out with a
>fishing rod.
>
On Sun, 14 Mar 2010 00:34:55 -, kuru wrote:
Hi
I have couple classes in the form of
class Vector:
def __init__(self,x,y,z):
self.x=x
self.y=y
self.z=z
This works fine for me. However I want to be able to provide a list,
tuple as well as individual arguments like below
myvec=V
Hi
I have couple classes in the form of
class Vector:
def __init__(self,x,y,z):
self.x=x
self.y=y
self.z=z
This works fine for me. However I want to be able to provide a list,
tuple as well as individual arguments like below
myvec=Vector(1,2,3)
This works well
However I also want
I'd like to write an open source clustering (for computation and
general use) and automation of configuration/deployment in Python.
It's main purpose is to be used in academic environments.
It would be something like running numpy/simpy code (and other custom
python code) on a set of machines in a
On Mar 13, 8:10 am, Christian Heimes wrote:
> Karjer Jdfjdf wrote:
> > I'm pretty new at programming and want some advice on mixing Jython and
> > Python.
>
> > I want to use Jython to access some Java libraries, but I want to keep
> > developing in normal Python. Some modules I use a lot are no
Mark Lawrence wrote:
I'm certain that members of the Guinea Pig Club might have something to
say on that one, see :-
http://en.wikipedia.org/wiki/Guinea_Pig_Club
You mean, something like: "That's not funny"?
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 13, 2:42 pm, vsoler wrote:
> By the way, I suppose I am the OP. Since I am not an native English
> speaking person, I do not know what it stands for. Perhaps you can
> tell me.
OP means Original Poster (the person who started the discussion)
or sometimes Original Post, depending on contex
On 13 mar, 18:16, ru...@yahoo.com wrote:
> On Mar 13, 9:26 am, ru...@yahoo.com wrote:> That should be:
> > d = {}
> > for item in m:
>
> key = item[0]; value = item[1]
>
> > if key is None or value is None: continue
> > if key not in dict:
> > d[key] = [1, value]
> > else
Дамјан Георгиевски wrote:
> Hi all,
> we are starting with bi-monthly Python User Group meetings in Skopje,
> Macedonia. The meetings are targeted for both beginners and more
> experienced users.
>
...
http://us.pycon.org/2010/conference/schedule/event/108/
HTH,
Mike
--
On Mar 13, 9:03 am, JLundell wrote:
> I've got a subclass of fractions.Fraction called Value; it's a mostly
> trivial class, except that it overrides __eq__ to mean 'nearly equal'.
> However, since Fraction's operations result in a Fraction, not a
> Value, I end up with stuff like this:
>
> x = Va
On 03/13/10 19:23, Steven D'Aprano wrote:
On Sat, 13 Mar 2010 12:52:39 -0600, John Bokma wrote:
For quite some time I thought that comp.lang.perl.misc was quite
unfriendly because of a certain attitude. comp.lang.python was quite a
refreshment for a while: very newbie friendly, less pissing con
>Does anyone know of a good python to stand alone exe compiler?
>
> >Thanks,
> >-Robin
> I tried several such tools and found the easiest one: Pyinstaller (
> http://www.pyinstaller.org/ )
>
Don't forget cx_freeze! I found it to work pretty easy, and it also works
for py3k.
Almar
--
http://mail
On Sat, 13 Mar 2010 11:02:44 -0800, Jon Clements wrote:
> If I can re-explain slightly, say I have a class 'compute':
>
> class Compute(object):
> def __init__(self, something):
> self.something = something
> # misc other methods here.
>
> then...
>
> class ComputeAdd(Comput
On Sat, 13 Mar 2010 12:52:39 -0600, John Bokma wrote:
> For quite some time I thought that comp.lang.perl.misc was quite
> unfriendly because of a certain attitude. comp.lang.python was quite a
> refreshment for a while: very newbie friendly, less pissing contests,
> etc. (but way more fanboism).
On 13 Mar, 17:42, Jack Diederich wrote:
> On Sat, Mar 13, 2010 at 12:10 PM, Jon Clements wrote:
> > On 13 Mar, 16:42, Jack Diederich wrote:
> >> On Sat, Mar 13, 2010 at 11:19 AM, Jon Clements
> >> wrote:
> >> > This is semi-experimental and I'd appreciate opinions of whether it's
> >> > the co
On Sat, Mar 13, 2010 at 8:19 AM, Jon Clements wrote:
> The name 'some_function' is completely redundant -- don't need it,
> don't actually care about the function afterwards, as long as it
> becomes a __call__ of a 'B' *instance*.
>
Special methods are looked up on the class, not the instance, s
On 3/13/2010 11:23 AM, Lee Harr wrote:
I am having a great time watching videos from PyCon. Thanks to
everyone who presented, and to those who did such a great job
putting the videos up at: http://pycon.blip.tv/
My trouble is that, although most of the videos play perfectly,
there are a few tha
Steven D'Aprano writes:
> As the old proverb goes: give a man a fish, and you feed him for a day.
> Teach him how to fish, and he has food forever.
True, but you don't teach someone fishing by poking an eye out with a
fishing rod.
> I'm an old-fashioned kind of guy, and don't like LMGTFY becau
Hi,
I'd like to make sure, that a certain python program will only be run
once per host. (linux/windows)
so if the program is started a second time it should just terminate and
let the other one run.
This does not have to be the fastest solution, but it should be reliable.
I have a few ideas,
On Mar 13, 9:37 am, Jack Diederich wrote:
> If Fraction.__add__ returns a new object but the subclass Value is
> compatible (as I would except since it is a sublcass) then just change
> all references in Franction.__add__ to be more generic, ex/
>
> class Franction():
> def __add__(self, other):
Karjer Jdfjdf wrote:
I'm pretty new at programming and want some advice on mixing Jython and
Python.
I want to use Jython to access some Java libraries, but I want to keep
developing in normal Python. Some modules I use a lot are not available
in Jython.
The bulk of my programming is in Pyt
Mark Lawrence writes:
>
> I'm certain that members of the Guinea Pig Club might have something
> to say on that one, see :-
> http://en.wikipedia.org/wiki/Guinea_Pig_Club
Interesting. My mum is a retired surgeon and in the mid 1980s she
attended a course in plastic surgery and among other things
Pyspread 0.0.14b released
=
I am pleased to announce the new release 0.0.14b of pyspread.
About:
--
Pyspread is a cross-platform Python spreadsheet application.
It is based on and written in the programming language Python.
Instead of spreadsheet formulas, Python
>Does anyone know of a good python to stand alone exe compiler?
>Thanks,
>-Robin
I tried several such tools and found the easiest one: Pyinstaller (
http://www.pyinstaller.org/ )
but it does not make your script faster, if you want it as fast as C language,
please try PythoidC ( http://pythoidc
On Mar 13, 11:37 am, Jack Diederich wrote:
> If Fraction.__add__ returns a new object but the subclass Value is
> compatible (as I would except since it is a sublcass) then just change
> all references in Franction.__add__ to be more generic, ex/
>
> class Franction():
> def __add__(self, other)
On Sat, Mar 13, 2010 at 12:10 PM, Jon Clements wrote:
> On 13 Mar, 16:42, Jack Diederich wrote:
>> On Sat, Mar 13, 2010 at 11:19 AM, Jon Clements wrote:
>> > This is semi-experimental and I'd appreciate opinions of whether it's
>> > the correct design approach or not. It seems like a good idea,
On Sat, Mar 13, 2010 at 12:03 PM, JLundell wrote:
> I've got a subclass of fractions.Fraction called Value; it's a mostly
> trivial class, except that it overrides __eq__ to mean 'nearly equal'.
> However, since Fraction's operations result in a Fraction, not a
> Value, I end up with stuff like th
On Mar 13, 9:26 am, ru...@yahoo.com wrote:
> That should be:
> d = {}
> for item in m:
key = item[0]; value = item[1]
> if key is None or value is None: continue
> if key not in dict:
> d[key] = [1, value]
> else:
> d[key][0] += 1
> d[key][1] += value
Tha
On 13 Mar, 16:42, Jack Diederich wrote:
> On Sat, Mar 13, 2010 at 11:19 AM, Jon Clements wrote:
> > This is semi-experimental and I'd appreciate opinions of whether it's
> > the correct design approach or not. It seems like a good idea, but it
> > doesn't mean it is.
>
> > I have a class 'A', thi
On Mar 13, 11:03 am, JLundell wrote:
> I've got a subclass of fractions.Fraction called Value; it's a mostly
> trivial class, except that it overrides __eq__ to mean 'nearly equal'.
> However, since Fraction's operations result in a Fraction, not a
> Value, I end up with stuff like this:
>
> x = V
I've got a subclass of fractions.Fraction called Value; it's a mostly
trivial class, except that it overrides __eq__ to mean 'nearly equal'.
However, since Fraction's operations result in a Fraction, not a
Value, I end up with stuff like this:
x = Value(1) + Value(2)
where x is now a Fraction, no
On Mar 13, 10:38 am, Jon Clements wrote:
> On 13 Mar, 16:26, Patrick Maupin wrote:
>
>
>
> > On Mar 13, 10:19 am, Jon Clements wrote:
>
> > > What I'd like to achieve is something similar to:
>
> > > @inject(B):
> > > def some_function(a, b):
> > > pass # something useful
>
> > So, just ty
On Sat, Mar 13, 2010 at 11:19 AM, Jon Clements wrote:
> This is semi-experimental and I'd appreciate opinions of whether it's
> the correct design approach or not. It seems like a good idea, but it
> doesn't mean it is.
>
> I have a class 'A', this provides standard support functions and
> excepti
On 13 Mar, 16:26, Patrick Maupin wrote:
> On Mar 13, 10:19 am, Jon Clements wrote:
>
> > What I'd like to achieve is something similar to:
>
> > @inject(B):
> > def some_function(a, b):
> > pass # something useful
>
> So, just typing at the keyboard here, you mean something like:
>
> class
On Mar 13, 9:13 am, ru...@yahoo.com wrote:
> On Mar 13, 8:28 am, Patrick Maupin wrote:
>
>
>
> > On Mar 13, 9:05 am, vsoler wrote:
>
> > > Say that "m" is a tuple of 2-tuples
>
> > > m=(('as',3), ('ab',5), (None, 1), ('as',None), ('as',6))
>
> > > and I need to build a "d" dict where each key has
On Mar 13, 10:19 am, Jon Clements wrote:
> What I'd like to achieve is something similar to:
>
> @inject(B):
> def some_function(a, b):
> pass # something useful
So, just typing at the keyboard here, you mean something like:
class InjectClass(object):
def __init__(self, func, *args, *
I am having a great time watching videos from PyCon. Thanks to
everyone who presented, and to those who did such a great job
putting the videos up at: http://pycon.blip.tv/
My trouble is that, although most of the videos play perfectly,
there are a few that refuse to play at all. Like:
Python 10
This is semi-experimental and I'd appreciate opinions of whether it's
the correct design approach or not. It seems like a good idea, but it
doesn't mean it is.
I have a class 'A', this provides standard support functions and
exception handling.
I have 'B' and 'C' which specialise upon 'A'
What I'
On Mar 13, 8:28 am, Patrick Maupin wrote:
> On Mar 13, 9:05 am, vsoler wrote:
>
> > Say that "m" is a tuple of 2-tuples
>
> > m=(('as',3), ('ab',5), (None, 1), ('as',None), ('as',6))
>
> > and I need to build a "d" dict where each key has an associated list
> > whose first element is the count, a
Hello all,
I am trying to make a gui out of xrc and wxpython, but I think my
understanding of Python's class/method structure is causing problems.
The below code returns an error on the line
panel=xrc.XRCCTRL(mf, "dl")
The error goes back to wxPython itself and says "attribute error:
'none' type
Work at Home - Earn 50,000 Weekly Without Investment Its Not A Fake,
100% Earning Guarantee
For Register Click Here To Register Now - Start Earning Instantly!
http://www.cash-world.myfortuneincome.com
http://www.cash-world.myfortuneincome.com
http://www.cash-world.myfortuneincome.com
http://www
On 13 Mar, 15:28, Patrick Maupin wrote:
> On Mar 13, 9:05 am, vsoler wrote:
>
> > Say that "m" is a tuple of 2-tuples
>
> > m=(('as',3), ('ab',5), (None, 1), ('as',None), ('as',6))
>
> > and I need to build a "d" dict where each key has an associated list
> > whose first element is the count, and
> J (J) wrote:
>J> And now I'm looking at subprocess and I can set shell=True and it will
>J> intrepret special characters like &
>J> So could I do something like this:
>J> for item in pathlist:
>J> subprocess.Popen('rsync command &', shell=True)
>J> and simply wait unti they are all d
vsoler wrote:
> Say that "m" is a tuple of 2-tuples
>
> m=(('as',3), ('ab',5), (None, 1), ('as',None), ('as',6))
>
> and I need to build a "d" dict where each key has an associated list
> whose first element is the count, and the second is the sum. If a 2-
> tuple contains a None value, it should
On Mar 13, 9:05 am, vsoler wrote:
> Say that "m" is a tuple of 2-tuples
>
> m=(('as',3), ('ab',5), (None, 1), ('as',None), ('as',6))
>
> and I need to build a "d" dict where each key has an associated list
> whose first element is the count, and the second is the sum. If a 2-
> tuple contains a No
On 13 Mar, 15:05, vsoler wrote:
> Say that "m" is a tuple of 2-tuples
>
> m=(('as',3), ('ab',5), (None, 1), ('as',None), ('as',6))
>
> and I need to build a "d" dict where each key has an associated list
> whose first element is the count, and the second is the sum. If a 2-
> tuple contains a None
Karjer Jdfjdf wrote:
> I'm pretty new at programming and want some advice on mixing Jython and
> Python.
>
> I want to use Jython to access some Java libraries, but I want to keep
> developing in normal Python. Some modules I use a lot are not available in
> Jython.
>
> The bulk of my programm
Say that "m" is a tuple of 2-tuples
m=(('as',3), ('ab',5), (None, 1), ('as',None), ('as',6))
and I need to build a "d" dict where each key has an associated list
whose first element is the count, and the second is the sum. If a 2-
tuple contains a None value, it should be discarded.
The expected
I'm pretty new at programming and want some advice on mixing Jython and Python.
I want to use Jython to access some Java libraries, but I want to keep
developing in normal Python. Some modules I use a lot are not available in
Jython.
The bulk of my programming is in Python but I want to use Jav
In article <7vj7fdfnn...@mid.individual.net>,
Gregory Ewing wrote:
>Given some known data/crc pairs, how feasible is it to
>figure out the polynomial being used to generate the crc?
>
>In the case I'm looking at, it appears that the crc
>size may be at least 24 bits, so just trying all possible
>
In article ,
MRAB wrote:
>Zeeshan Quireshi wrote:
>> On Mar 3, 6:45 pm, Wells wrote:
>>> This seems sort of odd to me:
>>>
>> a = 1
>> a += 1.202
>> a
>>> 2.202
>>>
>>> Indicates that 'a' was an int that was implicitly casted to a float.
>>> But:
>>>
>> a = 1
>> b = 3
>>
Robin,
> do you of an alternate compilter it doesn't work (py2exe) on my windows 7 box
I can assure you that Py2exe does work on Windows 7 (my firm develops
commercial Python applications packaged using Py2exe running on Windows
7), but it does take a bit of fiddling and some patience. Join the
p
vsoler wrote:
> My script contains a print statement:
>
> print '%40s %15d' % (k, m)
>
> However,
>
> 1- the string is right adjusted, and I would like it left
> adjusted
> 2- the number is a decimal number, and I would like it with
> the thousands separator and 2
vsoler wrote:
> Hello,
>
> My script contains a print statement:
>
> print '%40s %15d' % (k, m)
>
> However,
>
> 1- the string is right adjusted, and I would like it left
> adjusted
> 2- the number is a decimal number, and I would like it with
> the thousands sepa
Дамјан Георгиевски wrote:
> Hi all,
> we are starting with bi-monthly Python User Group meetings in Skopje,
> Macedonia. The meetings are targeted for both beginners and more
> experienced users.
>
> The basic idea is to have an 1 hour presentation at the start for the
> beginners and an 1 hour
John Bokma wrote:
> Gabriel Genellina writes:
>
>> On 13 mar, 00:26, Robin wrote:
>>
>>> Does anyone know of a good python to stand alone exe compiler?
>> http://tinyurl.com/...
>
> Wow, pathetic fuck. You don't have to post you know.
>
And you don't have to give Google a second chance at inde
Hello,
My script contains a print statement:
print '%40s %15d' % (k, m)
However,
1- the string is right adjusted, and I would like it left
adjusted
2- the number is a decimal number, and I would like it with
the thousands separator and 2 decimals
If possible, the
Gib Bogle wrote:
> Steven D'Aprano wrote:
>
>> As the old proverb goes: give a man a fish, and you feed him for a
>> day. Teach him how to fish, and he has food forever.
>
> I like this version:
>
> Light a man a fire, and you keep him warm for hours. Set a man on fire,
> and you keep him warm
alex goretoy wrote:
> I found this to be even better; maybe someone will find this useful, who
> knows.
> just export PS1, duh
> Popen(["bash -c 'export PS1='python'; source
> $HOME/.bashrc;alias'"],shell=True,stdout=PIPE).stdout.read()
>
Try using an interactive shell:
>>> from subprocess import
On Fri, 12 Mar 2010 06:50:18 -0800 (PST) Luis M. González
wrote:
> The question is: should you do it?
And the answer is: No.
And the usual disclaimer is: (Unless you *know* it's the best possible
solution to your problem.)
/W
--
INVALID? DE!
--
http://mail.python.org/mailman/listinfo/pytho
Gib Bogle wrote:
Steven D'Aprano wrote:
As the old proverb goes: give a man a fish, and you feed him for a
day. Teach him how to fish, and he has food forever.
I like this version:
Light a man a fire, and you keep him warm for hours. Set a man on fire,
and you keep him warm for the rest of
* Gib Bogle:
Steven D'Aprano wrote:
As the old proverb goes: give a man a fish, and you feed him for a
day. Teach him how to fish, and he has food forever.
I like this version:
Light a man a fire, and you keep him warm for hours. Set a man on fire,
and you keep him warm for the rest of his
Steven D'Aprano wrote:
As the old proverb goes: give a man a fish, and you feed him for a day.
Teach him how to fish, and he has food forever.
I like this version:
Light a man a fire, and you keep him warm for hours. Set a man on fire, and you
keep him warm for the rest of his life.
;-)
-
Hi all,
we are starting with bi-monthly Python User Group meetings in Skopje,
Macedonia. The meetings are targeted for both beginners and more
experienced users.
The basic idea is to have an 1 hour presentation at the start for the
beginners and an 1 hour ad-hoc discussion about projects, appli
I found this to be even better; maybe someone will find this useful, who
knows.
just export PS1, duh
Popen(["bash -c 'export PS1='python'; source
$HOME/.bashrc;alias'"],shell=True,stdout=PIPE).stdout.read()
-Alex Goretoy
--
http://mail.python.org/mailman/listinfo/python-list
Hi Philip,
Thanks for your redirection. I'll try with them :)
Cheers,
Ugo
PS : yes developing a robotic hand is really fun :D
On Fri, Mar 12, 2010 at 7:08 PM, Philip Semanchuk wrote:
> On Mar 12, 2010, at 1:56 PM, Ugo Cupcic wrote:
>
> Hi all,
>>
>> I have a question regarding wxSlider. I'm
70 matches
Mail list logo