]> granicus.if.org Git - python/log
python
22 years agoClarified new text about math exceptions.
Tim Peters [Sat, 26 Apr 2003 15:11:08 +0000 (15:11 +0000)]
Clarified new text about math exceptions.

Bugfix candidate.

22 years agoA start on news for 2.3b2.
Tim Peters [Sat, 26 Apr 2003 14:53:01 +0000 (14:53 +0000)]
A start on news for 2.3b2.

22 years agoRewrote. As reported on c.l.py, when the test suite is run via
Tim Peters [Sat, 26 Apr 2003 14:31:24 +0000 (14:31 +0000)]
Rewrote.  As reported on c.l.py, when the test suite is run via
"import test.autotest", temp_imp failed because the import lock was
still held at the test's end (the test assumed it wouldn't be), and
then a RuntimeError got raised at the end of the entire suite run because
test_imp cleared the import lock as a side effect of trying to test that
the import lock wasn't held (but a legitimate import is in progress,
so the lock should be held, and the import machinery complained when it
found that the lock was unexpectedly cleareed).

Also removed the unittest scaffolding.  It didn't buy anything here, and
the test was raising regrtest's TestFailed instead of using the unittest
failure-reporting mechanisms.

22 years agoAdd note about platform-specific behavior arising from discussion on bug
Skip Montanaro [Sat, 26 Apr 2003 02:59:00 +0000 (02:59 +0000)]
Add note about platform-specific behavior arising from discussion on bug
711019.

22 years agoUse os.walk() to find files to delete.
Tim Peters [Sat, 26 Apr 2003 00:53:24 +0000 (00:53 +0000)]
Use os.walk() to find files to delete.

22 years agoVersion updates for Python 2.3.
Fred Drake [Sat, 26 Apr 2003 00:52:30 +0000 (00:52 +0000)]
Version updates for Python 2.3.

22 years agoMerge back from r23b1-branch
Guido van Rossum [Sat, 26 Apr 2003 00:21:31 +0000 (00:21 +0000)]
Merge back from r23b1-branch

22 years agoUpdate version number and release date.
Guido van Rossum [Fri, 25 Apr 2003 19:19:52 +0000 (19:19 +0000)]
Update version number and release date.

22 years agoNew feature: when saving a file, keep the eol convention of the
Guido van Rossum [Fri, 25 Apr 2003 18:36:31 +0000 (18:36 +0000)]
New feature: when saving a file, keep the eol convention of the
original.  New files are written using the eol convention of the
platform, given by os.linesep.  All files are read and written in
binary mode.

22 years agoorganizational and markup cleansing
Fred Drake [Fri, 25 Apr 2003 18:02:34 +0000 (18:02 +0000)]
organizational and markup cleansing

22 years agoUpdate for release into Python
Kurt B. Kaiser [Fri, 25 Apr 2003 17:48:08 +0000 (17:48 +0000)]
Update for release into Python
NEWS.txt idlever.py

22 years agoUpdated information on package metadata to reflect recent additions.
Fred Drake [Fri, 25 Apr 2003 16:43:28 +0000 (16:43 +0000)]
Updated information on package metadata to reflect recent additions.
This is a modified form of SF patch #718027 (mostly markup changes).

22 years agoUpdate for 2.3b1
Kurt B. Kaiser [Fri, 25 Apr 2003 16:37:31 +0000 (16:37 +0000)]
Update for 2.3b1
 Modified Files:
NEWS.txt CREDITS.txt INSTALL.txt setup.cfg

22 years ago- add availability statements for some of the new APIs
Fred Drake [Fri, 25 Apr 2003 16:16:02 +0000 (16:16 +0000)]
- add availability statements for some of the new APIs
- lots of general cleanup

22 years agofinal bit of tests converted from test_sre
Skip Montanaro [Fri, 25 Apr 2003 16:00:14 +0000 (16:00 +0000)]
final bit of tests converted from test_sre

22 years agotest_sre is dead! long live test_re!
Skip Montanaro [Fri, 25 Apr 2003 15:59:12 +0000 (15:59 +0000)]
test_sre is dead! long live test_re!

22 years agodeleted more tests which were either already in test_re or that I migrated
Skip Montanaro [Fri, 25 Apr 2003 15:41:19 +0000 (15:41 +0000)]
deleted more tests which were either already in test_re or that I migrated
in the last revison

