- 01 Eki, 2001 20 kayıt (commit)
-
-
Fredrik Lundh yazdı
added local escape method (made the dumps method some 50-80% faster) minor tweaks to the unmarshalling code
-
Tim Peters yazdı
Patch from Steve Scott to add SIGBREAK support (unique to Windows).
-
Skip Montanaro yazdı
top level.
-
Skip Montanaro yazdı
-
Guido van Rossum yazdı
- SLOT1BINFULL() macro: changed this to check for __rop__ overriding __op__, like binary_op1() in abstract.c -- the latter only calls the slot function once if both types use the same slot function, so the slot function must make both calls -- which it already did for the __op__, __rop__ order, but not yet for the __rop__, __op__ order when B.__class__ is a subclass of A.__class__. - slot_sq_contains(), slot_nb_nonzero(): use lookup_maybe() rather than lookup_method() which sets an exception which we then clear. - slot_nb_coerce(): don't give up when left argument's __coerce__ returns NotImplemented, but give the right argument a chance.
-
Guido van Rossum yazdı
(to see whether __rop__ should go before __op__) only when slotv is set. This saves a test+branch when only slotw is set.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Martin v. Löwis yazdı
-
Fred Drake yazdı
"boolean" --> "Boolean" (per the style guide).
-
Martin v. Löwis yazdı
-
Guido van Rossum yazdı
-
Fred Drake yazdı
as container objects rather than as mapping objects (in the index entries). Change the section heading and intro sentence to be a little more general, since that's how things have actually evolved.
-
Guido van Rossum yazdı
-
Fred Drake yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
I modified nntplib so the body method can accept an optional second parameter pointing to a filehandle or filename (string). This way, really long body articles can be stored to disk instead of kept in memory. The way I made the modification should make it easy to extend this functionality to other extended return methods.
-
Guido van Rossum yazdı
-
Martin v. Löwis yazdı
-
- 30 Eyl, 2001 7 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
Decode and encode underscores for header style encoding. Fixes bug #463996.
-
Martin v. Löwis yazdı
-
Tim Peters yazdı
it acts more like assigning to keys in locals(), i.e. modifications to function locals aren't reflected in the locals when execfile() returns.
-
Tim Peters yazdı
-
Tim Peters yazdı
Replaced 3 instances of "iter() of non-sequence" with "iteration over non-sequence". Restored "unpack non-sequence" for stuff like "a, b = 1".
-
Tim Peters yazdı
Generalize PyLong_AsLongLong to accept int arguments too. The real point is so that PyArg_ParseTuple's 'L' code does too. That code was undocumented (AFAICT), so documented it.
-
- 29 Eyl, 2001 12 kayıt (commit)
-
-
Fred Drake yazdı
-
Guido van Rossum yazdı
recent user feedback: you must end the input with \n and you must use \n, not \r\n to represent line endings.
-
Skip Montanaro yazdı
-
Skip Montanaro yazdı
-
Fred Drake yazdı
whitespace characters to a single space. Small changes elsewhere, mostly to clean up the code a little.
-
Fred Drake yazdı
-
Fred Drake yazdı
This is probably a little bit faster, but mostly is just cleaner code. The old-style support is still used for Python versions < 2.2 so this source file can be shared with PyXML.
-
Fred Drake yazdı
every time this gets called; move it out as a global helper function. Simplify the call to the _dispatch() method of the registered instance.
-
Tim Peters yazdı
never been true, and in particular implies cmp() can't be used(!). Get closer to the truth.
-
Guido van Rossum yazdı
rewrite the code a bit to avoid calling the same slot more than once.
-
Guido van Rossum yazdı
Jeremy had seen the warning but not realized what he should do about it. Add the hint "Usually, copying Setup.dist to Setup will work."
-
Guido van Rossum yazdı
staticness when __dynamic__ = 1 becomes the default: - Some classes which are used to test the difference between static and dynamic. - Subclasses of complex: complex uses old-style numbers and the slot wrappers used by dynamic classes only support new-style numbers. (Ideally, the complex type should be fixed, but that looks like a labor-intensive job.)
-
- 28 Eyl, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
__rop__ now takes precendence over __op__. Those circumstances are: - Both arguments are new-style classes - Both arguments are new-style numbers - Their implementation slots for tp_op differ - Their types differ - The right argument's type is a subtype of the left argument's type Also did this for the ternary operator (pow) -- only the binary case is dealt with properly though, since __rpow__ is not supported anyway.
-