]> granicus.if.org Git - python/log
python
16 years agoAlso ignore package deprecations.
Brett Cannon [Sat, 10 May 2008 02:57:03 +0000 (02:57 +0000)]
Also ignore package deprecations.

16 years agoSuppress deprecations for packages as well when using
Brett Cannon [Sat, 10 May 2008 02:54:52 +0000 (02:54 +0000)]
Suppress deprecations for packages as well when using
test.test_support.import_module().

16 years agoAdd an entry on the deprecation of Bastion and rexec.
Brett Cannon [Sat, 10 May 2008 02:53:46 +0000 (02:53 +0000)]
Add an entry on the deprecation of Bastion and rexec.

16 years agoDeprecate the bsddb185 module for removal in 3.0.
Brett Cannon [Sat, 10 May 2008 02:47:54 +0000 (02:47 +0000)]
Deprecate the bsddb185 module for removal in 3.0.

16 years agoDeprecate Bastion and rexec for 3.0.
Brett Cannon [Sat, 10 May 2008 02:27:04 +0000 (02:27 +0000)]
Deprecate Bastion and rexec for 3.0.

16 years agoFix some errors in the deprecation warnings for new and user.
Brett Cannon [Sat, 10 May 2008 02:25:00 +0000 (02:25 +0000)]
Fix some errors in the deprecation warnings for new and user.

16 years agoAdd support for extension modules in 3.0 deprection command.
Brett Cannon [Fri, 9 May 2008 22:52:28 +0000 (22:52 +0000)]
Add support for extension modules in 3.0 deprection command.

16 years agoDeprecate the pure module for 3.0.
Brett Cannon [Fri, 9 May 2008 22:51:58 +0000 (22:51 +0000)]
Deprecate the pure module for 3.0.

16 years agoBackport fast alternate io.BytesIO implementation.
Alexandre Vassalotti [Fri, 9 May 2008 21:49:43 +0000 (21:49 +0000)]
Backport fast alternate io.BytesIO implementation.
Merged r62778, r62779, r62802, r62806, r62807, r62808, r62809, r62844,
r62846, r62952, r62956.

16 years agoAdd a todo list to the module deletion command.
Brett Cannon [Fri, 9 May 2008 21:30:36 +0000 (21:30 +0000)]
Add a todo list to the module deletion command.

16 years agoIn stdtypes.rst, move methods under class directives where applicable
Benjamin Peterson [Fri, 9 May 2008 21:30:26 +0000 (21:30 +0000)]
In stdtypes.rst, move methods under class directives where applicable

16 years agoPort to VS 2008. Drop W9x support.
Martin v. Löwis [Fri, 9 May 2008 20:11:37 +0000 (20:11 +0000)]
Port to VS 2008. Drop W9x support.

16 years agoUse the CHM file name that Sphinx assigns.
Martin v. Löwis [Fri, 9 May 2008 18:21:55 +0000 (18:21 +0000)]
Use the CHM file name that Sphinx assigns.

16 years agoIssue #2487. math.ldexp(x, n) raised OverflowError when n was large and
Mark Dickinson [Fri, 9 May 2008 17:54:23 +0000 (17:54 +0000)]
Issue #2487.  math.ldexp(x, n) raised OverflowError when n was large and
negative; fix to return an (appropriately signed) zero instead.

16 years agoAdd 2.6b1 and 2.6b2 UUIDs.
Martin v. Löwis [Fri, 9 May 2008 17:11:07 +0000 (17:11 +0000)]
Add 2.6b1 and 2.6b2 UUIDs.

16 years agoIssue #2801: fix bug in float.is_integer where ValueError
Mark Dickinson [Fri, 9 May 2008 16:14:15 +0000 (16:14 +0000)]
Issue #2801: fix bug in float.is_integer where ValueError
could be incorrectly raised.  This is a backport of the
Py3k fix in r62939.  (Should really have been fixed
in the trunk first and svnmerged into py3k.)

16 years agoAdd --user option to build_ext
Christian Heimes [Fri, 9 May 2008 12:19:09 +0000 (12:19 +0000)]
Add --user option to build_ext

