summaryrefslogtreecommitdiffstats
path: root/Lib/test/test___future__.py
Commit message (Collapse)AuthorAgeFilesLines
* Expose the CO_xxx flags via the "new" module (re-solving a problem "theTim Peters2001-08-181-0/+13
| | | | | | | | | | right way"). Fiddle __future__.py to use them. Jeremy's pyassem.py may also want to use them (by-hand duplication of magic numbers is brittle), but leaving that to his judgment. Beef up __future__'s test to verify the exported feature names appear correct.
* A self-contained piece of Michael Hudson's patchTim Peters2001-08-171-1/+6
| | | | | | | | | | | | | | #449043 supporting __future__ in simulated shells in support of PEP 264. Much has changed from the patch version: + Repaired bad hex constant for nested_scopes. + Defined symbolic CO_xxx names so global search will find these uses. + Made the exported list of feature names explicit, instead of abusing __all__ for this purpose (and redefined __all__ accordingly). + Added gross .compiler_flag verification to test___future__.py, and reworked it a little to make use of the newly exported explicit list of feature names.
* Make names in __future__.py bind to class instances instead of 2-tuples.Tim Peters2001-03-021-3/+2
| | | | Suggested on c.l.py by William Tanksley, and I like it.
* Add __future__.py to std library, + dull test to verify that assignmentsTim Peters2001-02-261-0/+42
therein are of the proper form.