is it possible to add syntax synonym to 'def' in python?
Question: I would like to use let instead of def.

I am looking for sane way of changing syntax of own code in this way.

basically in c it would be

    
    
    #define let def
    

How to make the same in python?


Answer: `def` is a keyword in python, so it can't be changed to anything else.

From the
[docs](http://docs.python.org/2/reference/lexical_analysis.html#keywords):

> The following identifiers are used as reserved words, or keywords of the
> language, and cannot be used as ordinary identifiers. They must be spelled
> exactly as written here:
    
    
    and       del       from      not       while as        elif     
    global    or        with assert    else      if        pass      yield
    break     except    import    print class     exec      in       
    raise continue  finally   is        return def       for       lambda 
    try
    

