Python Feature Request: Allow changing base of member indices to 1
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Sat Apr 14 09:48:06 EDT 2007
In <1176557999.665663.299740 at y80g2000hsf.googlegroups.com>, jamadagni
wrote:
> On Apr 14, 4:01 pm, "Martin v. Löwis" <mar... at v.loewis.de> wrote:
>
>> This one is not sane. It's not possible to change the indexing of
>> objects on a per-module basis, as objects may cross module boundaries.
>
> I do not request for this to be changed per-module. Once I say
> something like:
>
> from __future__ import indices_start_at_one
>
> afterwards I would expect *any* index from *any* module to start at 1.
> To my understanding, Python is going to parse the content of modules
> only as and when they are called.
Modules are parsed when they are imported. And some modules are already
imported before your module is imported because they are built-in or
loaded to be able to import your module in the first place. And what
about modules that are written in C?
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list