- 30 Oct, 2007 5 commits
-
-
Guido van Rossum authored
Before sys.stderr is set to the proper thing, set it to a really simple file-like object that can print tracebacks using direct file descriptor I/O. This is handy for debugging.
-
Bill Janssen authored
-
Bill Janssen authored
-
Georg Brandl authored
-
Guido van Rossum authored
Add a closefd flag to open() which can be set to False to prevent closing the file descriptor when close() is called or when the object is destroyed. Useful to ensure that sys.std{in,out,err} keep their file descriptors open when Python is uninitialized. (This was always a feature in 2.x, it just wasn't implemented in 3.0 yet.)
-
- 29 Oct, 2007 4 commits
-
-
Martin v. Löwis authored
-
Guido van Rossum authored
This patch corrects test_fileinput on Windows: when redirecting stdout, os.open should be given O_BINARY, because the file descriptor is then wrapped in a text-mode file; os.fdopen(fd, "w").
-
Fred Drake authored
-
Guido van Rossum authored
and my own interpretation). Don't pass the newline= flag to StringIO in SpooledTemporaryFile. This avoids doubling newlines when the file is rolled over.
-
- 27 Oct, 2007 7 commits
-
-
Neal Norwitz authored
errors in test_urllib2net on the MIPS buildbot.
-
Neal Norwitz authored
ord()s in Lib/plat-mac/ic.py need to be removed.
-
Neal Norwitz authored
are some unicode values used. I'm not sure if this is the correct on all operating systems, but this works on Linux w/o unicode.
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Neal Norwitz authored
making it unicode with the default encoding. I'm not sure if this is a problem in and of itself. However, the test seems to be testing something different, so at least get that working. Need to revisit the unicode problem.
-
Neal Norwitz authored
-
- 26 Oct, 2007 9 commits
-
-
Guido van Rossum authored
Changed bytes.fromhex to take a str argument, as the docstring promises. Added str8.fromhex (untested so far).
-
Guido van Rossum authored
(We should also kill the other PyString_ encode/decode APIs, but they still have some users.)
-
Guido van Rossum authored
about whether it's testing str8 or str... The stuff that matters is already tested in test_unicode.py anyway.
-
Guido van Rossum authored
Add a bytes iterator (copied from stringobject.c and reindented :-). I (Guido) added a small change to _abcoll.py to remove the registration of bytes as a virtual subtype of Iterator -- the presence of __iter__ will handle that now.
-
Guido van Rossum authored
Move most of the messiness with truncate() on Windows into _fileio.c. Still keep the flush() call in io.py though.
-
Neal Norwitz authored
-
Neal Norwitz authored
is larger than what can fit into a long (4 bytes). Hopefully this will fix more problems than it creates. There are many, many compile warnings on Win64. Each of these should be investigated to determine if they are real problems or not. Many of these presumably affect the trunk too.
-
Brett Cannon authored
bytes type.
-
Guido van Rossum authored
The patch fixes some of the problems on Windows. It doesn't introduce addition problems on Linux.
-
- 25 Oct, 2007 3 commits
-
-
Guido van Rossum authored
The patch fixes the output for profile and cProfile. Another patch from Alexandre and me added additional calls to the UTF-8 codec.
-
Guido van Rossum authored
This patch corrects a problem in test_file.py on Windows: f.truncate() seeks to the truncation point, but does not empty the buffers. In the test, f.tell() returns -1...
-
Guido van Rossum authored
and os.tmpfile().
-
- 24 Oct, 2007 7 commits
-
-
Georg Brandl authored
-
Georg Brandl authored
Also remove an unnecessary incref/decref for `name'.
-
Guido van Rossum authored
(It's still technically broken since the va_args code assumes %x is an int while we're passing a long, but that's mostly theoretical, and it's done all over the place.)
-
Guido van Rossum authored
issues with <ctype.h> on various platforms. We no longer use <ctype.h>.
-
Thomas Heller authored
Added unittest for calling a function with paramflags.
-
Georg Brandl authored
-
Guido van Rossum authored
Updates to ctypes for python 3.0 to make the tests pass. Notable changes are: - return bytes instead of str8 - integers in range(256) are accepted as "one char string": libc.strchr("abcdef", 98) is now valid. - directly use the wide-char version of the win32 function LoadLibrary.
-
- 23 Oct, 2007 5 commits
-
-
Guido van Rossum authored
Fix failing unittests for time and strptime on German and probably other localized Windows installations.
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-