, containing the value 6, whereas the 2nd
example above modified the list by replacing an element of it.
Hope this helps
Matt
--
| Matt Hammond
| RD Engineer, BBC Research Development, Tadworth, Surrey, UK.
| http://kamaelia.sf.net/
| http://www.bbc.co.uk/rd/
--
http://mail.python.org/mailman
= 132 too. If there'll always be a decimal point, then you
can leave off the initial if.
Matt
--
| Matt Hammond
| RD Engineer, BBC Research Development, Tadworth, Surrey, UK.
| http://kamaelia.sf.net/
| http://www.bbc.co.uk/rd/
--
http://mail.python.org/mailman/listinfo/python-list
(0).rstrip(.)
--
| Matt Hammond
| RD Engineer, BBC Research Development, Tadworth, Surrey, UK.
| http://kamaelia.sf.net/
| http://www.bbc.co.uk/rd/
--
http://mail.python.org/mailman/listinfo/python-list
the
instructions
you'll find within comments in the example python program.
regards
Matt Hammond
http://kamaelia.sf.net/
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http://mail.python.org/mailman/listinfo/python-list
/
--
| Matt Hammond
| RD Engineer, BBC Research Development, Tadworth, Surrey, UK.
| http://kamaelia.sf.net/
| http://www.bbc.co.uk/rd/
--
http://mail.python.org/mailman/listinfo/python-list
about the system.
We'd be interested to know what you think, and whether you think you could
build your application using it.
regards
Matt
--
| Matt Hammond
| RD Engineer, BBC Research Development, Tadworth, Surrey, UK.
| http://kamaelia.sf.net/
| http://www.bbc.co.uk/rd/
--
http
- stack frames etc are not
having to be set up fully. Instead they are (presumably) set aside between
calls to s.next()
Hope this helps
Matt
--
| Matt Hammond
| RD Engineer, BBC Research Development, Tadworth, Surrey, UK.
| http://kamaelia.sf.net/
| http://www.bbc.co.uk/rd/
--
http
Hi Stefan,
It seems as though all components basically have to do busy waiting now.
You are right - components are, for the most part, busy-waiting. Which
is not a good thing!
So do you plan on including a kind of scheduler-aware blocking
communication (like the `channels` of the `tasklets`
Hammond
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http://mail.python.org/mailman/listinfo/python-list
as it could be!
Matt
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http://mail.python.org/mailman/listinfo/python-list
)
... but AFAIK there isn't :-( so I guess you'll have to avoid recursive
generators for this app!
Matt
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http://mail.python.org/mailman/listinfo/python-list
and pasting, but it seems I
was a little overzealous with my editing!
I've still got that in my terminal's history buffer, and it does indeed
read:
[[], []] is [[]]*2
False
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http://mail.python.org
absent from this list are [2, 1, 3] and [2, 3, 1]. The problem
gets worse with longer lists. The basic problem is that x needs to be
able to occur in ALL positions, not just the beginning and the end.
Cheers,
-M
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth
()
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http://mail.python.org/mailman/listinfo/python-list
it to the file script.tcl and type in a shell:
wish script.tcl
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http://mail.python.org/mailman/listinfo/python-list
programmer and do not wish to get involved in classes
and objects
If you're using Tcl/Tk you're already using them ... what do you think
your Slider widget is? :-)
Hope this helps!
regards
Matt
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http
better with
SCIM. As a workaround for SUSE Linux 10.0 I might just unset XMODIFIERS
during Tk's startup, so that at least typing ASCII will work.
/quote
Altering the XMODIFIERS environment variable as he suggested solved the
problem.
--
| Matt Hammond
| RD Engineer, BBC Research and Development
that we're passing Calc (the function
itself), not Calc(...) (the result of calling the function)
regards
Matt
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http://mail.python.org/mailman/listinfo/python-list
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http://mail.python.org/mailman/listinfo/python-list
How can i convert a float value into a string value?
Try:
string_value1 = str(float_value) + ' abc'
or:
string_value1 = repr(float_value) + ' abc'
Type in an interactive python session.
help(str)
or:
help(repr)
regards
Matt
--
| Matt Hammond
| RD Engineer, BBC
I don't get the same results:
import datetime, time
ta1=(time.strptime('01', '%H%M%S'))
ta2=(time.strptime('230344', '%H%M%S'))
t1=time.mktime(ta1)
t2=time.mktime(ta2)
print t1, t2
-2208988799.0 -2208905776.0
print t1-t2
-83023.0
Suse 9.3, python 2.4 (all 64bit)
Matt
--
| Matt
be assigned a list
containing
the results of the successive yields. Equivalent to:
x = [ yield r for r in iterable ]
regards
Matt
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http://mail.python.org/mailman/listinfo/python-list
the previous 5 or do they have to be
explicitly removed first.
Thanks.
Bill
--
| Matt Hammond
| RD Engineer, BBC Research and Development, Tadworth, Surrey, UK.
--
http://mail.python.org/mailman/listinfo/python-list
in the for loop and do something
like:
yz=[y[:-1].x-y[1:].x]
yz = [e.x for e in y]
yz.reverse()
--
| Matt Hammond
| RD Engineer, BBC Research Development, Tadworth, Surrey, UK.
| http://kamaelia.sf.net/
| http://www.bbc.co.uk/rd/
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 08 Mar 2006 11:29:29 -, Steven D'Aprano
[EMAIL PROTECTED] wrote:
On Wed, 08 Mar 2006 11:00:09 +, Matt Hammond wrote:
4: Can I avoid the dummy counter i in the for loop and do something
like:
yz=[y[:-1].x-y[1:].x]
yz = [e.x for e in y]
yz.reverse()
I don't think that's
--
| Matt Hammond
| Research Engineer, Tech. Group, BBC, Kingswood Warren, Tadworth, Surrey,
UK
| http://kamaelia.sf.net/
| http://www.bbc.co.uk/rd/
--
http://mail.python.org/mailman/listinfo/python-list
in for a
chat!
Hope this helps!
Matt
--
| Matt Hammond
| Research Engineer, Tech. Group, BBC, Kingswood Warren, Tadworth, Surrey,
UK
| http://kamaelia.sf.net/
| http://www.bbc.co.uk/rd/
--
http://mail.python.org/mailman/listinfo/python-list
27 matches
Mail list logo