Re: [python-committers] do we still believe explicit relative imports are bad as PEP 8 claims?

2011-02-24 Thread Nick Coghlan
On Thu, Feb 24, 2011 at 9:13 AM, Barry Warsaw  wrote:
> On Feb 18, 2011, at 12:36 PM, Brett Cannon wrote:
>
>>It says they are "highly discouraged" because "absolute imports are
>>more portable and usually more readable", but now that people have had
>>a chance to use explicit relative imports, do people still believe
>>this? I mean if we truly believed this then why did we add the syntax?
>>I know I have used it and love it, let alone that I don't buy the
>>portability argument.
>
> I agree with others that explicit relative imports should still be
> discouraged.  I've run into problems with them where imports break under some
> situations.  I don't remember the details, but I think it was when running
> unittests or under -m or something.  Yeah, I should file a bug next time I run
> into it.

/me points to PEP 366

Relative imports and __main__ modules inside packages did *not* play
nicely with each other at all for a while there.However, as far as I
am aware, the only time you get in trouble now is when you run scripts
inside packages directly (rather than via -m), but that causes trouble
for multiple reasons, not just broken relative imports. If there are
other cases that still have issues, I'd definitely like to hear about
them.

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
___
python-committers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-committers


[python-committers] Quick survey for PyCon talk on core development

2011-02-24 Thread Brian Curtin
Hi all,

If you have a few free minutes, would you mind filling out a couple of
questions? I'm giving a talk at PyCon about core development [0] and wanted
to sprinkle in some info about the people doing the work.

https://spreadsheets.google.com/viewform?formkey=dEZXWVhQMnBGREU0TUl0TTRTWk1zOEE6MQ

Feel free to answer or skip any questions. Your name isn't associated with
it.

Thanks a lot for your time, and I look forward to seeing any of you at
PyCon!

Brian


[0] http://us.pycon.org/2011/schedule/presentations/7/
___
python-committers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-committers


Re: [python-committers] Quick survey for PyCon talk on core development

2011-02-24 Thread Brett Cannon
Just so people know, I took the survey and it actually only take a couple of
minutes, not even a few.

On Thu, Feb 24, 2011 at 10:20, Brian Curtin  wrote:

> Hi all,
>
> If you have a few free minutes, would you mind filling out a couple of
> questions? I'm giving a talk at PyCon about core development [0] and wanted
> to sprinkle in some info about the people doing the work.
>
>
> https://spreadsheets.google.com/viewform?formkey=dEZXWVhQMnBGREU0TUl0TTRTWk1zOEE6MQ
>
> Feel free to answer or skip any questions. Your name isn't associated with
> it.
>
> Thanks a lot for your time, and I look forward to seeing any of you at
> PyCon!
>
> Brian
>
>
> [0] http://us.pycon.org/2011/schedule/presentations/7/
>
> ___
> python-committers mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-committers
>
>
___
python-committers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-committers


Re: [python-committers] Quick survey for PyCon talk on core development

2011-02-24 Thread Łukasz Langa
Wiadomość napisana przez Brett Cannon w dniu 2011-02-24, o godz. 19:47:

> Just so people know, I took the survey and it actually only take a couple of 
> minutes, not even a few.
> 

Exactly, and it's fun.

Brian, you might consider tweeting about it. Then again, you might get some 
false positives ;-)

-- 
Best regards,
Łukasz Langa
tel. +48 791 080 144
WWW http://lukasz.langa.pl/

___
python-committers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-committers


Re: [python-committers] Quick survey for PyCon talk on core development

2011-02-24 Thread Guido van Rossum
Actually you should post it to the python-dev IRC group.

2011/2/24 Łukasz Langa :
> Wiadomość napisana przez Brett Cannon w dniu 2011-02-24, o godz. 19:47:
>
> Just so people know, I took the survey and it actually only take a couple of
> minutes, not even a few.
>
>
> Exactly, and it's fun.
> Brian, you might consider tweeting about it. Then again, you might get some
> false positives ;-)
> --
> Best regards,
> Łukasz Langa
> tel. +48 791 080 144
> WWW http://lukasz.langa.pl/
>
> ___
> python-committers mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-committers
>
>



-- 
--Guido van Rossum (python.org/~guido)
___
python-committers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-committers