ls().update(custom_math.__dict__)
This will cause interesting trouble if custom_math doesn't implement all
the functions you use from math.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
tters).
Thanks,
Kent
http://xmlunit.sourceforge.net/
--
http://mail.python.org/mailman/listinfo/python-list
o.baz()
C:\WUTemp\A>python B\bar.py
['C:\\WUTemp\\A\\B', 'C:\\Python24\\python24.zip', 'C:\\WUTemp\\A',
]
foo.baz() here
Kent
--
http://mail.python.org/mailman/listinfo/python-list
at the start of
site.py (which does most of the setup of sys.path), one element of the
path is an empty string. This is expanded by
main() -> removeduppaths() -> makepath() -> os.path.abspath()
to the current working dir.
This is Python 2.4.2 on Win2K.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
ly the error including XPath expressions to
the node containing the error!
In Jython I use unittest, not JUnit, so instead of subclassing
XMLTestCase I call the static methods of XLMAssert from my test cases.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
#x27;s PEP 352, it's already done. This will be in Python 2.5. It's good
to see that the time machine is stil working ;)
http://www.python.org/peps/pep-0352.html
Kent
--
http://mail.python.org/mailman/listinfo/python-list
:
http://docs.python.org/api/type-structs.html#l2h-968
So it looks like kinterbasdb.Cursor is a C extension class that may not
be subclassed because Py_TPFLAGS_BASETYPE is not set. Whether this is by
design or accident would be a question for the kinterbasdb developers.
One workaround might be to use delegation instead of subclassing...
Kent
--
http://mail.python.org/mailman/listinfo/python-list
ertain future.
Jython 2.1 works great and there is (slow) progress being made in
modernizing it. I recommend it.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
alues()))
The index will always disambiguate and words will never be compared.
>
> In general that DSU pattern doesn't even always work: you might want
> the max of objects which don't directly support any comparison methods
> that the cmp builtin understands.
Using the index as above prevents the objects from ever being compared.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
r(Derived, self).__init__(etc...)
> Obviously I'm missing a piece of information that would help me to see
> why the call gets passed back up to Base...
It's a typo in the book.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
Ed Leafe wrote:
> On Mar 6, 2006, at 8:08 PM, Kent Johnson wrote:
>> One workaround might be to use delegation instead of subclassing...
>
> Yeah, but that would involve a lot more work at this point. The
> mixin approach has been working quite well up until this p
is very
difficult to create a meaningful score.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
>>> import re
>>> s = '{1:1} Random text here. {1:2} More text here. and so on.'
>>> re.split(r'\{[^}]+\}', s)
['', ' Random text here. ', ' More text here. and so on.']
If you want to be a little stricter in what you a
Tim Henderson wrote:
> Hello
>
> I want to creat a program that can inspect a set of classes that i have
> made and spit out a savable version of these classes. To do this I need
> to be able to inspect each class and get all of its instance data as
> well as information about a particular meathod
2 l';glise Saint Andr; della Valle' sur le cadre craie noire,
> plume et encre brune, lavis brun rehauss; de blanc sur papier brun
> 190 x 228 mm. (7 1/2 x 9 in.)
>
> Can anyone give me a lead on how to convert the entity references into
> something that will make it thr
[EMAIL PROTECTED] wrote:
> I have this code:
>
> import xml.parsers.expat
> parser = xml.parsers.expat.ParserCreate(encoding="UTF-8")
> text = unicode("þórður",'UTF-8')
I think you want
text = u"þórður".encode('UTF-8')
so
down the search for me. All I seem to be finding are other
> platforms and/or not standalone.
Maybe you are looking for RegexPlor:
http://python.net/~gherman/RegexPlor.html
Kent
--
http://mail.python.org/mailman/listinfo/python-list
e = value
# Get the last group if any
if i > startIx:
groups.append( [startIx, i] )
return groups
values = [ 0, 72, 2, 4, 9, 2, 0, 0, 42, 26, 0, 282,
23, 0, 101, 0, 0, 0, 0, 0]
print findPeaks(values)
## prints:
[[0, 2], [2, 7], [7, 10], [10
[EMAIL PROTECTED] wrote:
> Hi Kent,
> Thanks for that. But We are considering [..., 0, 101, 0, 0, 0, 0, 0] ->
> [13,18] .In fact if you look at the list, the histogram ends at 15 that
> is [0,101,0] --> [13,15]. Dont you think so.
>
Well you consider ..., 0, 4, 9, 2
oor with
long strings:
>>> import re
>>> re.search('0.*1.*0.*1', '0100')
<_sre.SRE_Match object at 0x008D9BF0>
>>> _.span()
(0, 10)
Put the chars of the search string in groups if you need to know where they
were found.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
text = self.ent.get() # get text form entry in this window
> d.entry.insert(0, text)# must insert in other window
>
> d = First() #First window
The problem is that First.__init__() never returns so the instance of First is
never bound to d.
Take the line
self.root.mainloop()
out of First.__init__() and and the line
d.root.mainloop()
at the end of the program and it will work as you expect.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
t Timer.timeit() calls the function being timed 100 times.
That's a lot of "hello
time test" =:-)
Kent
--
http://mail.python.org/mailman/listinfo/python-list
or a preview of the issues this raises.
http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/475d065fa7871e63/c2fc42fefe114d38?hl=en#c2fc42fefe114d38
Kent
--
http://mail.python.org/mailman/listinfo/python-list
trict.dtd";>
>
>
>
If you are using CGI you can set the Content-Type header directly. Before you
output your HTML do
print "Content-Type: text/html; charset=UTF-8"
print # blank line, end of headers
Kent
--
http://mail.python.org/mailman/listinfo/python-list
hive.html
If you mean the practice, Google is your friend. Countless books and articles
have been written
about unit testing.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
ormally you get the desired result:
dirList = ['depth1','depth2','depth3']
string = """position"""
for x in dirList:
string += '>> %s'% x
Kent
--
http://mail.python.org/mailman/listinfo/python-list
> Windows, IE can be automated via COM - see
> <http://www.mayukhbose.com/python/IEC/> for example
Also http://pamie.sourceforge.net/
Kent
--
http://mail.python.org/mailman/listinfo/python-list
ocks()
[(0, 0, 2), (4, 2, 1), (13, 3, 1), (14, 4, 0)]
You should test for len(sm.get_matching_blocks()) == 4 (the last element is a
dummy)
Kent
--
http://mail.python.org/mailman/listinfo/python-list
k through
2,400 folders to see if they contained two specific files in a nested
subfolder. This is easy to do
in Python; below is my script.
Kent
''' Look in the warehouse for courses that are missing
\output\html\saveres.htm and/or \output\html\readres.htm
path module f
ed!
Where should it go in the docs? In the Language Reference or the Tutorial or...?
Kent
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy wrote:
> "Kent Johnson" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>>Terry Reedy wrote:
>>
>>>"kosuke" <[EMAIL PROTECTED]> wrote in message
>>>news:[EMAIL PROTECTED]
>>>
>>>
valuating EXPR must have
__enter__() and __exit__() methods. *x* can be a tuple.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
except:
print "entered except"
raise
return wrapper
class C(object):
@in_try
def func_a(self):
print "func_a"
@in_try
def func_b(self):
print "func_b"
raise Exception
You could probably creat
MS Windows
> environment. I have Python 2.4 with win32 extensions.
>
> 1. What else do I need
I recommend ElementTree for XML processing in Python
http://effbot.org/zone/element-index.htm
and the Python-tutor mailing list for getting started with Python:
http://mail.python.org
ts. For your needs, a list of strings
will work, or a cStringIO initialized from your data.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
'isBar' ]
just change it to
validators = [ isDecimal, isFoo, isBar ]
and your loop above will work.
Python makes data-driven programming easy :-)
Kent
>
> Many thanks
> David
>
> My current situation below:
>
> # A large list of validators
> def isDecimal
results = {}
> for validate in validators:
> result = validate(name,value)
> if result is not None:
> results[name] = result
> # XXX: if more than one validators succeed,
> # all but the last result will be overwritten
> return results
No change needed in the loop above...
>
> # test
> validators = [DecimalValidator(), ZipCodeValidator()]
validators = [ isDecimal, isZipCode ]
Kent
--
http://mail.python.org/mailman/listinfo/python-list
David Pratt wrote:
> Hi Kent. Thank you for your reply. I gave this a go but get the
> following traceback:
> ...
> result = validator(name, value)
> TypeError: 'str' object is not callable
>
> Have put validators in list and iterate over it as in fol
()
return ret
def reinterpolate(word):
""" main function """
wlist = shuffled(word)
vlist = 'aeiouy' # ok, y isn't really a vowel, but...
vees = [ x for x in wlist if x in vlist ]
cons = [ x for x in wlist if x not in vlist ]
:
#!/usr/local/bin/python
''' Send mail to me '''
from smtplib import SMTP
def sendToMe(subject, body):
me = '"Kent Johnson" <[EMAIL PROTECTED]>'
send(me, me, subject, body)
def send(frm, to, subject, body):
s = SMT
27;, 'meerkat.getItems', 'system.listMethods',
'system.methodHelp', 'system.methodSignature']
>>> print meerkatsvr.system.methodSignature('meerkat.getChannels')
[['array']]
>>> print meerkatsvr.system.methodHelp('meerkat.getItems')
Returns an array of structs of RSS items given a recipe struct.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
ing is usually
> ASCII-7. Why it's trying to use Latin-1 in this case is somewhat
> of a mystery.
Actually I believe it will use sys.stdout.encoding for this, which is
presumably latin-1 on fingermark's machine.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
of scope and the
actual file is closed. Try returning both somefile and mmapped or some other
way of keeping a reference to someefile.
Kent
>
> On the other hand,
> doeswork.py
> ---
> import mmap
> import os
>
> name="/the/exact/same/file"
>
ivestate.com/ASPN/Cookbook/Python/Recipe/219300
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/111286
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65212
Kent
--
http://mail.python.org/mailman/listinfo/python-list
al number of arguments including
*args and **kwds args. inspect.getargspec() might also be helpful.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
YTE)'
>>> byter.sub(r'SIZE(\1)', s)
'SIZE(1)'
>>> s = 'SIZE (1024 BYTE)'
>>> byter.sub(r'SIZE(\1)', s)
'SIZE(1024)'
Kent
--
http://mail.python.org/mailman/listinfo/python-list
Kent Johnson wrote:
> Terry Reedy wrote:
>
>> "Kent Johnson" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>
>>> Terry Reedy wrote:
>>>
>>>> "kosuke" <[EMAIL PROTECTED]> wrote in message
>&
Tim Roberts wrote:
> Kent Johnson <[EMAIL PROTECTED]> wrote:
>
>>Ivan Shevanski wrote:
>>
>>>Could someone send me a good tutorial for sending mail then? The one I
>>>found is not what I'm looking for. Also please dont send me the stmp
>>&g
Kent Johnson wrote:
> Tim Roberts wrote:
>> Not exactly like this, you didn't. The list of destination addresses in
>> SMTP.sendmail must be a sequence, not a string:
>
> Yes, exactly like that. This is a working module, the only thing I
> changed to post it was t
his might be a good job for PyParsing.
Kent
>
> sometimes the (1) and (2) are not included - they are included only if
> the word has two different meanings
>
>
> "..." means that there are sometimes more then two definitions per
> meaning.
>
>
> im t
want to get rid of everything after 'space', this will do it:
>>> import re
>>> a = "I'm going send to out of space, find another race"
>>> re.sub('space.*', 'space', a)
"I'm going send to out of space"
You s
just
have to find a package whose style you like and whose features fit your needs.
HTH,
Kent
--
http://mail.python.org/mailman/listinfo/python-list
port subprocess
>>> subprocess.check_call
Traceback (most recent call last):
File "", line 1, in ?
AttributeError: 'module' object has no attribute 'check_call'
with Python 2.4.1.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
Daniel wrote:
> Hi Kent
>
> This isn't work with the following line:
> FieldGraphic56::= GraphicString EBCDIC BC= " " SIZE (56
> BYTES)
>
>
>>>>byter = re.compile(r'SIZE \((\d+) BYTE\)')
Because the string doesn't match t
user input as a string.
Then you can do whatever validation you wish, e.g.
menuChoice = int(raw_input("1 = write | 2 = view | 0 = quit"))
which will raise an exception if the input is not a valid integer.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
while whatever:
yield token
def seek(self, newPosition):
# change state here
Kent
--
http://mail.python.org/mailman/listinfo/python-list
nd to the same list as x. At
least if the execution sequence is
x = self.data
self.data.append(a_piece_of_data)
self.data = []
ISTM it should work.
I'm not arguing in favor of the original code, I'm just trying to understand
your specific failure mode.
Thanks,
Kent
--
http://mail.python.org/mailman/listinfo/python-list
processing the returned list* before the
on_received() thread runs again and actually appends to the list. The appended
value will never be processed.
If you want to avoid the overhead of a Queue.get() for each data element you
could just put your own mutex into on_received() and get_data().
Kent
--
http://mail.python.org/mailman/listinfo/python-list
4er']
>>> ident = Combine(Literal('atod') + Word('_' + alphanums))
>>> for t in tests:
... try:
... print ident.parseString(t)
... except:
... print 'No match', t
...
['atodkj45k']
['atod_asdfaw']
No match atgdkasdjfhlksj
No match atod asdf4er
>>>
Kent
--
http://mail.python.org/mailman/listinfo/python-list
iffer from
Foo('a').speak()
Why does Final need to subclass Foo?
Can you use either of these syntaxes? Either one can be specialized in a
subclass:
Foo()('a').speak() # use Foo.__call__() as factory
Foo.make('a') # Use classmethod as factory
Kent
--
http://mail.python.org/mailman/listinfo/python-list
Paul McGuire wrote:
> Be careful, Kent. You may get tagged as "the new pyparsing guy." :)
Yeah, I was a little surprised I beat you to that one :-)
Kent
--
http://mail.python.org/mailman/listinfo/python-list
n(testLoader=FilteringTestLoader())
You could do something similar with a FilteringTestSuite if that fits your
harness better.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
ce using nametowidget().
>
> self.nametowidget(event.widget.winfo_parent()).hasChanged= True
Personally I think it is bad design for a widget to assume anything about its
enclosing environment. What about passing a StringVar or IntVar to the child
widget and letting it work with that?
Kent
--
http://mail.
William Gill wrote:
> Kent Johnson wrote:
>
> If I change the area code in one record only the phonenumber table needs
> to be updated, but since areaCode is a child of phones,
> phones.hasChanged needs to be set to True by the areaCode entry widget.
One possibility is for the ph
ver scopes that
> Perl provides.
Python has supported nested (lexical) scopes and closures since version 2.1,
maybe this gives you enough control; see
http://www.amk.ca/python/2.1/index.html#SECTION00030
Kent
--
http://mail.python.org/mailman/listinfo/python-list
y to do this sort of thing, and where the resulting
variables are easily used?
Thanks,
Kent
--
http://mail.python.org/mailman/listinfo/python-list
you say
from mystuff.mymodule import MyClass
where in both cases MyClass is defined in mymodule.py.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
The APL2007 URL was given incorrectly should be
http://www.sigapl.org/apl2007.html
--
http://mail.python.org/mailman/listinfo/python-list
de Congres, Montreal, Quebec, CANADA
Conference hotel: Hyatt Regency Montreal
Committee
General Chair Guy Laroque [EMAIL PROTECTED]
Program Chair Lynne C. Shaw[EMAIL PROTECTED]
Treasurer Steven H. Rogers [EMAIL PROTECTED]
Publici
APL 2007 conference on Array Programming
co-located with OOPSLA 2007
Sponsor: ACM SIGAPL
Where:Montreal
When: October 21 (tutorials)
October 22/23 (main conference program)
Keynote Guy Steele
speaker:
( Details and abstracts coming to the APL 2007 web page
http://www.sigapl.org/apl2007.html
shortly. In the meantime ... )
Tutorials and workshops
Introduction to APL (Ray Polivka)
OO for APLers, APL for OOers (Dan Baronet)
... others in the works
Presentations
On-line registration is through the OOPSLA registrar
http://www.regmaster.com/conf/oopsla2007.html
APL 2007 home page
http://www.sigapl.org/apl2007.html
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 4, 1:15 pm, Jan Danielsson <[EMAIL PROTECTED]> wrote:
>When I run doxygen on my python files, it does document classes, but
> not "standalone" functions.
Look in the doxygen config file for your python project, named
'Doxyfile', for the config setting
'EXTRACT_ALL', and read the commen
On Mar 15, 11:13 am, "tonyr1988" <[EMAIL PROTECTED]> wrote:
> if __name__=='__main__':
> x = DemoClass
> x.WriteToFile
>
You meant to create a DemoClass instance object, but instead, you
obtained a reference to the class object. You want 'x = DemoClass()'
instead.
You meant to ca
On Mar 23, 2:37 pm, Paulo da Silva <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I was told in this NG that string is obsolet. I should use
> str methods.
>
> So, how do I join a list of strings delimited by a given
> char, let's say ','?
>
> Old way:
>
> l=['a','b','c']
> jl=string.join(l,',')
>
> New way?
Conference page
// with links to program details //
(updated Friday 10/12)
http://www.sigapl.org/apl2007.html
Co-located with OOPSLA 2007
http://www.oopsla.org/oopsla2007
On-line registration (through Wednesday 10/17)
http://www.regmaster.com/c
2.4 are in it, too.
No, it is one version back from that. From the Preface to the second
edition: "This edition has been thoroughly updated to reflect Python
2.2...in addition, discussion of anticipated changes in the upcoming 2.3
release have been incorporated."
Kent
--
http://mail.python.org/mailman/listinfo/python-list
Howdy,
I want to generate the following file;
stuff
How should I be doing this?
As far as I can tell, ElementTree() requires everything
to be inside the root element (leo_file)
Thanks,
Kent
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 28, 7:46 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> At Sunday 28/1/2007 11:28, Kent Tenney wrote:
>
> >I want to generate the following file;
>
> >
> >
> >stuff
>
> >How should I be doing this?open("filename","w"
[EMAIL PROTECTED] wrote:
> Matt> In some instances I want to access just the function f, though,
> Matt> and catch the values before they've been decorated.
>
> def f(x):
> return x * x
>
> @as_string
> def fs(x):
> return f(x)
or just
fs =
-
Use + :
In [1]: a=[1,2]
In [2]: b=a+[3]
In [3]: a
Out[3]: [1, 2]
In [4]: b
Out[4]: [1, 2, 3]
Kent
--
http://mail.python.org/mailman/listinfo/python-list
quot;Ataris Aqußticos #2.py", line 1
> SyntaxError: Non-ASCII character '\xff' in file Ataris Aqußticos #2.py
> on line 1
It looks like you are saving the file in Unicode format (not utf-8) and
Python is choking on the Byte Order Mark that Notepad puts at the
beginning of the d
# print the new list where duplicates are removed
For longer lists the set() method will probably be faster as this one
searches temp for each item.
Kent
>
> def main():
> list, temp = [1, 1, 2, 4, 8, 8, 8, 8, 8, 8, 10], []
> for i in range(len(list)):
>
s:
==
help that this
(Cmd) that
That
In your code you could use introspection to locate the plugin commands,
something like
PLUGIN_MODULES = map(__import__, PLUGIN_NAMES)
for module in PLUGIN_MODULES:
for name in dir(module):
if name.startswith('do_')
Jonathan Mark wrote:
> Some languages, such as Scheme, permit you to make a transcript of an
> interactive console session. Is there a way to do that in Python?
>
Maybe IPython's logging feature is what you want?
http://ipython.scipy.org/doc/manual/node6.html#SECTION00066000
On Nov 22, 8:23 pm, "bruce" <[EMAIL PROTECTED]> wrote:
> is there a function/feature/etc.. that i can run on "foo.py" that would walk
> through the entire list of files that make up foo.py, so i could see the
> list of *.py files that are required to run "foo.py".
There's this:
http://www.tarind.
I recently found myself needing to do this a lot:
lock a record in a file
read the record into a buffer
alter the buffer
write the buffer back to the record
unlock the record
I'd love to be able to create a context for this to use with the
'with' statement, something like:
from __future__ import
tatement, or when you're building the page ?
>>
>>
> because in my sql database, the date is only 'date' (as in -mm-dd),
> only when i extract it with my python-cgi does the date turn into
> (-mm-dd 00:00:00.00), thus i figured the best way to fix th
I V wrote:
> To use interfaces in python, just what you would do in Java, except
> don't use interfaces.
+1 QOTW
--
http://mail.python.org/mailman/listinfo/python-list
>
> Does anyone have any ideas on how it could be modified? Am I
> approaching it the right way? Thanks a bunch!
Rather than rewriting wrap(), I would suggest wrapping it with a new
function, wrap_box(), that adds the header, line endings and trailer to
the lines returned from wrap().
Kent
--
http://mail.python.org/mailman/listinfo/python-list
ilt-in often documents the
version when any change was made. You can also read through the What's
New documents for each release to see what changed in that release.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
Jar()
cookie = cookielib.Cookie(...your cookie data here...)
cj.set_cookie(cookie)
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
urllib2.install_opener(opener)
data = urllib2.urlopen(...).read()
Kent
--
http://mail.python.org/mailman/listinfo/python-list
l the other characters are always fixed.
In that case a fixed slice will do what you want:
In [1]: s='a53bc_531.txt'
In [2]: s[6:-4]
Out[2]: '531'
Kent
--
http://mail.python.org/mailman/listinfo/python-list
Kelvie Wong wrote:
> There are only two scopes in Python -- global scope and function scope.
No, Python has local, nested, global and built-in scope.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
s:
>
> if hasattr(record,"name"):
> name = record.name
> else:
> name = "Freddy"
or maybe
name = getattr(record, 'name', 'Freddy')
Kent
--
http://mail.python.org/mailman/listinfo/python-list
ne could do me a favor to give me some idea?
Use pickle.dumps() and pickle.loads() to serialize to/from a string.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
"Tom", 80,False, "itay", False, False,
> "d:\\asddd",False, False,time.time()+1000,False,None,None,None)
path is the server path to which the cookie applies. Try '/'.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
be mostly used for QA around here.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
nts that are expressions, encapsulate them in functions
event_list = [f1, f2, etc]
# Call each one:
for ev in event_list:
if ev(t):
# do something
Kent
--
http://mail.python.org/mailman/listinfo/python-list
Out[3]: 0
In [4]: lst[5]()
Out[4]: 5
A list comp makes this IMO cleaner:
In [5]: lst = [ lambda i=i: i for i in range(10) ]
In [6]: lst[0]()
Out[6]: 0
In [7]: lst[5]()
Out[7]: 5
Kent
--
http://mail.python.org/mailman/listinfo/python-list
501 - 600 of 792 matches
Mail list logo