A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-May/035677.html below:

[Python-Dev] a strange case

[Python-Dev] a strange case [Python-Dev] a strange caseBarry Warsaw barry@python.org
16 May 2003 14:44:39 -0400
On Fri, 2003-05-16 at 14:36, Fred L. Drake, Jr. wrote:
> Here's a strange case we just ran across, led along by a typo in an
> import statement.  This is using the head of the 2.2.x maintenance
> branch; I've not tested this against the trunk yet.
> 
> >>> import os
> >>> class Foo(os):
> ...   pass
> ...
> >>> Foo
> <module '?' (built-in)>
> 
> I suspect this isn't intentional behavior.  ;-)

No, it's not, and in 2.3 you get an error (albeit a TypeError with a
rather unhelpful message).  I guess the "fix" hasn't been backported.

-Barry





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4