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/2009-February/086293.html below:

[Python-Dev] IO implementation: in C and Python?

[Python-Dev] IO implementation: in C and Python? [Python-Dev] IO implementation: in C and Python?Steven D'Aprano steve at pearwood.info
Sat Feb 21 01:23:38 CET 2009
Greg Ewing wrote:

> Instead of defining things directly in foo.py, maybe it
> should do
> 
>   try:
>     from cFoo import *
>   except ImportError:
>     from pyFoo import *
> 
> Then the fast path will be taken if cFoo is available,
> and you can directly import cFoo or pyFoo if you want.

For what it's worth, I like that naming convention better than the 
current conventions Foo/cFoo, Foo/_Foo.


-- 
Steven






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