| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PEP 285. Everything described in the PEP is here, and there is even
some documentation. I had to fix 12 unit tests; all but one of these
were printing Boolean outcomes that changed from 0/1 to False/True.
(The exception is test_unicode.py, which did a type(x) == type(y)
style comparison. I could've fixed that with a single line using
issubtype(x, type(y)), but instead chose to be explicit about those
places where a bool is expected.
Still to do: perhaps more documentation; change standard library
modules to return False/True from predicates.
|
|
|
|
| |
Partly responds to SF bug #505152.
|
|
|
|
|
| |
Clarify that os.waitpid() on Windows takes a process handle, not a process ID.
This closes SF bug #537582.
|
|
|
|
|
|
|
|
|
| |
types for each code, and give the actual C types.
Clarified the support for slice operations and note when some TypeError
exceptions are raised.
This closes SF bugs 518767 and 536469.
|
| |
|
|
|
|
| |
but at least the content is there.
|
| |
|
| |
|
| |
|
|
|
|
| |
extend sys.path using .pth files.
|
|
|
|
|
|
|
|
| |
This closes SF bug #520904.
Explain that many of the escapes supported by string literals are also
supported by the RE compiler, and list which ones.
This closes SF bug #529923.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This patch makes it possible to pass Warning instances as the first
argument to warnings.warn. In this case the category argument
will be ignored. The message text used will be str(warninginstance).
|
| |
|
|
|
|
|
| |
for (reported by Keith Briggs).
Wrap some very long lines.
|
|
|
|
|
|
| |
This was stated before, but a minor grammatical error made it difficult to be
sure of the meaning.
This closes SF bug #530143.
|
| |
|
| |
|
|
|
|
| |
builtin types
|
| |
|
| |
|
|
|
|
|
| |
Added examples of positive lookbehind assertions.
This closes SF bug #529708.
|
|
|
|
| |
only retained for backward compatibility with older versions of the library.
|
|
|
|
| |
This closes SF bug #517684.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
characters in strings being passed via XML-RPC.
Fix some typos.
2.2.1 bugfix candidate.
|
| |
|
| |
|
|
|
|
|
| |
Remove whitespace from the middle of an inline RE example; it was OK for
the typeset formats, but LaTeX2HTML is more touchy about this.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
- make array.array a type
- add Py_UNICODE arrays
- support +=, *=
|
|
|
|
| |
Reported by Steve Alexander.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bugfix candidate.
+ Updated dir() description to match actual 2.2 behavior.
+ Replaced the dir(sys) example with dir(struct), because the former
was way out of date and is bound to change frequently, while the
latter is stable.
+ Added a note cautioning that dir() is supplied primarily for
convenience at an interactive prompt (hoping to discourage its
use as the foundation of introspective code outside the core).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This closes SF bug #517811.
|
|
|
|
| |
LaTeX really falls flat on this one!
|
|
|
|
|
|
| |
where their capabilities intersect. Would be nice if people using non-
MSVC compilers (Borland etc) took a whack at doing something similar for
them (this code relies on the MS _cwait function).
|
| |
|
|
|
|
|
|
|
|
| |
NOTE: this seems a mess wrt which symbols are available on which
platforms. I can't fix it, but I didn't add to it <wink>, and
included an XXX comment about names claimed to be available on
Windows that aren't. If anyone can figure out the whole ugly truth,
I'm sure a better organization will suggest itself.
|