Changes between Initial Version and Version 1 of Ticket #14767


Ignore:
Timestamp:
Jun 19, 2013, 5:58:47 AM (9 years ago)
Author:
Nicolas M. Thiéry
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14767

    • Property Cc Vincent Delecroix added
    • Property Summary changed from import_statements() does not work with lazy imports to Fix import_statements for lazy imported objects
  • Ticket #14767 – Description

    initial v1  
    11Here is an example:
    2 
    32{{{
    43sage: import_statements('NN')
     
    98}}}
    109
    11 However, it is able to answer correctly with a few help:
     10That's because `NN` is a not-yet-resolved lazy imported object.
     11
     12However, it is able to answer correctly with a bit of help:
    1213
    1314{{{
     
    1920}}}
    2021
    21 Hence `import_statements()` should fall to `import_statements(lazy=True)` when necessary.
     22By the way, the default value for ``lazy`` could possibly be set to
     23True for lazy imported objects.