- 19 Jun, 2001 7 commits
-
-
Barry Warsaw authored
-
Barry Warsaw authored
addition of interface for consistency with base64 module. Namely, encodestring(), decodestring(): New functions which accept a string object and return a string object. They just wrap the string in StringIOs and pass them to the encode() and decode() methods respectively. encodestring() accepts a default argument of quotetabs, defaulting to zero, which is passed on straight through to encode(). encode(): Fix the bug where an extra newline would always be added to the output, which prevented an idempotent roundtrip through encode->decode. Now, if the source string doesn't end in a newline, then the result string won't end in a newline. Also, extend the quotetabs argument semantics to include quoting embedded strings, which is also optional according to the RFC. test() -> main() "from quopri import *" also imports encodestring() and decodestring().
-
Barry Warsaw authored
new "simple generators" feature of 2.2. See PEP 255.
-
Neil Schemenauer authored
Mac/macglue.c into the core interpreter. This file contains the glue code that allows extension modules for Mac toolboxes to live in different shared libraries but still communicate with each other. The glue code is controlled by the USE_MAC_TOOLBOX_GLUE define. [checked in for Jack]
-
Jack Jansen authored
Mac/macglue.c into the core interpreter. This file contains the glue code that allows extension modules for Mac toolboxes to live in different shared libraries but still communicate with each other. The glue code is controlled by the USE_MAC_TOOLBOX_GLUE define.
-
Tim Peters authored
stmt. Along w/ the preceding change to keyword.py, making all this work w/ a future-stmt just looks harder and harder.
-
Tim Peters authored
-
- 18 Jun, 2001 9 commits
-
-
Tim Peters authored
Mark Favas).
-
Barry Warsaw authored
indent continuation lines, defined as lines following those that end in backslash. (py-compute-indentation): Support for py-continuation-offset.
-
Tim Peters authored
check correctly on pack(). While these were checking OK on my 32-bit box, Mark Favas reported failures on a 64-bit box (alas, easy to believe).
-
Tim Peters authored
Bugfix candidate in inspect.py: it was referencing "self" outside of a method.
-
Tim Peters authored
i_divmod: New and simpler algorithm. Old one returned gibberish on most boxes when the numerator was -sys.maxint-1. Oddly enough, it worked in the release (not debug) build on Windows, because the compiler optimized away some tricky sign manipulations that were incorrect in this case. Makes you wonder <wink> ... Bugfix candidate.
-
Andrew M. Kuchling authored
PyArg_ParseTuple() call. (2.1.1 bugfix candidate.)
-
Fred Drake authored
an external file.
-
Guido van Rossum authored
-
Martin v. Löwis authored
has_key, __getitem__, and __setitem__.
-
- 17 Jun, 2001 4 commits
-
-
Tim Peters authored
Also replaced a *star* style emphasis in the Representation Error section with an \emph{} thingie.
-
Marc-André Lemburg authored
-
Guido van Rossum authored
Summary: NAMESPACE support in imaplib.py Initial Comment: Support for the IMAP NAMESPACE extension defined in rfc 2342. This is almost a necessity for working with modern IMAP servers.
-
Martin v. Löwis authored
Allow application to set a new content handler and lex_prop handler during parsing. Closes bug #433761. Small hack to make expat be ignored in Jython.
-
- 16 Jun, 2001 8 commits
-
-
Fred Drake authored
and trace functions lazily, which incurs extra argument pushing and checks in the C overhead for profiling/tracing, create the strings semi-lazily when the Python code first registers a profile or trace function. This simplifies the trampoline into the profile/trace functions.
-
Tim Peters authored
#if/#error constructs.
-
Martin v. Löwis authored
-
Tim Peters authored
the need for the F_ERROR macro.
-
Tim Peters authored
-
Tim Peters authored
-
Tim Peters authored
Gave Python linear-time repr() implementations for dicts, lists, strings. This means, e.g., that repr(range(50000)) is no longer 50x slower than pprint.pprint() in 2.2 <wink>. I don't consider this a bugfix candidate, as it's a performance boost. Added _PyString_Join() to the internal string API. If we want that in the public API, fine, but then it requires runtime error checks instead of asserts.
-
Tim Peters authored
call_object: If the object isn't callable, display its type in the error msg rather than its repr. Bugfix candidate.
-
- 15 Jun, 2001 3 commits
-
-
Fred Drake authored
it should, but only enough that LaTeX2HTML doesn't bite us.
-
Fred Drake authored
-
Thomas Wouters authored
Protect several more uses of constants with #ifdefs; these are necessary on (at least) SCO OpenServer 5. Fixes a non-SF-submitted bugreport by Michael Kent.
-
- 14 Jun, 2001 8 commits
-
-
Guido van Rossum authored
-
Tim Peters authored
-
Guido van Rossum authored
some code for longer than needed.
-
Fred Drake authored
-
Tim Peters authored
significant digits sign bits. Again no change in semantics.
-
Tim Peters authored
is allocated than needed (used to allocate 80 bytes of digit space no matter how small the long input). This also runs faster, at least on 32- bit boxes.
-
Tim Peters authored
-
Tim Peters authored
the new PyLong_{As,From}{Unsigned,}LongLong tests, so the bulk of the code is in the new #include file testcapi_long.h, which generates different code depending on how macros are set. This sucks, but I couldn't think of anything that sucked less. UNIX headache? If we still maintain dependencies by hand, someone who knows what they're doing should teach whatever needs it that _testcapimodule.c includes testcapi_long.h.
-
- 13 Jun, 2001 1 commit
-
-
Tim Peters authored
Unfortunately, the std-mode bBhHIL codes don't do any range-checking; if and when some of those get fixed, remove their letters from the IntTester.BUGGY_RANGE_CHECK string. In the meantime, a msg saying that range-tests are getting skipped is printed to stdout whenever one is skipped.
-