Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43954
| Date | 2013-04-20 07:09 -0400 |
|---|---|
| From | Dave Angel <davea@davea.name> |
| Subject | Re: Different cache filename |
| References | <kkt9iv$fsq$1@ger.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.852.1366456211.3114.python-list@python.org> (permalink) |
On 04/20/2013 01:37 AM, Fabian PyDEV wrote:
> Hi,
>
> when load a module "mymodule.py" with importlib.machinery.SourceFileLoader a bytecode file is created as mymodule.cpython-33.pyc.
>
> If I load a module "mymodule.ext.py" the same way the same bytecode file is created as mymodule.cpython-33.pyc.
>
> Is there any way I could tell python to generate the bycode file as mymodule.ext.cpython-33.pyc?
>
> Regards,
> Fabian
>
Rename the source file to a legal one, such as:
mymodule_ext.py
and you won't have the problem. Period is not a valid character within
a Python identifier.
--
DaveA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Different cache filename Dave Angel <davea@davea.name> - 2013-04-20 07:09 -0400
csiph-web