16 years agoUpdate planned release date.
Andrew M. Kuchling [Fri, 9 May 2008 11:46:05 +0000 (11:46 +0000)]
Update planned release date.
Uncomment PEP 370 section.
Add some module items

16 years agoAdd a note about using reload().
Georg Brandl [Fri, 9 May 2008 06:39:58 +0000 (06:39 +0000)]
Add a note about using reload().

16 years agoAdd Kodos as a re reference.
Georg Brandl [Fri, 9 May 2008 06:36:07 +0000 (06:36 +0000)]
Add Kodos as a re reference.

16 years agoAdd another link to colorsys docs.
Georg Brandl [Fri, 9 May 2008 06:26:54 +0000 (06:26 +0000)]
Add another link to colorsys docs.

16 years agoAdd a sentence to basicConfig() that is in the docstring.
Georg Brandl [Fri, 9 May 2008 06:18:27 +0000 (06:18 +0000)]
Add a sentence to basicConfig() that is in the docstring.

16 years ago#2781: fix function name.
Georg Brandl [Fri, 9 May 2008 06:10:43 +0000 (06:10 +0000)]
#2781: fix function name.

16 years ago#2788: add .hgignore file.
Georg Brandl [Fri, 9 May 2008 06:09:25 +0000 (06:09 +0000)]
#2788: add .hgignore file.

16 years agoDeprecate the toaiff module for removal in 3.0.
Brett Cannon [Fri, 9 May 2008 05:32:42 +0000 (05:32 +0000)]
Deprecate the toaiff module for removal in 3.0.

16 years agoDeprecate test.testall for removal in 3.0.
Brett Cannon [Fri, 9 May 2008 05:25:37 +0000 (05:25 +0000)]
Deprecate test.testall for removal in 3.0.

16 years agoDeprecate the new module for removal in 3.0.
Brett Cannon [Fri, 9 May 2008 05:18:40 +0000 (05:18 +0000)]
Deprecate the new module for removal in 3.0.

16 years agoreindent example
Benjamin Peterson [Fri, 9 May 2008 00:50:40 +0000 (00:50 +0000)]
reindent example

16 years agoAdd an example about using NamedTemporaryFile() to replace mktemp(). I'm
Skip Montanaro [Fri, 9 May 2008 00:45:00 +0000 (00:45 +0000)]
Add an example about using NamedTemporaryFile() to replace mktemp().  I'm
unclear whether the verbatim text should have been indented or by how much.

16 years agoAdd Py3k warnings to os.path.walk
Benjamin Peterson [Fri, 9 May 2008 00:27:01 +0000 (00:27 +0000)]
Add Py3k warnings to os.path.walk

16 years agoReplace instances of os.path.walk with os.walk
Benjamin Peterson [Thu, 8 May 2008 22:09:54 +0000 (22:09 +0000)]
Replace instances of os.path.walk with os.walk

16 years agoDeprecate the user module for removal in 3.0.
Brett Cannon [Thu, 8 May 2008 20:36:09 +0000 (20:36 +0000)]
Deprecate the user module for removal in 3.0.

16 years agoAdd test.test_support.catch_warning()'s new argument.
Brett Cannon [Thu, 8 May 2008 20:24:43 +0000 (20:24 +0000)]
Add test.test_support.catch_warning()'s new argument.

16 years agoAdd a missing entry on the fix for issue #2790.
Brett Cannon [Thu, 8 May 2008 20:23:54 +0000 (20:23 +0000)]
Add a missing entry on  the fix for issue #2790.

16 years agoFix sys.flags to properly expose bytes_warning.
Brett Cannon [Thu, 8 May 2008 20:23:06 +0000 (20:23 +0000)]
Fix sys.flags to properly expose bytes_warning.

Closes issue #2790.

16 years agoDocument the 'record' argument for test.test_support.catch_warning().
Brett Cannon [Thu, 8 May 2008 20:20:54 +0000 (20:20 +0000)]
Document the 'record' argument for test.test_support.catch_warning().

