Guido van Rossum
0567ba20f3
Remove a dependency of this test on $COLUMNS.
2007-01-14 03:46:33 +00:00
Gerhard Häring
0741a60ca7
Merged changes from standalone version 2.3.3. This should probably all be
...
merged into the 2.5 maintenance branch:
- self->statement was not checked while fetching data, which could
lead to crashes if you used the pysqlite API in unusual ways.
Closing the cursor and continuing to fetch data was enough.
- Converters are stored in a converters dictionary. The converter name
is uppercased first. The old upper-casing algorithm was wrong and
was replaced by a simple call to the Python string's upper() method
instead.
-Applied patch by Glyph Lefkowitz that fixes the problem with
subsequent SQLITE_SCHEMA errors.
- Improvement to the row type: rows can now be iterated over and have a keys()
method. This improves compatibility with both tuple and dict a lot.
- A bugfix for the subsecond resolution in timestamps.
- Corrected the way the flags PARSE_DECLTYPES and PARSE_COLNAMES are
checked for. Now they work as documented.
- gcc on Linux sucks. It exports all symbols by default in shared
libraries, so if symbols are not unique it can lead to problems with
symbol lookup. pysqlite used to crash under Apache when mod_cache
was enabled because both modules had the symbol cache_init. I fixed
this by applying the prefix pysqlite_ almost everywhere. Sigh.
2007-01-14 01:43:50 +00:00
Marc-André Lemburg
b1a8ef6297
Jython doesn't have sys.setcheckinterval() - ignore it in that case.
2007-01-13 23:15:33 +00:00
Marc-André Lemburg
3b8f60b700
Use defaults if sys.executable isn't set (e.g. on Jython).
...
This change allows running PyBench under Jython.
2007-01-13 23:13:54 +00:00
Marc-André Lemburg
a50e6233f5
Add Python implementation to the machine details.
...
Pretty-print the Python version used for running PyBench.
Let the user know when calibration has finished.
[ 1563844 ] pybench support for IronPython:
Simplify Unicode version detection.
Make garbage collection and check interval settings optional if
the Python implementation doesn't support thess (e.g. IronPython).
2007-01-13 22:59:36 +00:00
Peter Astrand
10514a70ac
Fix for bug #1634343 : allow specifying empty arguments on Windows
2007-01-13 22:35:35 +00:00
Marc-André Lemburg
2be9d43c18
Add parameter sys_version to _sys_version().
...
Change the cache for _sys_version() to take the parameter into account.
Add support for parsing the IronPython 1.0.1 sys.version value - even
though it still returns '1.0.0'; the version string no longer includes
the patch level.
2007-01-13 22:32:21 +00:00
Neal Norwitz
4b86f8b88b
Fix grammar in docstrings
2007-01-13 21:22:37 +00:00
Marc-André Lemburg
9e0dc960d7
Bump version number and change copyright year.
...
Add new API linux_distribution() which supports reading the full distribution
name and also knows how to parse LSB-style release files.
Redirect the old dist() API to the new API (using the short distribution name
taken from the release file filename).
Add branch and revision to _sys_version().
Add work-around for Cygwin to libc_ver().
Add support for IronPython (thanks for Anthony Baxter) and make
Jython support more robust.
2007-01-13 21:00:08 +00:00
Georg Brandl
7ded34d25e
Fix typo.
2007-01-13 12:31:51 +00:00
Brett Cannon
093b67061a
Deprecate the sets module.
2007-01-13 00:29:49 +00:00
Thomas Heller
6fd4549bc6
patch #1610795 : BSD version of ctypes.util.find_library, by Martin
...
Kammerhofer.
2007-01-12 20:21:53 +00:00
Thomas Heller
d059e7b423
patch #1610795 : BSD version of ctypes.util.find_library, by Martin
...
Kammerhofer.
release25-maint backport candidate, but the release manager has to
decide.
2007-01-12 20:17:34 +00:00
Thomas Heller
572104ff5c
Avoid warnings in the test suite because ctypes.wintypes cannot be
...
imported on non-windows systems.
2007-01-12 20:08:19 +00:00
Anthony Baxter
2464087bda
add parsetok.h as a dependency - previously, changing this file doesn't
...
cause the right files to be rebuilt.
2007-01-12 09:35:56 +00:00
Brett Cannon
78a132b814
Fix error where the end of a funcdesc environment was accidentally moved too
...
far down.
2007-01-12 07:27:52 +00:00
Thomas Heller
f5b5183a19
Correct the comments: the code is right.
2007-01-11 21:23:12 +00:00
Thomas Heller
8138c26a83
Fixes for 64-bit Windows: In ctypes.wintypes, correct the definitions
...
of HANDLE, WPARAM, LPARAM data types. Make parameterless foreign
function calls work.
2007-01-11 21:18:56 +00:00
Raymond Hettinger
9fdfadb06e
SF #1486663 -- Allow keyword args in subclasses of set() and frozenset().
2007-01-11 18:22:55 +00:00
Matthias Klose
a398e2d059
- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092 ).
2007-01-11 11:44:04 +00:00
Matthias Klose
764a7ec8ca
- Make the documentation match the code and the docstring
2007-01-11 10:26:31 +00:00
Guido van Rossum
833e9611b3
Fix the signature of log_error(). (A subclass that did the right thing
...
was getting complaints from pychecker.)
2007-01-10 23:12:56 +00:00
Thomas Heller
9ae562efb1
Must change the version number in the _ctypes extension as well.
2007-01-10 20:51:19 +00:00
Thomas Heller
fb9d78733e
Change the ctypes version number to "1.1.0".
2007-01-10 20:12:13 +00:00
Gustavo Niemeyer
37e6502c25
Minor change in int() docstring for proper spacing.
2007-01-10 16:15:48 +00:00
Gustavo Niemeyer
a443bc8ec7
Mention in the int() docstring that a base zero has meaning, as
...
stated in http://docs.python.org/lib/built-in-funcs.html as well.
2007-01-10 16:13:40 +00:00
Thomas Heller
85a2192bb6
Verify the sizes of the basic ctypes data types against the struct
...
module.
Will backport to release25-maint.
2007-01-09 19:19:33 +00:00
Vinay Sajip
1211edd81b
Added a docstring
2007-01-09 14:54:56 +00:00
Vinay Sajip
ab41c109fa
Added entry about addition of _open() method to logging.FileHandler.
2007-01-09 14:51:36 +00:00
Vinay Sajip
825b75a053
Bug #1627575 : Added _open() method to FileHandler which can be used to reopen files. The FileHandler instance now saves the encoding (which can be None) in an attribute called "encoding".
2007-01-09 14:50:28 +00:00
Vinay Sajip
c9137263d5
Added entries about removal of some bare except clauses from logging.
2007-01-08 18:52:36 +00:00
Vinay Sajip
2cd79f6b78
Bare except clause removed from LogRecord.__init__. Now, only ValueError, TypeError and AttributeError are trapped.
...
(SF #411881 )
2007-01-08 18:51:46 +00:00
Vinay Sajip
c683a87ca6
Bare except clause removed from SMTPHandler.emit(). Now, only ImportError is trapped.
...
Bare except clause removed from SocketHandler.createSocket(). Now, only socket.error is trapped.
(SF #411881 )
2007-01-08 18:50:32 +00:00
Raymond Hettinger
51c2f6cd18
Fix zero-length corner case for iterating over a mutating deque.
2007-01-08 18:09:20 +00:00
Peter Astrand
1812f8cf3f
Avoid O(N**2) bottleneck in _communicate_(). Fixes #1598181 .
2007-01-07 14:34:16 +00:00
Peter Astrand
ec05a2d580
Re-implemented fix for #1531862 once again, in a way that works with Python 2.2. Fixes bug #1603424 .
2007-01-07 08:53:46 +00:00
Neal Norwitz
e8330fa2aa
Add Josiah to SF for maintaining asyncore/asynchat
2007-01-06 21:24:35 +00:00
Anthony Baxter
83955ef639
update to (c) years to include 2007
2007-01-06 04:45:54 +00:00
Raymond Hettinger
4bd97d4549
SF# 1409443: Expand comment to cover the interaction between f->f_lasti and the PREDICT macros.
2007-01-06 01:14:41 +00:00
Brett Cannon
d14ef77ae1
Silence a warning from gcc 4.0.1 by specifying a function's parameter list is
...
'void' instead of just a set of empty parentheses.
2007-01-05 21:45:09 +00:00
Andrew M. Kuchling
9c3a392321
[Patch #1520904 ] Fix bsddb tests to write to the temp directory instead of the Lib/bsddb/test directory
2007-01-05 15:51:24 +00:00
Andrew M. Kuchling
882680462c
[Bug #1622533 ] Make docstrings raw strings because they contain control characters (\0, \1)
2007-01-05 14:22:17 +00:00
Neal Norwitz
1f8c634a53
Add Collin Winter for access to update PEP 3107
2007-01-05 08:06:43 +00:00
Gregory P. Smith
d92d3c7197
typo fix
2007-01-05 07:21:35 +00:00
Neal Norwitz
72cd02c041
Prevent crash on shutdown which can occur if we are finalizing
...
and the module dict has been cleared already and some object
raises a warning (like in a __del__).
Will backport.
2007-01-05 05:25:22 +00:00
Gregory P. Smith
11a70c3c96
bump module version to match supported berkeleydb version
2007-01-05 02:06:17 +00:00
Gregory P. Smith
8b96a35d14
Support linking of the bsddb module against BerkeleyDB 4.5.x
...
(will backport to 2.5)
2007-01-05 01:59:42 +00:00
Martin v. Löwis
7b7c9d4208
Bug #1566280 : Explicitly invoke threading._shutdown from Py_Main,
...
to avoid relying on atexit.
Will backport to 2.5.
2007-01-04 21:06:12 +00:00
Raymond Hettinger
769a40a1d0
Fix stability of heapq's nlargest() and nsmallest().
2007-01-04 17:53:34 +00:00
Neal Norwitz
2dc4db0174
SF #1627373 , fix typo in CarbonEvt.
2007-01-04 06:25:31 +00:00