]> granicus.if.org Git - python/log
python
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!).

24 years agoReworked random.py so that it no longer depends on, and offers all the
Tim Peters [Thu, 25 Jan 2001 03:36:26 +0000 (03:36 +0000)]
Reworked random.py so that it no longer depends on, and offers all the
functionality of, whrandom.py.  Also closes all the "XXX" todos in
random.py.  New frequently-requested functions/methods getstate() and
setstate().  All exported functions are now bound methods of a hidden
instance.  Killed all unintended exports.  Updated the docs.
FRED:  The more I fiddle the docs, the less I understand the exact
intended use of the \var, \code, \method tags.  Please review critically.
GUIDO:  See email.  I updated NEWS as if whrandom were deprecated; I
think it should be.

24 years agoA \begin{funcdesc} was closed with an \end{methoddesc}.
Barry Warsaw [Thu, 25 Jan 2001 00:39:16 +0000 (00:39 +0000)]
A \begin{funcdesc} was closed with an \end{methoddesc}.

24 years agoFixed a bug where \& was needed.
Barry Warsaw [Thu, 25 Jan 2001 00:38:15 +0000 (00:38 +0000)]
Fixed a bug where \& was needed.

24 years agoProvide a much better (and complete!) description of the lockf()
Barry Warsaw [Thu, 25 Jan 2001 00:36:54 +0000 (00:36 +0000)]
Provide a much better (and complete!) description of the lockf()
function, based on an eyeballing of the code.

24 years agolockf_doc: a much better description of the lockf() function, based on
Barry Warsaw [Thu, 25 Jan 2001 00:20:13 +0000 (00:20 +0000)]
lockf_doc: a much better description of the lockf() function, based on
an eyeballing of the code.

24 years agoSupply long-missing docs for random.seed(). Extensive rewrite of module
Tim Peters [Wed, 24 Jan 2001 23:06:53 +0000 (23:06 +0000)]
Supply long-missing docs for random.seed().  Extensive rewrite of module
intro docs.
*************** Fred:  check my LaTeX!  Also, the docs for whrandom should
*************** be moved into Obsolete Modules.

24 years agoCheck the Py_TPFLAGS_HAVE_RICHCOMPARE flag before using the
Guido van Rossum [Wed, 24 Jan 2001 22:14:43 +0000 (22:14 +0000)]
Check the Py_TPFLAGS_HAVE_RICHCOMPARE flag before using the
tp_richcompare field!  (Hopefully this will make Python 2.1 binary
compatible with certain Zope extensions. :-)

24 years agoAdd a flag to indicate the presence of the tp_richcompare field, and
Guido van Rossum [Wed, 24 Jan 2001 22:13:48 +0000 (22:13 +0000)]
Add a flag to indicate the presence of the tp_richcompare field, and
add it to the default flags.