16 years agoFix a bug introduced by the addition of the 'record' argument to
Brett Cannon [Thu, 8 May 2008 20:20:24 +0000 (20:20 +0000)]
Fix a bug introduced by the addition of the 'record' argument to
test.test_support.catch_warning() where showwarning() was not being set
properly.

16 years agoDeprecate stringold for removal in 3.0.
Brett Cannon [Thu, 8 May 2008 19:52:45 +0000 (19:52 +0000)]
Deprecate stringold for removal in 3.0.

16 years agoMake test.test_support.catch_warning() take an argument specifying if any
Brett Cannon [Thu, 8 May 2008 19:50:51 +0000 (19:50 +0000)]
Make test.test_support.catch_warning() take an argument specifying if any
triggered warnings should be captured. This allows the context manager to be
used to just prevent the internal state of the 'warnings' framework and thus
allow triggered warnings to be displayed.

16 years agoThe mutex module has been deprecated for removal in 3.0.
Brett Cannon [Thu, 8 May 2008 19:26:08 +0000 (19:26 +0000)]
The mutex module has been deprecated for removal in 3.0.

16 years agoDeprecate the imputil module for removal in 3.0.
Brett Cannon [Thu, 8 May 2008 18:15:14 +0000 (18:15 +0000)]
Deprecate the imputil module for removal in 3.0.

16 years agoIssue 2778. Document the temporary frozenset swap in __contains__(), remove(), and...
Raymond Hettinger [Thu, 8 May 2008 17:18:13 +0000 (17:18 +0000)]
Issue 2778.  Document the temporary frozenset swap in __contains__(), remove(), and discard().

16 years agoPost tag updates.
Barry Warsaw [Thu, 8 May 2008 15:30:00 +0000 (15:30 +0000)]
Post tag updates.

16 years agoTagging 2.6a3
Barry Warsaw [Thu, 8 May 2008 13:17:34 +0000 (13:17 +0000)]
Tagging 2.6a3

16 years agoBump to 2.6a3 v2.6a3
Barry Warsaw [Thu, 8 May 2008 13:16:19 +0000 (13:16 +0000)]
Bump to 2.6a3

16 years agoFix for issue 1770190: platform.mac_ver() now returns the right
Ronald Oussoren [Thu, 8 May 2008 10:34:39 +0000 (10:34 +0000)]
Fix for issue 1770190: platform.mac_ver() now returns the right
version on OSX 10.4.10

16 years agoFix-up the enumerate type example and move it to the end.
Raymond Hettinger [Thu, 8 May 2008 07:23:30 +0000 (07:23 +0000)]
Fix-up the enumerate type example and move it to the end.

16 years agoThe __all__ variable forgot to expose the gcd() function.
Raymond Hettinger [Thu, 8 May 2008 04:36:12 +0000 (04:36 +0000)]
The __all__ variable forgot to expose the gcd() function.

16 years agoFrozensets do not benefit from autoconversion.
Raymond Hettinger [Thu, 8 May 2008 04:35:20 +0000 (04:35 +0000)]
Frozensets do not benefit from autoconversion.

16 years agoPractice EAFP, and revert 62787
Benjamin Peterson [Wed, 7 May 2008 23:11:54 +0000 (23:11 +0000)]
Practice EAFP, and revert 62787

16 years agoReplace more float hacks with correct math functions
Christian Heimes [Wed, 7 May 2008 22:54:17 +0000 (22:54 +0000)]
Replace more float hacks with correct math functions

16 years agoupdate .bzrignore
Benjamin Peterson [Wed, 7 May 2008 02:23:43 +0000 (02:23 +0000)]
update .bzrignore

16 years agoRe-added getbuildinfo.c solution item
Christian Heimes [Tue, 6 May 2008 23:59:53 +0000 (23:59 +0000)]
Re-added getbuildinfo.c solution item

16 years agoCreate a TextMate directory in Misc to house a Python-Dev bundle.
Brett Cannon [Tue, 6 May 2008 23:44:04 +0000 (23:44 +0000)]
Create a TextMate directory in Misc to house a Python-Dev bundle.

