summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Another / that should be a // (previously not caught because ofGuido van Rossum2001-09-051-1/+1
| | | | incomplete coverage of the test suite).
* Add a test for the final branch in repr.Repr.repr1(), which deals withGuido van Rossum2001-09-051-0/+5
| | | | a default repr() that's longer than 20 characters.
* Return reasonable results for math.log(long) and math.log10(long) (we wereTim Peters2001-09-053-7/+104
| | | | | | 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).
* Mechanical fiddling to make this easier to work with in my editor.Tim Peters2001-09-041-18/+12
| | | | Repaired the ldexp docstring (said the name of the func was "ldexp_doc").
* Added prototypes to shut gcc -Wstrict-prototypes up.Jack Jansen2001-09-041-4/+2
|
* Shut up a few more gcc warnings.Jack Jansen2001-09-042-2/+2
|
* Added prototypes to silence gcc strict-prototype warnings.Jack Jansen2001-09-042-141/+48
| | | | Fixed a few missing return values.
* Regenerated without default int return types.Jack Jansen2001-09-0417-33/+35
|
* Don't use a default "int" return type, gcc gives a warning about it.Jack Jansen2001-09-041-1/+1
|
* Added pythonpath.r to the developer distribution. It'sJack Jansen2001-09-041-4/+12
| | | | | useful to people extending Python. Suggested by Alexandre Parenteau.
* At Guido's suggestion, here's a new C API function, PyObject_Dir(), likeTim Peters2001-09-045-138/+167
| | | | __builtin__.dir(). Moved the guts from bltinmodule.c to object.c.
* On MacOSX built the toolbox extension modules iff we're building withJack Jansen2001-09-041-25/+31
| | | | | | --enable-framework. Some modules that are also useful outside a fullblown application are always built.
* Template for an OSX PythonInterpreter application.Jack Jansen2001-09-046-0/+66
|
* Correction: the Borland C port isn't fully operational yetAndrew M. Kuchling2001-09-041-3/+4
|
* Photoshop sources for icon files. Not pretty, but hey! I'm not anJack Jansen2001-09-043-0/+0
| | | | artist (and a certain artist didn't jump in, yet).
* [Bug #444589] Record empty directories in the install_data commandAndrew M. Kuchling2001-09-041-4/+12
| | | | Slightly modified version of patch from Jon Nelson (jnelson).
* [Bug #436732] install.py does not record a created *.pth file in theAndrew M. Kuchling2001-09-041-2/+5
| | | | | INSTALLED_FILES output. Modified version of a patch from Jon Nelson (jnelson)
* Revert one of the "division fixes" in test_long. It intends to try bothTim Peters2001-09-041-2/+2
| | | | | | "/" 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).
* Make pprint more locale-friendly; patch contributed by Denis S. Otkidach.Fred Drake2001-09-041-3/+21
| | | | This closes SF patch #451538.
* [Bug #457654] bkgd() used a hard-coded A_NORMAL attribute, when it shouldAndrew M. Kuchling2001-09-041-1/+1
| | | | have used the attribute argument provided as a parameter
* Convert docstring to "raw" string.Fred Drake2001-09-041-13/+13
|
* The first batch of changes recommended by the fixdiv tool. These areGuido van Rossum2001-09-0419-38/+38
| | | | | mostly changes of / operators into //. Once or twice I did more or less than recommended.
* Added docstrings by Neal Norwitz. This closes SF bug #450980.Fred Drake2001-09-045-3/+89
|
* Move call_trace(..., PyTrace_CALL, ...) call to top of eval_frame. ThatNeil Schemenauer2001-09-041-35/+35
| | | | | way it's called each time a generator is resumed. The tracing of normal functions should be unaffected by this change.
* Added docstring by Neal Norwitz. This closes SF bug #450981.Fred Drake2001-09-041-35/+86
|
* Added docstring by Neal Norwitz. This closes SF bug #450979.Fred Drake2001-09-041-4/+10
|
* Add more detail to the descriptions of the shutil functions.Fred Drake2001-09-041-4/+9
| | | | This closes SF bug #458223.
* Added documentation for sys.maxunicode and sys.warnoptions.Fred Drake2001-09-041-1/+14
| | | | | Fixed a markup error which caused an em dash to be presented as a minus sign. This closes SF bug #458350.
* HTMLParser is allowed to be more strict than sgmllib, so let's notFred Drake2001-09-042-37/+17
| | | | | change their basic behavior: When parsing something that cannot possibly be valid in either HTML or XHTML, raise an exception.
* - Reverse the meaning of the -m option: warnings about multiple /Guido van Rossum2001-09-041-35/+85
| | | | | | | | | | | | | | 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.
* Suppressing all DeprecationWarning messages was a bit of a problem forGuido van Rossum2001-09-041-3/+3
| | | | | the -Qwarnall option, so I've changed this to only filter out the one warning that's a problem in practice.
* Suppress the warning about regex here.Guido van Rossum2001-09-041-0/+4
|
* Enhanced the test for DOCTYPE declarations, added a test for dealing withFred Drake2001-09-041-14/+23
| | | | broken declaration-like things.
* Added reasonable parsing of the DOCTYPE declaration, fixed edge casesFred Drake2001-09-041-12/+260
| | | | regarding bare ampersands in content.
* On the mac some library paths returned were outdated, some were outright funny.Jack Jansen2001-09-041-5/+3
| | | | Fixed.
* Disabled _curses modules on MacOSX. The curses version is a 1994 BSDJack Jansen2001-09-041-1/+2
| | | | curses, far too old for _cursesmodule.c.
* Whitespace normalization.Tim Peters2001-09-045-8/+7
|
* Fixed a typo and added more tests.Tim Peters2001-09-041-1/+12
|
* Change long/long true division to return as many good bits as it can;Tim Peters2001-09-043-2/+78
| | | | e.g., (1L << 40000)/(1L << 40001) returns 0.5, not Inf or NaN or whatever.
* Move int_true_divide next to the other division routines.Tim Peters2001-09-041-6/+6
|
* Move long_true_divide next to the other division routines (for clarity!).Tim Peters2001-09-041-6/+6
|
* Raise OverflowError when appropriate on long->float conversion. Most ofTim Peters2001-09-045-23/+76
| | | | | | | 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.
* PEP 238 documented -Qwarn as warning only for classic int or longGuido van Rossum2001-09-044-7/+11
| | | | | division, and this makes sense. Add -Qwarnall to warn for all classic divisions, as required by the fixdiv.py tool.
* Rename the -D option to -Q, to avoid a Jython option name conflict.Guido van Rossum2001-09-043-13/+13
|
* Introduce new private API function _PyLong_AsScaledDouble. Not used yet,Tim Peters2001-09-042-0/+61
| | | | | | | | | | 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.
* builtin_dir(): Treat classic classes like types. Use PyDict_Keys insteadTim Peters2001-09-043-28/+52
| | | | | | | | | | | | | | 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.).
* Don't use dir() to find instance attribute names.Neil Schemenauer2001-09-031-3/+7
|
* Fix the names of _PyObject_GC_TRACK and _PyObject_GC_UNTRACK when the GC isNeil Schemenauer2001-09-031-2/+2
| | | | disabled. Obviously everyone enables the GC. :-)
* Restore a line deleted by mistake.Tim Peters2001-09-031-0/+2
|
* New restriction on pow(x, y, z): If z is not None, x and y must be ofTim Peters2001-09-039-49/+79
| | | | | 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