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

sort by:
Revision Author Date Message Commit Date
655c955 Patch #453627: Define the following macros when compiling on a UnixWare 7.x system: SCO_ATAN2_BUG, SCO_ACCEPT_BUG, and STRICT_SYSV_CURSES. Work aroudn a bug in the SCO UnixWare atan2() implementation. 05 September 2001, 14:45:54 UTC
0ace326 Patch #453627: Adds a list of tests that are expected to be skipped for UnixWare 7.x systems. 05 September 2001, 14:38:48 UTC
36546db Patch #455231: Support ELF properly on OpenBSD. 05 September 2001, 14:24:43 UTC
44f8696 Patch #428326: New class threading.Timer. 05 September 2001, 13:44:54 UTC
b3a639e builtin_execfile(): initialize another local that the GCC on leroy found it necessary to warn about. 05 September 2001, 13:37:47 UTC
c010c17 Implement PEP250: Use Lib/site-packages under windows. bdist_wininst doesn't use the NT SCHEME any more, instead a custom SCHEME is used, which is exchanged at installation time, depending on the python version used. Avoid a bogus warning frpom install_lib about installing into a directory not on sys.path. 05 September 2001, 13:00:40 UTC
045af6f [Bug #404274] Restore some special-case code for AIX and BeOS under 1.5.2. This will have to stay until we decide to drop 1.5.2 compatibility completely. 05 September 2001, 12:02:59 UTC
fd06486 Shut up many more gcc warnings. 05 September 2001, 10:31:52 UTC
5a1516b Only output the buffer size error label if it is used. Shuts up another couple of gcc warnings. 05 September 2001, 10:27:53 UTC
703ad70 Use -fPIC instead of -fpic for gcc on HP/UX. Fixes bug #433234. 05 September 2001, 08:36:52 UTC
a5f8bb5 Check for RFC 2553 API. Fixes bug #454493. 05 September 2001, 08:22:34 UTC
4c483c4 Make the error msgs in our pow() implementations consistent. 05 September 2001, 06:24:58 UTC
d893fd6 Repair indentation. 05 September 2001, 06:24:24 UTC
57f282a Try to recover from that glibc's ldexp apparently doesn't set errno on overflow. Needs testing on Linux (test_long.py and test_long_future.py especially). 05 September 2001, 05:38:10 UTC
e5ca6c7 loghelper(): Try to nudge the compiler into doing mults in an order that minimizes roundoff error. 05 September 2001, 04:33:11 UTC
6fd0f0a Another / that should be a // (previously not caught because of incomplete coverage of the test suite). 05 September 2001, 02:27:04 UTC
cf856f9 Add a test for the final branch in repr.Repr.repr1(), which deals with a default repr() that's longer than 20 characters. 05 September 2001, 02:26:26 UTC
7852616 Return reasonable results for math.log(long) and math.log10(long) (we were getting Infs, NaNs, or nonsense in 2.1 and before; in yesterday's CVS we were getting OverflowError; but these functions always make good sense for positive arguments, no matter how large). 05 September 2001, 00:53:45 UTC
63c9453 Mechanical fiddling to make this easier to work with in my editor. Repaired the ldexp docstring (said the name of the func was "ldexp_doc"). 04 September 2001, 23:17:42 UTC
f894f6f Added prototypes to shut gcc -Wstrict-prototypes up. 04 September 2001, 22:29:31 UTC
9642eca Shut up a few more gcc warnings. 04 September 2001, 22:25:47 UTC
1767f93 Added prototypes to silence gcc strict-prototype warnings. Fixed a few missing return values. 04 September 2001, 22:20:39 UTC
06d2e1a Regenerated without default int return types. 04 September 2001, 22:19:18 UTC
d157b37 Don't use a default "int" return type, gcc gives a warning about it. 04 September 2001, 22:16:33 UTC
f911423 Added pythonpath.r to the developer distribution. It's useful to people extending Python. Suggested by Alexandre Parenteau. 04 September 2001, 22:15:05 UTC
7eea37e At Guido's suggestion, here's a new C API function, PyObject_Dir(), like __builtin__.dir(). Moved the guts from bltinmodule.c to object.c. 04 September 2001, 22:08:56 UTC
2f760c3 On MacOSX built the toolbox extension modules iff we're building with --enable-framework. Some modules that are also useful outside a fullblown application are always built. 04 September 2001, 21:33:12 UTC
f6af601 Template for an OSX PythonInterpreter application. 04 September 2001, 21:28:03 UTC
33a3b63 Correction: the Borland C port isn't fully operational yet 04 September 2001, 21:25:58 UTC
d043ab6 Photoshop sources for icon files. Not pretty, but hey! I'm not an artist (and a certain artist didn't jump in, yet). 04 September 2001, 21:25:36 UTC
4d335b3 [Bug #444589] Record empty directories in the install_data command Slightly modified version of patch from Jon Nelson (jnelson). 04 September 2001, 20:42:08 UTC
a8ea5ba [Bug #436732] install.py does not record a created *.pth file in the INSTALLED_FILES output. Modified version of a patch from Jon Nelson (jnelson) 04 September 2001, 20:06:43 UTC
0dad0f7 Revert one of the "division fixes" in test_long. It intends to try both "/" and "//", and doesn't really care what they *mean*, just that both are tried (and that, whatever they mean, they act similarly for int and long arguments). 04 September 2001, 19:48:01 UTC
1ef106c Make pprint more locale-friendly; patch contributed by Denis S. Otkidach. This closes SF patch #451538. 04 September 2001, 19:43:26 UTC
4a596e3 [Bug #457654] bkgd() used a hard-coded A_NORMAL attribute, when it should have used the attribute argument provided as a parameter 04 September 2001, 19:34:32 UTC
9f5b822 Convert docstring to "raw" string. 04 September 2001, 19:20:06 UTC
54e54c6 The first batch of changes recommended by the fixdiv tool. These are mostly changes of / operators into //. Once or twice I did more or less than recommended. 04 September 2001, 19:14:14 UTC
b8f2274 Added docstrings by Neal Norwitz. This closes SF bug #450980. 04 September 2001, 19:10:20 UTC
6c0f200 Move call_trace(..., PyTrace_CALL, ...) call to top of eval_frame. That way it's called each time a generator is resumed. The tracing of normal functions should be unaffected by this change. 04 September 2001, 19:03:35 UTC
1b41079 Added docstring by Neal Norwitz. This closes SF bug #450981. 04 September 2001, 18:55:03 UTC
05857df Added docstring by Neal Norwitz. This closes SF bug #450979. 04 September 2001, 18:39:45 UTC
757f780 Add more detail to the descriptions of the shutil functions. This closes SF bug #458223. 04 September 2001, 18:26:27 UTC
c05fc7d Added documentation for sys.maxunicode and sys.warnoptions. Fixed a markup error which caused an em dash to be presented as a minus sign. This closes SF bug #458350. 04 September 2001, 18:18:36 UTC
7cf613d HTMLParser is allowed to be more strict than sgmllib, so let's not change their basic behavior: When parsing something that cannot possibly be valid in either HTML or XHTML, raise an exception. 04 September 2001, 16:26:03 UTC
a0ca3d6 - Reverse the meaning of the -m option: warnings about multiple / operators per line or statement are now on by default, and -m turns these warnings off. - Change the way multiple / operators are reported; a regular recommendation is always emitted after the warning. - Report ambiguous warnings (both int|long and float|complex used for the same operator). - Update the doc string again to clarify all this and describe the possible messages more precisely. 04 September 2001, 16:22:01 UTC
61b8501 Suppressing all DeprecationWarning messages was a bit of a problem for the -Qwarnall option, so I've changed this to only filter out the one warning that's a problem in practice. 04 September 2001, 15:22:02 UTC
81fc778 Suppress the warning about regex here. 04 September 2001, 15:18:54 UTC
c20a698 Enhanced the test for DOCTYPE declarations, added a test for dealing with broken declaration-like things. 04 September 2001, 15:13:04 UTC
68eac2b Added reasonable parsing of the DOCTYPE declaration, fixed edge cases regarding bare ampersands in content. 04 September 2001, 15:10:16 UTC
212a2e1 On the mac some library paths returned were outdated, some were outright funny. Fixed. 04 September 2001, 12:01:49 UTC
4ca5f38 Disabled _curses modules on MacOSX. The curses version is a 1994 BSD curses, far too old for _cursesmodule.c. 04 September 2001, 09:05:11 UTC
83e7ccc Whitespace normalization. 04 September 2001, 06:37:28 UTC
bc1c7a0 Fixed a typo and added more tests. 04 September 2001, 06:33:00 UTC
e2a6000 Change long/long true division to return as many good bits as it can; e.g., (1L << 40000)/(1L << 40001) returns 0.5, not Inf or NaN or whatever. 04 September 2001, 06:17:36 UTC
9c1d7fd Move int_true_divide next to the other division routines. 04 September 2001, 05:52:47 UTC
20dab9f Move long_true_divide next to the other division routines (for clarity!). 04 September 2001, 05:31:47 UTC
9fffa3e Raise OverflowError when appropriate on long->float conversion. Most of the fiddling is simply due to that no caller of PyLong_AsDouble ever checked for failure (so that's fixing old bugs). PyLong_AsDouble is much faster for big inputs now too, but that's more of a happy consequence than a design goal. 04 September 2001, 05:14:19 UTC
1832de4 PEP 238 documented -Qwarn as warning only for classic int or long division, and this makes sense. Add -Qwarnall to warn for all classic divisions, as required by the fixdiv.py tool. 04 September 2001, 03:51:09 UTC
61c345f Rename the -D option to -Q, to avoid a Jython option name conflict. 04 September 2001, 03:26:15 UTC
a1c1b0f Introduce new private API function _PyLong_AsScaledDouble. Not used yet, but will be the foundation for Good Things: + Speed PyLong_AsDouble. + Give PyLong_AsDouble the ability to detect overflow. + Make true division of long/long nearly as accurate as possible (no spurious infinities or NaNs). + Return non-insane results from math.log and math.log10 when passing a long that can't be approximated by a double better than HUGE_VAL. 04 September 2001, 02:50:49 UTC
37a309d builtin_dir(): Treat classic classes like types. Use PyDict_Keys instead of PyMapping_Keys because we know we have a real dict. Tolerate that objects may have an attr named "__dict__" that's not a dict (Py_None popped up during testing). test_descr.py, test_dir(): Test the new classic-class behavior; beef up the new-style class test similarly. test_pyclbr.py, checkModule(): dir(C) is no longer a synonym for C.__dict__.keys() when C is a classic class (looks like the same thing that burned distutils! -- should it be *made* a synoym again? Then it would be inconsistent with new-style class behavior.). 04 September 2001, 01:20:04 UTC
a8aefe5 Don't use dir() to find instance attribute names. 03 September 2001, 15:47:21 UTC
49417e7 Fix the names of _PyObject_GC_TRACK and _PyObject_GC_UNTRACK when the GC is disabled. Obviously everyone enables the GC. :-) 03 September 2001, 15:44:48 UTC
0628a66 Restore a line deleted by mistake. 03 September 2001, 08:44:02 UTC
32f453e New restriction on pow(x, y, z): If z is not None, x and y must be of integer types, and y must be >= 0. See discussion at http://sf.net/tracker/index.php?func=detail&aid=457066&group_id=5470&atid=105470 03 September 2001, 08:35:41 UTC
5d2b77c Make dir() wordier (see the new docstring). The new behavior is a mixed bag. It's clearly wrong for classic classes, at heart because a classic class doesn't have a __class__ attribute, and I'm unclear on whether that's feature or bug. I'll repair this once I find out (in the meantime, dir() applied to classic classes won't find the base classes, while dir() applied to a classic-class instance *will* find the base classes but not *their* base classes). Please give the new dir() a try and see whether you love it or hate it. The new dir([]) behavior is something I could come to love. Here's something to hate: >>> class C: ... pass ... >>> c = C() >>> dir(c) ['__doc__', '__module__'] >>> The idea that an instance has a __doc__ attribute is jarring (of course it's really c.__class__.__doc__ == C.__doc__; likewise for __module__). OTOH, the code already has too many special cases, and dir(x) doesn't have a compelling or clear purpose when x isn't a module. 03 September 2001, 05:47:38 UTC
95c99e5 Made a doctest out of the examples in Guido's type/class tutorial. 03 September 2001, 01:24:30 UTC
b7da090 Clarify the Borland situation, based on email from Stephen. 02 September 2001, 23:01:43 UTC
b95ec09 Repair typo in comment. 02 September 2001, 18:35:54 UTC
13b54a9 Added the last few missing files, and put everything in the right packages. Tested, too:-) 02 September 2001, 14:48:32 UTC
e7a9598 Implement what the docstring said: multiple slashes per line are treated the same as single ones by default. Added -m option to issue a warning for this case instead. 02 September 2001, 14:11:30 UTC
aaf80c8 Add news about dictionary() constructor. 02 September 2001, 13:44:35 UTC
25786c0 Make dictionary() a real constructor. Accepts at most one argument, "a mapping object", in the same sense dict.update(x) requires of x (that x has a keys() method and a getitem). Questionable: The other type constructors accept a keyword argument, so I did that here too (e.g., dictionary(mapping={1:2}) works). But type_call doesn't pass the keyword args to the tp_new slot (it passes NULL), it only passes them to the tp_init slot, so getting at them required adding a tp_init slot to dicts. Looks like that makes the normal case (i.e., no args at all) a little slower (the time it takes to call dict.tp_init and have it figure out there's nothing to do). 02 September 2001, 08:22:48 UTC
1b8ca0d Rewrite the tuple() docstring to parallel the list() docstring. 02 September 2001, 06:42:25 UTC
9577761 Repair apparent cut'n'pasteo in tuple() docstring. 02 September 2001, 06:29:48 UTC
b866770 Move the long minidom example to a separate file; \verbatiminput does the right thing with page breaks in long examples, while the verbatim environment does not. This causes the example to wrap to the next page instead of overwriting the page footer and bottom margin. 02 September 2001, 06:07:36 UTC
cb6d0da An anonymous contributor reveals his name... 02 September 2001, 05:07:17 UTC
13c51ec Added more text to the docstring, updated the way the exit status is percolated out, and some general cleanup. The output is still the same, except it now prints "Index: <file>" instead of "Processing: <file>", so that the output can be used as input for patch (but only the diff-style parts of it). 02 September 2001, 04:49:36 UTC
43db62e A grep-like tool that looks for division operators. 02 September 2001, 04:43:30 UTC
aa78236 Whitespace normalization (tabs -> 4 spaces) in the Mac expectations. 02 September 2001, 03:58:41 UTC
bdee63f Start items w/ "-" instead of "+" (consistency w/ earlier versions). Stephen Hansen reported via email that he didn't finish the port to Borland C, so remove the old item saying it worked and add a new item saying what I know; I've asked Stephen for more details. 02 September 2001, 03:40:59 UTC
6114297 Silly typos. 02 September 2001, 00:09:35 UTC
569ba10 Don't call PyMac_HandleEvent in unix-Python 02 September 2001, 00:08:16 UTC
38c4dd4 Regenerated, mainly for new GC routines. 01 September 2001, 23:42:11 UTC
b18ced2 xx.prj has been replaced by xx.mcp. 01 September 2001, 23:40:19 UTC
fabd00f Added glue routine for PyMac_BuildFSSpec, PyMac_GetFSRef and PyMac_BuildFSRef. Moved the declarations to pymactoolbox.h. 01 September 2001, 23:39:58 UTC
62d24a0 Don't call PyMac_HandleEvent if we're in unix-Python. 01 September 2001, 23:38:50 UTC
e9fb3d6 Include Carbon/Carbon.h if we're on OSX. 01 September 2001, 23:38:13 UTC
0de279b Updated the Popt resources for the applets to the newest version. 01 September 2001, 23:37:28 UTC
ff5d8aa Added preferences/startup options for division warning and accepting unix-style newlines on input. Also (finally) added a startup option to get -vv behaviour. Moved __convert_to_newlines to main.c because that's easier with the newline option. 01 September 2001, 22:37:54 UTC
a5ffeb6 Added preferences/startup options for division warning and accepting unix-style newlines on input. 01 September 2001, 22:36:29 UTC
822218b The beginnings of a script to help finding / operators that may need to be change to //. The code is pretty gross so far, and I promise I'll work on this more, but I have to go eat now! :-) 01 September 2001, 21:55:58 UTC
a0adb92 Add Listbox.itemconfig[ure] call. (A "recent" addition to Tk -- 8.0 doesn't have it.) This is from SF bug #457487 by anonymous. 01 September 2001, 18:29:55 UTC
481cf2c Added the "Host" header to the "GET" example. This closes SF bug #457100. 01 September 2001, 02:35:23 UTC
ae45714 Add various and sundry news items -- most mine, one Barry's, one Michael Hudson's. 31 August 2001, 18:31:35 UTC
97741a3 Oops. The -W option takes args, not -X. 31 August 2001, 18:17:13 UTC
8031bbe Allow for the possibility that globals['__name__'] does not exist; substitute "<string>" for the module name in that case. This actually occurred when running test_descr.py with -Dwarn. 31 August 2001, 17:46:35 UTC
393661d Add warning mode for classic division, almost exactly as specified in PEP 238. Changes: - add a new flag variable Py_DivisionWarningFlag, declared in pydebug.h, defined in object.c, set in main.c, and used in {int,long,float,complex}object.c. When this flag is set, the classic division operator issues a DeprecationWarning message. - add a new API PyRun_SimpleStringFlags() to match PyRun_SimpleString(). The main() function calls this so that commands run with -c can also benefit from -Dnew. - While I was at it, I changed the usage message in main() somewhat: alphabetized the options, split it in *four* parts to fit in under 512 bytes (not that I still believe this is necessary -- doc strings elsewhere are much longer), and perhaps most visibly, don't display the full list of options on each command line error. Instead, the full list is only displayed when -h is used, and otherwise a brief reminder of -h is displayed. When -h is used, write to stdout so that you can do `python -h | more'. Notes: - I don't want to use the -W option to control whether the classic division warning is issued or not, because the machinery to decide whether to display the warning or not is very expensive (it involves calling into the warnings.py module). You can use -Werror to turn the warnings into exceptions though. - The -Dnew option doesn't select future division for all of the program -- only for the __main__ module. I don't know if I'll ever change this -- it would require changes to the .pyc file magic number to do it right, and a more global notion of compiler flags. - You can usefully combine -Dwarn and -Dnew: this gives the __main__ module new division, and warns about classic division everywhere else. 31 August 2001, 17:40:15 UTC
29d55a3 Fix a memory leak in str_subtype_new(). (All the other xxx_subtype_new() functions are OK, but I goofed up in this one. :-( ) 31 August 2001, 16:11:15 UTC
bfa47b0 Correct name mangling algorithm, and add a comment. 31 August 2001, 04:35:14 UTC
back to top