| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This closes SF bug #420851.
|
| |
|
|
|
|
|
|
| |
to include various characters used in code samples, URLs, and other special
contexts.
This closes SF bug #525684.
|
|
|
|
|
| |
(dropping tildes into data that still goes through LaTeX-like processing is
a bad idea).
|
| |
|
|
|
|
|
| |
module dictionary directly. Also, be more careful about not re-initializing
globals in the event of re-initialization of a C extension.
|
|
|
|
|
| |
by stat and time functions.
This closes SF patch #523271.
|
|
|
|
| |
Bugfix candidate.
|
|
|
|
|
|
|
|
|
|
| |
There were several places that assumed the md_dict field was always
set, but it needn't be. Fixed these to be more careful.
I changed PyModule_GetDict() to initialize md_dict to a new dictionary
if it's NULL.
Bugfix candidate.
|
|
|
|
|
| |
other PyObject *.
This closes SF bug #494007.
|
|
|
|
| |
This closes SF bug #517684.
|
| |
|
| |
|
|
|
|
|
| |
525481. (Probably not a 2.2.1 candidate, unless the fix that introduced a
long double into objimpl.h (rev. 2.44) is backported to 2.2.1).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
and (b) stop trying to prevent file growth.
Beef up the file.truncate() docs.
Change test_largefile.py to stop assuming that f.truncate() moves the
file pointer to the truncation point, and to verify instead that it leaves
the file position alone. Remove the test for what happens when a
specified size exceeds the original file size (it's ill-defined, according
to the Single Unix Spec).
|
| |
|
|
|
|
|
| |
because of the way the tk text widget handles
tabs they must remain a fixed size in idle
|
|
|
|
| |
editor font
|
|
|
|
|
| |
(with only minor changes by Fred).
This closes SF bug #498607.
|
|
|
|
| |
the dependency information.
|
| |
|
| |
|
| |
|
|
|
|
| |
Use IOErrors where file objects use them.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
dropping MS's inadequate _chsize() function. This was inspired by
SF patch 498109 ("fileobject truncate support for win32"), which I
rejected.
libstdtypes.tex: Someone who knows should update the availability
blurb. For example, if it's available on Linux, it would be good to
say so.
test_largefile: Uncommented the file.truncate() tests, and reworked to
do more. The old comment about "permission errors" in the truncation
tests under Windows was almost certainly due to that the file wasn't open
for *write* access at this point, so of course MS wouldn't let you
truncate it. I'd be appalled if a Unixish system did.
CAUTION: Someone should run this test on Linux (etc) too. The
truncation part was commented out before. Note that test_largefile isn't
run by default.
|
|
|
|
|
|
|
| |
Adapter from SF patch 528038; fixes SF bug 527816.
The wrapper for __nonzero__ should be wrap_inquiry rather than
wrap_unaryfunc, since the slot returns an int, not a PyObject *.
|
| |
|
|
|
|
| |
Fixes #527855.
|
|
|
|
|
|
|
| |
Adapter from SF patch 528038; fixes SF bug 527816.
The wrapper for __nonzero__ should be wrap_inquiry rather than
wrap_unaryfunc, since the slot returns an int, not a PyObject *.
|
|
|
|
|
|
| |
There's no actual patch there. It's an objection that Guido's example
doesn't actually generator "leaves", so change the comment that says
it does.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Don't automatically add a Host: header if the headers passed to
request() already has a Host key.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Another year in the quest to out-guess random C behavior.
Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y). The latter
is useful for functions with complex results. Two corrections to errno-
after-libm-call are attempted:
1. If the platform set errno to ERANGE due to underflow, clear errno.
Some unknown subset of libm versions and link options do this. It's
allowed by C89, but I never figured anyone would do it.
2. If the platform did not set errno but overflow occurred, force
errno to ERANGE. C89 required setting errno to ERANGE, but C99
doesn't. Some unknown subset of libm versions and link options do
it the C99 way now.
Bugfix candidate, but hold off until some Linux people actually try it,
with and without -lieee. I'll send a help plea to Python-Dev.
|
|
|
|
|
| |
that it didn't tell enough of the truth.
Bugfix candidate (I guess -- it helps and it's harmless).
|
|
|
|
| |
in the installation and how that location is determined).
|
|
|
|
| |
Untested, of course.
|
|
|
|
|
| |
It seems that the new class HTTP11 in httplib.test() isn't
discoverable by pyclbr, which causes this test to fail.
|
|
|
|
|
| |
If result == Py_NotImplemented, always DECREF it before assigning a
new value to result.
|
|
|
|
|
|
| |
PyNumber_Add() tries the nb_add slot first, then falls back to
sq_concat. However, tt didn't check the return value of sq_concat.
If sq_concat returns NotImplemented, raise the standard TypeError.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In August, Greg said this looked good, so I'm going ahead with it.
The fix is different from the one in the bug report. Instead of using
a regular expression to extract the host from the url, I use
urlparse.urlsplit.
Martin commented that the patch doesn't address URLs that have basic
authentication username and password in the header. I don't see any
code anywhere in httplib that supports this feature, so I'm not going
to address it for this fix.
Bug fix candidate.
|
|
|
|
|
| |
documentation purposes. These implementations are the same as the
ones suggested by Skip in the bug report.
|
|
|
|
|
|
|
|
|
| |
asyncore.poll, the select fails with EINTR, which the
code catches. However, the code fails to clear the
r/w/e arrays (like poll3 does), which means it acts as
if every descriptor had received all possible events.
Bug report and patch by Cesar Eduardo Barros
|
| |
|
|
|
|
|
| |
were originally rfc822-like line continuations.
Modified version of a patch from Matthias Ralfs.
|
|
|
|
|
|
|
| |
characters in strings being passed via XML-RPC.
Fix some typos.
2.2.1 bugfix candidate.
|