summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* slightly modified version of Greg Ewing's extended call syntax patchJeremy Hylton2000-03-281-4/+8
| | | | | | | | | | | | | | | | | | | | | | | executive summary: Instead of typing 'apply(f, args, kwargs)' you can type 'f(*arg, **kwargs)'. Some file-by-file details follow. Grammar/Grammar: simplify varargslist, replacing '*' '*' with '**' add * & ** options to arglist Include/opcode.h & Lib/dis.py: define three new opcodes CALL_FUNCTION_VAR CALL_FUNCTION_KW CALL_FUNCTION_VAR_KW Python/ceval.c: extend TypeError "keyword parameter redefined" message to include the name of the offending keyword reindent CALL_FUNCTION using four spaces add handling of sequences and dictionaries using extend calls fix function import_from to use PyErr_Format
* Fredrik Lundh:Guido van Rossum2000-03-287-9/+9
| | | | | This fixes a bunch of socket.connect(host, post) calls. Note that I haven't tested all modules -- I don't have enough servers here...
* Fredrik Lundh:Guido van Rossum2000-03-281-10/+21
| | | | | | | | | | The new filecmp module has an optional argument called use_statcache which is documented as a true/false value, but used as an tuple index. This patches replaces the tuple stuff with a good old if- statement, and also removes a few other tuple pack/unpack constructs (if not else, this saves a few bytes in the PYC file, and a few microseconds when using the module ;-).
* Mark Hammond: test suite for new winreg module.Guido van Rossum2000-03-282-0/+151
|
* Marc-Andre Lemburg:Guido van Rossum2000-03-285-47/+54
| | | | | | | | | | | | | | | The attached patch set includes a workaround to get Python with Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause is a bug in the BSDI wchar.h header file) and Python interfaces for the MBCS codec donated by Mark Hammond. Also included are some minor corrections w/r to the docs of the new "es" and "es#" parser markers (use PyMem_Free() instead of free(); thanks to Mark Hammond for finding these). The unicodedata tests are now in a separate file (test_unicodedata.py) to avoid problems if the module cannot be found.
* Piers Lauder:Guido van Rossum2000-03-281-26/+49
| | | | | | | | | This patch fixes the "search" command in imaplib. The problem was that a search can take multiple arguments, but as defined, would only accept one. I have also made changes to the test code at the end to be less verbose by default, but to accept a verbosity argument.
* MBCS codecs for Windows. Contributed by Mark Hammond.Guido van Rossum2000-03-281-0/+37
|
* Skip Montanaro:Guido van Rossum2000-03-271-17/+17
| | | | | | | | | | | | The robotparser.py module currently lives in Tools/webchecker. In preparation for its migration to Lib, I made the following changes: * renamed the test() function _test * corrected the URLs in _test() so they refer to actual documents * added an "if __name__ == '__main__'" catcher to invoke _test() when run as a main program * added doc strings for the two main methods, parse and can_fetch * replaced usage of regsub and regex with corresponding re code
* Beefed up error-handling in 'setup()' a smidge:Greg Ward2000-03-261-1/+3
| | | | handle OSError and DistutilsExecError now.
* Duh, it helps if '_nt_quote_args()' actually returns the mutated list,Greg Ward2000-03-261-1/+1
| | | | rather than None.
* Fixed a bunch of screwed-up logic and inconsistent terminology.Greg Ward2000-03-261-19/+33
| | | | | Fixed 'build_extensions()' to pay attention to the 'rpath' element of the 'build_info' dictionary.
* Added 'runtime_library_dirs' parameter to 'link_*()' methods, and warn thatGreg Ward2000-03-261-6/+11
| | | | | | we don't know what to do with it when we see it. Call '_fix_object_args()' and/or '_fix_lib_args()' as appropriate, rather than just '_fix_link_args()'.
* Added 'runtime_library_dirs' parameter to 'link_*()' methods, and changed toGreg Ward2000-03-261-9/+13
| | | | | | use it when linking. Call '_fix_object_args()' and/or '_fix_lib_args()' as appropriate, rather than just '_fix_link_args()'.
* Added 'runtime_library_dirs' parameter to 'link_*()' methods.Greg Ward2000-03-261-28/+43
| | | | | | Split '_fix_link_args()' up into '_fix_object_args()' (for use of 'create_static_lib() and link methods) and '_fix_lib_args()' (for the link methods only).
* Marc-Andre Lemburg:Guido van Rossum2000-03-243-2/+31
| | | | | | | | | | Attached you find the latest update of the Unicode implementation. The patch is against the current CVS version. It includes the fix I posted yesterday for the core dump problem in codecs.c (was introduced by my previous patch set -- sorry), adds more tests for the codecs and two new parser markers "es" and "es#".
* Fix the test so that connect() and bind() are called with a singleGuido van Rossum2000-03-241-2/+2
| | | | | | argument: a (host, port) tuple. Like multi-arg append(), multi-arg connect() and bind() may be ruled out!
* Regenerated with test for 'contains'.Guido van Rossum2000-03-241-0/+1
|
* Import fix.Greg Ward2000-03-231-1/+1
|
* Fixed '_nt_quote_args()': backwards logic reversed, and now it actuallyGreg Ward2000-03-231-2/+2
| | | | returns a value.
* Fixed the class name.Greg Ward2000-03-231-1/+1
|
* Revised tons of comments to reflect the current state of affairs better.Greg Ward2000-03-221-72/+39
| | | | Deleted some crufty code.
* Run 'install_lib' instead of 'install_py', and ditch 'install_ext'Greg Ward2000-03-221-13/+4
| | | | completely (was already commented-out).
* Renamed install_py.py to install_lib.py, since it now handles installing allGreg Ward2000-03-221-76/+0
| | | | Python modules, pure and extensions.
* Obsolete command -- no longer relevant since we now build all modules, pureGreg Ward2000-03-221-43/+0
| | | | Python and extensions, into the same directory.
* Dropped the evil and misguided 'set_peer_option()' method -- it's noGreg Ward2000-03-221-20/+0
| | | | longer needed, and can't possibly work anyways.
* Dropped any notion of allowing the user to specify the build directories:Greg Ward2000-03-221-13/+10
| | | | | | | these must come from the 'build' command. This means we no longer need the misconceived 'set_peer_option()' method in Command and, more importantly, sweeps away a bunch of potential future complexity to handle this tricky case.
* Improved an error message in 'mkpath()'.Greg Ward2000-03-221-7/+47
| | | | | Tightened up some logic in 'native_path()'. Added 'subst_vars()' and '_check_environ()'.
* Renamed 'install_path' to 'extra_path'.Greg Ward2000-03-221-2/+6
| | | | | | | | Fix 'Command.set_undefined_option()' to call 'ensure_ready()' rather than 'finalize_options()' (which is only supposed to be called once, which is the whole point of 'ensure_ready()'). Added comment to 'set_peer_option()' to remind myself that this method cannot work and is fundamentally wrong-headed.
* Yet another complete rewrite. Hopefully the *last* complete rewrite ofGreg Ward2000-03-221-129/+299
| | | | | | | | | | | | this command for a while; this implements roughly the plan cooked up by Guido, Fred, and me. Seems to strike a nice balance between usability in the common cases (just set one option), expandability for more types of files to install in future, and customizability of installation directories. This revision isn't completely working: standard and alternate installations work fine, but there are still some kinks to work out of customized installations.
* Fix how we set 'build_dir' and 'install_dir' options from 'install' options --Greg Ward2000-03-221-2/+2
| | | | irrelevant because this file is about to go away, but oh well.
* Took out what looks like old debugging code that probably should neverGreg Ward2000-03-221-2/+1
| | | | | have been checked in: was passing the PLAT environment variable as the 'plat' argument to 'new_compiler()'.
* On 17-Mar-2000, Marc-Andre Lemburg said:Barry Warsaw2000-03-203-3/+5
| | | | | | | | | | | | | Attached you find an update of the Unicode implementation. The patch is against the current CVS version. I would appreciate if someone with CVS checkin permissions could check the changes in. The patch contains all bugs and patches sent this week and also fixes a leak in the codecs code and a bug in the free list code for Unicode objects (which only shows up when compiling Python with Py_DEBUG; thanks to MarkH for spotting this one).
* Simplified doc string.Greg Ward2000-03-181-11/+2
| | | | Added 'clean' to list of commands.
* Oops! Don't call 'ensure_ready()' in 'Distribution.find_command_obj()' --Greg Ward2000-03-181-2/+3
| | | | | | that broke parsing command-line options. Instead call it in 'Command.find_peer()', which is why I added it to 'find_command_obj()' in the first place.
* Tweaked all over:Greg Ward2000-03-181-9/+29
| | | | | | | | * improve help strings * warn if user supplies non-existing directories * don't try to 'remove_tree()' non-existing directories * try to remove the build_base after cleanup (but don't do or say anything if it fails -- this is just in case we made it empty)
* Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>:Greg Ward2000-03-181-16/+2
| | | | use 'util.remove_tree()' instead of 'nuke_release_tree()'.
* Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>: added 'remove_tree()'.Greg Ward2000-03-181-1/+20
|
* Contribution from Bastian Kleineidam <calvin@cs.uni-sb.de>:Greg Ward2000-03-181-0/+44
| | | | the Distutils 'clean' command.
* In 'finalize_options()': if 'self.libs' is a string, make it a singleton list.Greg Ward2000-03-181-0/+3
|
* Changed to pay attention to the 'runtime_library_dirs' list (= 'rpath'Greg Ward2000-03-183-4/+20
| | | | | | | | | | option in the 'build_ext' command): * in ccompiler.py: 'gen_lib_options()' now takes 'runtime_library_dirs' parameter * in unixccompiler.py and msvccompiler.py: now pass 'self.runtime_library_dirs' to 'gen_lib_options()', and define 'runtime_library_dir_option()' (although in msvccompiler.py it blows up with a DistutilsPlatformError right now!)
* Oops, another in the same file; I should read the mail fully beforeFred Drake2000-03-171-1/+1
| | | | | | | checking in; sorry! "the the" --> "the" (in docstring); noted by Detlef Lannert <lannert@lannert.rz.uni-duesseldorf.de>.
* "intput" --> "input" (in docstring); noted by Detlef LannertFred Drake2000-03-171-1/+1
| | | | <lannert@lannert.rz.uni-duesseldorf.de>.
* complete rewriteJeremy Hylton2000-03-162-800/+831
| | | | | | | | | code generator uses flowgraph as intermediate representation. the old rep uses a list with explicit "StackRefs" to indicate the target of jumps. pyassem converts flowgraph to bytecode, breaks up individual steps of generating bytecode
* simplify visitor walker classJeremy Hylton2000-03-161-32/+22
| | | | | | - remove postorder - remove protocol for automatically walking children based on visitor method return value; now only walks if there is no method
* fix list.append problemsJeremy Hylton2000-03-161-3/+3
|
* change name of Set method: items -> elements (avoids confusion withJeremy Hylton2000-03-161-1/+1
| | | | dict)
* Marc-Andre Lemburg: Add tests for mixed use of char in string.Guido van Rossum2000-03-131-0/+13
|
* Marc-Andre Lemburg: test script for Unicode implementation.Guido van Rossum2000-03-103-10/+338
|
* Marc-Andre Lemburg: the maxsplit argument for split() and replace()Guido van Rossum2000-03-101-4/+4
| | | | | now defaults to -1, not to 0. Passing an explicit zero doesn't split or replace at all.
* Module codecs -- Python Codec Registry, API and helpers. Written byGuido van Rossum2000-03-101-0/+414
| | | | Marc-Andre Lemburg.