| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
squelch warning from GCC 2.95.2 on Solaris - partially addresses bug
#232787.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
comment. This way the generated files are identical when generated on
different machines.
|
|
|
|
| |
an invalid 401 request is being handled.
|
|
|
|
|
|
| |
SF bug #233532
XXX Can't figure out how to write test cases that work with warnings
|
|
|
|
| |
closes SF patch #401229.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
Add note about linuxaudiodev possibly working on BSD
|
| |
|
| |
|
| |
|
|
|
|
| |
be created (perhaps the source directory is read-only).
|
|
|
|
| |
directory. Closes SF #403930.
|
|
|
|
|
|
| |
.has_option(), .remove_option(), and .set().
This closes SF tracker #232913.
|
|
|
|
| |
therein are of the proper form.
|
|
|
|
| |
comments to reflect reality.
|
|
|
|
| |
so make it void.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
| |
occurs. Also, continue processing.
|
|
|
|
| |
multi-line list comprehensions.
|
|
|
|
|
| |
Fixes the "debug-build -O test_builtin.py and no test_b2.pyo" crash just
discussed on Python-Dev.
|
|
|
|
| |
in a hang on Carbon.
|
|
|
|
| |
was was never a problem that it was off until CarbonLib 1.1 (which requires it, for some reason).
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
symtable_enter_scope(): Removed some unnecessary backslashes at the
end of lines. C != Python. :)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
simpler than adding a bazillion switches, but means that the makesetup
method probably can't ever go away completely. Oh well...
|
|
|
|
| |
less wrong)
|
|
|
|
| |
#131064, #129584, #127722. See the discussion in bug #131064
|
| |
|
|
|
|
|
|
|
| |
Move sample sessions to the left margin of the file for consistency;
formatting can adjust the margin if needed.
This closes SF bug #133213.
|
|
|
|
|
|
| |
to the module sections are right.
This was also broken when converting to a flat Makefile.
|
|
|
|
| |
broken when converting to a flat Makefile. ;-(
|