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/2006-July/067068.html below:

[Python-Dev] what can we do to hide the 'file' type?

[Python-Dev] what can we do to hide the 'file' type? [Python-Dev] what can we do to hide the 'file' type?"Martin v. Löwis" martin at v.loewis.de
Thu Jul 6 07:24:03 CEST 2006
Brett Cannon wrote:
> Can anyone think of any other way to gain access to 'file' without
> importing a module?

In principle, it might be possible to find file in the func_defaults
or func_globals of some function, which might be defined as

orig_file = file
def file(...):
    ...

I couldn't find any such function in the standard library, though.

Regards,
Martin
More information about the Python-Dev mailing list

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