22 years agomore tests converted from test_sre
Skip Montanaro [Fri, 25 Apr 2003 15:40:28 +0000 (15:40 +0000)]
more tests converted from test_sre

22 years agoAdd modified versions of the examples from Sean Reifschneider
Fred Drake [Fri, 25 Apr 2003 15:27:33 +0000 (15:27 +0000)]
Add modified versions of the examples from Sean Reifschneider
(SF patch #545480).

22 years agoFix a copy-paste error: the paragraph about inet_ntop's use was copied
Guido van Rossum [Fri, 25 Apr 2003 15:26:58 +0000 (15:26 +0000)]
Fix a copy-paste error: the paragraph about inet_ntop's use was copied
literally from inet_pton.

22 years agoRemove tests which were migrated to test_re.py. There are still more tests
Skip Montanaro [Fri, 25 Apr 2003 15:17:03 +0000 (15:17 +0000)]
Remove tests which were migrated to test_re.py.  There are still more tests
to migrate.

22 years agoreflect csv's change back to a module. Document the new sniffer api.
Skip Montanaro [Fri, 25 Apr 2003 15:14:49 +0000 (15:14 +0000)]
reflect csv's change back to a module.  Document the new sniffer api.

22 years agoUse a simpler \note instead of a "See also" section to refer to the
Fred Drake [Fri, 25 Apr 2003 15:12:47 +0000 (15:12 +0000)]
Use a simpler \note instead of a "See also" section to refer to the
os.walk() generator.

22 years agoSkip testing inet_ntop() an inet_pton() if they aren't defined.
Guido van Rossum [Fri, 25 Apr 2003 15:11:23 +0000 (15:11 +0000)]
Skip testing inet_ntop() an inet_pton() if they aren't defined.
This makes the test pass on Windows again (and on other platforms
that don't have these).

22 years agoFix the tests on Windows, by writing the test data file in binary
Guido van Rossum [Fri, 25 Apr 2003 15:01:05 +0000 (15:01 +0000)]
Fix the tests on Windows, by writing the test data file in binary
mode.

XXX I'm not convinced that this is the right solution -- arguably,
on Windows, the _fileobject class should honor the mode argument
and do newline translation.  But it's never done that so I think
there's no urgent need to fix this today.

22 years agoAdd versionadded for has_ipv6 attribute
Neal Norwitz [Fri, 25 Apr 2003 14:53:48 +0000 (14:53 +0000)]
Add versionadded for has_ipv6 attribute

22 years agoFix markup
Neal Norwitz [Fri, 25 Apr 2003 14:52:41 +0000 (14:52 +0000)]
Fix markup

22 years agomarkup adjustments
Fred Drake [Fri, 25 Apr 2003 14:50:06 +0000 (14:50 +0000)]
markup adjustments

22 years agorework Sniffer api significantly
Skip Montanaro [Fri, 25 Apr 2003 14:47:16 +0000 (14:47 +0000)]
rework Sniffer api significantly

22 years agosome sniffer tests
Skip Montanaro [Fri, 25 Apr 2003 14:43:14 +0000 (14:43 +0000)]
some sniffer tests

22 years agomore tests from test_sre
Skip Montanaro [Fri, 25 Apr 2003 14:31:54 +0000 (14:31 +0000)]
more tests from test_sre

22 years agoAttempt to deal with some obvious errors in the code. These were all
Fred Drake [Fri, 25 Apr 2003 14:27:00 +0000 (14:27 +0000)]
Attempt to deal with some obvious errors in the code.  These were all
due to using a single module-level namespace where multiple namespaces
were used before.

There *really* need to be tests for the sniffer stuff.  This could
have been avoided.

Skip, please review, and add sniffer tests!

22 years agoNew version from Vinaj, should solve the threading problems (hopefully).
Guido van Rossum [Fri, 25 Apr 2003 14:22:00 +0000 (14:22 +0000)]
New version from Vinaj, should solve the threading problems (hopefully).

22 years agocopy a few tests from test_sre
Skip Montanaro [Fri, 25 Apr 2003 14:12:40 +0000 (14:12 +0000)]
copy a few tests from test_sre

22 years agoPort test_bool.py to PyUnit. From SF patch #662807.
Walter Dörwald [Fri, 25 Apr 2003 10:22:01 +0000 (10:22 +0000)]
Port test_bool.py to PyUnit. From SF patch #662807.

22 years agoComplete rewrite of module. Only has tests using temporary files; net tests
Brett Cannon [Fri, 25 Apr 2003 09:39:47 +0000 (09:39 +0000)]
Complete rewrite of module.  Only has tests using temporary files; net tests
should go in test_urllibnet.py .

Still need to write tests for _urlopener usage and urlretrieve.

22 years agoNew generator os.walk() does a bit more than os.path.walk() does, and
Tim Peters [Fri, 25 Apr 2003 07:11:48 +0000 (07:11 +0000)]
New generator os.walk() does a bit more than os.path.walk() does, and
seems much easier to use.  Code, docs, NEWS, and additions to test_os.py
(testing this sucker is a bitch!).

22 years agoMove socket news to 2.3b1 section! And mention has_ipv6.
Guido van Rossum [Fri, 25 Apr 2003 05:52:37 +0000 (05:52 +0000)]
Move socket news to 2.3b1 section!  And mention has_ipv6.

22 years agoPatch by Jp Calderone:
Guido van Rossum [Fri, 25 Apr 2003 05:48:32 +0000 (05:48 +0000)]
Patch by Jp Calderone:

- The socket module now provides the functions inet_pton and inet_ntop
  for converting between string and packed representation of IP addresses.
  See SF patch #658327.

This still needs a bit of work in the doc area, because it is not
available on all platforms (especially not on Windows).

22 years agotest_re is no longer needed
Guido van Rossum [Fri, 25 Apr 2003 01:44:40 +0000 (01:44 +0000)]
test_re is no longer needed

22 years agoFix test_limitations(). The match there is *expected* to raise
Guido van Rossum [Fri, 25 Apr 2003 01:40:11 +0000 (01:40 +0000)]
Fix test_limitations().  The match there is *expected* to raise
RuntimeError.

22 years ago[Patch #628208] Document the allow_none argument
Andrew M. Kuchling [Fri, 25 Apr 2003 00:29:31 +0000 (00:29 +0000)]
[Patch #628208] Document the allow_none argument

22 years ago[Patch #628208] Test the 'nil' extension
Andrew M. Kuchling [Fri, 25 Apr 2003 00:27:24 +0000 (00:27 +0000)]
[Patch #628208] Test the 'nil' extension

22 years ago[Patch #628208] Add optional support for the 'nil' extension
Andrew M. Kuchling [Fri, 25 Apr 2003 00:26:51 +0000 (00:26 +0000)]
[Patch #628208] Add optional support for the 'nil' extension

22 years agoTry to recover from changes in the structure of the CSV package/module.
Tim Peters [Thu, 24 Apr 2003 21:52:16 +0000 (21:52 +0000)]
Try to recover from changes in the structure of the CSV package/module.

22 years agoSquashed new compiler wngs about trying to compare pointers to
Tim Peters [Thu, 24 Apr 2003 20:59:52 +0000 (20:59 +0000)]
Squashed new compiler wngs about trying to compare pointers to
functions with different signatures.

22 years agocsv is a module again
Skip Montanaro [Thu, 24 Apr 2003 20:23:12 +0000 (20:23 +0000)]
csv is a module again

22 years agocvs is going to be a module again
Skip Montanaro [Thu, 24 Apr 2003 20:21:31 +0000 (20:21 +0000)]
cvs is going to be a module again

22 years agoSF bug 557704: netrc module can't handle all passwords
Raymond Hettinger [Thu, 24 Apr 2003 20:11:20 +0000 (20:11 +0000)]
SF bug 557704: netrc module can't handle all passwords

Let netrc handle entries with login fields (mail servers for instance)
by having login default to ''.

Backport candidate.

22 years agomove imports in Binary class to top level to avoid repeated imports.
Skip Montanaro [Thu, 24 Apr 2003 19:51:31 +0000 (19:51 +0000)]
move imports in Binary class to top level to avoid repeated imports.
use cStringIO if available.

22 years agonew method: has_function() - returns a boolean indicating whether the
Skip Montanaro [Thu, 24 Apr 2003 19:49:23 +0000 (19:49 +0000)]
new method: has_function() - returns a boolean indicating whether the
argument function is available on the current platform

22 years agofirst cut at unittest version of re tests
Skip Montanaro [Thu, 24 Apr 2003 19:43:18 +0000 (19:43 +0000)]
first cut at unittest version of re tests

22 years agoif the test is run directly (__name__ == "__main__") don't actually require
Skip Montanaro [Thu, 24 Apr 2003 19:06:57 +0000 (19:06 +0000)]
if the test is run directly (__name__ == "__main__") don't actually require
particular resources

22 years agoremove test_socketserver from the skip lists
Skip Montanaro [Thu, 24 Apr 2003 19:05:41 +0000 (19:05 +0000)]
remove test_socketserver from the skip lists

22 years ago* minor tweaks relating to the package nature of the beast
Skip Montanaro [Thu, 24 Apr 2003 18:47:31 +0000 (18:47 +0000)]
* minor tweaks relating to the package nature of the beast
* added an (incomplete) description of the utils.Sniffer class

22 years agoUpdated a bunch of docs to describe how message ids and strings are
Barry Warsaw [Thu, 24 Apr 2003 18:14:49 +0000 (18:14 +0000)]
Updated a bunch of docs to describe how message ids and strings are
Unicode in GNUTranslations.  Also provide better descriptions of
*gettext() overridden methods, esp. w.r.t. the behavior in the face of
fallbacks.

22 years agoGNUTranslations:
Barry Warsaw [Thu, 24 Apr 2003 18:13:39 +0000 (18:13 +0000)]
GNUTranslations:

    __init__(): Removed since we no longer need the coerce flag.
    Message ids and strings are now always coerced to Unicode, /if/
    the catalog specified a charset parameter.

    gettext(), ngettext(): Since the message strings are Unicodes in
    the catalog, coerce back to encoded 8-bit strings on return.

    ugettext(), ungettext(): Coerce the message ids to Unicode when
    there's no entry for the id in the catalog.

Minor code cleanups; use booleans where appropriate.

22 years agoUnicodeTranslationsTest.setUp(): Removed the coerce flag to the
Barry Warsaw [Thu, 24 Apr 2003 18:08:13 +0000 (18:08 +0000)]
UnicodeTranslationsTest.setUp(): Removed the coerce flag to the
GNUTranslations constructor.

22 years agoRemove unneeded continuation chars
Andrew M. Kuchling [Thu, 24 Apr 2003 17:27:53 +0000 (17:27 +0000)]
Remove unneeded continuation chars

22 years agoMove all the imports to the top; use md5.new()
Andrew M. Kuchling [Thu, 24 Apr 2003 17:26:56 +0000 (17:26 +0000)]
Move all the imports to the top; use md5.new()

22 years agoRun this demo script through reindent.py; output has been verified to remain the...
Andrew M. Kuchling [Thu, 24 Apr 2003 17:26:22 +0000 (17:26 +0000)]
Run this demo script through reindent.py; output has been verified to remain the same

22 years agoModernize the code a bit:
Andrew M. Kuchling [Thu, 24 Apr 2003 17:22:04 +0000 (17:22 +0000)]
Modernize the code a bit:
   use re module
   make chomp() use rstrip()

22 years agoModernize the code a bit:
Andrew M. Kuchling [Thu, 24 Apr 2003 17:17:56 +0000 (17:17 +0000)]
Modernize the code a bit:
   use re module
   use .split() string method

Doesn't use 'for line in sys.stdin'; that ends up changing its interactive
behaviour.

22 years agoRun these demo scripts through reindent.py to give them 4-space indents. I've verifi...
Andrew M. Kuchling [Thu, 24 Apr 2003 17:13:18 +0000 (17:13 +0000)]
Run these demo scripts through reindent.py to give them 4-space indents.  I've verified that their output is unchanged.

22 years agoModernize code by using isinstance() instead of type() checks
Andrew M. Kuchling [Thu, 24 Apr 2003 17:04:45 +0000 (17:04 +0000)]
Modernize code by using isinstance() instead of type() checks

22 years agoAvoid TypeError by not comparing complex numbers
Andrew M. Kuchling [Thu, 24 Apr 2003 16:59:45 +0000 (16:59 +0000)]
Avoid TypeError by not comparing complex numbers

22 years agoBump Windows build number for 2.3b1.
Tim Peters [Thu, 24 Apr 2003 16:55:35 +0000 (16:55 +0000)]
Bump Windows build number for 2.3b1.

22 years agoSF bug 665835: filter() treatment of str and tuple inconsistent
Raymond Hettinger [Thu, 24 Apr 2003 16:52:47 +0000 (16:52 +0000)]
SF bug 665835: filter() treatment of str and tuple inconsistent

As a side issue on this bug, it was noted that list and tuple iterators
used macros to directly access containers and would not recognize
__getitem__ overrides.  If the method is overridden, the patch returns
a generic sequence iterator which calls the __getitem__ method; otherwise,
it returns a high custom iterator with direct access to container elements.

22 years agoBump version number to 2.3b1.
Tim Peters [Thu, 24 Apr 2003 16:45:34 +0000 (16:45 +0000)]
Bump version number to 2.3b1.

22 years agoFix case
Andrew M. Kuchling [Thu, 24 Apr 2003 16:45:05 +0000 (16:45 +0000)]
Fix case

22 years agoAdd some more items
Andrew M. Kuchling [Thu, 24 Apr 2003 16:38:20 +0000 (16:38 +0000)]
Add some more items

22 years agoBump the release information.
Fred Drake [Thu, 24 Apr 2003 16:37:21 +0000 (16:37 +0000)]
Bump the release information.

22 years agoFix docstring typo
Andrew M. Kuchling [Thu, 24 Apr 2003 16:36:49 +0000 (16:36 +0000)]
Fix docstring typo

22 years agoAdd cross-references between urllib.urlencode() and cgi.parse_qs[l]().
Fred Drake [Thu, 24 Apr 2003 16:22:47 +0000 (16:22 +0000)]
Add cross-references between urllib.urlencode() and cgi.parse_qs[l]().
Closes SF bug #724751.

22 years agoThis test now uses the separate getargs_X functions from _testcapimodule.
Thomas Heller [Thu, 24 Apr 2003 16:15:29 +0000 (16:15 +0000)]
This test now uses the separate getargs_X functions from _testcapimodule.

22 years agoNew support functions for test_getargs2.
Thomas Heller [Thu, 24 Apr 2003 16:14:27 +0000 (16:14 +0000)]
New support functions for test_getargs2.
Theres now a separate function for each of the format codes
b, B, H, I, k, i, l, L, K.

22 years agoWhitespace normalization.
Tim Peters [Thu, 24 Apr 2003 16:02:54 +0000 (16:02 +0000)]
Whitespace normalization.

22 years agoGet rid of some hard coded tabs
Barry Warsaw [Thu, 24 Apr 2003 15:58:47 +0000 (15:58 +0000)]
Get rid of some hard coded tabs

22 years agoSF patch 695710: fix bug 678519: cStringIO self iterator
Raymond Hettinger [Thu, 24 Apr 2003 15:50:11 +0000 (15:50 +0000)]
SF patch 695710: fix bug 678519: cStringIO self iterator
(requested by GvR. patch contributed by Michael Stone)

22 years agoSF Patch 549151: urllib2 POSTs on redirect
Raymond Hettinger [Thu, 24 Apr 2003 15:32:12 +0000 (15:32 +0000)]
SF Patch 549151: urllib2 POSTs on redirect
(contributed by John J Lee)

22 years agoNote the platform module.
Fred Drake [Thu, 24 Apr 2003 15:24:46 +0000 (15:24 +0000)]
Note the platform module.

22 years agoAdded a comment about backward compatibility requirements and a link
Barry Warsaw [Thu, 24 Apr 2003 14:28:08 +0000 (14:28 +0000)]
Added a comment about backward compatibility requirements and a link
to the PyBSDDB project at SourceForge.

22 years agoMention deprecation of rotor module
Andrew M. Kuchling [Thu, 24 Apr 2003 13:23:43 +0000 (13:23 +0000)]
Mention deprecation of rotor module

22 years ago[Patch #679505] Document that the rotor module is deprecated
Andrew M. Kuchling [Thu, 24 Apr 2003 13:19:56 +0000 (13:19 +0000)]
[Patch #679505] Document that the rotor module is deprecated

22 years ago[Patch #679505] Document that this module is deprecated
Andrew M. Kuchling [Thu, 24 Apr 2003 13:19:09 +0000 (13:19 +0000)]
[Patch #679505] Document that this module is deprecated

22 years ago[Patch #679505] Silence DeprecationWarning when testing rotor module
Andrew M. Kuchling [Thu, 24 Apr 2003 13:18:25 +0000 (13:18 +0000)]
[Patch #679505] Silence DeprecationWarning when testing rotor module

22 years ago[Patch #679505] Trigger DeprecationWarning on importing the rotor module
Andrew M. Kuchling [Thu, 24 Apr 2003 13:17:13 +0000 (13:17 +0000)]
[Patch #679505] Trigger DeprecationWarning on importing the rotor module

22 years agoReformatted a bit to remove the lengthy re.compile() from the function
Marc-André Lemburg [Thu, 24 Apr 2003 11:46:35 +0000 (11:46 +0000)]
Reformatted a bit to remove the lengthy re.compile() from the function
definitions.

22 years agoNew module platform.py, submitted by Marc-Andre Lemburg.
Marc-André Lemburg [Thu, 24 Apr 2003 11:36:11 +0000 (11:36 +0000)]
New module platform.py, submitted by Marc-Andre Lemburg.

There's no separate documentation for this module yet - apart from the
doc-strings which explain the APIs.

22 years agoSF 686323: Minor array module enhancements
Raymond Hettinger [Thu, 24 Apr 2003 10:41:55 +0000 (10:41 +0000)]
SF 686323: Minor array module enhancements
Allows use of tuples for the initializer.

22 years agoRevert the previous enhancement to the bytecode optimizer.
Raymond Hettinger [Thu, 24 Apr 2003 05:45:23 +0000 (05:45 +0000)]
Revert the previous enhancement to the bytecode optimizer.
The additional code complexity and new NOP opcode were not worth it.

22 years agoFix docstring for URLOpener.retrieve() in regards to opening a local file
Brett Cannon [Thu, 24 Apr 2003 02:43:20 +0000 (02:43 +0000)]
Fix docstring for URLOpener.retrieve() in regards to opening a local file

22 years agoFixed docs for urlretrieve() to match code in the case of opening a local file.
Brett Cannon [Thu, 24 Apr 2003 02:31:14 +0000 (02:31 +0000)]
Fixed docs for urlretrieve() to match code in the case of opening a local file.

Also some typos and removed trailing whitespace on the lines.

22 years agofix some markup errors
Fred Drake [Wed, 23 Apr 2003 20:38:41 +0000 (20:38 +0000)]
fix some markup errors

22 years agoclarify - restrict version mention to the trunk version
Skip Montanaro [Wed, 23 Apr 2003 20:35:14 +0000 (20:35 +0000)]
clarify - restrict version mention to the trunk version

22 years agoadded note about character set limitations in passwords.
Skip Montanaro [Wed, 23 Apr 2003 20:22:12 +0000 (20:22 +0000)]
added note about character set limitations in passwords.

22 years agoDocument the new functions PyInt_AsUnsignedLongMask(), PyInt_AsUnsignedLongLongMask(),
Thomas Heller [Wed, 23 Apr 2003 19:51:05 +0000 (19:51 +0000)]
Document the new functions PyInt_AsUnsignedLongMask(), PyInt_AsUnsignedLongLongMask(),
PyLong_AsUnsignedLongMask(), PyLong_AsUnsignedLongLongMask().

22 years agoMax OS X returns "*" as the password in grp.getgrall()
Walter Dörwald [Wed, 23 Apr 2003 19:50:24 +0000 (19:50 +0000)]
Max OS X returns "*" as the password in grp.getgrall()
and "" in grep.getgrgid(). Adjust the test to work
around this problem. This should fix SF bug #724771.

22 years agoClarified new fsync() docs.
Tim Peters [Wed, 23 Apr 2003 19:47:14 +0000 (19:47 +0000)]
Clarified new fsync() docs.

22 years agoMention the new getargs.c format codes.
Thomas Heller [Wed, 23 Apr 2003 19:35:25 +0000 (19:35 +0000)]
Mention the new getargs.c format codes.