Problem with __init__.py in Python3.1

Hidura hidura at gmail.com
Thu Feb 4 21:10:45 EST 2010


Thanks i middle resolve the problem, and i going to read the PEP-366 i've
been read the 328, i will kept informed of the progresses.

Thanks again for the help [?]

On Thu, Feb 4, 2010 at 6:47 PM, Ben Finney
<ben+python at benfinney.id.au<ben%2Bpython at benfinney.id.au>
> wrote:

> "Gabriel Genellina" <gagsl-py2 at yahoo.com.ar> writes:
>
> > If you directly run a script from inside a package, Python does not
> > know that it belongs to a package, and treats it as a simple, lonely
> > script. In that case, relative imports won't work.
>
> Which I consider to be a bug. Fortunately, it's already addressed in PEP
> 366 <URL:http://www.python.org/dev/peps/pep-0366/>. Unfortunately, it
> involves more hackish boilerplate at the top of the program, and is only
> available in Python 2.6+.
>
> --
>  \              “Ignorance more frequently begets confidence than does |
>  `\           knowledge.” —Charles Darwin, _The Descent of Man_, 1871 |
> _o__)                                                                  |
> Ben Finney
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Hidura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100204/0d9f7428/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 330.png
Type: image/png
Size: 611 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20100204/0d9f7428/attachment.png>


More information about the Python-list mailing list