]> granicus.if.org Git - python/log
python
20 years agoFixed minor typo in interactive example (extra blank line)
Edward Loper [Tue, 28 Sep 2004 03:08:57 +0000 (03:08 +0000)]
Fixed minor typo in interactive example (extra blank line)

20 years agoSF bug #1033038: Misleading error message in random.choice
Raymond Hettinger [Tue, 28 Sep 2004 03:04:23 +0000 (03:04 +0000)]
SF bug #1033038:  Misleading error message in random.choice

Added a clarifying line to the docs.

20 years agoFixed minor typo in interactive example
Edward Loper [Tue, 28 Sep 2004 02:56:45 +0000 (02:56 +0000)]
Fixed minor typo in interactive example

20 years agoFixed minor typo in interactive example (backslash shouldn't be doubled)
Edward Loper [Tue, 28 Sep 2004 02:54:54 +0000 (02:54 +0000)]
Fixed minor typo in interactive example (backslash shouldn't be doubled)

20 years agoUpdated interactive examples in the "Examples" session to reflect the
Edward Loper [Tue, 28 Sep 2004 02:53:50 +0000 (02:53 +0000)]
Updated interactive examples in the "Examples" session to reflect the
fact that compiler.ast.Function now takes a "decorators" argument.

20 years agoSilence a compiler warning by supplying the correct argument type to
Raymond Hettinger [Tue, 28 Sep 2004 02:19:40 +0000 (02:19 +0000)]
Silence a compiler warning by supplying the correct argument type to
the htons() function.

20 years agoUse Py_CLEAR(). Add unrelated test.
Raymond Hettinger [Tue, 28 Sep 2004 01:51:35 +0000 (01:51 +0000)]
Use Py_CLEAR().  Add unrelated test.

20 years agoMajor overhaul to reflect Optik 1.5. Section references currently broken.
Greg Ward [Tue, 28 Sep 2004 01:30:23 +0000 (01:30 +0000)]
Major overhaul to reflect Optik 1.5.  Section references currently broken.

20 years agoPlug a leak and beef-up test coverage.
Raymond Hettinger [Tue, 28 Sep 2004 00:03:54 +0000 (00:03 +0000)]
Plug a leak and beef-up test coverage.

20 years agoRename test for comparision errors.
Raymond Hettinger [Mon, 27 Sep 2004 23:11:35 +0000 (23:11 +0000)]
Rename test for comparision errors.

20 years agoBeef-up tests for greater coverage and refcount checking.
Raymond Hettinger [Mon, 27 Sep 2004 22:48:40 +0000 (22:48 +0000)]
Beef-up tests for greater coverage and refcount checking.

20 years agoPatch #1009075, bug #952953: allow execve with empty 2nd argument
Armin Rigo [Mon, 27 Sep 2004 19:54:33 +0000 (19:54 +0000)]
Patch #1009075, bug #952953: allow execve with empty 2nd argument

20 years agoPatch #1011240: SystemError generated by struct.pack('P', 'foo').
Armin Rigo [Mon, 27 Sep 2004 19:27:51 +0000 (19:27 +0000)]
Patch #1011240: SystemError generated by struct.pack('P', 'foo').

20 years agoTrivial bug fix: deque == [] is not a good way to check if a deque is empty.
Armin Rigo [Mon, 27 Sep 2004 17:49:00 +0000 (17:49 +0000)]
Trivial bug fix:  deque == []  is not a good way to check if a deque is empty.

20 years agoUse floor division operator.
Raymond Hettinger [Mon, 27 Sep 2004 15:29:05 +0000 (15:29 +0000)]
Use floor division operator.

20 years agoUse floor division operator.
Raymond Hettinger [Mon, 27 Sep 2004 14:23:40 +0000 (14:23 +0000)]
Use floor division operator.

20 years ago- Added a "parser" option to testfile() and DocFileTest().
Edward Loper [Mon, 27 Sep 2004 04:08:20 +0000 (04:08 +0000)]
- Added a "parser" option to testfile() and DocFileTest().

20 years ago- Added a "parser" option to testfile() and DocFileTest().
Edward Loper [Mon, 27 Sep 2004 03:42:58 +0000 (03:42 +0000)]
- Added a "parser" option to testfile() and DocFileTest().

20 years ago- Fixed typo in multi-line exception example
Edward Loper [Mon, 27 Sep 2004 03:30:44 +0000 (03:30 +0000)]
- Fixed typo in multi-line exception example
- Fixed indentation for a verbatim block

20 years agoGive a saner example for script_from_examples(); also mention an intended
Tim Peters [Sun, 26 Sep 2004 21:51:25 +0000 (21:51 +0000)]
Give a saner example for script_from_examples(); also mention an intended
but not entirely obvious use case.

20 years agoMade most module references "clickable".
Tim Peters [Sun, 26 Sep 2004 21:05:03 +0000 (21:05 +0000)]
Made most module references "clickable".

20 years agoDocs for run_docstring_examples().
Tim Peters [Sun, 26 Sep 2004 20:45:04 +0000 (20:45 +0000)]
Docs for run_docstring_examples().

20 years agoCheckin Tim's fix to an error discussed on python-dev.
Raymond Hettinger [Sun, 26 Sep 2004 19:24:20 +0000 (19:24 +0000)]
Checkin Tim's fix to an error discussed on python-dev.
Also, add a testcase.

Formerly, the list_extend() code used several local variables to remember
its state across iterations.  Since an iteration could call arbitrary
Python code, it was possible for the list state to be changed.  The new
code uses dynamic structure references instead of C locals.  So, they
are always up-to-date.

After list_resize() is called, its size has been updated but the new
cells are filled with NULLs.  These needed to be filled before arbitrary
iteration code was called; otherwise, that code could attempt to modify
a list that was in a semi-invalid state.  The solution was to change
the ob->size field back to a value reflecting the actual number of valid
cells.

20 years agoMake the regex pattern easier to read, understand, and modify
Raymond Hettinger [Sun, 26 Sep 2004 18:56:44 +0000 (18:56 +0000)]
Make the regex pattern easier to read, understand, and modify
by factoring out the common prefix (the delimiter).

20 years agoReplace -soname with -h for Solaris compatibility. Fixes #1034496.
Martin v. Löwis [Sun, 26 Sep 2004 17:26:55 +0000 (17:26 +0000)]
Replace -soname with -h for Solaris compatibility. Fixes #1034496.
Backported to 2.3.

20 years agoUpdated doctest doc news.
Tim Peters [Sun, 26 Sep 2004 05:13:18 +0000 (05:13 +0000)]
Updated doctest doc news.

20 years agoAdded a lot of new stuff to the debugging section.
Tim Peters [Sun, 26 Sep 2004 05:09:59 +0000 (05:09 +0000)]
Added a lot of new stuff to the debugging section.

20 years agoRemoved debug_script from the public API: no docs, not public. I'm in
Tim Peters [Sun, 26 Sep 2004 03:50:06 +0000 (03:50 +0000)]
Removed debug_script from the public API:  no docs, not public.  I'm in
the process of writing docs for the other "missing" debug support
functions.

20 years agoregister_optionflag(): Moved from the Debugging section to the section
Tim Peters [Sun, 26 Sep 2004 02:38:41 +0000 (02:38 +0000)]
register_optionflag():  Moved from the Debugging section to the section
on option flags; added a versionadded decoration.

20 years agoDocument set_unittest_reportflags().
Tim Peters [Sun, 26 Sep 2004 02:12:40 +0000 (02:12 +0000)]
Document set_unittest_reportflags().

20 years agoAdd set_unittest_reportflags() to the public API. Docs will follow
Tim Peters [Sun, 26 Sep 2004 01:50:24 +0000 (01:50 +0000)]
Add set_unittest_reportflags() to the public API.  Docs will follow
"soon", after I repair the LaTeX I somehow damaged.

20 years agoRemoved two undocumented unittest support classes, and one undocumented
Tim Peters [Sun, 26 Sep 2004 01:24:23 +0000 (01:24 +0000)]
Removed two undocumented unittest support classes, and one undocumented
unittest support function, from the public interface.  If they're not
documented, they shouldn't be public.

20 years agoFix double word error.
Raymond Hettinger [Sat, 25 Sep 2004 08:09:23 +0000 (08:09 +0000)]
Fix double word error.

20 years agoAssorted minor changes, plus a lot more soap.
Tim Peters [Sat, 25 Sep 2004 03:50:35 +0000 (03:50 +0000)]
Assorted minor changes, plus a lot more soap.

20 years agoExplain the motivation for the unittest functions, and beef up the
Tim Peters [Sat, 25 Sep 2004 03:02:23 +0000 (03:02 +0000)]
Explain the motivation for the unittest functions, and beef up the
example.  Squash repeated argument descriptions.  Minor rewordings.

20 years agoRemoved most of the module docstring. There's too much to explain now,
Tim Peters [Sat, 25 Sep 2004 02:41:28 +0000 (02:41 +0000)]
Removed most of the module docstring.  There's too much to explain now,
and the LaTeX docs are in increasingly good shape.

20 years agoRepaired mistakes in the descriptions of testmod()/testfile(), and
Tim Peters [Sat, 25 Sep 2004 01:51:49 +0000 (01:51 +0000)]
Repaired mistakes in the descriptions of testmod()/testfile(), and
squashed massive duplication of common argument descriptions.

20 years agoAdd warning notation about using 'bomb' setting.
Brett Cannon [Sat, 25 Sep 2004 01:39:56 +0000 (01:39 +0000)]
Add warning notation about using 'bomb' setting.

20 years agoRemove 'extern' declaration for _Py_SwappedOp.
Brett Cannon [Sat, 25 Sep 2004 01:37:24 +0000 (01:37 +0000)]
Remove 'extern' declaration for _Py_SwappedOp.

20 years agoSince the doctest warnings section was reduced to one bullet point,
Tim Peters [Sat, 25 Sep 2004 01:30:16 +0000 (01:30 +0000)]
Since the doctest warnings section was reduced to one bullet point,
get rid of the itemize structure.

20 years agoIn the "doctest warnings" section, removed obsolete info, and noted that
Tim Peters [Sat, 25 Sep 2004 01:22:29 +0000 (01:22 +0000)]
In the "doctest warnings" section, removed obsolete info, and noted that
ELLIPSIS can be used to deal with examples that embed object addresses.

20 years agoRaymond observed that sometimes it's better not to link modules, so I reverted
Johannes Gijsbers [Sat, 25 Sep 2004 00:55:38 +0000 (00:55 +0000)]
Raymond observed that sometimes it's better not to link modules, so I reverted
part of my previous last changes.

20 years agoBeef up the section on testfile(), giving a complete example in
Tim Peters [Sat, 25 Sep 2004 00:49:53 +0000 (00:49 +0000)]
Beef up the section on testfile(), giving a complete example in
reStructuredText format.  Remove words describing the return value of
testmod() and testfile() in the intro sections, since it's never
useful in such simple cases.

20 years agoTypo.
Tim Peters [Sat, 25 Sep 2004 00:11:43 +0000 (00:11 +0000)]
Typo.

20 years agoSince the LaTeX isn't doctest'ed, examples are always wrong <wink>.
Tim Peters [Sat, 25 Sep 2004 00:10:53 +0000 (00:10 +0000)]
Since the LaTeX isn't doctest'ed, examples are always wrong <wink>.

20 years ago- Use itemize instead of plain-text '*' for marking up a list.
Johannes Gijsbers [Fri, 24 Sep 2004 23:25:25 +0000 (23:25 +0000)]
- Use itemize instead of plain-text '*' for marking up a list.
- Add more ulink's to modules (this should probably become a standard macro).

20 years agoWhitespace normalization.
Tim Peters [Fri, 24 Sep 2004 23:16:41 +0000 (23:16 +0000)]
Whitespace normalization.

20 years agoPort test_unpack to doctest (patch #736962).
Johannes Gijsbers [Fri, 24 Sep 2004 21:36:52 +0000 (21:36 +0000)]
Port test_unpack to doctest (patch #736962).

20 years agoAdd yet more tests for buffer().
Neil Schemenauer [Fri, 24 Sep 2004 19:18:42 +0000 (19:18 +0000)]
Add yet more tests for buffer().

20 years agoEnsure negative offsets cannot be passed to buffer(). When composing
Neil Schemenauer [Fri, 24 Sep 2004 19:17:26 +0000 (19:17 +0000)]
Ensure negative offsets cannot be passed to buffer().  When composing
buffers, compute the new buffer size based on the old buffer size.
Fixes SF bug #1034242.

20 years agoFix buffer offset calculation (need to compute it before changing
Neil Schemenauer [Fri, 24 Sep 2004 15:41:27 +0000 (15:41 +0000)]
Fix buffer offset calculation (need to compute it before changing
'base').  Fixes SF bug #1033720.  Move offset sanity checking to
buffer_from_memory().

20 years agoAdd a few more tests for the buffer() object.
Neil Schemenauer [Fri, 24 Sep 2004 15:35:15 +0000 (15:35 +0000)]
Add a few more tests for the buffer() object.

20 years agoAdded log() function documentation
Vinay Sajip [Fri, 24 Sep 2004 11:46:44 +0000 (11:46 +0000)]
Added log() function documentation

20 years agoAdded log() function
Vinay Sajip [Fri, 24 Sep 2004 11:45:52 +0000 (11:45 +0000)]
Added log() function

20 years agoAdded exception handling during handler initialization in fileConfig()
Vinay Sajip [Fri, 24 Sep 2004 11:45:13 +0000 (11:45 +0000)]
Added exception handling during handler initialization in fileConfig()

20 years agoWhitespace normalization.
Tim Peters [Fri, 24 Sep 2004 04:36:47 +0000 (04:36 +0000)]
Whitespace normalization.

20 years agoAdd docstrings for regular expression objects and methods.
Raymond Hettinger [Fri, 24 Sep 2004 04:31:19 +0000 (04:31 +0000)]
Add docstrings for regular expression objects and methods.

20 years agoGranted Noam Raphael's request for minor improvements to the re module and
Raymond Hettinger [Fri, 24 Sep 2004 03:41:05 +0000 (03:41 +0000)]
Granted Noam Raphael's request for minor improvements to the re module and
its documentation.

* Documented that the compiled re methods are supposed to be more full
  featured than their simpilified function counterparts.

* Documented the existing start and stop position arguments for the
  findall() and finditer() methods of compiled regular expression objects.

* Added an optional flags argument to the re.findall() and re.finditer()
  functions.  This aligns their API with that for re.search() and
  re.match().

20 years agoUpdate for beta1
Andrew M. Kuchling [Thu, 23 Sep 2004 20:17:26 +0000 (20:17 +0000)]
Update for beta1

20 years agoAdd various items
Andrew M. Kuchling [Thu, 23 Sep 2004 20:15:41 +0000 (20:15 +0000)]
Add various items

20 years agofloat_richcompare(): Use the new Py_IS_NAN macro to ensure that, on
Tim Peters [Thu, 23 Sep 2004 19:22:41 +0000 (19:22 +0000)]
float_richcompare():  Use the new Py_IS_NAN macro to ensure that, on
platforms where that macro works, NaN compared to an int or long works
the same as NaN compared to a finite float.

20 years agoIntroduced a Py_IS_NAN macro, which probably works on the major platforms
Tim Peters [Thu, 23 Sep 2004 19:11:32 +0000 (19:11 +0000)]
Introduced a Py_IS_NAN macro, which probably works on the major platforms
today.  pyconfig.h can override it if not, and can also override
Py_IS_INFINITY now.  Py_IS_NAN and Py_IS_INFINITY are overridden now
for Microsoft compilers, using efficient MS-specific spellings.

20 years agoSF bug #513866: Float/long comparison anomaly.
Tim Peters [Thu, 23 Sep 2004 08:06:40 +0000 (08:06 +0000)]
SF bug #513866:  Float/long comparison anomaly.

When an integer is compared to a float now, the int isn't coerced to float.
This avoids spurious overflow exceptions and insane results.  This should
compute correct results, without raising spurious exceptions, in all cases
now -- although I expect that what happens when an int/long is compared to
a NaN is still a platform accident.

Note that we had potential problems here even with "short" ints, on boxes
where sizeof(long)==8.  There's #ifdef'ed code here to handle that, but
I can't test it as intended.  I tested it by changing the #ifdef to
trigger on my 32-bit box instead.

I suppose this is a bugfix candidate, but I won't backport it.  It's
long-winded (for speed) and messy (because the problem is messy).  Note
that this also depends on a previous 2.4 patch that introduced
_Py_SwappedOp[] as an extern.

20 years agoImprove three recipes in the itertools docs.
Raymond Hettinger [Thu, 23 Sep 2004 07:27:39 +0000 (07:27 +0000)]
Improve three recipes in the itertools docs.

20 years agoArghh, checked in wrong draft. Replacing with correct one.
Raymond Hettinger [Thu, 23 Sep 2004 07:00:47 +0000 (07:00 +0000)]
Arghh, checked in wrong draft.  Replacing with correct one.

20 years agoUse local variables in StringIO.write().
Raymond Hettinger [Thu, 23 Sep 2004 06:43:25 +0000 (06:43 +0000)]
Use local variables in StringIO.write().
Makes it easier on the eyes and a bit more snappy.

20 years agoFix for SF bug #1029475 : reload() doesn't work with PEP 302 loaders.
Phillip J. Eby [Thu, 23 Sep 2004 04:37:36 +0000 (04:37 +0000)]
Fix for SF bug #1029475 : reload() doesn't work with PEP 302 loaders.

20 years agoA static swapped_op[] array was defined in 3 different C files, & I think
Tim Peters [Thu, 23 Sep 2004 02:39:37 +0000 (02:39 +0000)]
A static swapped_op[] array was defined in 3 different C files, & I think
I need to define it again.  Bite the bullet and define it once as an
extern, _Py_SwappedOp[].

20 years agoRemoved redundant declaration of _PyLong_NumBits().
Tim Peters [Thu, 23 Sep 2004 01:56:02 +0000 (01:56 +0000)]
Removed redundant declaration of _PyLong_NumBits().

20 years agoSF patch #1031667: Fold tuples of constants into a single constant
Raymond Hettinger [Wed, 22 Sep 2004 18:44:21 +0000 (18:44 +0000)]
SF patch #1031667:  Fold tuples of constants into a single constant

Example:
>>> import dis
>>> dis.dis(compile('1,2,3', '', 'eval'))
  0           0 LOAD_CONST               3 ((1, 2, 3))
              3 RETURN_VALUE

20 years agoClarify that iteration is over headers, not Mime elements.
Raymond Hettinger [Wed, 22 Sep 2004 18:03:47 +0000 (18:03 +0000)]
Clarify that iteration is over headers, not Mime elements.

20 years agoBug #1030125: rfc822 __iter__ problem
Raymond Hettinger [Wed, 22 Sep 2004 17:17:32 +0000 (17:17 +0000)]
Bug #1030125:  rfc822 __iter__ problem

Add iteration support to the Message class.

20 years agoAdded getLoggerClass()
Vinay Sajip [Wed, 22 Sep 2004 12:55:16 +0000 (12:55 +0000)]
Added getLoggerClass()

20 years agoAdded getLoggerClass()
Vinay Sajip [Wed, 22 Sep 2004 12:39:26 +0000 (12:39 +0000)]
Added getLoggerClass()

20 years ago- Minor docstring fixes.
Edward Loper [Tue, 21 Sep 2004 03:24:24 +0000 (03:24 +0000)]
- Minor docstring fixes.
- Simplified code to find names for file-based tests.

20 years ago- Changed SampleClass docstrings to test docstring parsing a little
Edward Loper [Tue, 21 Sep 2004 03:20:34 +0000 (03:20 +0000)]
- Changed SampleClass docstrings to test docstring parsing a little
  more thouroughly.

20 years ago- Updated docs to reflect changes in 2.4.
Edward Loper [Tue, 21 Sep 2004 03:00:51 +0000 (03:00 +0000)]
- Updated docs to reflect changes in 2.4.
  - Reorganized the documentation
  - Shifted focus a little more towards "literate testing"
  - Documented new functions and classes:
    - testfile()
    - Example, DocTest
    - DocTestParser, DocTestFinder, DocTestRunner, OutputChecker
    - DocFileSuite
    - DebugRunner, DocTestFailure, UnexpectedException
    - register_optionflag()

20 years agoAdd a commented-out recipe on making trailing whitespace explicit.
Brett Cannon [Mon, 20 Sep 2004 22:33:21 +0000 (22:33 +0000)]
Add a commented-out recipe on making trailing whitespace explicit.

If people think this is not too intrusive it could be uncommented.

20 years agoWhitespace normalization.
Tim Peters [Mon, 20 Sep 2004 19:52:34 +0000 (19:52 +0000)]
Whitespace normalization.

20 years agoImport no longer needed.
Raymond Hettinger [Mon, 20 Sep 2004 18:08:31 +0000 (18:08 +0000)]
Import no longer needed.

20 years agoFix minor grammar typo.
Raymond Hettinger [Mon, 20 Sep 2004 17:47:46 +0000 (17:47 +0000)]
Fix minor grammar typo.

20 years agoRaymond reminded me to use DSU key
Skip Montanaro [Mon, 20 Sep 2004 16:43:30 +0000 (16:43 +0000)]
Raymond reminded me to use DSU key

20 years agoSort classes by fully qualified name. In the common case where you are
Skip Montanaro [Mon, 20 Sep 2004 15:40:38 +0000 (15:40 +0000)]
Sort classes by fully qualified name.  In the common case where you are
displaying a set of classes from one module it doesn't matter, but if you
are displaying a large class tree from multiple modules it improves the
display to sort by module.name.

20 years agoPatch #1024670: Support int objects in PyLong_AsUnsignedLong[Mask].
Martin v. Löwis [Mon, 20 Sep 2004 06:17:46 +0000 (06:17 +0000)]
Patch #1024670: Support int objects in PyLong_AsUnsignedLong[Mask].

20 years agoFix lib-tk PythonPath.
Martin v. Löwis [Sun, 19 Sep 2004 18:36:45 +0000 (18:36 +0000)]
Fix lib-tk PythonPath.

20 years ago- Added "testfile" function, a simple function for running & verifying
Edward Loper [Sun, 19 Sep 2004 17:19:33 +0000 (17:19 +0000)]
- Added "testfile" function, a simple function for running & verifying
  all examples in a given text file. (analagous to "testmod")
- Minor docstring fixes.
- Added module_relative parameter to DocTestFile/DocTestSuite, which
  controls whether paths are module-relative & os-independent, or
  os-specific.

20 years agoSF bug #1030557: PyMapping_Check crashes when argument is NULL
Raymond Hettinger [Sun, 19 Sep 2004 06:00:15 +0000 (06:00 +0000)]
SF bug #1030557:  PyMapping_Check crashes when argument is NULL

Make PySequence_Check() and PyMapping_Check() handle NULL inputs.  This
goes beyond what most of the other checks do, but it is nice defensive
programming and solves the OP's problem.

20 years agoWhen this file is sourced in, or used as, one's vimrc file it will set the proper...
Brett Cannon [Sun, 19 Sep 2004 05:43:13 +0000 (05:43 +0000)]
When this file is sourced in, or used as, one's vimrc file it will set the proper settings to follow the style guidelines laid out in PEPs 7 & 8 as best it can without forcing extraneous settings.

Suggested settings are commented out and included at the end of the file.

The goal is to have this file prevent as much as possible from deviating from the style guidelines.  It is not meant to collect every cool macro possible for Python.  Any useful settings for features included with Vim can be included and commented out, but anything overly extraneous should be left out.

20 years agoSF patch #1020845: Decimal performance enhancements
Raymond Hettinger [Sun, 19 Sep 2004 01:54:09 +0000 (01:54 +0000)]
SF patch #1020845: Decimal performance enhancements
(Contributed by Nick Coghlan.)

Various code cleanups and optimizations (saves about 40% on testsuite
execution time and on the telco benchmark).

* caches results of various operations on self (esp. checks for being
  a special value).

* _WorkRep now uses ints and longs for intermediate computations.

20 years ago- Updated example output to match actual output
Edward Loper [Sun, 19 Sep 2004 01:16:44 +0000 (01:16 +0000)]
- Updated example output to match actual output
- Minor wording changes
- Changed the docs to reflect the fact that multiple option directives
  can be specified on a single line (and updated the directive
  production list, as well).

20 years agoUpdate Template/PEP 292 documentation to current implementation.
Barry Warsaw [Sat, 18 Sep 2004 21:13:43 +0000 (21:13 +0000)]
Update Template/PEP 292 documentation to current implementation.

20 years agoIn DocFileTest:
Edward Loper [Sat, 18 Sep 2004 20:27:04 +0000 (20:27 +0000)]
In DocFileTest:
  - Fixed bug in handling of absolute paths.
  - If run from an interactive session, make paths relative to the
    directory containing sys.argv[0] (since __main__ doesn't have
    a __file__ attribute).

20 years agoLink with ws2_32 instead of wsock32.
Martin v. Löwis [Sat, 18 Sep 2004 16:16:34 +0000 (16:16 +0000)]
Link with ws2_32 instead of wsock32.

20 years agoPatch #1021596: Check for None to determine whether _urandomfd is
Martin v. Löwis [Sat, 18 Sep 2004 16:07:58 +0000 (16:07 +0000)]
Patch #1021596: Check for None to determine whether _urandomfd is
uninitialized.

20 years agoConvert boolean results back to strings. Fixes #807871.
Martin v. Löwis [Sat, 18 Sep 2004 16:01:23 +0000 (16:01 +0000)]
Convert boolean results back to strings. Fixes #807871.
Will backport to 2.3.

20 years agoMake curses.h inclusion conditional as in the original patch #1012280.
Martin v. Löwis [Sat, 18 Sep 2004 10:07:03 +0000 (10:07 +0000)]
Make curses.h inclusion conditional as in the original patch #1012280.
Backported to 2.3.

20 years agoPatch #1012280: Include curses.h for term.h check. Fixes #933795.
Martin v. Löwis [Sat, 18 Sep 2004 09:54:52 +0000 (09:54 +0000)]
Patch #1012280: Include curses.h for term.h check. Fixes #933795.
Will backport to 2.3.

20 years agoPatch #1029061: Always extract member names from the tarinfo.
Martin v. Löwis [Sat, 18 Sep 2004 09:08:52 +0000 (09:08 +0000)]
Patch #1029061: Always extract member names from the tarinfo.

20 years agoPatch #1025790: Add status code constants to httplib.
Martin v. Löwis [Sat, 18 Sep 2004 09:03:49 +0000 (09:03 +0000)]
Patch #1025790: Add status code constants to httplib.

20 years agoAt the cost of a modest (but useful in its own right) change in the semantics
Barry Warsaw [Sat, 18 Sep 2004 00:06:34 +0000 (00:06 +0000)]
At the cost of a modest (but useful in its own right) change in the semantics
of the Template.delimiter attribute, we make use of the delimiter in the
escaped group, and in the safe_substitute() method more robust.

Now, .delimiter should be the unescaped delimiter literal, e.g. '$' or '&', or
whatever.  The _TemplateMetaclass will re.escape() this value when it builds
the pattern.