summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* If an integer constant can't be generated from an integer literalJeremy Hylton2001-08-271-5/+2
| | | | because of overflow, generate a long instead.
* SF bug [#455775] float parsing discrepancy.Tim Peters2001-08-272-5/+23
| | | | PyTokenizer_Get: error if exponent contains no digits (3e, 2.0e+, ...).
* Added Dean Draayer to the thank you list.Jack Jansen2001-08-271-2/+2
|
* Patch by Dean Draayer: support for indeterminate progress bars. YouJack Jansen2001-08-271-27/+37
| | | | | | get these by specifying maxval=0, which is now also the default. Untested.
* Patch by Bill Noon: added 'dylib' as a library type along withJack Jansen2001-08-272-4/+9
| | | | | 'static' and 'shared'. This fixes extension building for dynamic Pythons on MacOSX.
* Fixes by Thomas Heller:Jack Jansen2001-08-275-12/+13
| | | | | | - make the selftests work again (they were apparently not used since very early in bgen's development), with some minor cleanup by me - make emacs python mode happier
* Refer to the toolbox modules by their official name (Carbon.AE), not the ↵Jack Jansen2001-08-271-59/+59
| | | | internal name (_AE). This can slow things down (once) but it's the only way I can get things to work on OSX, OS9 dynamically loaded and OS9 frozen.
* When we're freezing to sourcecode and one of the modules is a dynamic module ↵Jack Jansen2001-08-271-0/+4
| | | | that is in a package we freeze that module at toplevel (outside any package). Not optimal, but there is little more we can do as config.c has no way to specify a builtin module has to be dumped into a package.
* Updated to the current state of affairs.Jack Jansen2001-08-272-0/+0
|
* Added targets for building the Carbon and Classic interpreter if you don't ↵Jack Jansen2001-08-271-0/+0
| | | | want to go through fullbuild.py.
* - A forgotten "from Carbon".Jack Jansen2001-08-271-2/+3
| | | | | - Made the "killed unknown window" code dependent on a global var, so you can easily turn the behaviour off for IDE debugging.
* A few forgotten "from Carbon"s.Jack Jansen2001-08-272-2/+2
|
* SF patch [ #455137 ] Makes popen work with COMMAND.COM on WNT, fromTim Peters2001-08-273-9/+26
| | | | Brian Quinlan.
* Two improvements suggested by Greg Stein:Barry Warsaw2001-08-271-2/+5
| | | | | | | | | PyString_FromFormatV(): In the final resize at the end, we can use PyString_AS_STRING() since we know the object is a string and can avoid the typechecking. PyString_FromFormat(): GS sez: "For safety/propriety, you should call va_end() on the vargs variable."
* Import the MacOS toolbox modules from the Carbon package.Jack Jansen2001-08-25100-331/+336
|
* Step 2 in putting the MacOS toolbox modules in a package: issue a ↵Jack Jansen2001-08-2545-0/+135
| | | | DepracationWarning in the compatibility modules.
* PyString_FromFormatV: Massage platform %p output to match what gcc does,Tim Peters2001-08-251-0/+8
| | | | | | | at least in the first two characters. %p is ill-defined, and people will forever commit bad tests otherwise ("bad" in the sense that they fall over (at least on Windows) for lack of a leading '0x'; 5 of the 7 tests in test_repr.py failed on Windows for that reason this time around).
* Undo previous checkin -- Barry fixed it better.Guido van Rossum2001-08-241-2/+0
|
* Update test output to match new (more informative) error message aboutGuido van Rossum2001-08-241-2/+2
| | | | calling unbound method with wrong first argument.
* Quick and dirty fix for test_extcall failures trigged by Guido'sBarry Warsaw2001-08-242-4/+8
| | | | | | | recent classobject.c change. When calling an unbound method with no instances as first argument, the error message has changed. The message now contains the class name, but the output text being compared to is too generic, so skip printing it.
* Remove the local 'getset' class -- this is now a built-in type withGuido van Rossum2001-08-241-18/+0
| | | | the same signature.
* getset_init(): the function name in the PyArg_ParseTuple() formatGuido van Rossum2001-08-241-1/+1
| | | | should just be "getset", not "getset.__init__".
* Improve the error message issued when an unbound method is called withGuido van Rossum2001-08-241-3/+49
| | | | | | an inappropriate first argument. Now that there are more ways for this to fail, make sure to report the name of the class of the expected instance and of the actual instance.
* Rip the import repr truncation test out of here and put it in test_repr.pyBarry Warsaw2001-08-241-35/+0
|
* Added lots of tests for reprs of "simple" objects, such as file,Barry Warsaw2001-08-241-0/+156
| | | | | | | lambda (anonymous functions?), function, xrange, buffer, cell (need to fill in), and (some) descriptor types. Also added a new test case for testing repr truncation fixes.
* PyErr_Format(): Factor out most of this code intoBarry Warsaw2001-08-241-114/+1
| | | | | PyString_FromFormat() since it's much more generally useful than just for exceptions.
* repr's converted to using PyString_FromFormat() instead of sprintf'ingBarry Warsaw2001-08-2411-136/+95
| | | | | | into a hardcoded char* buffer. Closes patch #454743.
* PyString_FromFormat() and PyString_FromFormatV(): Largely ripped fromBarry Warsaw2001-08-242-0/+159
| | | | | | | | | | | | | | | | | | | PyErr_Format() these new C API methods can be used instead of sprintf()'s into hardcoded char* buffers. This allows us to fix many situation where long package, module, or class names get truncated in reprs. PyString_FromFormat() is the varargs variety. PyString_FromFormatV() is the va_list variety Original PyErr_Format() code was modified to allow %p and %ld expansions. Many reprs were converted to this, checkins coming soo. Not changed: complex_repr(), float_repr(), float_print(), float_str(), int_repr(). There may be other candidates not yet converted. Closes patch #454743.
* Repair repr of future-features (wasn't updated to include the newTim Peters2001-08-241-2/+3
| | | | compiler-flag argument).
* supers(): typo -- "if verify" should be "if verbose".Guido van Rossum2001-08-241-1/+1
|
* Add test suite for super().Guido van Rossum2001-08-241-0/+32
|
* Add 'super' builtin type.Guido van Rossum2001-08-241-0/+3
|
* Add decl of PySuper_Type; fixup comments for the two other types.Guido van Rossum2001-08-241-2/+3
|
* Add 'super', another new object type with magical properties.Guido van Rossum2001-08-241-0/+155
| | | | | | | | | | | super(type) -> unbound super object super(type, obj) -> bound super object; requires isinstance(obj, type) Typical use to call a cooperative superclass method: class C(B): def meth(self, arg): super(C, self).meth(arg);
* Add a test for the new getset type.Guido van Rossum2001-08-241-0/+24
|
* Change the getset type to take an optional third function argument:Guido van Rossum2001-08-241-9/+21
| | | | | | the delete function. (Question: should the attribute name also be recorded in the getset object? That makes the protocol more work, but may give us better error messages.)
* SF patch #454553 by Walter Dörwald: add content-type to FTP URLs, likeGuido van Rossum2001-08-241-4/+7
| | | | for urllib.
* getset_descr_set(): guard against deletion (indicated by a set callGuido van Rossum2001-08-241-1/+4
| | | | | with a NULL value), in a somewhat lame way: call the set() function with one argument. Should I add a 3rd function, 'del', instead?
* slot_tp_descr_get(): guard against NULL obj or type (bug reported byGuido van Rossum2001-08-241-2/+11
| | | | | | | Thomas Hellor on python-dev). slot_tp_descr_set(): if value is NULL, call __del__ instead of __set__.
* getset_init(): make the arguments optional.Guido van Rossum2001-08-241-3/+11
| | | | getset_doc: add docstring.
* Last renamed module that wasn't removed yet.Jack Jansen2001-08-241-1168/+0
|
* Back out trying to use the C values for CO_xxx.Tim Peters2001-08-242-41/+12
| | | | | __future__.py reverted to 1.9. newmodule.c reverted to 2.32.
* Looks like someone forgot the change the expected output file.Tim Peters2001-08-241-14/+14
|
* Add a test for the new // operator too.Tim Peters2001-08-231-0/+4
|
* SF bug [#454456] int overflow code needs tests.Tim Peters2001-08-231-0/+61
| | | | | Added tests for boundary cases in magical PEP 237 int->long auto-overflow, but nothing here addresses the rest of the bug report so left it open.
* float_pow: Put *all* of the burden on the libm pow in normalTim Peters2001-08-231-45/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | cases. powu: Deleted. This started with a nonsensical error msg: >>> x = -1. >>> import sys >>> x**(-sys.maxint-1L) Traceback (most recent call last): File "<stdin>", line 1, in ? ValueError: negative number cannot be raised to a fractional power >>> The special-casing in float_pow was simply wrong in this case (there's not even anything peculiar about these inputs), and I don't see any point to it in *any* case: a decent libm pow should have worst-case error under 1 ULP, so in particular should deliver the exact result whenever the exact result is representable (else its error is at least 1 ULP). Thus our special fiddling for integral values "shouldn't" buy anything in accuracy, and, to the contrary, repeated multiplication is less accurate than a decent pow when the true result isn't exactly representable. So just letting pow() do its job here (we may not be able to trust libm x-platform in exceptional cases, but these are normal cases).
* Add new built-in type 'getset' (PyGetSet_Type).Guido van Rossum2001-08-233-0/+141
| | | | This implements the 'getset' class from test_binop.py.
* err_ovf(): only raise OverflowError when OverflowWarning was raised.Guido van Rossum2001-08-231-1/+2
|
* int_pow(): Repair typo when passing on to float pow (the 2nd argument wasTim Peters2001-08-231-1/+1
| | | | being passed as both the 2nd and 3rd args). Regression test will follow.
* Patch #449054 to implement PEP 250. The standard install directory forGreg Ward2001-08-232-8/+22
| | | | | | modules and extensions on Windows is now $PREFIX/Lib/site-packages. Includes backwards compatibility code for pre-2.2 Pythons. Contributed by Paul Moore.