16 years agoDisabled some unit tests for the upcoming release. See #2777
Christian Heimes [Tue, 6 May 2008 23:42:58 +0000 (23:42 +0000)]
Disabled some unit tests for the upcoming release. See #2777

16 years agoAdd an entry about audiodev being slated for removal in 3.0.
Brett Cannon [Tue, 6 May 2008 23:41:32 +0000 (23:41 +0000)]
Add an entry about audiodev being slated for removal in 3.0.

16 years agoDeprecate the audiodev module for 3.0.
Brett Cannon [Tue, 6 May 2008 23:23:34 +0000 (23:23 +0000)]
Deprecate the audiodev module for 3.0.

16 years agoWhen testing a module's __all__, we really don't care if it is deprecated.
Brett Cannon [Tue, 6 May 2008 23:22:02 +0000 (23:22 +0000)]
When testing a module's __all__, we really don't care if it is deprecated.

16 years agoImplemented PEP 370
Christian Heimes [Tue, 6 May 2008 22:41:46 +0000 (22:41 +0000)]
Implemented PEP 370

16 years agoMake the Python implementation of warnings compatible with the C implementation regar...
Benjamin Peterson [Tue, 6 May 2008 22:31:52 +0000 (22:31 +0000)]
Make the Python implementation of warnings compatible with the C implementation regarding non-callable showwarning

16 years agoFix logic error in Python/_warnings.c and add a test to verify
Benjamin Peterson [Tue, 6 May 2008 22:18:11 +0000 (22:18 +0000)]
Fix logic error in Python/_warnings.c and add a test to verify

16 years ago> != (!<).
Georg Brandl [Tue, 6 May 2008 17:20:54 +0000 (17:20 +0000)]
> != (!<).

16 years ago#2773: fix description of 'g' and 'G' formatting spec.
Georg Brandl [Tue, 6 May 2008 17:11:42 +0000 (17:11 +0000)]
#2773: fix description of 'g' and 'G' formatting spec.

16 years agoIntern static string
Christian Heimes [Tue, 6 May 2008 16:18:41 +0000 (16:18 +0000)]
Intern static string
Use float constructors instead of magic code for float constants

16 years agofix issue2707 - os.walk docstring example correctness typo.
Gregory P. Smith [Tue, 6 May 2008 07:05:18 +0000 (07:05 +0000)]
fix issue2707 - os.walk docstring example correctness typo.

16 years agoFix a bug in the handling of the stacklevel argument in warnings.warn() where
Brett Cannon [Tue, 6 May 2008 04:37:31 +0000 (04:37 +0000)]
Fix a bug in the handling of the stacklevel argument in warnings.warn() where
the stack was being unwound by two levels instead of one each time.

16 years agoPEP 8 nits in json package
Benjamin Peterson [Tue, 6 May 2008 02:51:10 +0000 (02:51 +0000)]
PEP 8 nits in json package

16 years agoFix a bug introduced in r62627. see issue2760 and issue2632.
Gregory P. Smith [Mon, 5 May 2008 21:53:45 +0000 (21:53 +0000)]
Fix a bug introduced in r62627.  see issue2760 and issue2632.

An assertion in readline() would fail as data was already in the
internal buffer even though the socket was in unbuffered read mode.
That case is now handled.  More importantly, read() has been fixed to
not over-recv() and leave newly recv()d data in the _fileobject buffer.

The max() vs min() issue in read() is now gone.  Neither was correct.
On bounded reads, always ask recv() for the exact amount of data we
still need.

Candidate for backporting to release25-maint along with r62627.

16 years ago#2752: fix second example too.
Georg Brandl [Mon, 5 May 2008 21:06:48 +0000 (21:06 +0000)]
#2752: fix second example too.

16 years ago#2769: markup glitch.
Georg Brandl [Mon, 5 May 2008 20:59:05 +0000 (20:59 +0000)]
#2769: markup glitch.

16 years agoFix JSON module docs.
Georg Brandl [Mon, 5 May 2008 20:53:39 +0000 (20:53 +0000)]
Fix JSON module docs.

