Barry Warsaw
e274864004
test_formatdate(): Integrating Jack's 22b2 branch fix for Mac epoch:
...
More changes to the formatdate epoch test: the Mac epoch is in
localtime, so east of GMT it falls in 1903:-( Changed the test to
obtain the epoch in both local time and GMT, and do the right
thing in the comparisons. As a sanity measure also check that
day/month is Jan 1.
2001-11-27 07:12:35 +00:00
Fred Drake
beafc795df
Typo, spotted by Fredrik Lundh.
2001-11-26 21:46:53 +00:00
Fred Drake
b03d0cc45e
Typo, spotted by Detlef Lannert.
2001-11-26 21:39:40 +00:00
Fred Drake
fcb05ab512
Tk-related modules should no longer be listed here.
2001-11-26 21:38:50 +00:00
Fred Drake
2744f43f71
Fix typo, extra markup constructs.
...
This closes SF bug #485252 .
2001-11-26 21:30:36 +00:00
Fred Drake
cd8474e6a2
Add documentation for the PyCell* APIs.
2001-11-26 21:29:17 +00:00
Andrew M. Kuchling
ccf04658b0
Correctly create new-style classes in the examples
...
Mention change to _PyTuple_Resize
2001-11-26 18:15:44 +00:00
Tim Peters
dc47a89ff1
SF patch 483059: Avoid use of eval() in random.py, from Finn Bock.
...
_verify(): Pass in the values of globals insted of eval()ing their
names. The use of eval() was obscure and unnecessary, and the patch
claimed random.py couldn't be used in Jython applets because of it.
2001-11-25 21:12:43 +00:00
Martin v. Löwis
652e1917c6
Properly set static options for tixBalloon and tixResizeHandle.
...
Expose Tix.ResizeHandle.{detach_widget,hide,show}.
Update Tix demos.
2001-11-25 14:50:56 +00:00
Martin v. Löwis
3a89b2b131
Patch #484847 : Default to netscape.exe on OS/2.
2001-11-25 14:35:58 +00:00
Guido van Rossum
90c45142d7
- Change all remaining assertions into verify() and vereq() calls.
...
- Add tests for the recent fixes to copy_reg.py:
__getstate__/__setstate__ and mixed inheritance from new+classic
classes.
2001-11-24 21:07:01 +00:00
Guido van Rossum
00fb0c954f
_reduce():
...
- Fix for SF bug #482752 : __getstate__ & __setstate__ ignored (by Anon.)
In fact, only __getstate__ isn't recognized. This fixes that.
- Separately, the test for base.__flags__ & _HEAPTYPE raised an
AttributeError exception when a classic class was amongst the
bases. Fixed this with a hasattr() bandaid (classic classes never
qualify as the "hard" base class anyway, which is what the code is
trying to find).
2001-11-24 21:04:31 +00:00
Guido van Rossum
64585f6afb
PyObject_GetItem(), PyObject_SetItem(), PyObject_DelItem(): Fix a few
...
confusing error messages. If a new-style class has no sequence or
mapping behavior, attempting to use the indexing notation with a
non-integer key would complain that the sequence index must be an
integer, rather than complaining that the operation is not supported.
2001-11-24 18:24:47 +00:00
Barry Warsaw
bf7c52c233
More typo fixes.
2001-11-24 16:56:56 +00:00
Greg Ward
6253c2dd40
Docstring typo fix.
2001-11-24 15:49:53 +00:00
Martin v. Löwis
2b4d580a41
Add hotshot to LIBSUBDIRS. Fixes #484642 .
2001-11-24 09:39:05 +00:00
Martin v. Löwis
e75f0e4801
Correct typo. Fixes #484611 .
2001-11-24 09:31:44 +00:00
Martin v. Löwis
f5c7677602
Support bsddb 3.2. Fixes #483653 .
2001-11-24 09:28:42 +00:00
Martin v. Löwis
560da62fc7
Rename get_referents to get_referrers. Fixes #483815 .
2001-11-24 09:24:51 +00:00
Steven M. Gava
8c1ab14ada
fix for redundant empty parent window when invoked from idle shell window
2001-11-21 05:58:24 +00:00
Steven M. Gava
3b55a891a1
back in harness on new config system
2001-11-21 05:56:26 +00:00
Marc-André Lemburg
72f8213ba4
Fix for bug #438164 : %-formatting using Unicode objects.
...
This patch also does away with an incompatibility between Jython
and CPython.
2001-11-20 15:18:49 +00:00
Marc-André Lemburg
0c4d8d05a8
Fix for bug #480188 : printing unicode objects
2001-11-20 15:17:25 +00:00
Barry Warsaw
4586d2c91c
test_formatdate(): Remove the unnecessary ldate calculation.
...
test_formatdate_zoneoffsets() => test_formatdate_localtime(): Do the
sign corrected calculation of the zone offset.
2001-11-19 18:38:42 +00:00
Barry Warsaw
e5739a69a7
formatdate(): Jason Mastaler correctly points out that divmod with a
...
negative modulus won't return the right values. So always do positive
modulus on an absolute value and twiddle the sign as appropriate after
the fact.
2001-11-19 18:36:43 +00:00
Barry Warsaw
75a40fcc3a
test_formatdate(), test_formatdate_zoneoffsets(): Two changes. First,
...
use the correct way to test for epoch, by looking at the year
component of gmtime(0). Add clause for Unix epoch and Mac epoch (Tim,
what is Windows epoch?).
Also, get rid of the strptime() test, it was way too problematic given
that strptime() is missing on many platforms and issues with locales.
Instead, simply test that formatdate() gets the numeric timezone
calculation correct for the altzone and timezone.
2001-11-19 16:31:06 +00:00
Barry Warsaw
cd45a36959
formatdate(): The calculation of the minutes part of the zone was
...
incorrect for "uneven" timezones. This algorithm should work for even
timezones (e.g. America/New_York) and uneven timezones (e.g.
Australia/Adelaide and America/St_Johns).
Closes SF bug #483231 .
2001-11-19 16:28:07 +00:00
Martin v. Löwis
fba64e1eca
Test for negative buffer sizes. Fixes #482871 .
2001-11-19 10:41:26 +00:00
Fred Drake
27ae311864
Avoid trailing blank lines in the output.
2001-11-19 05:28:29 +00:00
Fred Drake
00c96aeba6
Adjust input pre-processing so that a comment on the last line does not
...
break the processor; this will do the right thing.
2001-11-19 05:27:40 +00:00
Fred Drake
e70dbe0fc5
Update the platform notes for the CGIHTTPServer module; it works on more
...
platforms now, and has since Python 2.0.
This closes SF bug #482943 .
2001-11-19 05:16:35 +00:00
Fred Drake
63c4f907a9
Another name...
2001-11-19 04:35:58 +00:00
Fred Drake
7064d3b581
Fix the default value for feature_namespaces, per discussions on the XML-SIG
...
mailing list. This causes the docs to match the default implementation.
2001-11-19 04:34:50 +00:00
Barry Warsaw
7a1bea64f8
test_formatdate(): A test that has a mild hope of working on Mac,
...
which has a different epoch than *nix. Jack may need to twiddle the
details.
2001-11-18 23:15:58 +00:00
Barry Warsaw
69ab5836ae
Paul Rubin reminds me that of course a class's constructor /could/ get
...
called, if the pickler found a __getinitargs__() method.
2001-11-18 16:24:01 +00:00
Just van Rossum
f376ef0996
a whole bunch of OSX tweaks
2001-11-18 14:12:43 +00:00
Fred Drake
ebbd14d7c2
Clarified a couple of issues for the startElement*() handlers:
...
- the attrs value may be re-used by the parser, so the implementation
cannot rely on owning the object.
- an element with no namespace encountered in namespace mode will have a URI
of None, not "" (startElementNS() only).
Fixed a couple of minor markup issues as well.
2001-11-18 04:58:28 +00:00
Tim Peters
af0a883041
Relatively large expansion of the docs for gc.garbage.
2001-11-18 04:51:17 +00:00
Tim Peters
36515e28ed
Since the MAGIC number scheme is going to break on January 1st, document
...
what it is more carefully and point out some of the subtleties.
2001-11-18 04:06:29 +00:00
Fred Drake
8188e792d9
assert.h was not always included by Python.h; make sure we import it for
...
older versions. (Thanks to Martijn Faassen.)
2001-11-18 02:36:07 +00:00
Fred Drake
ef6373a4f6
Exhibit good form in C code: always provide docstrings in method tables, and
...
always fill in all slots of table entries.
Fixed a few minor markup errors.
2001-11-17 06:50:42 +00:00
Fred Drake
50ecc15d05
Add omitted word for clarity.
2001-11-17 06:39:18 +00:00
Fred Drake
3176b08874
Update to use more modern calling conventions; also avoid a magic number
...
in the function table. Add a docstring for the function as well, since
examples should show good form.
2001-11-17 06:30:20 +00:00
Fred Drake
e012e35460
Bump the version number; used to identify the Python runtime we link to.
2001-11-17 06:28:08 +00:00
Tim Peters
1ec040feb3
Update Windows installer for 2.2c1.
2001-11-17 00:24:45 +00:00
Tim Peters
b3c9af17d9
Add skeleton for 2.2c1 news.
2001-11-17 00:21:57 +00:00
Barry Warsaw
0c0565dd7f
Toughen up the security warnings a bit.
2001-11-16 22:28:17 +00:00
Barry Warsaw
5e17d20743
Add a clarification that the email package always deals in native line
...
endings, and that it is smtplib's job to convert those to RFC 2821
line endings when sending the message.
2001-11-16 22:16:04 +00:00
Barry Warsaw
754b7123e0
Bumping version number.
2001-11-16 21:12:25 +00:00
Fred Drake
dd2487d759
Post-release bumps. Do *NOT* merge into the 2.2b2 branch.
2001-11-16 17:34:38 +00:00