[Baypiggies] Baypiggies snippets
Keith Dart ♂
keith at dartworks.biz
Thu Mar 29 08:24:18 CEST 2007
Chad Netzer wrote the following on 2007-03-28 at 22:53 PDT:
===
> x = some_really_long_descriptive_variable_function_or_module_name
> x + 3*x + x**2 # or foo(x("abc"), x("qvc"), x("bvd")) etc...
> x = None # or del x, if you want to indicate that x was a temporary name
===
I believe this is why the "as" keyword was added:
from mypackage import some_really_long_descriptive_name as x
But I believe that usage is not entirely accepted....
--
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Keith Dart <keith at dartworks.biz>
public key: ID: 19017044
<http://www.dartworks.biz/>
=====================================================================
More information about the Baypiggies
mailing list