16 years agoAdd the 'json' package. Code taken from simplejson 1.9 and contributed by Bob
Brett Cannon [Mon, 5 May 2008 20:21:38 +0000 (20:21 +0000)]
Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob
Ippolito.

Closes issue #2750.

16 years agoRevert bogus checkin in r62724 to that file.
Martin v. Löwis [Mon, 5 May 2008 17:54:01 +0000 (17:54 +0000)]
Revert bogus checkin in r62724 to that file.

16 years agoFix Unicode filename test.
Martin v. Löwis [Mon, 5 May 2008 17:47:06 +0000 (17:47 +0000)]
Fix Unicode filename test.

16 years agoIssue #1734346: Support Unicode file names for zipfiles.
Martin v. Löwis [Mon, 5 May 2008 17:16:58 +0000 (17:16 +0000)]
Issue #1734346: Support Unicode file names for zipfiles.

16 years agoRemove the use of 'inspect' from 'warnings' for detected deprecated use of the
Brett Cannon [Mon, 5 May 2008 16:57:38 +0000 (16:57 +0000)]
Remove the use of 'inspect' from 'warnings' for detected deprecated use of the
showwarning API. Turns out 'inspect' uses 'operator' which is an extension
module. That's a problem when it has not been built yet by setup.py.

16 years agoAdd a DeprecationWarning for when warnings.showwarning() is set to a function
Brett Cannon [Mon, 5 May 2008 05:32:07 +0000 (05:32 +0000)]
Add a DeprecationWarning for when warnings.showwarning() is set to a function
that lacks support for the new 'line' argument.

16 years agoRemove method signatures from the docstrings of io.py
Benjamin Peterson [Sun, 4 May 2008 22:39:33 +0000 (22:39 +0000)]
Remove method signatures from the docstrings of io.py

16 years ago#2695: Do case-insensitive check for algorithms.
Georg Brandl [Sun, 4 May 2008 21:40:44 +0000 (21:40 +0000)]
#2695: Do case-insensitive check for algorithms.

16 years agoFix typo in bugs.rst
Benjamin Peterson [Sun, 4 May 2008 19:10:02 +0000 (19:10 +0000)]
Fix typo in bugs.rst

16 years ago#2757: Remove spare newline.
Georg Brandl [Sun, 4 May 2008 15:45:05 +0000 (15:45 +0000)]
#2757: Remove spare newline.

16 years agoImplemented feature request 2157: Converter names are cut off at '('
Gerhard Häring [Sun, 4 May 2008 13:42:44 +0000 (13:42 +0000)]
Implemented feature request 2157: Converter names are cut off at '('
characters. This avoids the common case of something like 'NUMBER(10)' not
being parsed as 'NUMBER', like expected. Also corrected the docs about
converter names being case-sensitive. They aren't any longer.

16 years agoApplied sqliterow-richcmp.diff patch from Thomas Heller in Issue2152. The
Gerhard Häring [Sun, 4 May 2008 13:15:12 +0000 (13:15 +0000)]
Applied sqliterow-richcmp.diff patch from Thomas Heller in Issue2152. The
sqlite3.Row type is now correctly hashable.

16 years agoSQLite requires 64-bit integers in order to build. So the whole HAVE_LONG_LONG
Gerhard Häring [Sun, 4 May 2008 12:59:57 +0000 (12:59 +0000)]
SQLite requires 64-bit integers in order to build. So the whole HAVE_LONG_LONG
#ifdefing was useless.

16 years agoAdded note that Python requires at least Win2k SP4
Christian Heimes [Sun, 4 May 2008 11:50:53 +0000 (11:50 +0000)]
Added note that Python requires at least Win2k SP4

16 years ago#2752: wrong meaning of '' for socket host.
Georg Brandl [Sun, 4 May 2008 09:15:04 +0000 (09:15 +0000)]
#2752: wrong meaning of '' for socket host.

16 years agoFix typo in whatsnew
Benjamin Peterson [Sun, 4 May 2008 03:05:49 +0000 (03:05 +0000)]
Fix typo in whatsnew

