- 15 Aug, 2000 11 commits
-
-
Barry Warsaw authored
commonly used functions to convert an arbitrary binary string into a hexadecimal digit representation and back again. These are often (and often differently) implemented in Python. Best to have one common fast implementation. Specifically, binascii_hexlify(): a.k.a. b2a_hex() to return the hex representation of binary data. binascii_unhexlify(): a.k.a. a2b_hex() to do the inverse conversion (hex digits to binary data). The argument must have an even length, and must contain only hex digits, otherwise a TypeError is raised.
-
Barry Warsaw authored
after a brief conversation with TP. First, the return values of the PyString_* function calls should be checked for errors. Second, bit-manipulations should be used instead of division for spliting the byte up into its 4 bit digits.
-
Barry Warsaw authored
had yet-another Python implementation of a binary-data-to-hex-digit encoder!
-
Barry Warsaw authored
-
Barry Warsaw authored
to this module to mirror sha's hexdigest() method.
-
Fred Drake authored
PyErr_Restore().
-
Fred Drake authored
-
http://sourceforge.net/bugs/?func=detailbug&bug_id=111866&group_id=5470Tim Peters authored
This was a misleading bug -- the true "bug" was that hash(x) gave an error return when x is an infinity. Fixed that. Added new Py_IS_INFINITY macro to pyport.h. Rearranged code to reduce growing duplication in hashing of float and complex numbers, pushing Trent's earlier stab at that to a logical conclusion. Fixed exceedingly rare bug where hashing of floats could return -1 even if there wasn't an error (didn't waste time trying to construct a test case, it was simply obvious from the code that it *could* happen). Improved complex hash so that hash(complex(x, y)) doesn't systematically equal hash(complex(y, x)) anymore.
-
David Scherer authored
-
Mark Hammond authored
The existing win32_error() function now returns the new(ish) WindowsError, ensuring we get correct error messages.
-
Mark Hammond authored
Fix the parent of WindowsError - both the comments in this source file, and the previous exceptions.py have WindowsError as a sub-class of OSError.
-
- 14 Aug, 2000 14 commits
-
-
Mark Hammond authored
-
Fred Drake authored
string literals has not been tested on an MS_WIN16 platform; the trailing ";" was inside the #ifndef MS_WIN16, which should cause an error (missing semi-colon) when compiled with that symbol #defined.
-
Fred Drake authored
old Jitterbug interface.
-
Fred Drake authored
-
Fred Drake authored
big-endian machines and "little" for little-endian machines.
-
Fred Drake authored
<den@analyt.chem.msu.ru>.
-
Marc-André Lemburg authored
resized after creation. 0-length strings are usually shared and _PyString_Resize() fails on these shared strings. Fixes [ Bug #111667 ] unicode core dump.
-
Mark Hammond authored
Test for fix to bug #110673: os.abspatth() now always returns os.getcwd() on Windows, if an empty path is specified. It previously did not if an empty path was delegated to win32api.GetFullPathName())
-
Mark Hammond authored
Fix for Bug #110673: os.abspatth() now always returns os.getcwd() on Windows, if an empty path is specified. It previously did not if an empty path was delegated to win32api.GetFullPathName())
-
Mark Hammond authored
-
Mark Hammond authored
Support for building the new w9xpopen.exe, which is used for reliable popen operation on Windows 9x.
-
Mark Hammond authored
Ensure the "proxied" command's return code bubbles back up.
-
Mark Hammond authored
This is an enhancement to a prior patch (100941) ... [T]his patch removes the risk of deadlock waiting for the child previously present in certain cases. It adds tracking of all file handles returned from an os.popen* call and only waits for the child process, returning the exit code, on the closure of the final file handle to that child.
-
Fred Drake authored
by Edward K. Ream <edream@users.sourceforge.net> about FILE* values and incompatible C libraries in dynamically linked extensions. It is not clear (to me) how realistic the issue is, but it is better documented than not. This closes SourceForge bug #111520.
-
- 13 Aug, 2000 12 commits
-
-
Trent Mick authored
http://www.python.org/pipermail/python-checkins/2000-August/007072.html and make PCbuild/*.dsp PCbuild/*.dsw binary again.
-
-
Thomas Wouters authored
node, without checking if the node actually had more than one child. It can have only one node, though: '[' test ']'. This fixes it.
-
Vladimir Marangozov authored
-
Greg Ward authored
and is much better documented to boot.
-
Greg Ward authored
argument list.
-
Greg Ward authored
* use self.debug_print() for debug messages * uses now copy.copy() to copy lists * added 'shared_lib_extension=".dll"', ... , this is necessary if you want use the compiler class outside of the standard distutils build process. * changed result type of check_config_h() from int to string
-
Greg Ward authored
* changed some list.extend([...]) to list.append(...) * added '/g0' to compiler_options, so compiler doesn't stop after 100 warnings
-
Greg Ward authored
by the user.
-
Greg Ward authored
-
Greg Ward authored
-
Greg Ward authored
-
- 12 Aug, 2000 3 commits
-
-
Trent Mick authored
Properly end a comment block. It was terminated fine later but by a subsequent block and. It was also in #if 0. This patch is so trivial I can't believe I am talking about it. :)
-
Thomas Wouters authored
re-introducing com_assign_list, now unused. Removed it.
-
Trent Mick authored
return value to int is safe here because it previously checked that there will be no overflow.
-