Hi guys,

I have some strange behaviour in my interactive python shell, when
trying to browse Django modules...

Example:

>>> import django
>>> dir(django.core)
AttributeError: 'module' object has no attribute 'core'

>>> import django.core
>>> dir(django.core)
['__builtins__', '__doc__', '__file__', '__name__', '__package__',
'__path__']

Can anyone, please, explain me this strange (to me) behaviour?

Regards,
Kenny

--------------------------------------------------------------------
  .'  `.    knny [d0t] myer [at] gmail [d0t] com [42!]
  |a_a  |   http://kenny.paraguayinfos.de | gpg key ID: 0x00F56BA1B2
  \<_)__/   -------------------------------------------------------- 
  /(   )\   Everything should be made as simple as possible, but not 
 |\`> < /\                        simpler.
 \_|=='|_/                                        -- Albert Einstein 

Attachment: signature.asc
Description: PGP signature

Reply via email to