Re: [Tutor] Matching relational data

2010-10-03 Thread David Hutto
On Sun, Oct 3, 2010 at 6:37 PM, Steven D'Aprano wrote: > On Mon, 4 Oct 2010 08:33:07 am David Hutto wrote: >> I'm creating an app that charts/graphs data. The mapping of the >> graphs is the 'easy' part with matplotlib, >> and wx. My question relates to the alignment of the data to be >> processed

Re: [Tutor] Change to Class-level Variable

2010-10-03 Thread Alan Gauld
"Robert" wrote class Foo( object ): ... myid = 'Foo' ... def __init__( self ): ...pass ... f1 = Foo() f2 = Foo() f1.myid = 'Bar' This creates a myid instance variable in f1 which hides the class variable. You should always modify class variables via the class not an insta

Re: [Tutor] Matching relational data

2010-10-03 Thread Alan Gauld
"David Hutto" wrote My problem is how to compare and make the program perceive the relation. So, I think what I'm asking is if there is anything similar to this in use that anyone knows of, or if anyone has encountered a similar problem, and what approach they may have taken? Its a stats

Re: [Tutor] (de)serialization questions

2010-10-03 Thread Alan Gauld
"Albert-Jan Roskam" wrote It makes much more sense to maintain one database table instead of 3 csv files for the three data typists' output. To be pedantic you will probably want several tables but they will all be in one file... :-) Btw, your private website is nice too. Nice pictures!

Re: [Tutor] Networking

2010-10-03 Thread Chris King
On 10/2/2010 3:40 PM, Evert Rol wrote: Dear Tutors, I have attached my 2 programs for networking. It uses socket and SocketServer, but it just simplifies it even more. The problem is it won't work. The Client raises the error, (with trace back) Traceback (most recent call last): File "

Re: [Tutor] subprocess.call warning

2010-10-03 Thread Steven D'Aprano
On Mon, 4 Oct 2010 06:44:54 am Norman Khine wrote: > hello, from the docs http://docs.python.org/library/subprocess.html i > see there is a WARNING about deadlock when using the subprocess.call. > in my code i have this > > http://pastie.org/1197024 The warning says: Like Popen.wait(), this

Re: [Tutor] Matching relational data

2010-10-03 Thread Steven D'Aprano
On Mon, 4 Oct 2010 08:33:07 am David Hutto wrote: > I'm creating an app that charts/graphs data. The mapping of the > graphs is the 'easy' part with matplotlib, > and wx. My question relates to the alignment of the data to be > processed. > > Let's say I have three sets of 24 hr graphs with the sam

Re: [Tutor] Change to Class-level Variable

2010-10-03 Thread Steven D'Aprano
On Mon, 4 Oct 2010 09:06:39 am Robert wrote: > Why is "f1" not affected by the Class-level variable change below ? The Python terminology is "attribute", not variable. You have class attributes and instance attributes. > >>> class Foo( object ): > ... myid = 'Foo' > ... def __init__(

[Tutor] Change to Class-level Variable

2010-10-03 Thread Robert
Why is "f1" not affected by the Class-level variable change below ? >>> class Foo( object ): ... myid = 'Foo' ... def __init__( self ): ...pass ... >>> f1 = Foo() >>> f2 = Foo() >>> f1.myid = 'Bar' >>> Foo.myid = 'SPAM' >>> f1.myid <--- Why is "f1" not a

[Tutor] Matching relational data

2010-10-03 Thread David Hutto
I'm creating an app that charts/graphs data. The mapping of the graphs is the 'easy' part with matplotlib, and wx. My question relates to the alignment of the data to be processed. Let's say I have three sets of 24 hr graphs with the same time steps: -the position of the sun -the temp. -local pow

Re: [Tutor] (de)serialization questions

2010-10-03 Thread Albert-Jan Roskam
Hi Lee, Alan and Steven, Thank you very much for your replies! First, Lee: >> That does not seem like it will work. What happens when >> 2 addresses have the same zip code? --> Sorry I didn't answer that before. When the zipcode is known, that's not a problem. The data typist simply has to ente

[Tutor] subprocess.call warning

2010-10-03 Thread Norman Khine
hello, from the docs http://docs.python.org/library/subprocess.html i see there is a WARNING about deadlock when using the subprocess.call. in my code i have this http://pastie.org/1197024 the first calls the 'sox' library which joins all the .wav files into one file and then i use the 'wav2swf'

Re: [Tutor] list comprehension, efficiency?

2010-10-03 Thread bob gailer
On 10/2/2010 8:02 PM, Steven D'Aprano wrote: On Sun, 3 Oct 2010 01:17:39 am bob gailer wrote: I ran dis on a for loop and the equivalent comprehension. I was surprised to see almost identical code. I had assumed (and now wish for) that a comprehension would be a primitive written in C and th

Re: [Tutor] Smart posting - Was: Re: Tutor Digest, Vol 80, Issue 11

2010-10-03 Thread Alan Gauld
"James Mills" wrote I'm actually really surprised anyone actually uses and subscribes to mailing lists and wants to get digests. It's far easier (for me at least) to just get each email as it comes in. I use digests for several mailing lists - and used to use it on the tutorlist untilGMa

Re: [Tutor] Connecting my users

2010-10-03 Thread leo kirotawa
Hi, I asked to my mate college and he said that: The ichat use bonjour(avahi/zeroconf) no server, has chat and exchange file, but should be in the same net level. There are too the milticas chatts, like this in python: http://my.opera.com/manojsheokand666/blog/chat-application-in-python. On S