]> granicus.if.org Git - python/log
python
24 years agoMake balloon code dependent on existence of Help module
Jack Jansen [Mon, 29 Jan 2001 14:59:33 +0000 (14:59 +0000)]
Make balloon code dependent on existence of Help module

24 years agoRemoved device from the list of Qd incompatibilities. It should be there, but causes...
Jack Jansen [Mon, 29 Jan 2001 14:27:32 +0000 (14:27 +0000)]
Removed device from the list of Qd incompatibilities. It should be there, but causes too many false positives.

24 years agoAccessor functions for regions and such expect an existing region as parameter. Fixed...
Jack Jansen [Mon, 29 Jan 2001 14:07:01 +0000 (14:07 +0000)]
Accessor functions for regions and such expect an existing region as parameter. Fixed for grafport attribute access.
Got GetPortBitMapForCopyBits() and port.portBits to work.

24 years agoPorted the icglue module to carbon.
Jack Jansen [Mon, 29 Jan 2001 13:33:16 +0000 (13:33 +0000)]
Ported the icglue module to carbon.

24 years agoAdded generators for EnableMenuItem and CheckMenuItem (which have Mac in front of...
Jack Jansen [Mon, 29 Jan 2001 13:32:10 +0000 (13:32 +0000)]
Added generators for EnableMenuItem and CheckMenuItem (which have Mac in front of their name in the include files).

24 years agoRe-enabled Scrap (even though it's mostly empty right now).
Jack Jansen [Mon, 29 Jan 2001 13:31:10 +0000 (13:31 +0000)]
Re-enabled Scrap (even though it's mostly empty right now).

24 years agoReplace {Enable,Disable,Check}Item with their carbon-compatible equivalents {Enable...
Jack Jansen [Mon, 29 Jan 2001 13:29:47 +0000 (13:29 +0000)]
Replace {Enable,Disable,Check}Item with their carbon-compatible equivalents {Enable,Disable,Check}MenuItem.

24 years agoPorted the icglue module to carbon.
Jack Jansen [Mon, 29 Jan 2001 13:27:46 +0000 (13:27 +0000)]
Ported the icglue module to carbon.

24 years agoAdded Help, Scrap and icglue missing methods.
Jack Jansen [Mon, 29 Jan 2001 13:22:29 +0000 (13:22 +0000)]
Added Help, Scrap and icglue missing methods.

24 years agoFixed posixpath.normpath() to respect two leading slashes, but
Marc-André Lemburg [Mon, 29 Jan 2001 11:29:44 +0000 (11:29 +0000)]
Fixed posixpath.normpath() to respect two leading slashes, but
turn three or more into a single slash. (This is in sync with POSIX
susv2 according to Fredrik.)

24 years agoFixed .capitalize() method of Unicode objects to work like the
Marc-André Lemburg [Mon, 29 Jan 2001 11:14:16 +0000 (11:14 +0000)]
Fixed .capitalize() method of Unicode objects to work like the
corresponding string method. Added tests for this too.

Patch written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.

24 years agoDon't use $< in normal make rules: it's not portable. Using $< in
Sjoerd Mullender [Mon, 29 Jan 2001 09:39:14 +0000 (09:39 +0000)]
Don't use $< in normal make rules: it's not portable.  Using $< in
inference rules (e.g. .c.o) is fine.

24 years agoAdded news of function comparison and hashing by identity
Moshe Zadka [Mon, 29 Jan 2001 06:41:00 +0000 (06:41 +0000)]
Added news of function comparison and hashing by identity

24 years agoMore on noutrefresh() and scroll().
Eric S. Raymond [Mon, 29 Jan 2001 06:39:33 +0000 (06:39 +0000)]
More on noutrefresh() and scroll().

24 years agoThe one thing I love more then writing code is deleting code.
Moshe Zadka [Mon, 29 Jan 2001 06:21:17 +0000 (06:21 +0000)]
The one thing I love more then writing code is deleting code.
* Removed func_hash and func_compare, so they can be treated as immutable
  content-less objects (address hash and comparison)
* Added tests to that affect to test_funcattrs (also testing func_code
  is writable)
* Reverse meaning of tests in test_opcodes which checked identical code
  gets identical functions

24 years agoAdded cellobject.c
Jack Jansen [Sun, 28 Jan 2001 22:45:46 +0000 (22:45 +0000)]
Added cellobject.c

24 years agoupdated to document use of sequences of two-element tuples as inputs
Skip Montanaro [Sun, 28 Jan 2001 21:18:16 +0000 (21:18 +0000)]
updated to document use of sequences of two-element tuples as inputs

24 years agoadded several more urlencode test cases - part of patch 103391
Skip Montanaro [Sun, 28 Jan 2001 21:12:22 +0000 (21:12 +0000)]
added several more urlencode test cases - part of patch 103391

24 years agoallow first param urlencode to be a sequence of two-element tuples - in this
Skip Montanaro [Sun, 28 Jan 2001 21:11:12 +0000 (21:11 +0000)]
allow first param urlencode to be a sequence of two-element tuples - in this
case, the order of parameters in the output matches the order of the inputs.

24 years agoBug #130117: add a prototype required to compile cleanly on IRIX
Andrew M. Kuchling [Sun, 28 Jan 2001 18:10:23 +0000 (18:10 +0000)]
Bug #130117: add a prototype required to compile cleanly on IRIX
   (contributed by Paul Jackson)

24 years agoAdjust documentation for new.instance() to reflect that the second
Fred Drake [Sun, 28 Jan 2001 17:23:05 +0000 (17:23 +0000)]
Adjust documentation for new.instance() to reflect that the second
parameter may be omitted or None.

24 years agoRemove single "." components from pathnames, and return os.curdir if
Jack Jansen [Sun, 28 Jan 2001 12:23:32 +0000 (12:23 +0000)]
Remove single "." components from pathnames, and return os.curdir if
the resulting path is empty.

24 years agoData pathnames were not converted from URL-style to local style. Fixed.
Jack Jansen [Sun, 28 Jan 2001 12:22:14 +0000 (12:22 +0000)]
Data pathnames were not converted from URL-style to local style. Fixed.

24 years agoAllow installation of IDLE via distutils (patch #103138).
Martin v. Löwis [Sun, 28 Jan 2001 11:01:50 +0000 (11:01 +0000)]
Allow installation of IDLE via distutils (patch #103138).

24 years agoDocument the PyInstance_*() functions and data.
Fred Drake [Sun, 28 Jan 2001 06:39:35 +0000 (06:39 +0000)]
Document the PyInstance_*() functions and data.

24 years agoSF bug #130306: statcache.py full of thread problems.
Tim Peters [Sun, 28 Jan 2001 05:07:00 +0000 (05:07 +0000)]
SF bug #130306:  statcache.py full of thread problems.
Fixed the thread races.  Function forget_dir was also utterly Unix-specific.

24 years agoAdded tests for new signature of new.instance().
Fred Drake [Sun, 28 Jan 2001 03:57:39 +0000 (03:57 +0000)]
Added tests for new signature of new.instance().

Use test_support.verify() where applicable.

24 years agonew_instance(): Use PyInstance_NewRaw() instead of knowing too much
Fred Drake [Sun, 28 Jan 2001 03:55:09 +0000 (03:55 +0000)]
new_instance():  Use PyInstance_NewRaw() instead of knowing too much
    about the internal initialization of instance objects.  Make the
    dict parameter optional, and allow None as equivalent to omission.

24 years agoRe-factored PyInstance_New() into PyInstance_New() and PyInstance_NewRaw().
Fred Drake [Sun, 28 Jan 2001 03:53:08 +0000 (03:53 +0000)]
Re-factored PyInstance_New() into PyInstance_New() and PyInstance_NewRaw().

24 years agoAdded prototype for PyInstance_NewRaw().
Fred Drake [Sun, 28 Jan 2001 03:52:08 +0000 (03:52 +0000)]
Added prototype for PyInstance_NewRaw().

24 years agoInstructive example for strftime(); how to generate RFC822 dates.
Eric S. Raymond [Sun, 28 Jan 2001 00:56:54 +0000 (00:56 +0000)]
Instructive example for strftime(); how to generate RFC822 dates.

24 years agoIt's unclear whether PyMarshal_XXX() are part of the public or private API.
Tim Peters [Sun, 28 Jan 2001 00:27:39 +0000 (00:27 +0000)]
It's unclear whether PyMarshal_XXX() are part of the public or private API.
They're named as if public, so I did a Bad Thing by changing
PyMarshal_ReadObjectFromFile() to suck up the remainder of the file in one
gulp:  anyone who counted on that leaving the file pointer merely at the
end of the next object would be screwed.  So restored
PyMarshal_ReadObjectFromFile() to its earlier state, renamed the new greedy
code to PyMarshal_ReadLastObjectFromFile(), and changed Python internals to
call the latter instead.

24 years agoFix a typo.
Neil Schemenauer [Sat, 27 Jan 2001 21:43:40 +0000 (21:43 +0000)]
Fix a typo.

24 years ago- Fix buildno dependencies (I hope).
Neil Schemenauer [Sat, 27 Jan 2001 21:42:38 +0000 (21:42 +0000)]
- Fix buildno dependencies (I hope).
- Change one last EXE to EXEEXT.

24 years agothe usual
Neil Schemenauer [Sat, 27 Jan 2001 21:40:54 +0000 (21:40 +0000)]
the usual

24 years ago- Remove Guido's LINKCC=CXX experiment.
Neil Schemenauer [Sat, 27 Jan 2001 21:39:17 +0000 (21:39 +0000)]
- Remove Guido's LINKCC=CXX experiment.
- Cygwin doesn't want CCSHARED flag when bulding the interpreter DLL.

24 years agoinit_curses_panel(): Be more consistent with indentation and blank lines.
Fred Drake [Sat, 27 Jan 2001 18:58:04 +0000 (18:58 +0000)]
init_curses_panel(): Be more consistent with indentation and blank lines.

24 years agoEmphasis that instantiating this class doesn't consume the message body.
Eric S. Raymond [Sat, 27 Jan 2001 10:56:14 +0000 (10:56 +0000)]
Emphasis that instantiating this class doesn't consume the message body.
Fix some unclear language in the description of the addrlist member.

24 years agoExcept HierarchyRequestErr instead of TypeError.
Martin v. Löwis [Sat, 27 Jan 2001 09:17:55 +0000 (09:17 +0000)]
Except HierarchyRequestErr instead of TypeError.

24 years agoRe-indent.
Martin v. Löwis [Sat, 27 Jan 2001 09:01:20 +0000 (09:01 +0000)]
Re-indent.

24 years agoSynchronize with PyXML 1.5.
Martin v. Löwis [Sat, 27 Jan 2001 08:56:24 +0000 (08:56 +0000)]
Synchronize with PyXML 1.5.

24 years agoSynchronize with PyXML 1.10
Martin v. Löwis [Sat, 27 Jan 2001 08:56:24 +0000 (08:56 +0000)]
Synchronize with PyXML 1.10
Break cycle involving expat parser in close().
Add lex handler support to SAX2 pyexpat

24 years agoRe-indent.
Martin v. Löwis [Sat, 27 Jan 2001 08:47:37 +0000 (08:47 +0000)]
Re-indent.

24 years agoMerge changes of PyXML 1.13:
Martin v. Löwis [Sat, 27 Jan 2001 08:38:34 +0000 (08:38 +0000)]
Merge changes of PyXML 1.13:
Use nodeName, not tagName in attributes.
Provide get method for dictionary-like objects.
Use DOM exceptions instead of standard exceptions.

24 years agoSynchronize with 1.10 of PyXML: Close parser when done.
Martin v. Löwis [Sat, 27 Jan 2001 08:34:21 +0000 (08:34 +0000)]
Synchronize with 1.10 of PyXML: Close parser when done.

24 years agoGrow that RCS file!
Neil Schemenauer [Sat, 27 Jan 2001 06:57:08 +0000 (06:57 +0000)]
Grow that RCS file!

24 years agoRestore --with-suffix option. AC_EXEEXT doesn't aways do what the user wants
Neil Schemenauer [Sat, 27 Jan 2001 06:54:42 +0000 (06:54 +0000)]
Restore --with-suffix option.  AC_EXEEXT doesn't aways do what the user wants
and an option is more friendly then manually setting a variable.

24 years agoSF bug http://sourceforge.net/bugs/?func=detailbug&bug_id=130242&group_id=5470
Tim Peters [Sat, 27 Jan 2001 06:20:08 +0000 (06:20 +0000)]
SF bug http://sourceforge.net/bugs/?func=detailbug&bug_id=130242&group_id=5470
SF patch http://sourceforge.net/patch/?func=detailpatch&patch_id=103453&group_id=5470
PyMember_Set of T_CHAR always raises exception.
Unfortunately, this is a use of a C API function that Python itself never makes, so
there's no .py test I can check in to verify this stays fixed.  But the fault in the
code is obvious, and Dave Cole's patch just as obviously fixes it.

24 years agoAdded news about repr(string).
Tim Peters [Sat, 27 Jan 2001 05:35:26 +0000 (05:35 +0000)]
Added news about repr(string).

24 years agoBug #129904: Put back the path component for the Tkinter modules
Andrew M. Kuchling [Sat, 27 Jan 2001 01:31:35 +0000 (01:31 +0000)]
Bug #129904: Put back the path component for the Tkinter modules

24 years agoNew comment block to Clarify a subtlety.
Tim Peters [Fri, 26 Jan 2001 22:56:56 +0000 (22:56 +0000)]
New comment block to Clarify a subtlety.

24 years agoFarewell setup.cfg.in, we hardly knew ye. We need to use command-line
Andrew M. Kuchling [Fri, 26 Jan 2001 22:56:55 +0000 (22:56 +0000)]
Farewell setup.cfg.in, we hardly knew ye.  We need to use command-line
    arguments instead to handle overrides provided on the make command line.

24 years agoRemoved setup.cfg from the list of generated files
Andrew M. Kuchling [Fri, 26 Jan 2001 22:55:24 +0000 (22:55 +0000)]
Removed setup.cfg from the list of generated files
Fixed typo in message

24 years agoRemaining single-line change from patch #102409: to install shared modules,
Andrew M. Kuchling [Fri, 26 Jan 2001 22:52:45 +0000 (22:52 +0000)]
Remaining single-line change from patch #102409: to install shared modules,
   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.

24 years ago- Edit the QNX instructions to refer to Makefile, not Modules/Makefile.
Neil Schemenauer [Fri, 26 Jan 2001 22:18:55 +0000 (22:18 +0000)]
- Edit the QNX instructions to refer to Makefile, not Modules/Makefile.
- Setup is now copied from Setup.dist by configure.

24 years agoRemove unused import of 'string'
Andrew M. Kuchling [Fri, 26 Jan 2001 21:56:58 +0000 (21:56 +0000)]
Remove unused import of 'string'
Add header comment and __version__

24 years agoFix a number of typos found by Guido.
Fred Drake [Fri, 26 Jan 2001 20:51:32 +0000 (20:51 +0000)]
Fix a number of typos found by Guido.

24 years agoMassively improved documentation for string formatting operations,
Fred Drake [Fri, 26 Jan 2001 20:48:35 +0000 (20:48 +0000)]
Massively improved documentation for string formatting operations,
primarily from Evelyn Mitchell (thanks!).

This closes SF patch #103412.

24 years agoPatch #103052: Restore non-cyclic operation of pulldom.PullDOM
Martin v. Löwis [Fri, 26 Jan 2001 18:53:42 +0000 (18:53 +0000)]
Patch #103052: Restore non-cyclic operation of pulldom.PullDOM

24 years agoBe extra careful with linking against libtermcap. This is now only done
Marc-André Lemburg [Fri, 26 Jan 2001 18:23:02 +0000 (18:23 +0000)]
Be extra careful with linking against libtermcap. This is now only done
if we can find the libtermcap in the usual places. Some platforms don't
have libtermcap, e.g. MacOSX.

24 years agoFixed setup.py to allow:
Marc-André Lemburg [Fri, 26 Jan 2001 18:03:24 +0000 (18:03 +0000)]
Fixed setup.py to allow:

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

24 years agoAdded an execution layer to be able to customize per-extension
Marc-André Lemburg [Fri, 26 Jan 2001 18:00:48 +0000 (18:00 +0000)]
Added an execution layer to be able to customize per-extension
building.

24 years agounnecessary semicolon
Jeremy Hylton [Fri, 26 Jan 2001 17:15:18 +0000 (17:15 +0000)]
unnecessary semicolon

24 years agounnecessary semicolon
Jeremy Hylton [Fri, 26 Jan 2001 17:08:32 +0000 (17:08 +0000)]
unnecessary semicolon

24 years agoGot waste to work for Carbon.
Jack Jansen [Fri, 26 Jan 2001 16:32:20 +0000 (16:32 +0000)]
Got waste to work for Carbon.

24 years ago- Use PY_CFLAGS when compile modules that will be part of the interpreter.
Neil Schemenauer [Fri, 26 Jan 2001 16:22:26 +0000 (16:22 +0000)]
- Use PY_CFLAGS when compile modules that will be part of the interpreter.
- Put shared modules in the same place as object files.

24 years ago- LIBRARY is now a SUBST variable.
Neil Schemenauer [Fri, 26 Jan 2001 16:18:16 +0000 (16:18 +0000)]
- LIBRARY is now a SUBST variable.
- 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.

24 years agoThe usual.
Neil Schemenauer [Fri, 26 Jan 2001 16:15:20 +0000 (16:15 +0000)]
The usual.

24 years ago- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer [Fri, 26 Jan 2001 16:14:41 +0000 (16:14 +0000)]
- Add CFLAGSFORSHARED variable.  configure sets this to CCSHARED if LDLIBRARY
  is a shared library.
- Add PY_CFLAGS variable (flags used to compile the interpreter)
- clobber now just removes object files, libraries and binaries

24 years agoTypo: coplete --> complete
Fred Drake [Fri, 26 Jan 2001 15:27:35 +0000 (15:27 +0000)]
Typo: coplete --> complete

This closes SF bug #129759.

24 years agoThe combo of getstate/setstate/jumpahead is very powerful, but needs
Tim Peters [Fri, 26 Jan 2001 10:00:39 +0000 (10:00 +0000)]
The combo of getstate/setstate/jumpahead is very powerful, but needs
examples to flesh it out for the uninitiated.  Here they are.

24 years agoSF bug 130030: Claim of bad betavariate algorithm.
Tim Peters [Fri, 26 Jan 2001 06:49:56 +0000 (06:49 +0000)]
SF bug 130030: Claim of bad betavariate algorithm.

24 years agoTeach Windows build about new cellobject.c.
Tim Peters [Fri, 26 Jan 2001 00:12:49 +0000 (00:12 +0000)]
Teach Windows build about new cellobject.c.

24 years agoThe addition of new parameters to functions in the Python/C API requires
Fred Drake [Thu, 25 Jan 2001 22:13:34 +0000 (22:13 +0000)]
The addition of new parameters to functions in the Python/C API requires
that PYTHON_API_VERSION be incremented.

24 years agoCorrect one-line typo, reported by yole @ SF, bug 130077.
Guido van Rossum [Thu, 25 Jan 2001 22:12:43 +0000 (22:12 +0000)]
Correct one-line typo, reported by yole @ SF, bug 130077.

24 years agoFix arguments for PyFrame_New(). The previous checkin used the wrong
Jeremy Hylton [Thu, 25 Jan 2001 21:48:14 +0000 (21:48 +0000)]
Fix arguments for PyFrame_New().  The previous checkin used the wrong
arguments, which were based on an interim development API.

24 years agoNew info in beep() docstring.
Tim Peters [Thu, 25 Jan 2001 20:40:28 +0000 (20:40 +0000)]
New info in beep() docstring.

24 years agoCosmetic changes after some sleep; no change in semantics.
Tim Peters [Thu, 25 Jan 2001 20:25:57 +0000 (20:25 +0000)]
Cosmetic changes after some sleep; no change in semantics.

24 years agoBetter error message when non-dictionary received for **kwarg
Jeremy Hylton [Thu, 25 Jan 2001 20:13:10 +0000 (20:13 +0000)]
Better error message when non-dictionary received for **kwarg

24 years agoPEP 227 implementation
Jeremy Hylton [Thu, 25 Jan 2001 20:12:27 +0000 (20:12 +0000)]
PEP 227 implementation

test_new: new.code() noew takes two more arguments
test_grammer: Add a bunch of test cases for lambda (not really PEP 227 related)

24 years agoPEP 227 implementation
Jeremy Hylton [Thu, 25 Jan 2001 20:11:23 +0000 (20:11 +0000)]
PEP 227 implementation

New tests cases for nested scopes.

24 years agoIn subst_vars(), change the name of the argument from str to s to
Jeremy Hylton [Thu, 25 Jan 2001 20:10:32 +0000 (20:10 +0000)]
In subst_vars(), change the name of the argument from str to s to
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.)

24 years agoPEP 227 implementation
Jeremy Hylton [Thu, 25 Jan 2001 20:08:47 +0000 (20:08 +0000)]
PEP 227 implementation

Track changes to new opcodes.  Add hasfree list that applies to all
ops that use the closure.

24 years agoPEP 227 implementation
Jeremy Hylton [Thu, 25 Jan 2001 20:07:56 +0000 (20:07 +0000)]
PEP 227 implementation

Track changes to PyFrame_New() and PyFuntion_New().

24 years agoMake module objects from Setup depend on Python.h headers.
Neil Schemenauer [Thu, 25 Jan 2001 20:07:50 +0000 (20:07 +0000)]
Make module objects from Setup depend on Python.h headers.

24 years agoPEP 227 implementation
Jeremy Hylton [Thu, 25 Jan 2001 20:06:59 +0000 (20:06 +0000)]
PEP 227 implementation

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.

24 years agoPEP 227 implementation
Jeremy Hylton [Thu, 25 Jan 2001 20:04:14 +0000 (20:04 +0000)]
PEP 227 implementation

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.

24 years agoucnhash module has gone, xreadlines module added.
Jack Jansen [Thu, 25 Jan 2001 18:31:16 +0000 (18:31 +0000)]
ucnhash module has gone, xreadlines module added.

24 years agoAdd bzip2 archives back to the set of generated archives; we had way too
Fred Drake [Thu, 25 Jan 2001 17:32:51 +0000 (17:32 +0000)]
Add bzip2 archives back to the set of generated archives; we had way too
many reasonable requests to keep them around.

Bump version number.

24 years agoRemoved references to Python 1.5.3; that was a "tentative" number I used
Fred Drake [Thu, 25 Jan 2001 17:29:18 +0000 (17:29 +0000)]
Removed references to Python 1.5.3; that was a "tentative" number I used
in the docs to indicate the next version before we decided on 1.6.

Adjusted winsound.Beep() description slightly as well.

24 years agoUpdate link to LaTeX2HTML web site.
Fred Drake [Thu, 25 Jan 2001 17:25:28 +0000 (17:25 +0000)]
Update link to LaTeX2HTML web site.

24 years agoadd extra tests to verify that co_varnames is being set up properly
Jeremy Hylton [Thu, 25 Jan 2001 17:03:37 +0000 (17:03 +0000)]
add extra tests to verify that co_varnames is being set up properly

also normalize checks for syntax errors and delete commented out
definition of verify.

24 years agoFix bug reported by Ka-Ping Yee: The compiler botched parsing function
Jeremy Hylton [Thu, 25 Jan 2001 17:01:49 +0000 (17:01 +0000)]
Fix bug reported by Ka-Ping Yee: The compiler botched parsing function
parameters that contained both anonymous tuples and *arg or **arg. Ex:
def f(a, (b, c), *d): pass

Fix the symtable_params() to generate names in the right order for
co_varnames slot of code object.  Consider *arg and **arg before the
"complex" names introduced by anonymous tuples.

24 years agoucnhash module has gone.
Jack Jansen [Thu, 25 Jan 2001 16:28:34 +0000 (16:28 +0000)]
ucnhash module has gone.

24 years agoucnhash module has gone, xreadlines module added.
Jack Jansen [Thu, 25 Jan 2001 16:28:00 +0000 (16:28 +0000)]
ucnhash module has gone, xreadlines module added.

24 years agoadded a few more __all__ lists
Skip Montanaro [Thu, 25 Jan 2001 15:29:22 +0000 (15:29 +0000)]
added a few more __all__ lists
test___all__.py: fail silently in check_all if the module can't be imported

24 years agofail more completely by deleting dbhash from sys.modules if bsddb can't be
Skip Montanaro [Thu, 25 Jan 2001 13:47:00 +0000 (13:47 +0000)]
fail more completely by deleting dbhash from sys.modules if bsddb can't be
loaded - prevents second import later from succeeding spuriously - mostly of
use in regression tests where the module might get imported more than once

24 years agoLet's keep things portable to non GCC compilers, please.
Sjoerd Mullender [Thu, 25 Jan 2001 10:10:39 +0000 (10:10 +0000)]
Let's keep things portable to non GCC compilers, please.
You can only use mult-line strings in C if each line ends in \.

24 years agoClarify winsound.beep docs, in response to c.l.py beep brouhahalet.
Tim Peters [Thu, 25 Jan 2001 09:33:48 +0000 (09:33 +0000)]
Clarify winsound.beep docs, in response to c.l.py beep brouhahalet.

24 years agoFix bugs introduced by rewrite (in particular, time-based initialization
Tim Peters [Thu, 25 Jan 2001 06:23:18 +0000 (06:23 +0000)]
Fix bugs introduced by rewrite (in particular, time-based initialization
got broken).  Also added new method .jumpahead(N).  This finally gives us
a semi-decent answer to how Python's RNGs can be used safely and efficiently
in multithreaded programs (although it requires the user to use the new
machinery!).