Staging
v0.8.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
d1f4984 Jim Fulton writes: The attached patch adds the following behavior to the handling of REDUCE codes: - A user-defined type may have a __reduce__ method that returns a string rather than a tuple, in which case the object is saved as a global object with a name given by the string returned by reduce. This was a feature added to cPickle a long time ago. - User-defined types can now support unpickling without executing a constructor. The second value returned from '__reduce__' can now be None, rather than an argument tuple. On unpickling, if the second value returned from '__reduce__' during pickling was None, then rather than calling the first value returned from '__reduce__', directly, the '__basicnew__' method of the first value returned from '__reduce__' is called without arguments. I also got rid of a few of Chris' extra ()s, which he used to make python ifs look like C ifs. 10 December 1997, 23:40:18 UTC
79f016a Remove "Lib/test" from the default path; this is now a package! 10 December 1997, 23:38:26 UTC
bd49ac4 The 'l' flag (locale specific matching) has been renamed to 'L'. 10 December 1997, 23:05:53 UTC
d0753e2 At Barry's suggestion, plug the security leak by using an empty __builtins__ for all calls to eval(). This still allows someone to write string.atof("[1]*1000000") (which Jim Fulton worries about) but effectively disables access to system modules and functions. 10 December 1997, 22:59:55 UTC
90d62ab Since this module is used as a fallback in case no built-in modules have been configured, string.atof() should not fail when "import re" fails (usually because pcre is not there). This opens up a tiny security hole: *if* an attacker can make "import re" fail, they can also make string.atof(arbitrary_string) evaluate the arbitrary string. Nothing to keep me awake at night... 10 December 1997, 22:35:02 UTC
e680546 Don't specify base 0 to string.atoi when unpickling integers in text mode. The pickler always uses base 10 so the default base should be fine. (The base gets us in trouble when there's no strop module, as the atoi() in string.py only supports base 10. This is for JPython.) 10 December 1997, 19:36:41 UTC
87908f5 New names. 10 December 1997, 18:57:35 UTC
d58daff Planned release date for 1.5b2. 10 December 1997, 18:56:48 UTC
e44a8d9 Support uue and x-uue as short names for uuencode. 10 December 1997, 18:54:36 UTC
9ab94c1 Doc strings and reformatting with 4 spaces bty Mitch Chapman. Untabified and minor tweaks by me. 10 December 1997, 16:17:39 UTC
24e62e2 Modified quicksort by Raymund Galvin, after studying the GNU libg++ quicksort. This should be much faster if there are lots of duplicates, and otherwise at least as good. 10 December 1997, 15:14:24 UTC
3b99430 # Use proper temp subdir for intermediates. 10 December 1997, 15:12:23 UTC
d6af46d Need a cast when comparing type object in isinstance() 10 December 1997, 05:51:47 UTC
d555957 Start calling it 1.5b2 10 December 1997, 05:51:13 UTC
4fdd1fa Comment out CODE and DATA statements that are apparently obsolete. 10 December 1997, 05:50:55 UTC
d666eae Adding a new project: pythonw, or WinMain.c, containing a main program that doesn't have a console window attached. stdout/stderr are lost. This is handy though for things like grail. 10 December 1997, 05:50:18 UTC
736fe5e Document binary format and __init__-free unpickling. Added a pointer to cPickle. 09 December 1997, 20:45:08 UTC
a42c178 Turn the table for flags into a nested itemized environment. 09 December 1997, 20:41:47 UTC
c525e43 Add a test for a bad format character. 09 December 1997, 20:37:25 UTC
231a41e Add explicit check for correct next character in format at end of format. This will complain about illegal formats like "O#" instead of ignoring the '#'. 09 December 1997, 20:36:39 UTC
eefcba6 Fix a little mess (Likecode{...} -> Like \code{...}) in recently added text. 09 December 1997, 19:47:24 UTC
8291bb3 Reference to PYTHONPATH should be PYTHONSTARTUP. 09 December 1997, 19:46:45 UTC
28f9a68 Added note about the module's obsolescence. 09 December 1997, 19:45:47 UTC
5bdea89 # Typos in the comments giving the names of two recently added distributions. 09 December 1997, 19:43:18 UTC
ba17905 Fix the way the version number is gotten out of the RCS revision. 09 December 1997, 19:39:12 UTC
1a24bb5 Fix the test for pow() -- no more TypeErrors are raised! 09 December 1997, 19:38:39 UTC
ebd05eb Typo: RUSAGE_CHILDERN -> RUSAGE_CHILDREN. 09 December 1997, 19:35:48 UTC
8d9c2e3 LC_MESSAGES is not defined on all systems; use #ifdef LC_MESSAGES. 09 December 1997, 19:35:11 UTC
b978d18 Guess... :-) 09 December 1997, 16:56:41 UTC
3d20986 Checking in ConfigParser.py -- I don't see a reason why this can't be liberated. This was originally written by Ken and later revamped by Barry. 09 December 1997, 16:10:31 UTC
b1823ad v 0.8.3 -- add an option to suppress URL processing inside <PRE>, by Scott <scott@chronis.icgroup.com> 09 December 1997, 16:04:46 UTC
fc5d8b1 libainstall: Install Modules/Setup.thread in addition to Modules/Setup and Modules/Setup.local. Guido: I hope this is ok; it seems to make a lot of sense to get the whole trio of module config files installed as a set rather than doing it partially. 09 December 1997, 15:18:33 UTC
138dac5 Added more warnings about ni's demise. 09 December 1997, 15:03:41 UTC
7b8970a Deleting ni.py; renamed to ni1.py, really. 09 December 1997, 14:58:26 UTC
6599fb0 Make close(), and hence __del__(), robust in the light of the world being destroyed already. 09 December 1997, 14:18:33 UTC
19b55f2 Fix subtle bug in cleanup code in PyErr_NormalizeException(), detected by Marc Lemburg. There's a path through the code where *val is NULL, but value isn't, and value should be DECREF'ed. 09 December 1997, 14:11:39 UTC
a2e268a Mark file names with \file{} instead of \code{}. 09 December 1997, 03:28:42 UTC
41999c1 Doc strings by Mitch Chapman (with a little reformatting). Also reformatted the whole module with 4 spaces and no tabs. 09 December 1997, 00:12:23 UTC
1707aad Changed the finalization order again so that the reference count printing (when Py_DEBUG is defined) happens while there's still a current thread... 08 December 1997, 23:43:45 UTC
be1eb0d (1) call mktime() just before strftime(); it normalizes the buffer and may set the timezone name for BSD systems... (2) fake all of the timezone variables for the mac. 08 December 1997, 21:56:43 UTC
6a99984 Use long() instead of int() to compare mktime(localtime(t) with t... 08 December 1997, 21:48:01 UTC
c5aec05 Separated the definitions of ntohs(), ntohl(), htons(), htonl(). Separate descriptions really make things look a bit better, and should improve the ability to re-purpose the content. 08 December 1997, 21:25:41 UTC
8ca7006 Added Emacs turd so this file has the correct mode in Emacs / X/Emacs, even if you don't have .perl in your mode table. 08 December 1997, 20:59:54 UTC
a5a3cdc Added Emacs turd so this file has the correct mode in Emacs / X/Emacs. clean_key(): Override the standard LaTeX2HTML clean_key() to remove a leading HTML tag, if present. This broke the indexes for the library reference (at least) since many of the strings began with <code> or something similar. 08 December 1997, 20:58:13 UTC
a417b66 Updated the README to the current status. Added a note about the "times" option. 08 December 1997, 20:51:26 UTC
0b33410 New version from AMK -- with minor corrections to make it legal latex. 08 December 1997, 17:33:40 UTC
5070060 New pcre version from AMK 08 December 1997, 17:15:20 UTC
dfa6790 New re version from AMK 08 December 1997, 17:12:06 UTC
f3d729c Fixed SFT #23842: leave in non-standard style options when checking in an update. ;-( 08 December 1997, 15:48:35 UTC
cd8732a Remove the last bits of log from the leading comments. 08 December 1997, 15:16:08 UTC
9716aaa Jim Fulton: - Loading non-binary string pickles checks for insecure strings. This is needed because cPickle (still) uses a restricted eval to parse non-binary string pickles. This change is needed to prevent untrusted pickles like:: "S'hello world'*2000000\012p0\012." from hosing an application. - User-defined types can now support unpickling without executing a constructor. The second value returned from __reduce__ can now be None, rather than an argument tuple. On unpickling, if the second value returned from __reduce__ during pickling was None, then rather than calling the first value returned from __reduce__, directly, the __basicnew__ method of the first value returned from __reduce__ is called without arguments. 08 December 1997, 15:15:16 UTC
6128091 For RedHat Linux 5.0, added notes about needing to remove the LinuxThreads package, and -lcrypt for the crypt module. 08 December 1997, 14:10:40 UTC
94ce0d1 Add special handling for Python modules that are imported implicitly by the Python runtime: 'site' and 'exceptions'. 08 December 1997, 05:01:06 UTC
c5d2d51 Apply the same change to classes without an __getinitargs__() method as in pickle: the new instance is created without calling __init__(). 07 December 1997, 16:18:22 UTC
e907208 Some reorganization (all limit operations & constants together, and all usage functions and constants together). Make explicit datadesc sections for each of the constants which might appear, and have a description of each. (Descriptions are based on the Linux documentation and sources and the Solaris man pages.) Hopefully Jeremy won't mind, because I didn't ask. ;-) 06 December 1997, 07:25:41 UTC
a0eaa22 Some manipulations with tags to get the TOC and Index to look better 06 December 1997, 00:39:45 UTC
3e396cf New WML file, this time with working Title and Author tags, and mapping chapter and section headings to more appropriate nodes so that the TOC actually works. Now generates one HTML page per chapter. 06 December 1997, 00:38:30 UTC
5ea20d5 Added some links to OO-Browser, given by Harri Pasanen. Updated the to do list. 06 December 1997, 00:00:47 UTC
d48f252 Another large batch of patches from Jeff Rush for OS/2. I hope this time I've taken out all // comments and indended #ifdefs. 05 December 1997, 22:19:34 UTC
a34c313 New batch of patches by Jeff Rush; moved his readme.txt portion here. 05 December 1997, 22:07:14 UTC
cee1dca Moved Jeff Rush's ever expanding comments to os2vacpp/readme.txt. 05 December 1997, 22:06:23 UTC
a075ce1 Two changes by Jeff Rush (slightly tweaked): - New option -x, to skip first line of script - Use the correct platform-specific delimiter and library location in the usage message (Also removed two blank lines and moved one line around so that each part of the usage message is again under 512 bytes and the whole usage message still fits in 23 lines.) 05 December 1997, 21:56:45 UTC
595d7ba Jeff Rush: add definition for S_IFMT for VisualAge C/C++ under OS2. 05 December 1997, 21:45:29 UTC
60aff2c Use the proper OS2 test symbol: PYOS_OS2. 05 December 1997, 21:39:25 UTC
61de0ac Reindented according to new standard, without tabs. Also added one more os2 specific piece of code, by Jeff Rush. 05 December 1997, 21:24:30 UTC
63cf396 ospath.py has been obsolete for long enough. 05 December 1997, 19:49:14 UTC
e467be6 When instantiating a class with no arguments and where the class does not define __getinitargs__, bypass the __init__ constructor completely. This uses the trick of instantiating an empty dummy class and then changing inst.__class__ to the real class. This is done in two places: once for the INST and once for the OBJ format code. Also replaced the much outdated long doc string with a short summary of the module; the information of that doc string is already incorporated in the library reference manual. 05 December 1997, 19:42:42 UTC
346f7af Added doc strings and reindented according to new standard, without tabs. (Like ntpath.py, this was contributed by "Charles G. Waldman" <cgw@pgt.com>) 05 December 1997, 19:04:51 UTC
15e22e1 Added doc strings and reindented according to new standard, without tabs. 05 December 1997, 19:03:01 UTC
7f97328 Fix the exclusion of "config" in the methods copied from Pack to also exclude "configure". 05 December 1997, 17:05:04 UTC
c37eb56 Forgot to use &lt;/&gt; for some example output. 05 December 1997, 16:18:45 UTC
205eb72 Use registry key ProgramFilesDir as default MAINDIR 05 December 1997, 06:32:47 UTC
6656d1f Add a few more PyErr_ symbols 05 December 1997, 06:32:13 UTC
faf8b21 Add pretty icon to python.exe 05 December 1997, 06:31:40 UTC
90136b0 Only parsing requires Python 1.5 04 December 1997, 19:44:30 UTC
00727b0 Updated world codes with latest iso3166 codes 04 December 1997, 19:42:36 UTC
9efdef1 Added parsing of ISO 3166 files 04 December 1997, 19:35:25 UTC
eee08cd Make examples consistently use 4-space indentation. Use \file{} for file names. Prefer \code{blat} and \emph{blat} to {\tt blat} and {\em blat}; this matches current style in the Library Reference a bit better. Made the example startup banner current. The version number should be bumped before the next release. 04 December 1997, 15:43:15 UTC
0d3b4f8 Fixed unresolved reference problem; this module wasn't \label{}ed. Remove spurious underscore following book title. Added specific reference to a Win32 networking book. Changed \indexsubitem from (in module SocketServer) to (SocketServer protocol), since it's talking about a protocol supported by a collection of classes. 04 December 1997, 14:36:52 UTC
98b032a Removed unnecessary escaping. 04 December 1997, 14:20:59 UTC
1cf8749 Arg; more nits, but I may as well finish the job. Removed the large comment remaining from the template documentation section; the template tells us to remove these once they're not needed. Remove some trailing whitespace from VM instruction pseudo-code. 04 December 1997, 04:57:56 UTC
7381e28 Fixed BINARY_RSHIFT documentation to indicate a right shift instead of a left shift. Adjust whitespace around "=" in VM machine descriptions to be consistent throughout the document. 04 December 1997, 04:51:12 UTC
c2297c1 Changed {\sc gdbm} to \code{gdbm} everywhere. Fixed \indexsubitem to gdbm instead of dbm. Changed dbm to \code{dbm} everywhere. 04 December 1997, 04:45:28 UTC
36facb0 Merge between my version and Jim Fulton's version; removed RCS keywords but otherwise unchanged. 04 December 1997, 01:14:08 UTC
fdde96c New versions of cPickle and cStringIO, from Jim Fulton's cPickle 1.0b1 distribution. 04 December 1997, 01:13:01 UTC
009f787 When --with-thread(s) is specified, the thread module is now automatically enabled. This is done through a substitution in Modules/Setup.thread(.in). Bill Janssen will be happy. The original idea was by Lele Gaifax (though I changed the implementation to use a separate file). 04 December 1997, 00:51:42 UTC
a0cbb3d Moved the thread module to its own Setup.thread(.in) file, which is edited by the config.status script depending on whether --with-thread is specified or not. Also needs changes to configure(.in). 04 December 1997, 00:48:27 UTC
e612be5 Patch my Marc Lemburg to fix urljoin("/a", "..") and urljoin("/a", "..#1"). 03 December 1997, 22:38:56 UTC
3fa440e Refinement of home for NT, courtesy Jeff Bauer. 03 December 1997, 22:34:03 UTC
7c4cba8 Added handler for opcodedesc environment. Fixed weird index behavior. 03 December 1997, 19:45:08 UTC
f2d7e55 make_str_index_entry(): New function. Similar to make_index_entry(), but includes the string in the returned value instead of the dummy filler character. add_idx(): Override the latex2html function of the same name; this gets the anchor properly embedded in the <dt> element, so the index works in Grail too. 03 December 1997, 19:44:27 UTC
ab76af3 Provide default for blocksize on retrbinary (Skip Montanaro). 03 December 1997, 19:34:14 UTC
98ee50b More generated files for netbsd 1.x, by Anders Andersen. 03 December 1997, 18:44:57 UTC
9981d22 (py-jump-on-exception): Variable which if t, means that if an exception occurs in a synchronous Python subprocess, the mode will automatically jump to the innermost exception. 03 December 1997, 05:25:48 UTC
27ee115 Removed redundant eval-when-compile. (python-mode): Conditionalize imenu initializations to when we can safely require imenu. Under Emacs this should prevent python-mode from hosing the global value of imenu-create-index-function and messing things up for all other modes. Problem identified by Christian Egli. (py-describe-mode): py-delete-char => py-electric-backspace. Given by Christian Egli. 03 December 1997, 05:03:44 UTC
456035f The biggie: changed the funcdesc environments used for opcode descriptions to use the opcodedesc environment. Changed a \code{} to a \file{} near the start where a file is referenced. Fixed a typo: "on" --> "one" in ROT_THREE description. Wherever opcodes were referenced by name, use \code{OPCODE_NAME}; usage was inconsistent. Ideally, another macro would be defined since these don't represent code a programmer would type, but that's minor even for me. It'll probably get converted automatically in the SGML conversion project. Whether that matters or not isn't relevant at this point. 03 December 1997, 04:06:57 UTC
a610f9f Added environment for defining PyVM instructions. This is only used in the libdis.tex file I'm about to check in. I'm not sure this is really an optimal solution yet, but it may be the best alternative. It avoids describing the instructions as either data items or functions. This change was discussed with Guido. (Guido: Take a look at the LaTeX output for this; if this is reasonable I'll go ahead and update the perl code in myformat.perl to match.) 03 December 1997, 03:42:39 UTC
b7f1afe Change the default repr() and str() of class instance objects to look like <modulename.classname instance at ...> (to match the repr() of class objects. 03 December 1997, 00:06:02 UTC
5c38bf6 (python-mode): Patch to make font-lock work automatically for Emacs. Unnecessary for XEmacs, but oh well... 02 December 1997, 22:01:04 UTC
673d05f Test for an up-to-date Custom library when byte-compiling, and issue an informative message when one cannot be found, as is the case with a vanilla Emacs 19.34 (and NTEmacs 19.34). 02 December 1997, 21:51:57 UTC
back to top