- 27 Feb, 2001 19 commits
-
-
Ka-Ping Yee authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
comment. This way the generated files are identical when generated on different machines.
-
Moshe Zadka authored
an invalid 401 request is being handled.
-
Jeremy Hylton authored
SF bug #233532 XXX Can't figure out how to write test cases that work with warnings
-
Neil Schemenauer authored
closes SF patch #401229.
-
Jeremy Hylton authored
compile.h: #define NESTED_SCOPES_DEFAULT 0 for Python 2.1 __future__ feature name: "nested_scopes" symtable.h: Add st_nested_scopes slot. Define flags to track exec and import star. Lib/test/test_scope.py: requires nested scopes compile.c: Fiddle with error messages. Reverse the sense of ste_optimized flag on PySymtableEntryObjects. If it is true, there is an optimization conflict. Modify get_ref_type to respect st_nested_scopes flags. Refactor symtable_load_symbols() into several smaller functions, which use struct symbol_info to share variables. In new function symtable_update_flags(), raise an error or warning for import * or bare exec that conflicts with nested scopes. Also, modify handle for free variables to respect st_nested_scopes flag. In symtable_init() assign st_nested_scopes flag to NESTED_SCOPES_DEFAULT (defined in compile.h). Add preliminary and often incorrect implementation of symtable_check_future(). Add symtable_lookup() helper for future use.
-
Martin v. Löwis authored
-
Barry Warsaw authored
-
Barry Warsaw authored
-
Andrew M. Kuchling authored
Add note about linuxaudiodev possibly working on BSD
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Neil Schemenauer authored
-
Neil Schemenauer authored
be created (perhaps the source directory is read-only).
-
Neil Schemenauer authored
directory. Closes SF #403930.
-
- 26 Feb, 2001 7 commits
-
-
Fred Drake authored
.has_option(), .remove_option(), and .set(). This closes SF tracker #232913.
-
Tim Peters authored
therein are of the proper form.
-
Fred Drake authored
comments to reflect reality.
-
Fred Drake authored
so make it void.
-
Barry Warsaw authored
set a function attribute on a method (either bound or unbound). This reverts to Python 2.0 behavior that no attributes of the method are writable, but provides a more informative error message.
-
Barry Warsaw authored
- func.__dict__ is None until the first attribute is assigned - del func.__dict__ is equivalent to func.__dict__ = None - disallowing assignment to function attribute through unbound method (it was always illegal to assign through bound method). - verifying that setting attribute explicitly on underlying function via meth.im_func is okay.
-
Barry Warsaw authored
occurs. Also, continue processing.
-
- 24 Feb, 2001 1 commit
-
-
Barry Warsaw authored
multi-line list comprehensions.
-
- 23 Feb, 2001 13 commits
-
-
Tim Peters authored
Fixes the "debug-build -O test_builtin.py and no test_b2.pyo" crash just discussed on Python-Dev.
-
Jack Jansen authored
-
Jack Jansen authored
Turn on the "multifinder aware" bit. This should always have been on, but was was never a problem that it was off until CarbonLib 1.1 (which requires it, for some reason).
-
Fred Drake authored
will not have been done, and applications need to know that. Also, do not print a message about it; the exception is the right thing. This closes SF bug #133717.
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
-
Barry Warsaw authored
-
Barry Warsaw authored
symtable_enter_scope(): Removed some unnecessary backslashes at the end of lines. C != Python. :)
-
Jeremy Hylton authored
Two different but related problems: 1. PySymtable_Free() must explicitly DECREF(st->st_cur), which should always point to the global symtable entry. This entry is setup by the first enter_scope() call, but there is never a corresponding exit_scope() call. Since each entry has a reference to scopes defined within it, the missing DECREF caused all symtable entries to be leaked. 2. The leak here masked a separate problem with PySymtableEntry_New(). When the requested entry was found in st->st_symbols, the entry was returned without doing an INCREF. And problem c) The ste_children slot was getting two copies of each child entry, because it was populating the slot on the first and second passes. Now only populate on the first pass.
-
Barry Warsaw authored
the internal API function to release the interned strings as the very last thing before returning status. This aids in memory use debugging because it eliminates a huge source of noise from the reports. This is never called during normal (non-debugging) use because releasing the interned strings slows Python's shutdown and isn't necessary anyway because the system will always reclaim the memory.
-
Barry Warsaw authored
release the interned string dictionary. This is useful for memory use debugging because it eliminates a huge source of noise from the reports. Only defined when INTERN_STRINGS is defined.
-