Barry Warsaw
50889239c3
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.
2003-04-24 18:14:49 +00:00
Barry Warsaw
c4acc2bd32
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.
2003-04-24 18:13:39 +00:00
Barry Warsaw
edb155fda1
UnicodeTranslationsTest.setUp(): Removed the coerce flag to the
...
GNUTranslations constructor.
2003-04-24 18:08:13 +00:00
Andrew M. Kuchling
e81866e7c6
Remove unneeded continuation chars
2003-04-24 17:27:53 +00:00
Andrew M. Kuchling
f64509e348
Move all the imports to the top; use md5.new()
2003-04-24 17:26:56 +00:00
Andrew M. Kuchling
30dd9bc0bf
Run this demo script through reindent.py; output has been verified to remain the same
2003-04-24 17:26:22 +00:00
Andrew M. Kuchling
9b12d9d0d2
Modernize the code a bit:
...
use re module
make chomp() use rstrip()
2003-04-24 17:22:04 +00:00
Andrew M. Kuchling
b7878d09e5
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.
2003-04-24 17:17:56 +00:00
Andrew M. Kuchling
946c53ed7f
Run these demo scripts through reindent.py to give them 4-space indents. I've verified that their output is unchanged.
2003-04-24 17:13:18 +00:00
Andrew M. Kuchling
4f237b6870
Modernize code by using isinstance() instead of type() checks
2003-04-24 17:04:45 +00:00
Andrew M. Kuchling
64b3c830d4
Avoid TypeError by not comparing complex numbers
2003-04-24 16:59:45 +00:00
Tim Peters
91007e2572
Bump Windows build number for 2.3b1.
2003-04-24 16:55:35 +00:00
Raymond Hettinger
9928571f3f
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.
2003-04-24 16:52:47 +00:00
Tim Peters
3209410cb5
Bump version number to 2.3b1.
2003-04-24 16:45:34 +00:00
Andrew M. Kuchling
4e42b31d2e
Fix case
2003-04-24 16:45:05 +00:00
Andrew M. Kuchling
035272be91
Add some more items
2003-04-24 16:38:20 +00:00
Fred Drake
c11076e0da
Bump the release information.
2003-04-24 16:37:21 +00:00
Andrew M. Kuchling
47c2ab6b54
Fix docstring typo
2003-04-24 16:36:49 +00:00
Fred Drake
d859d470a1
Add cross-references between urllib.urlencode() and cgi.parse_qs[l]().
...
Closes SF bug #724751 .
2003-04-24 16:22:47 +00:00
Thomas Heller
54aa5781d5
This test now uses the separate getargs_X functions from _testcapimodule.
2003-04-24 16:15:29 +00:00
Thomas Heller
3457e4bd80
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.
2003-04-24 16:14:27 +00:00
Tim Peters
0eadaac7dc
Whitespace normalization.
2003-04-24 16:02:54 +00:00
Barry Warsaw
0822ff7cca
Get rid of some hard coded tabs
2003-04-24 15:58:47 +00:00
Raymond Hettinger
352f9477da
SF patch 695710: fix bug 678519: cStringIO self iterator
...
(requested by GvR. patch contributed by Michael Stone)
2003-04-24 15:50:11 +00:00
Raymond Hettinger
024aaa1bfe
SF Patch 549151: urllib2 POSTs on redirect
...
(contributed by John J Lee)
2003-04-24 15:32:12 +00:00
Fred Drake
1d5854fdc4
Note the platform module.
2003-04-24 15:24:46 +00:00
Barry Warsaw
c74e4a5351
Added a comment about backward compatibility requirements and a link
...
to the PyBSDDB project at SourceForge.
2003-04-24 14:28:08 +00:00
Andrew M. Kuchling
13b4c41748
Mention deprecation of rotor module
2003-04-24 13:23:43 +00:00
Andrew M. Kuchling
fb5f48542d
[Patch #679505 ] Document that the rotor module is deprecated
2003-04-24 13:19:56 +00:00
Andrew M. Kuchling
bbb9a55327
[Patch #679505 ] Document that this module is deprecated
2003-04-24 13:19:09 +00:00
Andrew M. Kuchling
9f4eb6b719
[Patch #679505 ] Silence DeprecationWarning when testing rotor module
2003-04-24 13:18:25 +00:00
Andrew M. Kuchling
360088f206
[Patch #679505 ] Trigger DeprecationWarning on importing the rotor module
2003-04-24 13:17:13 +00:00
Marc-André Lemburg
366a0feb9a
Reformatted a bit to remove the lengthy re.compile() from the function
...
definitions.
2003-04-24 11:46:35 +00:00
Marc-André Lemburg
246d847475
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.
2003-04-24 11:36:11 +00:00
Raymond Hettinger
84fc9aa6ce
SF 686323: Minor array module enhancements
...
Allows use of tuples for the initializer.
2003-04-24 10:41:55 +00:00
Raymond Hettinger
f4cf76dd5e
Revert the previous enhancement to the bytecode optimizer.
...
The additional code complexity and new NOP opcode were not worth it.
2003-04-24 05:45:23 +00:00
Brett Cannon
7d618c731c
Fix docstring for URLOpener.retrieve() in regards to opening a local file
2003-04-24 02:43:20 +00:00
Brett Cannon
317ad7a5ee
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.
2003-04-24 02:31:14 +00:00
Fred Drake
c22b2999f6
fix some markup errors
2003-04-23 20:38:41 +00:00
Skip Montanaro
54a234a566
clarify - restrict version mention to the trunk version
2003-04-23 20:35:14 +00:00
Skip Montanaro
1bd1d858ae
added note about character set limitations in passwords.
2003-04-23 20:22:12 +00:00
Thomas Heller
34d7f0927b
Document the new functions PyInt_AsUnsignedLongMask(), PyInt_AsUnsignedLongLongMask(),
...
PyLong_AsUnsignedLongMask(), PyLong_AsUnsignedLongLongMask().
2003-04-23 19:51:05 +00:00
Walter Dörwald
ce07c8a9bf
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 .
2003-04-23 19:50:24 +00:00
Tim Peters
2d1c846b73
Clarified new fsync() docs.
2003-04-23 19:47:14 +00:00
Thomas Heller
5eccabc730
Mention the new getargs.c format codes.
2003-04-23 19:35:25 +00:00
Thomas Heller
42a1172cf4
Document the new format codes B, H, I, k, K.
2003-04-23 19:27:35 +00:00
Raymond Hettinger
1d87786305
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.
2003-04-23 19:06:08 +00:00
Raymond Hettinger
6eca358695
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.)
2003-04-23 18:59:54 +00:00
Raymond Hettinger
88ba1e39ec
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.
2003-04-23 17:27:00 +00:00
Fred Drake
444e434011
Update the package list whenever we build distfiles.
...
This is used on www.python.org.
2003-04-23 15:04:52 +00:00