24 years agoFix the test output, now that escapes in repr() of string and Unicode
Guido van Rossum [Wed, 24 Jan 2001 21:49:57 +0000 (21:49 +0000)]
Fix the test output, now that escapes in repr() of string and Unicode
are different (Ping didn't test this).

24 years agoFix the test output, now that escapes in repr() of string and Unicode
Guido van Rossum [Wed, 24 Jan 2001 21:46:18 +0000 (21:46 +0000)]
Fix the test output, now that escapes in repr() of string and Unicode
are different (Ping couldn't test this).

24 years agoThe array type was missing the Py_TPFLAGS_DEFAULT initializer for the
Guido van Rossum [Wed, 24 Jan 2001 21:44:21 +0000 (21:44 +0000)]
The array type was missing the Py_TPFLAGS_DEFAULT initializer for the
tp_flags.  This will become important when I introduce
Py_TPFLAGS_HAVE_RICHCOMPARE (as I should have!).

24 years agoNew asynchat.py from Sam Rushing: this foregoes using the regex module
Andrew M. Kuchling [Wed, 24 Jan 2001 21:10:55 +0000 (21:10 +0000)]
New asynchat.py from Sam Rushing:  this foregoes using the regex module
   to find the prefix of strings, thus removing a warning, and simply
   uses straightforward string slicing.

24 years agoFix an obvious usage nit I should have caught myself on the previous
Fred Drake [Wed, 24 Jan 2001 18:19:40 +0000 (18:19 +0000)]
Fix an obvious usage nit I should have caught myself on the previous
change to this file.  Thanks, /F!

24 years agoUpdate the build instructions for flat makefile.
Neil Schemenauer [Wed, 24 Jan 2001 17:49:59 +0000 (17:49 +0000)]
Update the build instructions for flat makefile.

24 years agoThe usual.
Neil Schemenauer [Wed, 24 Jan 2001 17:25:28 +0000 (17:25 +0000)]
The usual.

24 years ago- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer [Wed, 24 Jan 2001 17:24:33 +0000 (17:24 +0000)]
- build now happens in toplevel directory, add subdir paths to filenames
- change EXE to EXTEXT, there is an autoconf macro for it
- use PROG_INSTALL macro rather than always using install-sh
- add option to disable signal module (simplifies the makefile)
- create subdirs for object files (when building out of src dir)
- don't generate subdir makefiles
- generate "boot" makefile

24 years agoShow '\011', '\012', and '\015' as '\t', '\n', '\r' in strings.
Ka-Ping Yee [Wed, 24 Jan 2001 17:19:08 +0000 (17:19 +0000)]
Show '\011', '\012', and '\015' as '\t', '\n', '\r' in strings.
Switch from octal escapes to hex escapes for other nonprintable characters.

24 years agoPatch from Andrew to properly set module source directory.
Neil Schemenauer [Wed, 24 Jan 2001 17:18:21 +0000 (17:18 +0000)]
Patch from Andrew to properly set module source directory.

24 years agoThere is no more Modules/Makefile, use toplevel Makefile.
Neil Schemenauer [Wed, 24 Jan 2001 17:17:20 +0000 (17:17 +0000)]
There is no more Modules/Makefile, use toplevel Makefile.

24 years agoChanges for flat makefile. Building of modules happens from toplevel
Neil Schemenauer [Wed, 24 Jan 2001 17:16:22 +0000 (17:16 +0000)]
Changes for flat makefile.  Building of modules happens from toplevel
directory.  Modify meaning of -s option to specify the Modules directory.
Add -l option to specify library source directory when building extension
modules.  Perhaps these names should be switched to avoid breaking old
code.  Add -c compiler option to when emitting rules to build object files.

24 years agoBuild now happens in toplevel directory, not Modules. Don't monkey with
Neil Schemenauer [Wed, 24 Jan 2001 17:13:11 +0000 (17:13 +0000)]
Build now happens in toplevel directory, not Modules.  Don't monkey with
VPATH.

24 years agoFlat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer [Wed, 24 Jan 2001 17:11:43 +0000 (17:11 +0000)]
Flat makefile based on toplevel Makefile.in and makefiles in build
subdirectories.  Those other makefiles will go away eventually.

24 years agoRemove evil "sec:" prefix from some \label markups; this is bad for
Fred Drake [Wed, 24 Jan 2001 16:39:35 +0000 (16:39 +0000)]
Remove evil "sec:" prefix from some \label markups; this is bad for
filenames on Windows (& Mac?) platforms.

24 years agoAttributeList --> NamedNodeMap
Fred Drake [Wed, 24 Jan 2001 16:17:15 +0000 (16:17 +0000)]
AttributeList --> NamedNodeMap
Since there is no such thing as an AttributeList, don't say "attributes"
is one.

24 years agoGot rid of extraneous Modues:TE in the search path.
Jack Jansen [Wed, 24 Jan 2001 16:09:59 +0000 (16:09 +0000)]
Got rid of extraneous Modues:TE in the search path.

24 years agoWaste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses...
Jack Jansen [Wed, 24 Jan 2001 16:07:31 +0000 (16:07 +0000)]
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.

24 years agoRecognize {compiler} and {project} prefixes to pathnames and output the correct XML.
Jack Jansen [Wed, 24 Jan 2001 16:04:50 +0000 (16:04 +0000)]
Recognize {compiler} and {project} prefixes to pathnames and output the correct XML.

24 years agoRegenerated (and manually massaged for PutScrap) so it can be byuilt both for Carbon...
Jack Jansen [Wed, 24 Jan 2001 16:04:01 +0000 (16:04 +0000)]
Regenerated (and manually massaged for PutScrap) so it can be byuilt both for Carbon and Classic. The Carbon module is rather empty, though, for now.

24 years agoQuick (manual) fix to make the module compile with Waste 2.0. TBD later.
Jack Jansen [Wed, 24 Jan 2001 16:03:05 +0000 (16:03 +0000)]
Quick (manual) fix to make the module compile with Waste 2.0. TBD later.

24 years agoWaste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses...
Jack Jansen [Wed, 24 Jan 2001 16:02:07 +0000 (16:02 +0000)]
Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.

24 years agoUpdated version of asyncore.py from Sam Rushing:
Andrew M. Kuchling [Wed, 24 Jan 2001 15:50:19 +0000 (15:50 +0000)]
Updated version of asyncore.py from Sam Rushing:
    Adds support for using select.poll() if it's available

    Move a 'map is None' test out of an else branch and into the right place

24 years agoPart of patch #102409: special cases for Cygwin:
Andrew M. Kuchling [Wed, 24 Jan 2001 15:43:09 +0000 (15:43 +0000)]
Part of patch #102409: special cases for Cygwin:
    Lib/distutils/command/build_ext.py(build_ext.finalize_options): Add
    Cygwin specific code to append Python's library directory to the
    extension's list of library directories.

    (build_ext.get_libraries): Add Cygwin specific code to append Python's
    (import) library to the extension's list of libraries.

24 years agoBlacklisted (for the time being) the functions that have a component argument. Don...
Jack Jansen [Wed, 24 Jan 2001 14:22:13 +0000 (14:22 +0000)]
Blacklisted (for the time being) the functions that have a component argument. Don't want to drag the Cm module into the core set too.

24 years agoBuild directives for PythonStandalone were missing.
Jack Jansen [Wed, 24 Jan 2001 14:06:35 +0000 (14:06 +0000)]
Build directives for PythonStandalone were missing.

24 years agoAdded the GrafPort attributes that are unavailable under Carbon.
Jack Jansen [Wed, 24 Jan 2001 14:06:04 +0000 (14:06 +0000)]
Added the GrafPort attributes that are unavailable under Carbon.

24 years agoImplemented direct attribute access for Carbon builds and accessor functions for...
Jack Jansen [Wed, 24 Jan 2001 14:05:11 +0000 (14:05 +0000)]
Implemented direct attribute access for Carbon builds and accessor functions for non-carbon builds.

24 years agotest___all__ was failing on WIndows because locale.py doesn't really
Tim Peters [Wed, 24 Jan 2001 10:13:46 +0000 (10:13 +0000)]
test___all__ was failing on WIndows because locale.py doesn't really
know which names it exports.  Didn't fix its ignorance, but patched
over the consequence.

24 years agoWindows: ucnhash subproject no longer exists (/F merged into unicodedata).
Tim Peters [Wed, 24 Jan 2001 10:07:22 +0000 (10:07 +0000)]
Windows:  ucnhash subproject no longer exists (/F merged into unicodedata).