how to determine an 'open' string?
holger krekel
pyth at devel.trillke.net
Thu May 16 10:40:07 EDT 2002
hello,
with my replacement rlcompleter module i'd like to
have a *correct* check if a string is 'open'.
examples:
asd"""askdjalsdk # open
aksdjasd # closed
asjdkk"kajsd'''' # open
"'asdasd" # closed
"""dontcountoneven" # open
so i need a function which takes these strings as
an argument and return 1 for 'open', 0 for a 'closed' string.
Any working ideas?
holger
More information about the Python-list
mailing list