- 26 Ock, 2001 21 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
Fixed typo in message
-
Andrew M. Kuchling yazdı
run setup.py with the --install-platlib flag so you can override 'prefix' when running make (e.g. make prefix=/tmp/python/usr/local install) Instead of using mkdir to create directories, use install -d (mkdir -p apparently isn't portable) Emacs make-mode reported line 371 as suspicious; removed the whitespace from that line.
-
Neil Schemenauer yazdı
- Setup is now copied from Setup.dist by configure.
-
Andrew M. Kuchling yazdı
Add header comment and __version__
-
Fred Drake yazdı
-
Fred Drake yazdı
primarily from Evelyn Mitchell (thanks!). This closes SF patch #103412.
-
Martin v. Löwis yazdı
-
Marc-André Lemburg yazdı
if we can find the libtermcap in the usual places. Some platforms don't have libtermcap, e.g. MacOSX.
-
Marc-André Lemburg yazdı
1. skipping of extensions which cause an error (a warning message is written to stdout, but the build process no longer fails completely) 2. the readline extension to compile on SuSE Linux (and probably other platforms too) by adding /usr/lib/termcap to the library search path
-
Marc-André Lemburg yazdı
building.
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
-
Jack Jansen yazdı
-
Neil Schemenauer yazdı
- Put shared modules in the same place as object files.
-
Neil Schemenauer yazdı
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY is a shared library. - Remove -fPIC from OPT, it has no business there. - Change CCSHARED option for Linux to -fPIC. It should probably be -fPIC on a few other platforms as well. - Don't create silly boot Makefile, create Setup files and run makesetup instead.
-
Neil Schemenauer yazdı
-
Neil Schemenauer yazdı
is a shared library. - Add PY_CFLAGS variable (flags used to compile the interpreter) - clobber now just removes object files, libraries and binaries
-
Fred Drake yazdı
This closes SF bug #129759.
-
Tim Peters yazdı
examples to flesh it out for the uninitiated. Here they are.
-
Tim Peters yazdı
-
Tim Peters yazdı
-
- 25 Ock, 2001 19 kayıt (commit)
-
-
Fred Drake yazdı
that PYTHON_API_VERSION be incremented.
-
Guido van Rossum yazdı
-
Jeremy Hylton yazdı
arguments, which were based on an interim development API.
-
Tim Peters yazdı
-
Tim Peters yazdı
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
test_new: new.code() noew takes two more arguments test_grammer: Add a bunch of test cases for lambda (not really PEP 227 related)
-
Jeremy Hylton yazdı
New tests cases for nested scopes.
-
Jeremy Hylton yazdı
prevent binding for str from masking use of builtin str in nested function. (This is the only case I found in the standard library where a local shadows a global or builtin. There may be others, but the regression test doesn't catch them.)
-
Jeremy Hylton yazdı
Track changes to new opcodes. Add hasfree list that applies to all ops that use the closure.
-
Jeremy Hylton yazdı
Track changes to PyFrame_New() and PyFuntion_New().
-
Neil Schemenauer yazdı
-
Jeremy Hylton yazdı
The majority of the changes are in the compiler. The mainloop changes primarily to implement the new opcodes and to pass a function's closure to eval_code2(). Frames and functions got new slots to hold the closure. Include/compile.h Add co_freevars and co_cellvars slots to code objects. Update PyCode_New() to take freevars and cellvars as arguments Include/funcobject.h Add func_closure slot to function objects. Add GetClosure()/SetClosure() functions (and corresponding macros) for getting at the closure. Include/frameobject.h PyFrame_New() now takes a closure. Include/opcode.h Add four new opcodes: MAKE_CLOSURE, LOAD_CLOSURE, LOAD_DEREF, STORE_DEREF. Remove comment about old requirement for opcodes to fit in 7 bits. compile.c Implement changes to code objects for co_freevars and co_cellvars. Modify symbol table to use st_cur_name (string object for the name of the current scope) and st_cur_children (list of nested blocks). Also define st_nested, which might more properly be called st_cur_nested. Add several DEF_XXX flags to track def-use information for free variables. New or modified functions of note: com_make_closure(struct compiling *, PyCodeObject *) Emit LOAD_CLOSURE opcodes as needed to pass cells for free variables into nested scope. com_addop_varname(struct compiling *, int, char *) Emits opcodes for LOAD_DEREF and STORE_DEREF. get_ref_type(struct compiling *, char *name) Return NAME_CLOSURE if ref type is FREE or CELL symtable_load_symbols(struct compiling *) Decides what variables are cell or free based on def-use info. Can now raise SyntaxError if nested scopes are mixed with exec or from blah import *. make_scope_info(PyObject *, PyObject *, int, int) Helper functions for symtable scope stack. symtable_update_free_vars(struct symtable *) After a code block has been analyzed, it must check each of its children for free variables that are not defined in the block. If a variable is free in a child and not defined in the parent, then it is defined by block the enclosing the current one or it is a global. This does the right logic. symtable_add_use() is now a macro for symtable_add_def() symtable_assign(struct symtable *, node *) Use goto instead of for (;;) Fixed bug in symtable where name of keyword argument in function call was treated as assignment in the scope of the call site. Ex: def f(): g(a=2) # a was considered a local of f ceval.c eval_code2() now take one more argument, a closure. Implement LOAD_CLOSURE, LOAD_DEREF, STORE_DEREF, MAKE_CLOSURE> Also: When name error occurs for global variable, report that the name was global in the error mesage. Objects/frameobject.c Initialize f_closure to be a tuple containing space for cellvars and freevars. f_closure is NULL if neither are present. Objects/funcobject.c Add support for func_closure. Python/import.c Change the magic number. Python/marshal.c Track changes to code objects.
-
Jeremy Hylton yazdı
A cell contains a reference to a single PyObject. It could be implemented as a mutable, one-element sequence, but the separate type has less overhead.
-
Jack Jansen yazdı
-
Fred Drake yazdı
many reasonable requests to keep them around. Bump version number.
-
Fred Drake yazdı
in the docs to indicate the next version before we decided on 1.6. Adjusted winsound.Beep() description slightly as well.
-
Fred Drake yazdı
-
Jeremy Hylton yazdı
also normalize checks for syntax errors and delete commented out definition of verify.
-