This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Strange behaviour concerning variable names
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: flexo_, mwh
Priority: normal Keywords:

Created on 2005-02-22 02:47 by flexo_, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg24360 - (view) Author: Felix Nawothnig (flexo_) Date: 2005-02-22 02:47
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.
msg24361 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-02-22 10:16
Logged In: YES 
user_id=6656

Ho ho ho.
History
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41612
2005-02-22 02:47:56flexo_create