Johannes Gijsbers
c473c99d16
Patch #1006219 : let inspect.getsource show '@' decorators and add tests for
...
this (which are rather ugly, but it'll have to do until test_inspect gets a
major overhaul and a conversion to unittest). Thanks Simon Percivall!
2004-08-18 12:40:31 +00:00
Martin v. Löwis
318a12eb01
Patch #791776 : Replace SMTPHandler.date_time with email.Utils.formatdate.
2004-08-18 12:27:40 +00:00
Martin v. Löwis
fe84d17a6a
Patch #764217 : Add nametofont function, exists parameter.
2004-08-18 11:06:45 +00:00
Raymond Hettinger
9bb1f0592c
Various alpha 3 updates.
2004-08-18 02:51:32 +00:00
Matthias Klose
2443d4ab5d
- pygettext.py: Generate POT-Creation-Date header in ISO format.
2004-08-16 12:10:12 +00:00
Matthias Klose
a2542bee59
The attached patch fixes FTBFS on GNU/k*BSD. The problem happens on GNU/k*BSD
...
because GNU/k*BSD uses gnu pth to provide pthreads, but will also happen on any
system that does the same.
python fails to build because it doesn't detect gnu pth in pthread
emulation. See C comments in patch for details.
patch taken from http://bugs.debian.org/264315
2004-08-16 11:35:51 +00:00
Matthias Klose
2e829c0214
- Bug #891637 , patch #1005466 : fix inspect.getargs() crash on def foo((bar)).
2004-08-15 17:04:33 +00:00
Skip Montanaro
e5069019e7
Add get_history_item and replace_history_item functions to the readline
...
module. Closes patch #675551 . My apologies to Michal Vitecek for taking so
long to process this.
2004-08-15 14:32:06 +00:00
Brett Cannon
add33601c2
Correct the order of application for decorators. Meant to be bottom-up and not
...
top-down. Now matches the PEP.
2004-08-15 07:21:25 +00:00
Johannes Gijsbers
34c4120731
bug #989672 : pdb.doc and the help messages for the help_d and help_u methods
...
of the pdb.Pdb class gives have been corrected. d(own) goes to a newer frame,
u(p) to an older frame, not the other way around.
2004-08-14 15:19:28 +00:00
Johannes Gijsbers
4ec40648a5
bug #990669 : os.path.realpath() will resolve symlinks before normalizing the
...
path, as normalizing the path may alter the meaning of the path if it contains
symlinks.
Also add tests for infinite symlink loops and parent symlinks that need to be
resolved.
2004-08-14 15:01:53 +00:00
Johannes Gijsbers
b112d6ed78
bug 990669: os.path.normpath may alter the meaning of a path if it contains
...
symbolic links. This has been documented in a comment since 1992, but is now in
the library reference as well.
2004-08-14 14:41:32 +00:00
Johannes Gijsbers
9d134b7386
bug #851123 : shutil.copyfile will raise an exception when trying to copy a file
...
onto a link to itself. Thanks Gregory Ball.
2004-08-14 14:03:03 +00:00
Tim Peters
7c399d3e68
Removed item about an asyncore patch that got backed out.
2004-08-13 22:34:14 +00:00
Brett Cannon
b3de2e13ba
'inspect' was not listing the functions in a module properly if the module was
...
reached through a symlink (was comparing path of module to path to function and
were not matching because of the symlink). os.path.realpath() is now used to
solve this discrepency.
Closes bug #570300 . Thanks Johannes Gijsbers for the fix.
2004-08-13 18:46:24 +00:00
Neal Norwitz
f076953eb1
SF patch #1005778 , Fix seg fault if list object is modified during list.index()
...
Backport candidate
2004-08-13 03:18:29 +00:00
Tim Peters
79b52b7261
Boosted the stack reservation for python.exe and python_w.exe from the
...
default 1MB to 2 million bytes. The test suite passes with -uall again
(test_compiler no longer drives WinXP into an insane state).
2004-08-12 18:37:10 +00:00
Michael W. Hudson
800ba2375a
This is my patch:
...
[ 1005891 ] support --with-tsc on PPC
plus a trivial change to settscdump's docstring and a Misc/NEWS entry.
2004-08-12 18:19:17 +00:00
Michael W. Hudson
5e897959db
This is my patch
...
[ 1004703 ] Make func_name writable
plus fixing a couple of nits in the documentation changes spotted by MvL
and a Misc/NEWS entry.
2004-08-12 18:12:44 +00:00
Michael W. Hudson
5523c2517f
A NEWS entry for my last checked in change (I've gotten out of the
...
habit of these, sorry).
2004-08-12 18:09:00 +00:00
Dave Cole
331708b226
Patch #1003700 : Add socketpair function to socket module.
2004-08-09 04:51:41 +00:00
Tim Peters
83b57355a8
Brief xrange news.
2004-08-08 07:24:22 +00:00
Tim Peters
3ddd60a83b
Also deprecated the old Tester class, which is no longer used by anything
...
except internal tests.
2004-08-08 02:43:33 +00:00
Michael W. Hudson
8c47f4a657
eval_frame now has a PyAPI-style name
2004-08-07 20:11:22 +00:00
Jeremy Hylton
4c989ddc9c
Subclasses of string can no longer be interned. The semantics of
...
interning were not clear here -- a subclass could be mutable, for
example -- and had bugs. Explicitly interning a subclass of string
via intern() will raise a TypeError. Internal operations that attempt
to intern a string subclass will have no effect.
Added a few tests to test_builtin that includes the old buggy code and
verifies that calls like PyObject_SetAttr() don't fail. Perhaps these
tests should have gone in test_string.
2004-08-07 19:20:05 +00:00
Andrew M. Kuchling
955d00922c
Add name
2004-08-07 14:17:50 +00:00
Andrew M. Kuchling
b34a6bc19d
Create section for 2.4a3; remove empty sections in 2.4a2
2004-08-07 14:03:33 +00:00
Andrew M. Kuchling
78d375fb86
Another typo
2004-08-07 14:00:39 +00:00
Andrew M. Kuchling
28025ecda4
Typo fix
2004-08-07 13:59:22 +00:00
Raymond Hettinger
52a21b8e65
SF patch #980695 : efficient string concatenation
...
(Original patch by Armin Rigo).
2004-08-06 18:43:09 +00:00
Marc-André Lemburg
c759f070ef
Added new codecs and aliases for ISO_8859-11, ISO_8859-16 and
...
TIS-620.
Closes SF bug #1001895 : Adding missing ISO 8859 codecs, especially Thai.
2004-08-05 12:43:30 +00:00
Anthony Baxter
ff347cadc4
release date
2004-08-05 07:21:01 +00:00
Tim Peters
8485b56216
Edward Loper's cool and massive refactoring of doctest.py, merged from
...
the tim-doctest-merge-24a2 tag on the the tim-doctest-branch branch.
We did development on the branch in case it wouldn't land in time for
2.4a2, but the branch looked good: Edward's tests passed there, ditto
Python's tests, and ditto the Zope3 tests. Together, those hit doctest
heavily.
2004-08-04 18:46:34 +00:00
Hye-Shik Chang
c81c695dc9
Add a proper pointer to SF bug item.
2004-08-04 17:40:38 +00:00
Hye-Shik Chang
7df44b384a
SF #941229 : Decode source code with sys.stdin.encoding in interactive
...
modes like non-interactive modes. This allows for non-latin-1 users
to write unicode strings directly and sets Japanese users free from
weird manual escaping <wink> in shift_jis environments.
(Reviewed by Martin v. Loewis)
2004-08-04 17:36:41 +00:00
Hye-Shik Chang
e9ddfbb412
SF #989185 : Drop unicode.iswide() and unicode.width() and add
...
unicodedata.east_asian_width(). You can still implement your own
simple width() function using it like this:
def width(u):
w = 0
for c in unicodedata.normalize('NFC', u):
cwidth = unicodedata.east_asian_width(c)
if cwidth in ('W', 'F'): w += 2
else: w += 1
return w
2004-08-04 07:38:35 +00:00
Hye-Shik Chang
b5047fd019
Add a workaround for a problem that UTF-8 strings can be corrupted
...
or broken by basic ctype functions in 4.4BSD descendants. This
will be fixed in their future development branches but they'll keep
the POSIX-incompatibility for their backward-compatiblities in near
future.
2004-08-04 06:33:51 +00:00
Martin v. Löwis
1fa649f2d5
Patch #986929 : Add support for wish -sync and -use options.
2004-08-03 18:45:31 +00:00
Fred Drake
f901abdd62
allow ctime(), gmtime(), and localtime() to take None as equivalent to an omitted arg
...
(closes SF bug #658254 , patch #663482 )
2004-08-03 17:58:55 +00:00
Martin v. Löwis
9513e34ac4
Patch #823072 : add option to NOT use ~/.netrc in nntplib.NNTP().
2004-08-03 14:36:32 +00:00
Martin v. Löwis
65a7975f16
Patch #994595 : Recognize Basic auth even if other schemes are offered.
...
Will backport to 2.3.
2004-08-03 12:59:55 +00:00
Raymond Hettinger
66bd233225
Completed the patch for Bug #215126 .
...
* Fixes an incorrect variable in a PyDict_CheckExact.
* Allow general mapping locals arguments for the execfile() function
and exec statement.
* Add tests.
2004-08-02 08:30:07 +00:00
Anthony Baxter
32083f64a7
notes for @decorator
2004-08-02 06:24:59 +00:00
Tim Peters
94f9b86930
"Core" and "C API" news about new semantics for failing imports.
2004-08-02 03:48:03 +00:00
Neal Norwitz
0e67fd478f
Fix SF #1001053 , wave.open() with unicode filename fails
...
Backport candidate.
2004-08-01 22:48:06 +00:00
Greg Ward
9c8fe1a9b5
Mention upgrade of optparse to Optik 1.5a1.
2004-07-31 16:16:11 +00:00
Neal Norwitz
014f103705
SF bug #999776 , zlib home page wrong
...
Backport candidate.
2004-07-29 03:55:56 +00:00
Marc-André Lemburg
17b6d28c64
New codec: [ 996067 ] hp-roman8 codec
2004-07-28 15:37:54 +00:00
Tim Peters
5cfb05eef0
Added a new fileno() method. ZODB's repozo.py wants this so it can
...
apply os.fsync() to the GzipFile backup files it creates.
2004-07-27 21:02:02 +00:00
Martin v. Löwis
544f1195b1
Patch #995766 : Keyword argument support in cPickle.
2004-07-27 05:22:33 +00:00