[Python-checkins] r82850 - python/branches/py3k/Lib/test/support.py

Brett Cannon brett at python.org
Tue Jul 13 22:55:06 CEST 2010


On Tue, Jul 13, 2010 at 13:39, Alexander Belopolsky <
alexander.belopolsky at gmail.com> wrote:

> On Tue, Jul 13, 2010 at 4:25 PM, Brett Cannon <brett at python.org> wrote:
> > Can I ask why you did this?
>
> 0 does not block import in py3k:
>
> >>> import sys
> >>> sys.modules['time'] = 0
> >>> import time
> >>> time
> 0
>
> I ran into this problem while working on datetime.py tests.  I asked
> on python-dev and Nick said it was an oversight.
>
> http://mail.python.org/pipermail/python-dev/2010-July/101883.html
>
>
> > And just for historical background, the reason this was originally 0
> instead
> > of None is that before absolute imports an entry in None was used to
> force
> > an absolute import instead of a relative import in a package. This
> doesn't
> > come into play in Python 3, though.
>
> I was not planning to backport to 2.x.  Is there a problem with this
> change in 3.x?
>

I replied on python-dev to the related email to this change, but the short
answer is: no. I was just curious as to why you changed it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-checkins/attachments/20100713/b075f3b1/attachment.html>


More information about the Python-checkins mailing list