Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: Re: Problem with __init__.py in Python3.1
Hidura
2/22/2010 2:04:00 PM
For finnished the subject i resolve the problem using the PEP-328, i was
using the old kind of imports :s
On Feb 4, 2010 10:10pm, Hidura <hidura@gmail.com> wrote:
> 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@benfinney.id.au>
> wrote:
> "Gabriel Genellina" gagsl-py2@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
http://www.python.org/dev/peps/pep...
. 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/p...
> --
> Hidura
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Re: Problem with __init__.py in Python3.1
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password