https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
1ad37bb This commit was manufactured by cvs2svn to create tag 'r21b2'. 23 March 2001, 20:24:07 UTC
2108bc7 main(): Application of SF patch #405851, which allows this test to be used by Jython. The tests in this module expect C locale, so be explicit about setting that (for CPython). However, in Jython, there is no C locale, so instead be explicit about setting the US locale. Closes the patch. 23 March 2001, 20:24:07 UTC
66f0961 pydoc changed overnight in such a way that it no longer worked from the Windows start-menu item. This recovers from that. 23 March 2001, 20:21:29 UTC
9dee48f Fix a memory leak -- there's no need to INCREF() the result of newreadlinesobject() in xreadlines(). 23 March 2001, 18:30:19 UTC
559f668 In Jython, `@' is not allowed in module names. Extend the TESTFN test to use "$test" when in Jython. Closes SF patch #403668. 23 March 2001, 18:04:02 UTC
66e8e86 Finishing touch to Ping's changes. This is a patch that Ping sent me but apparently he had to go to school, so I am checking it in for him. This makes PyRun_HandleSystemExit() a static instead, called handle_system_exit(), and let it use the current exception rather than passing in an exception. This slightly simplifies the code. 23 March 2001, 17:54:43 UTC
62d2488 Two minor changes for better Jython compatibility. Finn Bock says: Change 1: Not all 'modules' in sys.modules have a sensible __file__ attribute. Some of our java package can have the __file__ attribute set to None. Change 2: In jython we have the jython license file in <root> and the CPython license file in <root>/Lib. By reversing the search sequence jython will find and show the jython license file before the CPython file. Closes SF patch #405853. 23 March 2001, 17:53:49 UTC
27dca06 Update Mac OS X platform notes. This closes SF bug #406191. 23 March 2001, 17:51:37 UTC
8f6df46 Strengthen the constraints on calling PyObject_GC_Fini(). 23 March 2001, 17:42:09 UTC
6870bba Make socket.getservbyname test optional on socket module having that attribute. Jython does not have this function. Closes SF patch #403667. 23 March 2001, 17:40:16 UTC
6a12d8d call_sys_exitfunc(): Remove unused variable f. 23 March 2001, 17:34:02 UTC
88b0884 Change rfc822_escape() to ensure there's a consistent amount of whitespace after each newline, instead of just blindly inserting a space at the start of each line. (Improvement suggested by Thomas Wouters) 23 March 2001, 17:30:26 UTC
aa90adc Add nested scopes spec to appendix. Add new opcodes LOAD_CLOSURE, LOAD_DEREF, STORE_DEREF, MAKE_CLOSURE to docs for dis module. Add docs for new function and code members in Sec. 3 of ref manual. They're present regardless of whether nested scopes are used. Remove description of default argument hack from Sec. 7 of the ref manual and refer the reader to the appendix. 23 March 2001, 17:23:50 UTC
7190247 Remove the annoying __version__ definitions. 23 March 2001, 17:09:02 UTC
3e8f921 Lots of small changes to make this work with the Python DOM bindings (minidom in particular); it was using PyDOM which is now obsolete. Only write the output file on success -- this avoids updating the timestamp on the file on failure, which confuses "make". 23 March 2001, 17:01:47 UTC
7519e7a setlocale(): In _locale-missing compatibility function, string comparison should be done with != instead of "is not". 23 March 2001, 17:00:07 UTC
2262a80 Pick up the "encode" function from esistools instead of defining our own (broken) version. Remove Conversion.err_write() -- use dbgmsg() consistently. 23 March 2001, 16:53:34 UTC
a9d0450 No quotes around the "future" in the first use of the term "future statement". 23 March 2001, 16:47:11 UTC
f6c115f Re-write to no longer depend on an old version of PyXML. This now implements a SAX XMLReader interface instead of the old Builder interface used with PyDOM (now obsolete). This only depends on the standard library, not PyXML. 23 March 2001, 16:42:08 UTC
a4699a7 Pick the "escape" function from the standard library instead of from PyXML. 23 March 2001, 16:38:12 UTC
ce19496 Add conversions for more of the markup -- not all of this was around when this file was written! 23 March 2001, 16:29:06 UTC
7621fa9 Add entry for the futures appendix in the reference manual. Correct the comment at the top of the file. 23 March 2001, 16:23:21 UTC
557c1ae Include the futures appendix. 23 March 2001, 16:21:15 UTC
39778b7 Revise the markup so that this formats and uses markup consistently with the rest of the documentation. 23 March 2001, 16:20:46 UTC
dfdac1a Several changes for Jython portability. This closes SF patch #403666. Specifically, In codestr, force `c' to be global. It's unclear what the semantics should be for a code object compiled at module scope, but bound and run in a function. In CPython, `c' is global (by accident?) while in Jython, `c' is local. The intent of the test clearly is to make `c' global, so let's be explicit about it. Jython also does not have a __builtins__ name in the module's namespace, so we use a more portable alternative (though I'm not sure why the test requires "__builtins__" in the g namespace). Finally, skip the new.code() test if the new module doesn't have a `code' attribute. Jython will never have this. 23 March 2001, 16:13:30 UTC
101651c flesh out __all__ remove debugging code in if __debug__: add get_children() method on SymbolTable 23 March 2001, 15:41:14 UTC
26fabb0 Allow sys.excepthook and sys.exitfunc to quietly exit with a sys.exit(). sys.exitfunc gets the last word on the exit status of the program. 23 March 2001, 15:36:41 UTC
a9c6c8d Extend isclass() to work for extension classes (by looking for __bases__). 23 March 2001, 15:29:59 UTC
324cc6e Add some initial text for the appendix on future statements and nested scopes. 23 March 2001, 15:29:54 UTC
2c84fc8 Note that assignments to __debug__ are illegal 23 March 2001, 14:34:06 UTC
f626db7 News items for my recent checkins 23 March 2001, 14:18:27 UTC
fde8a86 Script for starting pydoc with a GUI in Windows. 23 March 2001, 14:10:39 UTC
897b821 Make it illegal to assign to __debug__ as per Guido's request. 23 March 2001, 14:08:38 UTC
e280c06 Browser compatibility fixes. Show methods aliased into a class from other classes. 23 March 2001, 14:05:53 UTC
e702481 Revert to ver 1.22, which was the version before the nested scopes docs were introduced. This loses a few small changes, but Fred says that's okay. 23 March 2001, 14:05:16 UTC
987ec90 Small formatting improvements. 23 March 2001, 13:35:45 UTC
3bda879 Show inherited methods, with hyperlinks to the base class they came from. Font adjustment to improve viewing in Windows (the default monospaced font, Courier New, seems to have no reasonable size in IE!) Improve error handling. Try very hard to distinguish between failure to find a module and failure during the module importing process. Improve reloading behaviour. (Still needs some work.) Add '.' to sys.path when running as a script at the command-line. Don't automatically assume '-g' based on the platform. We'll just have the batch file supply -g. 23 March 2001, 13:17:50 UTC
16a0b17 Bump version number. 23 March 2001, 12:12:05 UTC
a5d7b74 Revert the 1.8 patch, since it's implicated in nasty blowups (see Pyhon-Dev). 23 March 2001, 06:14:28 UTC
28c62bb Provide a StopTokenizing exception for conveniently exiting the loop. 23 March 2001, 05:22:49 UTC
ce7298a Explain the difference between NL and NEWLINE. 23 March 2001, 05:22:12 UTC
c608fb6 Give a slightly better explanation of excepthook. 23 March 2001, 05:17:41 UTC
f170d7f Don't have trace() skip the top frame; return them all. 23 March 2001, 05:14:10 UTC
6526bf8 When creating an attribute node using createAttribute() or createAttributeNS(), use the parallel setAttributeNode() or setAttributeNodeNS() to add the node to the document -- do not assume that setAttributeNode() will operate properly for both. 23 March 2001, 04:39:24 UTC
5e0dfac Update to the most recent weakref changes. 23 March 2001, 04:36:02 UTC
b0fefc5 Convert the weakref test suite to PyUNIT, and add tests that exercise weak references on function objects and both bound and unbound methods. 23 March 2001, 04:22:45 UTC
84a5934 When the regression test is run in verbose mode, make the PyUNIT-based tests a little noisier, providing more progress information. 23 March 2001, 04:21:17 UTC
db81e8d Add support for weak references to the function and method types. 23 March 2001, 04:19:27 UTC
6a1c87d Add the necessary field for weak reference support to the function and method types. 23 March 2001, 04:17:58 UTC
4131830 Fix memory leak with SyntaxError. (The DECREF was originally hidden inside a piece of code that was deemed reduntant; the DECREF was unfortunately *not* redundant!) 23 March 2001, 04:01:07 UTC
ac1abe0 Add a paragraph about obmalloc turning up bugs in extension modules Mention the new ports 23 March 2001, 03:52:46 UTC
fe0d79f Add Jeremy's compiler to the Windows install. 23 March 2001, 03:43:35 UTC
ef85cc8 Add section for PEP 241 Add PyUnit and sys.excepthook 23 March 2001, 03:29:08 UTC
b5c5132 Add sys.excepthook. Update docstring and library reference section on 'sys' module. New API PyErr_Display, just for displaying errors, called by excepthook. Uncaught exceptions now call sys.excepthook; if that fails, we fall back to calling PyErr_Display directly. Also comes with sys.__excepthook__ and sys.__displayhook__. 23 March 2001, 02:46:52 UTC
37f7b38 Fixes for various issues reported and discovered since Python 9: Factor description of import errors into DocImportError.__str__. Add "docother" and "fail" methods to Doc class. Factor formatting of constants into "docother". Increase max string repr limit to 100 characters. Factor page generation into HTMLDoc.page. Handle aliasing of names (objects appearing under an attribute name different from their intrinsic __name__) by passing the attribute name into each doc* method. Handle methods at top level of modules (e.g. in random). Try to do reloading efficiently. Important fixes still to do: Module reloading is broken by the unfortunate property that failed imports leave an incomplete module in sys. Still need to think of a good solution. Can't document modules in the current directory, due to the other unfortunate property that sys.path gets '.' when you run 'python' but it gets the script directory when you run a script. Need to ponder to find a solution. The synopsis() routine does not work on .so modules. Aliases cause duplicate copies of documentation to appear. This is easy to fix, just more work. Classes appear as their intrinsic name, not their attribute name, in the class hierarchy. This should be fixed. Inherited methods should be listed in class descriptions. 23 March 2001, 00:12:53 UTC
015415e SRE 2.1b2: increase the chances that the sre test works on other machines... 22 March 2001, 23:48:28 UTC
816e149 First cut at a high-level symbol table interface 22 March 2001, 23:32:22 UTC
987f133 SRE 2.1b2: forgot to update one output file (sorry, Fred!) 22 March 2001, 23:29:04 UTC
8bf395f add DEF_BOUND constant 22 March 2001, 23:10:44 UTC
14b90a4 Strip \r as trailing whitespace as part of soft line endings. Inspired by SF patch #408597 (Walter Dörwald): quopri, soft line breaks and CRLF. (I changed (" ", "\t", "\r") into " \t\r".) 22 March 2001, 22:30:21 UTC
8652522 Update the Tix version (long overdue :-). This is SF patch # #409044, by Internet Discovery: "Update tcl/tk/tix versions". 22 March 2001, 22:18:55 UTC
3f69f21 Add a wrapper function for ssl() on Windows. Inspired by SF patch # 409287, ssl fix when using _socketobject, by Robin Dunn. I took the opportunity to improve the way it deals with reload(socket) for the socket function as well. 22 March 2001, 22:12:17 UTC
bfb9184 This is SF patch #405952, by Anthony Baxter: cmd.py uses raw_input(); eats SIGCLD: I discovered a rather nasty side effect of the standard cmd.py library today. If it's sitting inside raw_input(), any SIGCLDs that get sent to your application get silently eaten and ignored. I'm assuming that this is something that readline is thoughtfully doing for me. This patch adds an instance attr that allows the user to select to not use raw_input(), but instead use sys.stdin.readline() [Changed slightly to catch EOFError only for raw_input().] 22 March 2001, 21:59:20 UTC
4e262a9 A small change to the C API for weakly-referencable types: Such types must now initialize the extra field used by the weak-ref machinery to NULL themselves, to avoid having to require PyObject_INIT() to check if the type supports weak references and do it there. This causes less work to be done for all objects (the type object does not need to be consulted to check for the Py_TPFLAGS_HAVE_WEAKREFS bit). 22 March 2001, 18:26:47 UTC
82f1480 Inform the cycle-detector that the a weakref object no longer needs to be tracked as soon as it is clear; this can decrease the number of roots for the cycle detector sooner rather than later in applications which hold on to weak references beyond the time of the invalidation. 22 March 2001, 18:05:30 UTC
2c77355 Make cPickle use the recently-added PyInstance_NewRaw() API to create instance objects without calling the constructor. This is the same as the new.instance() function. 22 March 2001, 17:52:17 UTC
53f5968 Make this IDLE version 0.8. (We have to skip 0.7 because that was a CNRI release in a corner of the basement of a government building on a planet circling Aldebaran.) 22 March 2001, 17:37:52 UTC
3cc1250 Don't use __debug__ as if it were some module global. Use DEBUG instead. 22 March 2001, 17:27:13 UTC
6909642 Bump the version number. 22 March 2001, 17:01:43 UTC
15e07f4 Update to the current state of the universe. 22 March 2001, 17:00:05 UTC
e28d8ae Be more clear about the specific rules for supporting the cyclic GC in an extension object. Also included an example showing exactly what needs to be done and nothing else. This closes SF bug #228591. 22 March 2001, 16:30:17 UTC
f5db48e Fix typo in history. 22 March 2001, 16:03:53 UTC
17741be SRE 2.1b1: don't do unicode tests under 1.5.2, or on unicode strings/patterns. 22 March 2001, 15:51:28 UTC
b25e1ad sre 2.1b2 update: - take locale into account for word boundary anchors (#410271) - restored 2.0's *? behaviour (#233283, #408936 and others) - speed up re.sub/re.subn 22 March 2001, 15:50:10 UTC
8e9972c Added news items for the Distutils 22 March 2001, 15:42:08 UTC
3225c1f Updated history. Incorporated 1.6.1 license. 22 March 2001, 15:41:06 UTC
b374dd3 Synchronize with 1.6 of PyXML: Retrieve relevant information at construction time, as it may be lost when the exception is printed. 22 March 2001, 15:34:02 UTC
ffb963c Use the get_contact*() accessors instead of get_maintainer*() 22 March 2001, 15:32:23 UTC
a0ea7c1 Set copyright to PSF. Don't bother with 2000. 22 March 2001, 15:29:37 UTC
b0dbeef Allow the process of reading back what we wrote to a pty to transform linefeeds into carriagereturn-linefeeds (which is apparently what IRIX does.) Also add some comments, an extra test and reorganize it a bit. 22 March 2001, 14:50:24 UTC
053ae35 Add some news for 2.1b2. I'd still like someone else to add news about these packages: - distutils - xml 22 March 2001, 14:17:21 UTC
d76f0f7 Added Gordon McMillan. He should've been in there ages ago. Thanks Moshe for noticing! 22 March 2001, 13:43:25 UTC
d42124c Change co.detach() to co.back() call. 22 March 2001, 13:36:39 UTC
27f9b84 Add more complete reference. Change a co.back() call to co.tran() -- that's all that's needed. 22 March 2001, 13:36:11 UTC
5ddd1a8 Updated to latest PyUnit version (1.31 in PyUnit CVS); test_support.py changed accordingly. 22 March 2001, 08:45:36 UTC
2e2cded Set the line number correctly for a nested function with an exec or import *. Mark the offending stmt rather than the function def line. 22 March 2001, 03:57:58 UTC
280e6bd Make error messages clearer for illegal combinations of nested functions and import */exec. 22 March 2001, 03:51:05 UTC
6e9c0ba Remove redundant import 22 March 2001, 03:50:09 UTC
ac20f77 Back out conversion to string methods; the Distutils is intended to work with 1.5.2 22 March 2001, 03:48:31 UTC
a7f225d Call the write_pkg_info method 22 March 2001, 03:10:05 UTC
a7210ed Add 'platforms' and 'keywords' attributes to the DistributionMetadata class, along with options to print them. Add a finalize_options() method to Distribution to do final processing on the platform and keyword attributes Add DistributionMetadata.write_pkg_info() method to write a PKG-INFO file into the release tree. 22 March 2001, 03:06:52 UTC
df66df0 Patch #407434: add rfc822_escape utility function 22 March 2001, 03:03:41 UTC
bc32024 Extend support for from __future__ import nested_scopes If a module has a future statement enabling nested scopes, they are also enable for the exec statement and the functions compile() and execfile() if they occur in the module. If Python is run with the -i option, which enters interactive mode after executing a script, and the script it runs enables nested scopes, they are also enabled in interactive mode. XXX The use of -i with -c "from __future__ import nested_scopes" is not supported. What's the point? To support these changes, many function variants have been added to pythonrun.c. All the variants names end with Flags and they take an extra PyCompilerFlags * argument. It is possible that this complexity will be eliminated in a future version of the interpreter in which nested scopes are not optional. 22 March 2001, 02:47:58 UTC
061d106 If a code object is compiled with nested scopes, define the CO_NESTED flag. Add PyEval_GetNestedScopes() which returns a non-zero value if the code for the current interpreter frame has CO_NESTED defined. 22 March 2001, 02:32:48 UTC
f6e47ad Check that f.keys() == [] right after creation -- this prevents bugs like the one I just fixed to come back and haunt us. 22 March 2001, 00:40:23 UTC
4edbc2a Add CONFIG_ARGS Makefile variable (saves the arguments passed to configure). 22 March 2001, 00:34:03 UTC
64b1b68 - Remove WITH makefile variable. Its not used for anything. - Add CONFIG_ARGS variable and use it to re-run configure rather than using config.status. This prevents an infinite loop if configure dies while re-configuring. 22 March 2001, 00:32:32 UTC
ec24c1b Don't raise MemoryError in keys() when the database is empty. This fixes SF bug #410146 (python 2.1b shelve is broken). 22 March 2001, 00:19:22 UTC
24a4191 Changed doctest to run tests in alphabetic order of name. This makes verbose-mode output easier to dig thru, and removes an accidental dependence on the order of dict.items() (made visible by recent changes to dictobject.c). 21 March 2001, 23:07:59 UTC
c392b57 Integrated an expanded version of some text from Neil Schemenauer about supporting cyclic garbage collection. (This is not all of it, but I'm taking a break!) Also fixed some markup nits. 21 March 2001, 22:15:01 UTC
back to top