Stamattina mi sono trovato un errore che non riesco a spiegarmi.

Python 2.7.2
>>> import email

>>> email.generator
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'generator'


>>> import email.generator as eg
>>> dir (eg)
['DecodedGenerator', 'Generator', 'Header', 'NL', 'StringIO', 'UNDERSCORE', 
'_FMT', '__all__', '__builtins__', '__doc__', '__file__', '__name__', 
'__package__', '_fmt', '_is8bitstring', '_make_boundary', '_width', 'fcre', 
'random', 're', 'sys', 'time', 'warnings']
>>> 



Si tratta di un baco (magari noto) o c'รจ qualcosa che mi sfugge ?

Grazie

G
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a