summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Allow using long integers as arguments to PyObject_GetItem(), _SetItem(),Andrew M. Kuchling2000-02-231-1/+19
| | | | | | and _DelItem(). In sequence multiplication by a long, only call PyErr_Occurred() when the value returned is -1.
* Allow using long integers as slice indexesAndrew M. Kuchling2000-02-231-2/+34
|
* dict_has_key(): Accept only one parameter. PR#210 reported byFred Drake2000-02-231-4/+4
| | | | Andreas Jung <ajung@sz-sb.de>.
* Added entry for libtabnanny.tex.Fred Drake2000-02-231-0/+1
|
* Added dependency on libtabnanny.tex.Fred Drake2000-02-231-0/+1
|
* Initial version from Peter Funk <pf@artcom-gmbh.de>, with minorFred Drake2000-02-231-0/+62
| | | | consistency changes and a note that the API may change in the future.
* Deleting tabpolice.py; it was superceded by tabnanny.py long ago.Guido van Rossum2000-02-231-104/+0
|
* Moved tabnanny.py to standard library status.Guido van Rossum2000-02-231-368/+0
|
* Added tabnanny.py, by Tim Peters, formerly from Tools/scripts, to theGuido van Rossum2000-02-232-0/+8
| | | | | | | | standard library. Added some comments: # XXX Note: this is now a standard library module. # XXX The API needs to undergo changes however; the current code is too # XXX script-like. This will be addressed later.
* This branch is for 1.6 & forward.Fred Drake2000-02-221-2/+2
|
* Added a new command: Check module (Alt-F5) It does a full syntax checkGuido van Rossum2000-02-221-9/+82
| | | | | | | | of the current module. It also runs the tabnanny to catch any inconsistent tabs. Also did a little bit of refactoring: added an errorbox() method to simplify the display of error dialogs.
* satisfy the tabnanny (thanks to MH for noticing the problem)Jeremy Hylton2000-02-214-196/+196
|
* What used to be tp_xxx4 is now tp_flags; set it to Py_TPFLAGS_DEFAULT.Fred Drake2000-02-211-2/+1
|
* Remove comment that Guido agree's doesn't make sense:Fred Drake2000-02-211-2/+0
| | | | | PyEval_EvalCode() is *not* a "backward compatible interface", it's the one to use!
* Script to help locate markup that LaTeX2HTML has a problem with.Fred Drake2000-02-211-0/+26
|
* Mark pointed out a buglet in his patch: i < _sys_nerr isn't strongGuido van Rossum2000-02-211-1/+1
| | | | | enough, it could be negative. Add i > 0 test. (Not i >= 0; zero isn't a valid error number.)
* 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