Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

Re: [python] Re: import file extensions

 

 

Python dev RSS feed   Index | Next | Previous | View Threaded


fuzzyman at voidspace

Sep 14, 2007, 2:17 PM

Post #1 of 1 (271 views)
Permalink
Re: [python] Re: import file extensions

Guido van Rossum wrote:
> I think you're looking for a PEP 302 style meta hook.
>

Or even execfile in a context...

Michael Foord
http://www.manning.com/foord
> On 9/14/07, tomer filiba <tomerfiliba [at] gmail> wrote:
>
>> a quick question: i'm working on a pythonic build system, where the
>> build
>> scripts are plain python files. but i want to differentiate them from
>> normal
>> python files (.py) by a different suffix (say .pyy), but then i can't
>> import
>> them.
>>
>> so i'm wondering, is there a quick way to just add another extension
>> to
>> import mechanism? or do i have to write a fully fledged import hook?
>>
>>
>> -tomer
>>
>> _______________________________________________
>> Python-Dev mailing list
>> Python-Dev [at] python
>> http://mail.python.org/mailman/listinfo/python-dev
>> Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
>>
>>
>
>
>

_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.