]>
granicus.if.org Git - python/log
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).
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
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
Skip Montanaro [Fri, 25 Apr 2003 16:00:14 +0000 (16:00 +0000)]
final bit of tests converted from test_sre
Skip Montanaro [Fri, 25 Apr 2003 15:59:12 +0000 (15:59 +0000)]
test_sre is dead! long live test_re!
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
Skip Montanaro [Fri, 25 Apr 2003 15:40:28 +0000 (15:40 +0000)]
more tests converted from test_sre
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).
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.
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.
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.
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.
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).
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.
Neal Norwitz [Fri, 25 Apr 2003 14:53:48 +0000 (14:53 +0000)]
Add versionadded for has_ipv6 attribute
Neal Norwitz [Fri, 25 Apr 2003 14:52:41 +0000 (14:52 +0000)]
Fix markup
Fred Drake [Fri, 25 Apr 2003 14:50:06 +0000 (14:50 +0000)]
markup adjustments
Skip Montanaro [Fri, 25 Apr 2003 14:47:16 +0000 (14:47 +0000)]
rework Sniffer api significantly
Skip Montanaro [Fri, 25 Apr 2003 14:43:14 +0000 (14:43 +0000)]
some sniffer tests
Skip Montanaro [Fri, 25 Apr 2003 14:31:54 +0000 (14:31 +0000)]
more tests from test_sre
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!
Guido van Rossum [Fri, 25 Apr 2003 14:22:00 +0000 (14:22 +0000)]
New version from Vinaj, should solve the threading problems (hopefully).
Skip Montanaro [Fri, 25 Apr 2003 14:12:40 +0000 (14:12 +0000)]
copy a few tests from test_sre
Walter Dörwald [Fri, 25 Apr 2003 10:22:01 +0000 (10:22 +0000)]
Port test_bool.py to PyUnit. From SF patch #662807.
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.
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!).
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.
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).
Guido van Rossum [Fri, 25 Apr 2003 01:44:40 +0000 (01:44 +0000)]
test_re is no longer needed
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.
Andrew M. Kuchling [Fri, 25 Apr 2003 00:29:31 +0000 (00:29 +0000)]
[Patch #628208] Document the allow_none argument
Andrew M. Kuchling [Fri, 25 Apr 2003 00:27:24 +0000 (00:27 +0000)]
[Patch #628208] Test 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
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.
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.
Skip Montanaro [Thu, 24 Apr 2003 20:23:12 +0000 (20:23 +0000)]
csv is a module again
Skip Montanaro [Thu, 24 Apr 2003 20:21:31 +0000 (20:21 +0000)]
cvs is going to be a module again
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.
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.
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
Skip Montanaro [Thu, 24 Apr 2003 19:43:18 +0000 (19:43 +0000)]
first cut at unittest version of re tests
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
Skip Montanaro [Thu, 24 Apr 2003 19:05:41 +0000 (19:05 +0000)]
remove test_socketserver from the skip lists
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
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.
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.
Barry Warsaw [Thu, 24 Apr 2003 18:08:13 +0000 (18:08 +0000)]
UnicodeTranslationsTest.setUp(): Removed the coerce flag to the
GNUTranslations constructor.
Andrew M. Kuchling [Thu, 24 Apr 2003 17:27:53 +0000 (17:27 +0000)]
Remove unneeded continuation chars
Andrew M. Kuchling [Thu, 24 Apr 2003 17:26:56 +0000 (17:26 +0000)]
Move all the imports to the top; use md5.new()
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
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()
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.
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.
Andrew M. Kuchling [Thu, 24 Apr 2003 17:04:45 +0000 (17:04 +0000)]
Modernize code by using isinstance() instead of type() checks
Andrew M. Kuchling [Thu, 24 Apr 2003 16:59:45 +0000 (16:59 +0000)]
Avoid TypeError by not comparing complex numbers
Tim Peters [Thu, 24 Apr 2003 16:55:35 +0000 (16:55 +0000)]
Bump Windows build number for 2.3b1.
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.
Tim Peters [Thu, 24 Apr 2003 16:45:34 +0000 (16:45 +0000)]
Bump version number to 2.3b1.
Andrew M. Kuchling [Thu, 24 Apr 2003 16:45:05 +0000 (16:45 +0000)]
Fix case
Andrew M. Kuchling [Thu, 24 Apr 2003 16:38:20 +0000 (16:38 +0000)]
Add some more items
Fred Drake [Thu, 24 Apr 2003 16:37:21 +0000 (16:37 +0000)]
Bump the release information.
Andrew M. Kuchling [Thu, 24 Apr 2003 16:36:49 +0000 (16:36 +0000)]
Fix docstring typo
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.
Thomas Heller [Thu, 24 Apr 2003 16:15:29 +0000 (16:15 +0000)]
This test now uses the separate getargs_X functions from _testcapimodule.
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.
Tim Peters [Thu, 24 Apr 2003 16:02:54 +0000 (16:02 +0000)]
Whitespace normalization.
Barry Warsaw [Thu, 24 Apr 2003 15:58:47 +0000 (15:58 +0000)]
Get rid of some hard coded tabs
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)
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)
Fred Drake [Thu, 24 Apr 2003 15:24:46 +0000 (15:24 +0000)]
Note the platform module.
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.
Andrew M. Kuchling [Thu, 24 Apr 2003 13:23:43 +0000 (13:23 +0000)]
Mention deprecation of rotor module
Andrew M. Kuchling [Thu, 24 Apr 2003 13:19:56 +0000 (13:19 +0000)]
[Patch #679505] Document that the rotor 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
Andrew M. Kuchling [Thu, 24 Apr 2003 13:18:25 +0000 (13:18 +0000)]
[Patch #679505] Silence DeprecationWarning when testing 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
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.
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.
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.
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.
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
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.
Fred Drake [Wed, 23 Apr 2003 20:38:41 +0000 (20:38 +0000)]
fix some markup errors
Skip Montanaro [Wed, 23 Apr 2003 20:35:14 +0000 (20:35 +0000)]
clarify - restrict version mention to the trunk version
Skip Montanaro [Wed, 23 Apr 2003 20:22:12 +0000 (20:22 +0000)]
added note about character set limitations in passwords.
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().
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.
Tim Peters [Wed, 23 Apr 2003 19:47:14 +0000 (19:47 +0000)]
Clarified new fsync() docs.
Thomas Heller [Wed, 23 Apr 2003 19:35:25 +0000 (19:35 +0000)]
Mention the new getargs.c format codes.
Thomas Heller [Wed, 23 Apr 2003 19:27:35 +0000 (19:27 +0000)]
Document the new format codes B, H, I, k, K.
Raymond Hettinger [Wed, 23 Apr 2003 19:06:08 +0000 (19:06 +0000)]
SF patch 557704: netrc module can't handle all passwords
Revised netrc.py to include the additional ascii punctuation
characters. Omitted the other logic changes. See
Lib/netrc.py 1.17.
Since this is more of a feature request than a bug,
including in Py2.3 but not recommending for backporting.
Raymond Hettinger [Wed, 23 Apr 2003 18:59:54 +0000 (18:59 +0000)]
SF 557704: netrc module can't handle all passwords
Expanded the range of allowable characters to include ascii punctuation.
Allows resource files to have a larger character set for passwords.
(Idea contributed by Bram Moolenaar.)
Raymond Hettinger [Wed, 23 Apr 2003 17:27:00 +0000 (17:27 +0000)]
SF Patch 685051: fix for 680789: reprs in arraymodule
(contributed by logistix; substantially reworked by rhettinger).
To create a representation of non-string arrays, array_repr() was
starting with a base Python string object and repeatedly using +=
to concatenate the representation of individual objects.
Logistix had the idea to convert to an intermediate tuple form and
then join it all at once. I took advantage of existing tools and
formed a list with array_tolist() and got its representation through
PyObject_Repr(v) which already has a fast implementation for lists.
Fred Drake [Wed, 23 Apr 2003 15:04:52 +0000 (15:04 +0000)]
Update the package list whenever we build distfiles.
This is used on www.python.org.
Alex Martelli [Wed, 23 Apr 2003 13:34:35 +0000 (13:34 +0000)]
some more error-message enhancements
Neal Norwitz [Wed, 23 Apr 2003 13:12:19 +0000 (13:12 +0000)]
Fix SF bug #723801, logging.setLoggerClass() doesn't support new-style classes
Alex Martelli [Wed, 23 Apr 2003 13:00:44 +0000 (13:00 +0000)]
complete and clarify some error messages for range()
Guido van Rossum [Wed, 23 Apr 2003 12:07:22 +0000 (12:07 +0000)]
Improve the message about metatype/metaclass conflicts.
Neal Norwitz [Wed, 23 Apr 2003 03:49:43 +0000 (03:49 +0000)]
SF patch #725904, Minor changes to logging from module author (Vinay Sajip)
- upgrade to version 0.4.8
Tim Peters [Wed, 23 Apr 2003 02:39:17 +0000 (02:39 +0000)]
Enable os.fsync() for Windows, mapping it to MS's _commit() there. The
docs here are best-guess: the MS docs I could find weren't clear, and
some even claimed _commit() has no effect on Win32 systems (which is
easily shown to be false just by trying it).