summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added FreeMem, MaxBlock and CompactMem calls. The values returned by these ↵Jack Jansen2000-02-211-0/+43
| | | | are lower bounds in the Python case (as malloc doesn't return memory to the heap) but they can be used to decide when to give low-memory warnings.
* add TODO sectionGreg Stein2000-02-191-0/+100
|
* Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr>Andrew M. Kuchling2000-02-181-6/+6
| | | | | | | The same problem (mixed mallocs) exists for the pcre stack. The buffers md->... are allocated via PyMem_RESIZE in grow_stack(), while in free_stack() they are released with free() instead of PyMem_DEL().
* Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr>:Andrew M. Kuchling2000-02-181-4/+2
| | | | | | The buffers self->regex and self->regex_extra are allocated in pcre_compile() and pcre_study() via pcre_malloc, but are released via free() instead of pcre_free.
* reduce fsimp coupling: provide fs_imp param to ImportManager constructor,Greg Stein2000-02-181-48/+45
| | | | | | | add clsFilesystemImporter class attribute, alter handling of suffix list convert suffix importers to funcs rather than instances remove backwards compat code: Importer.install and 2-tuple get_code() result values
* shift demo importers to importers.py (destined for Demo/ ?)Greg Stein2000-02-181-227/+16
| | | | | | | | switch to isinstance() rather than direct type comparisons removing chaining concept update ImportManager.install() to take an optional namespace to install itself in. this will be useful for setting up rexec environments. minor comment nits
* Changed all references to command methods 'set_default_options()' andGreg Ward2000-02-181-23/+23
| | | | 'set_final_options()' to 'initialize_options()' and 'finalize_options()'.
* Renamed 'set_default_options()' to 'initialize_options()', andGreg Ward2000-02-1810-28/+28
| | | | 'set_final_options()' to 'finalize_options()'.
* Changed references to the command class 'options' attribute to 'user_options'.Greg Ward2000-02-181-26/+27
| | | | | Related docstring changes. Unrelated comment changes.
* Renamed all 'options' class attributes to 'user_options'.Greg Ward2000-02-1810-105/+115
|
* Command classes are now named identically to their commands, so reflect thisGreg Ward2000-02-181-2/+1
| | | | in 'find_command_class()' method.
* Renamed all command classes so they're exactly the same as the name of theGreg Ward2000-02-1810-10/+10
| | | | | command itself: no more of this "FooBar class for foo_bar command" silliness.
* Changed 'dist' to 'sdist'.Greg Ward2000-02-181-1/+1
|
* The 'sdist' command to create a source distribution. This is derived from theGreg Ward2000-02-171-0/+716
| | | | | | old 'dist' command, but the code for dealing with manifests is completely redone -- and renaming the command to 'sdist' is more symmetric with the soon-to-exist 'bdist' command.
* The 'dist' command is dead -- long live the 'sdist' command!Greg Ward2000-02-171-558/+0
|
* changes to _lookupNameJeremy Hylton2000-02-172-28/+26
| | | | | | - removed now (happily) unused second arg - need to verify results of [].index are correct; for building consts, need to have same value and same type, e.g. 2 not the same as 2L
* the previous quick hack to fix def foo((x,y)) failed on some casesJeremy Hylton2000-02-174-32/+96
| | | | | | | | | | | | | | | (big surprise). new solution is a little less hackish. Code gen adds a TupleArg instance in the argument slot. The tuple arg includes a copy of the names that it is responsble for binding. The PyAssembler uses this information to calculate the correct argcount. all fix this wacky case: del (a, ((b,), c)), d which is the same as: del a, b, c, d (Can't wait for Guido to tell me why.) solution uses findOp which walks a tree to find out whether it contains OP_ASSIGN or OP_DELETE or ...
* add varargs and kwargs flags to Lambda nodesJeremy Hylton2000-02-172-0/+10
|
* satisfy the tabnannyJeremy Hylton2000-02-172-394/+398
| | | | fix broken references to filename var in generateXXX methods
* Update the description of int() to include the radix parameter;Fred Drake2000-02-171-12/+16
| | | | | | | omission noted on c.l.py by Aahz Maruch. Swapped the order of the descriptions of int() and intern() so that int() comes first (the functions are in alphabetic order).
* Typo in a comment: "wheter" --> "whether"Fred Drake2000-02-171-1/+1
|
* Patches by Piers Lauder.Guido van Rossum2000-02-171-8/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reasons for patches: 1st patch (15,21): version change 2nd patch (66,72): This is a patch I found in a Zope product release (quite by accident!). It relaxes the conditions for matching a literal. I've looked over the logic, and tested it, and it seems sensible. 3rd patch (117,123): It appears the quoting matcher was too general, and that the IMAP4 protocol requires characters like ':' in commands to be unquoted. (This is the patch already sent to Guido.) 4th patch (699,705): Spelling correction in comment. 5th patch (753,761): Another patch from the Zope product. It seems that some IMAP4 servers produce unexpected responses in the middle of valid command/response sequences. This patch ignores the unexpected responses in this situation. (How I wish users would send me bug reports with examples!). last 2 patches: (1015,1028) (1038,1044): Minor improvements to test code.
* Add primitive customization of window size and font.Guido van Rossum2000-02-171-3/+19
| | | | A few alternative selections can be made by changing "if 0" to "if 1".
* Patch by Mark Hammond:Guido van Rossum2000-02-171-15/+75
| | | | | | | | | | * Changes to a recent patch by Chris Tismer to errors.c. Chris' patch always used FormatMessage() to get the error message passing the error code from errno - but errno and FormatMessage use a different numbering scheme. The main reason the patch looked OK was that ENOFILE==ERROR_FILE_NOT_FOUND - but that is about the only shared error code :-). The MS CRT docs tell you to use _sys_errlist()/_sys_nerr. My patch does also this, and adds a very similar function specifically for win32 error codes.
* Changes by Mark Hammond related to the new WindowsError exception.Guido van Rossum2000-02-171-0/+6
|
* Declarations related to new WindowsError exception.Guido van Rossum2000-02-171-0/+7
|
* Added WindowsError, for Mark Hammond's extensions.Guido van Rossum2000-02-171-0/+6
|
* Added docs for new crc32() function. By Jim Ahlstrom.Guido van Rossum2000-02-161-0/+12
| | | | (Fred, please check.)
* Added test for new crc32() function.Guido van Rossum2000-02-161-0/+6
|
* Patch by Jim Ahlstrom to add crc32, a useful checksum functionGuido van Rossum2000-02-161-0/+141
| | | | | | | | | | | (e.g. used for ZIP files). The patch includes code that says: + Copyright (C) 1986 Gary S. Brown. You may use this program, or + code or tables extracted from it, as desired without restriction. My interpretation (and Jim's) is that Gary S Brown has no claims under copyright, patent or other rights or interests. Lawyers might disagree.
* The 0.5 release happened on 2/15, not on 2/14. :-)Guido van Rossum2000-02-161-1/+1
|
* support for arglists with implicit tuple unpacksJeremy Hylton2000-02-162-30/+122
| | | | | | | | | | | | | | - added a number of support methods to generate code just before the body - hack protocol for communicating number of args to PyAssembler fix TryExcept generation for case where exception handler has no body fix visitAssAttr add comment about incomplete visitAssName stop using the ExampleASTVisitor change script invocation to accept a list of .py files (e.g. Lib/*.py)
* more robust assignment of lineno for keyword argsJeremy Hylton2000-02-162-6/+6
| | | | | | | | get the lineno from the name of the keyword arg example of case that didn't work-- def foo(x, y, a = None, b = None):
* fix argcount generation for arg lists containing tuple unpacksJeremy Hylton2000-02-162-4/+26
| | | | this is sort of a hack
* add flatten helper functionJeremy Hylton2000-02-162-0/+22
|
* finish first impl of code generatorJeremy Hylton2000-02-152-24/+140
| | | | | add support for nodes TryExcept, TryFinally, Sliceobj fix visitSubscript to properly handle x[a,b,c]
* fix creation of Ellipsis nodeJeremy Hylton2000-02-152-2/+2
|
* add a little debugging support when new.code raises SystemErrorJeremy Hylton2000-02-152-10/+42
|
* no real change -- testing syncmailJeremy Hylton2000-02-151-1/+1
|
* add line numbers to nodes in the except clause (when possible)Jeremy Hylton2000-02-152-2/+6
|
* tidy up tryexcept and tryfinally nodesJeremy Hylton2000-02-152-28/+40
|
* A bit restructured.Guido van Rossum2000-02-151-15/+40
|
* Oops, somehow the initial checkin was botched. :-(Guido van Rossum2000-02-151-0/+336
|
* Added some clarifications.Guido van Rossum2000-02-151-4/+8
|
* Temporarily add a copy here for easy distribution.Guido van Rossum2000-02-151-0/+0
|
* More changes.Guido van Rossum2000-02-151-1/+20
|
* Notice status back and stack viewer.Guido van Rossum2000-02-151-0/+5
|
* Support for Moshe's status bar.Guido van Rossum2000-02-151-2/+20
|
* Status bar code -- by Moshe Zadka.Guido van Rossum2000-02-151-0/+32
|
* Adding the old stack viewer implementation back, for the debugger.Guido van Rossum2000-02-151-0/+276
|