| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
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);
|
| |
|
|
|
|
|
|
| |
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.)
|
|
|
|
| |
for urllib.
|
|
|
|
|
| |
with a NULL value), in a somewhat lame way: call the set() function
with one argument. Should I add a 3rd function, 'del', instead?
|
|
|
|
|
|
|
| |
Thomas Hellor on python-dev).
slot_tp_descr_set(): if value is NULL, call __del__ instead of
__set__.
|
|
|
|
| |
getset_doc: add docstring.
|
| |
|
|
|
|
|
| |
__future__.py reverted to 1.9.
newmodule.c reverted to 2.32.
|
| |
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
This implements the 'getset' class from test_binop.py.
|
| |
|
|
|
|
| |
being passed as both the 2nd and 3rd args). Regression test will follow.
|
|
|
|
|
|
| |
modules and extensions on Windows is now $PREFIX/Lib/site-packages.
Includes backwards compatibility code for pre-2.2 Pythons. Contributed
by Paul Moore.
|
| |
|
| |
|
|
|
|
|
| |
DateTime constructor. use ServerProxy instead of Server in sample
code.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ChipWidget.__init__(): Added a message area just below the color
name. Both the message and name widgets are now FLAT, DISABLED
Entry widgets instead of Labels. This allows users to
copy-n-paste the color names or color specs. Also, the contents
of both widgets are now driven by StringVars.
set_color(): This only sets the chip color; it does not set the name
widgets.
set_name(): New method which only sets the name widget contents.
set_message(): New method which only sets the message widget contents.
ChipViewer.update_yourself(): Set the color, name, and message for
each chip as follows: the first line always contains the color
spec in #rrggbb format. The second line will contain the color
name, but slightly differently for each widget. For the Selected
widget, if the color exactly matches the Nearest color, the name
is shown, otherwise the message field will be empty. The name
field of the Nearest widget will always contain the color name.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
usage is through a wrapper module (without underscore) which lives in the Carbon package.
|
|
|
|
| |
ftp urls.
|
|
|
|
| |
or you will break something:-)
|
|
|
|
| |
SchedParams() method, and there's no need to call it anyway.
|
|
|
|
| |
OverflowError test succeed.
|
|
|
|
|
|
|
|
| |
python -Wdefault
or
python -Wdefault::OverflowWarning
|
|
|
|
| |
warning and then redo the operation using long ints.
|
|
|
|
|
| |
raise the exception here -- call the generic function (which may
convert the arguments to long and try again).
|
|
|
|
| |
are overflowing and a long int operation is substituted.
|
|
|
|
| |
we've *ever* installed them!
|
| |
|
|
|
|
| |
2.2a2 release, but it's still worth mentioning.
|
|
|
|
| |
level to 2.2a2+
|
| |
|
|
|
|
| |
platform dependent. See SF bug 434143.
|
|
|
|
| |
see SF bug 434143, part of which this addresses
|
| |
|
| |
|
|
|
|
| |
long? :-).
|
|
|
|
| |
surfaced again.
|
|
|
|
|
|
|
|
|
|
| |
- file URL now starts with "file://" (standard) rather than "file:"
- new optional argument 'context' to enable()
- repeated variable names don't have their values shown twice
- dotted attributes are shown; missing attributes handled reasonably
- highlight the whole logical line even if it has multiple physical lines
- use nice generator interface to tokenize
- formatting fixed so that it looks good in lynx, links, and w3m too
|
|
|
|
|
| |
incarnations. It's probably not quite sufficient, but should be better than
the status quo...
|