Modified ImportCan supply new names for modulesimport socket as sock s = sock.socket(sock.AF_INET,sock.SOCK_STREAM) ... from string import replace as rep rep(s,"foo","bar") __all__ attribute
Case sensitivity
|
<<< | O'Reilly OSCON 2001, New Features in Python 2, Slide 33 July 26, 2001, beazley@cs.uchicago.edu |
>>> |