16 years agoMake sure that Context traps and flags dictionaries have values 0 and 1
Mark Dickinson [Sun, 4 May 2008 02:25:46 +0000 (02:25 +0000)]
Make sure that Context traps and flags dictionaries have values 0 and 1
(as documented) rather than True and False.

16 years agoSome very minor changes to decimal.py in Python 2.6, aimed
Mark Dickinson [Sun, 4 May 2008 02:05:06 +0000 (02:05 +0000)]
Some very minor changes to decimal.py in Python 2.6, aimed
at reducing the size of the diff between the 2.x decimal.py
and 3.x decimal.py and thereby making future merges easier:

- replace one instnace of an old-style raise statement
- define __div__ in terms of __truediv__ instead of the
  other way around
- make wording match on an exception message

16 years agoMoved testing of builtin types out of test_builtin and into type specific modules
Benjamin Peterson [Sat, 3 May 2008 21:35:18 +0000 (21:35 +0000)]
Moved testing of builtin types out of test_builtin and into type specific modules

16 years agoInsert correct OpenSearch base URL.
Georg Brandl [Sat, 3 May 2008 20:16:47 +0000 (20:16 +0000)]
Insert correct OpenSearch base URL.

16 years agoBackport Raymond's changes in r60508 to Python 2.6.
Mark Dickinson [Sat, 3 May 2008 18:23:14 +0000 (18:23 +0000)]
Backport Raymond's changes in r60508 to Python 2.6.
'Context flags get set, not incremented'

16 years agoThe compiling struct is now passed around to all AST helpers (see issue 2720)
Benjamin Peterson [Sat, 3 May 2008 15:56:42 +0000 (15:56 +0000)]
The compiling struct is now passed around to all AST helpers (see issue 2720)

16 years agoIn test_io, StatefulIncrementalDecoderTest was not part of the test suite.
Amaury Forgeot d'Arc [Sat, 3 May 2008 12:21:13 +0000 (12:21 +0000)]
In test_io, StatefulIncrementalDecoderTest was not part of the test suite.
And of course, the test failed:
a bytearray was used without reason in io.TextIOWrapper.tell().

The difference is that iterating over bytes (i.e. str in python2.6) returns 1-char bytes,
whereas bytearrays yield integers.
This code should still work with python3.0

16 years agoFix the C implementation of 'warnings' to infer the filename of the module that
Brett Cannon [Sat, 3 May 2008 03:19:39 +0000 (03:19 +0000)]
Fix the C implementation of 'warnings' to infer the filename of the module that
raised an exception properly when __file__ is not set, __name__ == '__main__',
and sys.argv[0] is a false value.

Closes issue2743.

16 years agoFix some indentation errors.
Brett Cannon [Sat, 3 May 2008 01:02:41 +0000 (01:02 +0000)]
Fix some indentation errors.

16 years agocapitalization nit for reStructuredText
Benjamin Peterson [Fri, 2 May 2008 22:12:58 +0000 (22:12 +0000)]
capitalization nit for reStructuredText

16 years agoFix for issue #2520 (cannot import macerrors)
Ronald Oussoren [Fri, 2 May 2008 21:54:56 +0000 (21:54 +0000)]
Fix for issue #2520 (cannot import macerrors)

16 years agoFix for #1905: PythonLauncher not working correctly on OSX 10.5/Leopard
Ronald Oussoren [Fri, 2 May 2008 21:42:35 +0000 (21:42 +0000)]
Fix for #1905: PythonLauncher not working correctly on OSX 10.5/Leopard

This fixes both Python Launchar and the terminalcommand module.

16 years agoMerged revisions 62263-62646 via svnmerge from
Martin v. Löwis [Fri, 2 May 2008 21:30:20 +0000 (21:30 +0000)]
Merged revisions 62263-62646 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r62470 | david.wolever | 2008-04-24 02:11:07 +0200 (Do, 24 Apr 2008) | 3 lines

  Fixed up and applied the patch for #2431 -- speeding up 2to3 with a lookup table.
........
  r62646 | martin.v.loewis | 2008-05-02 23:29:27 +0200 (Fr, 02 Mai 2008) | 2 lines

  Fix whitespace.
........