stuff to keep run() from returning
>
> _______
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-inf
n is quite time
consuming, adding the module check is not a problem also ! (never import
a module in a small function likely to be called in an inner-loop !)
Pierre
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architectu
# another minor point: why do I need to sleep here?
> self.processEvent()
> # what happens here-- does the thread die?
> def processEvent(self):
> print "yeah-- event detected"
>
>
>
> ----
>
(1) 18.772992, (2) 18.764382, (3) 18.759283
> cinderella4: (1) 1.140375, (2) 1.120827, (3) 1.119281
> cinderella5: (1) 1.460923, (2) 1.444996, (3) 1.444842
> cinderella6: (1) 1.481483, (2) 1.469315, (3) 1.478990
> cinderella7: (1) 7.211108, (2) 7.208998, (3) 7.202029
>
> "cind
t; "Die guten ins Töpfchen, die schlechten ins Kröpfchen."
>
> (The good ones in the pot, the bad ones in the crop)
>
> Chris
>
>
>
>
>
>
> ____________
can zip the L1 and L2 into L
> L = zip(L1,L2) # L = [(1,11),(2,22),(3,33)]
> then you can process:
> for x in L:
> dosomething(x[0])...
> dosomething(x[1])...
> I'm not so sure about your problem but
> If you want to do something parallel processing then you should go
Like now if you
want to log your strings on a file, you just define the function writing
in the file and connect the event to this function: you'll have both the
GUI and the log-file outputs !
This is, AFAIK, the best existing implementation for user interfaces !
Pierre
nephish a écrit :
>
emitting_object.connect("writing", self.method_handling_to_signal)
Well, I used that and it just work ! Using the signal does not solve any
threading problem but allow you to separate between the event and the
answer to the event, which is a good habit to take !
Pierre
--
Pierre Barbier de Reuille
I
Ok, comments inside your code ...
nephish a écrit :
> Pierre Barbier de Reuille wrote:
>
>> nephish a écrit :
>>
>>
>>> Pierre Barbier de Reuille wrote:
>>>
>>> [...]
>>> ok, i am still having a little problem understanding.
>>&
nephish a écrit :
> Pierre Barbier de Reuille wrote:
>
> [...]
> ok, i am still having a little problem understanding.
> tried it but i don't know if i have things set in the right order.
>
>
> gtk.gdk.threads_init()
> # Here initialize what you want
self.Input1Buffer.insert(Input1Iter,
> Input1Data)
>
> f.write(str(Sensor_ID)+'\n'+str(c)+'\n'+str(d)+'\n'+str(Status)+'\n'+x_Now)
>
>
> f.close()
> thread.start_
anks,
> Frank
>
>
>
>
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
--
P
digits. Is there any
> way that I can tell him to select always a random number with 8 digits?
>
> Thanks in advanced
>
> Alberto
>
>
> _______
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listin
2)
Although it is not equivalent ! In the second cases, you have to name
the parameter to set it ! But I sometimes find this A Good Thing (tm)
when no argument order is better ...
Pierre
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMA
st
> object read as output.
> Any ideas how to achieve what this?
>
> chrs
> j.
>
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de
>
> Sujet:
> Re: [Tutor] Source PC MAC address
> Expéditeur:
> Pierre Barbier de Reuille <[EMAIL PROTECTED]>
> Date:
> Wed, 24 Aug 2005 17:00:46 +0200
> Destinataire:
> Python Tutor
>
> Destinataire:
> Python Tutor
>
> Return-Path:
> <[EMAIL PRO
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Bouleva
ng Unix's & operator for background running)
>
> chrs
> j.
>
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botani
Kent Johnson a écrit :
> Pierre Barbier de Reuille wrote:
>
[...]
>
>
>>Well, when using the "%" operator on string always put a tuple or a
>>dictionnary on the RHS :
>>
>>print "Connection from %s" % (info,)
>
>
> No, you
---
>
> ___________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botan
sed to a fractional power
>
>>>>import cmath
>>>>cmath.sqrt(-1)
>
> 1j
> ##
>
>
> Best of wishes!
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/l
must be possible. (I don't mind making my programs Linux only so
> that's not a problem).
>
> Any clues or pointers to documentation gratefully recieved.
>
> Thanks
>
> Ed
> ___
> Tutor maillist - Tutor@pyth
x27;m afraid I don't really understanding threading enought to make this
> work..
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cn
e spawned
process' stdout to the spawnee's stdout, etc. - again an extra step.
Experienced python programmers, what's the best thing to do here? Thanks a lot!
-david
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/li
//mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France
tel : (33
an object (and involves many function calls) and is
not a "simple" function call.
So there is no need to hardwire that kind of things (even if it _may_ be
hardwired to improve efficiency).
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botaniq
;-)
Thanks a lot in advance.
Cheers
Christian
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bi
e or writable, especially, writable?
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France
tel : (33) 4 6
ot;s")
for line in open("data//phone.txt"):
if digs.search(line):
print line
Thanks,
Dick Moores
[EMAIL PROTECTED]
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reu
I know what linked lists are and why they
would be useful in C++ or C or any other but not python.
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSI
you're looking for.
Pierre
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France
tel : (33) 4 67 61 65 77f
7;d put it?
In a seperate module, like I currently do, even though it's going to be
the only piece of code contained inside that module?
Xif
Pierre Barbier de Reuille wrote:
Well, for me, the more logical answer is : multi-inheritance !
If part of your class is the same, (same semantic, same
s() function.
So my question is, where is the best way to put it so instances of both
classes can use it?
Xif
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Uni
rk (as i want it to work in windows & unix).
-Varun
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique
MSN Messenger! MSN Messenger
<http://g.msn.com/8HMBEN/2728??PS=47575> Download today it's FREE!
_______________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informati
n, it will very probably be more efficient. And
the methods (or functions) like "startwith" are avalaible in almost
every string library !
Pierre
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plan
_one and nextline == match_two:
do_something()
Maybe this just isn't possible, since we are working line by line.
Any suggestions?
Tom
___________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
_______________
Tutor maillist - Tutor@python.org
http://ma
we. http://promotions.yahoo.com/new_mail
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture
http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France
tel : (33
mail.yahoo.com
_______________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture de
: xrange) is exactly what's needed for that problem !
Hint-no-solution: You will need a certain number of intervals, which
(the number of intervalls) is plain integer. Then translate from
current-intervall-number to pi'ish (sorry for that, my english ;-)
value.
regards
Michael
--
Pierr
ill be a better way to do this...)
>>> import numarray
>>> m=numarray.array(range(16),shape=(4,4))
>>> numarray.add.reduce(m)
array([24, 28, 32, 36])
>>> numarray.add.reduce(m, axis=1)
array([ 6, 22, 38, 54])
Kent
--
Pierre Barbier de Reuille
INRA - UMR C
ne could reassign weapon to a Prune outside the class definition,
but I was hoping to write something in which, given certain circustances
arising, the instance would change itself into something else.
Time to go back to school!
_______________
Tutor maillist - Tut
http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France
tel : (33) 4 67 61
n G.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France
tel
796196859-1.1766579932626087e-009j)
Thanks,
Dick Moores
[EMAIL PROTECTED]
___
Tutor maillist - [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/tutor
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique
47 matches
Mail list logo