[ python-Bugs-1145950 ] Strange behaviour concerning variable names
SourceForge.net
noreply at sourceforge.net
Tue Feb 22 03:47:57 CET 2005
Bugs item #1145950, was opened at 2005-02-22 03:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1145950&group_id=5470
Category: Parser/Compiler
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Felix Nawothnig (flexo_)
Assigned to: Nobody/Anonymous (nobody)
Summary: Strange behaviour concerning variable names
Initial Comment:
For some reason python coders seem to be unaware of the
fact that Python allows variable names to be longer
than one char - let's have a look at a function from
BitTorrent for example:
def decode_list(x, f):
r, f = [], f+1
while x[f] != 'e':
v, f = decode_func[x[f]](x, f)
r.append(v)
return (r, f + 1)
I'm not sure about the reasons for this behaviour yet
but I suspect serious brain-damage caused by
indentation-based structuring.
A possible workaround: switching to a sane language
like Ruby.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1145950&group_id=5470
More information about the Python-bugs-list
mailing list