[Python-Dev] Import APIs (original) (raw)
Georg Brandl g.brandl at gmx.net
Sat Mar 10 08:48:01 CET 2007
- Previous message: [Python-Dev] [Python-checkins] buildbot warnings in g4 osx.4 trunk
- Next message: [Python-Dev] Import APIs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Currently, all C code that needs to import a module uses PyImport_ImportModule which (1) calls builtin.import (2) attempts relative imports
Most of the time, though, at least (2) is wrong. If we want to keep (1), PyImport_ImportModuleLevel can't be used as a replacement. So there should be a new API, called PyImport_ImportAbsolute that gets a flag whether relative import should be allowed.
Georg
- Previous message: [Python-Dev] [Python-checkins] buildbot warnings in g4 osx.4 trunk
- Next message: [Python-Dev] Import APIs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]