Vinay Sajip
829dc51a05
Improved frame handling for 1.5.2, and now return func from findCaller (not actually used yet)
2005-02-18 11:53:32 +00:00
Vinay Sajip
84df97fdd6
Fixed documentation for SMTPHandler
2005-02-18 11:50:11 +00:00
Walter Dörwald
1fd4db9c6c
Fix copy & paste error.
2005-02-17 22:31:28 +00:00
Walter Dörwald
7f79152929
Add tests for the methods added by UserString.MutableString.
2005-02-17 22:03:31 +00:00
Martin v. Löwis
5510f65f5a
Avoid using items() in environ.update(). Fixes #1124513 .
...
Will backport to 2.4.
2005-02-17 21:23:20 +00:00
Walter Dörwald
3040b19976
Add a basic test for UserString.MutableString.
2005-02-17 18:51:48 +00:00
Michael W. Hudson
8e1afab111
NEWS blurb for fix of:
...
[ 1124295 ] Function's __name__ no longer accessible in restricted mode
2005-02-17 14:55:21 +00:00
Andrew MacIntyre
6ed710a15b
update version numbers
2005-02-17 12:50:27 +00:00
Andrew MacIntyre
578371f080
add notes about subprocess module & thread stacks, SSL support
2005-02-17 12:46:34 +00:00
Andrew MacIntyre
744b313d85
add build machinery for the SSL socket module
2005-02-17 12:44:51 +00:00
Michael W. Hudson
ee319f66ab
Fix
...
[ 1124295 ] Function's __name__ no longer accessible in restricted mode
which I introduced with a bit of mindless copy-paste when making
__name__ writable. You can't assign to __name__ in restricted mode,
which I'm going to pretend was intentional :)
2005-02-17 10:37:21 +00:00
Brett Cannon
5bbe6ad2b5
Fix name for PyDateTime_FromDateAndTime.
...
Closes bug #1124278 .
2005-02-17 05:17:17 +00:00
Raymond Hettinger
2ca7c190b6
Remove dependency on order of mode flags
2005-02-16 09:27:49 +00:00
Brett Cannon
46d9623875
spwdmodule.c should only be built when either HAVE_GETSPNAM or HAVE_GETSPENT is
...
defined.
2005-02-16 00:07:19 +00:00
Tim Peters
f0db38dbf8
Whitespace normalization.
2005-02-15 21:50:12 +00:00
Tim Peters
90718a4eb5
An instance of class PicklingError was used here simply as an example of
...
_some_ user-defined class instance. That it was also an exception isn't
interesting, but does interfere with Michael Hudson's new-style exception
patch. This just changes the doctest example, to use an instance of a
non-exception class.
2005-02-15 16:22:34 +00:00
Michael W. Hudson
f058858347
Test that SystemExits are handled properly by the exit machinery. I
...
broke the "raise SystemExit(46)" case when doing new-style exceptions,
but I'd much rather have found out here than in test_tempfile (growl).
2005-02-15 15:26:11 +00:00
Michael W. Hudson
a1fb4c891f
Exceedingly minor tweak.
2005-02-15 15:22:37 +00:00
Peter Astrand
69bf13f1e8
Added copyright notice:
...
Licensed to PSF under a Contributor Agreement.
2005-02-14 08:56:32 +00:00
Brett Cannon
ced04e0936
Add mention of patch #1095802 (fixing "Macintosh" references to represent OS
...
X).
2005-02-13 22:53:22 +00:00
Brett Cannon
7706c2da14
Update references specifying "Macintosh" to mean OS X semantics and not Mac OS
...
9.
Applies patch #1095802 . Thanks Jack Jansen.
2005-02-13 22:50:04 +00:00
Fred Drake
22c0706a58
fix decoding in _stringify to not depend on the default encoding
...
(closes SF bug #1115989 )
2005-02-11 17:59:08 +00:00
Brett Cannon
4380242580
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
...
sanity checks on tzname if HAVE_TZNAME defined.
Closes bug #1096244 . Thanks Gregory Bond.
2005-02-10 20:48:03 +00:00
Brett Cannon
64d904b715
Remove set conversion optimization test (backed out of Python/compile.c in rev.
...
2.344).
2005-02-10 20:40:29 +00:00
Fred Drake
ba613c3410
accept datetime.datetime instances when marshalling;
...
dateTime.iso8601 elements still unmarshal into xmlrpclib.DateTime objects
2005-02-10 18:33:30 +00:00
Andrew M. Kuchling
bfd7d6a0ea
Fix typo
2005-02-10 13:24:50 +00:00
Peter Astrand
d38ddf4ca2
Patch from Leandro Lucarella: replaced:
...
var == None and var != None
with
var is None and var is not None
and type(var) == int
with
instanceof(var, int)
...as recomended in PEP 8 [1].
2005-02-10 08:32:50 +00:00
Raymond Hettinger
b615bf0681
Remove the set conversion which didn't work with: [] in (0,)
2005-02-10 01:42:32 +00:00
Raymond Hettinger
4e9907c914
SF bug #1119700 : list extend() accepts args besides lists
2005-02-09 23:19:25 +00:00
Raymond Hettinger
5e547969f8
Have set conversion replace existing constant if not used elsewhere.
2005-02-09 21:24:51 +00:00
Trent Mick
4d81ac9ca8
Update PSF copyright year to 2005.
2005-02-09 21:03:47 +00:00
Raymond Hettinger
508e81eda0
Convert splitlines to for-loop (handles case where input does not have a trailing newline).
2005-02-08 15:39:11 +00:00
Walter Dörwald
a9620d1e2b
Fix stupid typo: Don't read from a writer.
2005-02-08 10:10:01 +00:00
Raymond Hettinger
bb5fbc4af9
Wholistic code cleanup / modernization:
...
* Use +=
* Replace loop logic with str.splitlines equivalent
* Don't use variable names that shadow tuple, list, and str
* Use dict.get instead of equivalent try/except
* Minor loop logic simplications
2005-02-08 08:05:13 +00:00
Fred Drake
9aa890a149
add 2.3.5, 2.4 to the history and licensing info
2005-02-08 06:42:39 +00:00
Guido van Rossum
0f1f63cf07
Close the discussion in SF bug 1069160.
2005-02-08 02:07:57 +00:00
Raymond Hettinger
7fcb7869ba
Adopt Skip's idea to optimize lists of constants in the context
...
of a "in" or "not in" test.
2005-02-07 19:32:38 +00:00
Raymond Hettinger
fe59dc1bd8
Revert previous checkin.
2005-02-07 15:28:45 +00:00
Raymond Hettinger
f715366f23
Reduce the usage of the types module.
2005-02-07 14:16:21 +00:00
Raymond Hettinger
a164574937
Transform "x in (1,2,3)" to "x in frozenset([1,2,3])".
...
Inspired by Skip's idea to recognize the throw-away nature of sequences
in this context and to transform their type to one with better performance.
2005-02-06 22:05:42 +00:00
Raymond Hettinger
dbecd93b72
Replace list of constants with tuples of constants.
2005-02-06 06:57:08 +00:00
Raymond Hettinger
07ead17318
Code simplification -- eliminate lookup when value is known in advance.
2005-02-05 23:42:57 +00:00
Raymond Hettinger
f7bf02ded5
SF patch #1028908
...
(John J Lee)
Minor code clarification and simplification.
2005-02-05 14:37:06 +00:00
Raymond Hettinger
bab4143348
SF patch #1116583 : NameError in cookielib domain check
2005-02-05 01:31:19 +00:00
Jeremy Hylton
ab630507de
Add NEWS item about future parser bug.
2005-02-04 18:44:06 +00:00
Jeremy Hylton
c9add9a483
Fix bug that allowed future statements virtually anywhere in a module.
...
If we exit via the break here, we need to set ff_last_lineno or
FUTURE_POSSIBLE() will remain true. The bug affected statements
containing a variety of expressions, but not all expressions. It has
been present since Python 2.2.
2005-02-04 18:38:43 +00:00
Walter Dörwald
1f1d252f51
Add a test for UTF-16 reading where the byte sequence doesn't start with
...
a BOM.
2005-02-04 14:15:34 +00:00
Thomas Heller
07561b3b8e
Recompiled after source changes.
2005-02-03 20:48:26 +00:00
Thomas Heller
9f2e3be4e8
Running a bdist_wininst installer, built with Python 2.3, installing
...
for Python 2.4 caused a segfault when post_install_script was used.
The reason was that the file handle passed to PyRun_SimpleFile() was
created with MSVCRT.DLL, but Python 2.4 uses MSVCR71.DLL.
So, I replaced PyRun_SimpleFile() with PyRun_SimpleString(). The
segfault is gone, but the output of the postinstall script doesn't
show up, because still freopen() from MSVCRT is used.
Already backported.
2005-02-03 20:35:10 +00:00
Thomas Heller
8abe7bfb2f
Set PYTHONHOME before loading Python, so that sys.path will be set correctly.
...
Already backported.
2005-02-03 20:11:28 +00:00