Re: issue on internal import in a package

2011-02-27 Thread Frank Millman
"人言落日是天涯,望极天涯不见家" wrote in message news:9529d52b-01b2-402c-a0a0-1e9240038...@l14g2000pre.googlegroups.com... On Feb 27, 9:38 pm, "Frank Millman" wrote: "人言落日是天涯,望极天涯不见家" wrote in message news:fa94323b-d859-4599-b236-c78a22b3d...@t19g2000prd.googlegroups.com... > On Feb 27, 9:22 pm, "Frank

Re: issue on internal import in a package

2011-02-27 Thread 人言落日是天涯,望极天涯不见家
On Feb 27, 9:38 pm, "Frank Millman" wrote: > "人言落日是天涯,望极天涯不见家" wrote in message > > news:fa94323b-d859-4599-b236-c78a22b3d...@t19g2000prd.googlegroups.com... > > > On Feb 27, 9:22 pm, "Frank Millman" wrote: > > > This behavior is by design or just a bug for Python3.x ? > > Definitely by design.

Re: issue on internal import in a package

2011-02-27 Thread Frank Millman
"人言落日是天涯,望极天涯不见家" wrote in message news:fa94323b-d859-4599-b236-c78a22b3d...@t19g2000prd.googlegroups.com... On Feb 27, 9:22 pm, "Frank Millman" wrote: This behavior is by design or just a bug for Python3.x ? Definitely by design. Have a look at PEP 328 - http://www.python.org/dev/peps/pe

Re: issue on internal import in a package

2011-02-27 Thread 人言落日是天涯,望极天涯不见家
On Feb 27, 9:22 pm, "Frank Millman" wrote: > "Ben Finney" wrote in message > > news:87ei6t646h@benfinney.id.au... > > > > > 人言落日是天涯,望极天涯不见家 writes: > > >> Here is a simple example: > >> [app] > >>       [module] > >>             __init__.py   --> empty > >>             a.py   --> import b >

Re: issue on internal import in a package

2011-02-27 Thread Frank Millman
"Ben Finney" wrote in message news:87ei6t646h@benfinney.id.au... 人言落日是天涯,望极天涯不见家 writes: Here is a simple example: [app] [module] __init__.py --> empty a.py --> import b b.py --> defined a function foo() test.py In the test.py, conta

Re: issue on internal import in a package

2011-02-27 Thread 人言落日是天涯,望极天涯不见家
On Feb 27, 8:40 pm, Ben Finney wrote: > 人言落日是天涯,望极天涯不见家 writes: > > Here is a simple example: > > [app] > >       [module] > >             __init__.py   --> empty > >             a.py   --> import b > >             b.py  --> defined a function foo() > >       test.py > > > In the test.py, contain

Re: issue on internal import in a package

2011-02-27 Thread Ben Finney
人言落日是天涯,望极天涯不见家 writes: > Here is a simple example: > [app] > [module] > __init__.py --> empty > a.py --> import b > b.py --> defined a function foo() > test.py > > In the test.py, contains the below statement: > from module import a > Execute

Re: issue on internal import in a package

2011-02-27 Thread 人言落日是天涯,望极天涯不见家
On Feb 27, 8:11 pm, 人言落日是天涯,望极天涯不见家 wrote: > Here is a simple example: > [app] >       [module] >             __init__.py   --> empty >             a.py   --> import b >             b.py  --> defined a function foo() >       test.py > > In the test.py, contains the below statement: > from module i

issue on internal import in a package

2011-02-27 Thread 人言落日是天涯,望极天涯不见家
Here is a simple example: [app] [module] __init__.py --> empty a.py --> import b b.py --> defined a function foo() test.py In the test.py, contains the below statement: from module import a Execute the test.py will get error: Traceback (most rec