Jeremy Hylton
778e265462
Fix SF buf #480096 : Assign to __debug__ still allowed
...
Easy enough to catch assignment in the compiler. The perverse user
can still change the value of __debug__, but that may be the least he
can do.
2001-11-09 19:50:08 +00:00
Jeremy Hylton
734c7fb131
Fiddle with new test cases -- verify that we get a sensible error
...
message for bad mode argument -- so that it doesn't fail on Windows.
It's hack. We know that errno is set to 0 in this case on Windows, so
check for that specifically.
2001-11-09 19:34:43 +00:00
Barry Warsaw
a4e5c71962
test_formatdate(): Dang. Typo.
2001-11-09 19:31:34 +00:00
Barry Warsaw
7edd71a9f5
test_formatdate(): Don't do the localtime test if we don't have
...
strptime() -- I'm too lazy to code it otherwise.
2001-11-09 19:30:58 +00:00
Tim Peters
114486701a
open_the_file(): this routine has a borrowed reference to the file
...
object, so the "Metroworks only" section should not decref it in case
of error (the caller is responsible for decref'ing in case of error --
and does).
2001-11-09 19:23:47 +00:00
Martin v. Löwis
c010b6d9e0
Add sys/types.h and stdio.h into getaddrinfo test, based on itojun's message
...
in http://mail.python.org/pipermail/python-dev/2001-November/018473.html
2001-11-09 17:50:52 +00:00
Barry Warsaw
75edc6a033
test_formatdate(): A test for email.Utils.formatdate().
2001-11-09 17:46:17 +00:00
Barry Warsaw
9aa6435398
Forgot to import time.
2001-11-09 17:45:48 +00:00
Barry Warsaw
3b0c82a2f1
Updated the documentation for formatdate().
2001-11-09 17:08:13 +00:00
Barry Warsaw
9cff0e604a
formatdate(): A better docstring.
2001-11-09 17:07:28 +00:00
Thomas Heller
3988574075
Remove my name, probably bad style.
2001-11-09 17:04:43 +00:00
Barry Warsaw
aa79f4d492
formatdate(): An implementation to replace the one borrowed from
...
rfc822.py. The old rfc822.formatdate() produced date strings using
obsolete syntax. The new version produces the preferred RFC 2822
dates.
Also, an optional argument `localtime' is added, which if true,
produces a date relative to the local timezone, with daylight savings
time properly taken into account.
2001-11-09 16:59:56 +00:00
Thomas Heller
3e77423a64
Script to print undocumented symbols found in Python header files.
2001-11-09 16:50:35 +00:00
Jeremy Hylton
52a17becbc
Fix SF bug 468948 & 451295: urllib2 authentication problems
...
Fix contributed by Jeffrey C. Ollie.
I haven't tested the fix because the situation is non-trivial to
reproduce.
The basic solution is to get rid of the __current_realm attribute of
authentication handlers. Instead, prevent infinite retries by
checking for the presence of an Authenticate: header in the request
object that exactly matches the Authenticate: header that would be
added.
The problem prevent authentication from working correctly in the
presence of retries.
Ollie mentioned that digest authentication has the same problem and I
applied the same solution there.
2001-11-09 16:46:51 +00:00
Jeremy Hylton
6383c2d1a6
Fix SF bug #479186 : compiler generates bad code for "del"
...
Fix by Neil Schemenauer. Visit the Subscript node when trying to find
the operation for a statement.
XXX Not sure if there are other nodes that should be visited.
2001-11-09 16:24:34 +00:00
Jeremy Hylton
41c8321252
Fix SF buf #476953 : Bad more for opening file gives bad msg.
...
If fopen() fails with EINVAL it means that the mode argument is
invalid. Return the mode in the error message instead of the
filename.
2001-11-09 16:17:24 +00:00
Jeremy Hylton
20747fa167
A better new, unique object
2001-11-09 16:15:04 +00:00
Fred Drake
03459a5cd7
Fix memory leak. This is part of SF patch #478006 .
2001-11-09 16:00:41 +00:00
Fred Drake
f12a68ccd0
Fix memory leak. This is (very!) similar to part of SF patch #478006 .
2001-11-09 15:59:36 +00:00
Michael W. Hudson
03f96bd8f5
Fixes to compile cPickle.c & socketmodule.c on cygwin and possibly
...
other platforms that have funny ideas about whether addresses of
functions in dlls are compile-time constants.
2001-11-09 10:06:23 +00:00
Fred Drake
30bd666c35
Cleaned up some markup stupidity and a usage problem reported by Detlef
...
Lannert. Added descriptions of HTTP_PORT and HTTPS_PORT.
2001-11-09 05:03:05 +00:00
Fred Drake
399bc8c281
Fix a variety of typographical, grammatical, and clarity problems reported
...
by Detlef Lannert.
2001-11-09 03:49:29 +00:00
Martin v. Löwis
bc0ad2d1a4
Merge directory chooser into tkFileDialog.
2001-11-08 17:51:33 +00:00
Fred Drake
d5214b04f5
Clean up one comment, fix typos in others.
2001-11-08 17:19:29 +00:00
Marc-André Lemburg
4962fc8fed
Backing out the fast path for interned string compares again as requested.
2001-11-08 08:34:43 +00:00
Martin v. Löwis
25ee87cc50
Patch #478654 : Expose tk_chooseDirectory.
...
Also delegate kw arguments through ** calls.
2001-11-07 22:38:08 +00:00
Marc-André Lemburg
c52d713b7a
Add fast-path for comparing interned (true) string objects.
...
This patch boosts performance for comparing identical string object
by some 20% on my machine while not causing any noticable slow-down
for other operations (according to tests done with pybench).
2001-11-07 14:54:49 +00:00
Martin v. Löwis
f0b11d2893
Fix memory leaks detecting in bug report #478003 .
2001-11-07 08:31:03 +00:00
Fred Drake
0b66310476
When referring to a formal parameter from the description, use the name given
...
with the signature, not an ad hoc abbreviated form.
2001-11-07 06:28:47 +00:00
Fred Drake
59bfe280f5
Another name!
2001-11-07 06:23:27 +00:00
Fred Drake
66ded524ba
apply() documentation: Remove a detail about the implementation that does
...
not affect the API. Clean up the text about call syntax apply() is
equivalent to. Based on comments by Thomas Guettler.
2001-11-07 06:22:25 +00:00
Tim Peters
6f0699bc09
SF bug #478949 Windows installer start menu registry.
...
I'm guessing at this, pending more info from the bug submitter. Wise
changed how the %GROUP% vrbl got defined between versions 5.0a (used
before Python 2.2) and 8.14, to hold the full path to Start Menu group
instead of just the group name. If I'm guessing correctly, the info
the bug report is complaining about is in one of the registry keys
we set up that neither Windows nor Python cares about. We did store
a full path there in 2.2b1 instead of just the group name; the patch cuts
it back to just the name again.
2001-11-07 04:42:04 +00:00
Fred Drake
1a670c8414
Adjust the module synopsis to avoid margin overruns in the PDF format.
2001-11-06 22:14:35 +00:00
Fred Drake
10b81ce4e5
A variety of small cleanups, including one to avoid a margin overrun in the
...
PDF version.
2001-11-06 22:13:19 +00:00
Fred Drake
5976816698
Remove stray quotes; probably left over from conversion from docstrings.
2001-11-06 22:11:34 +00:00
Fred Drake
806d332f02
Remove extra period.
2001-11-06 22:10:47 +00:00
Fred Drake
752eda459a
Add a regression test for SF bug #478536 : If a value cannot be weakly
...
referenced, WeakKeyDictionary.has_key() should return 0 instead of raising
TypeError.
2001-11-06 16:38:34 +00:00
Fred Drake
3bae7ddf8e
WeakKeyDictionary.has_key(): If the key being tested is not weakly
...
referencable (weakref.ref() raises TypeError), return 0 instead of
propogating the TypeError.
This closes SF bug #478536 ; bugfix candidate.
2001-11-06 16:36:53 +00:00
Jack Jansen
5cc6d6e58e
Changed names, added bridge functions to macfs.fsref objects and
...
generally did things to get it working.
2001-11-06 15:57:59 +00:00
Jack Jansen
2bf52daedd
Added an error message when using FSRef objects on platforms that don't
...
support them.
2001-11-06 15:57:26 +00:00
Jack Jansen
df222d2691
Added hfsplusapi module.
2001-11-06 15:56:56 +00:00
Jack Jansen
6952177dba
Added longlong routines.
2001-11-06 15:55:23 +00:00
Jack Jansen
f122d366bf
Enabled WITH_LONG_LONG. No reason it was disabled, it has been supported by the Metrowerks compiler for quite some time.
2001-11-06 12:11:05 +00:00
Jack Jansen
ae2df93814
Removed unused variable.
2001-11-06 12:10:05 +00:00
Jack Jansen
24aa3cea07
First couple of fixes to make it compile with Universal 3.3.2.
2001-11-06 12:06:39 +00:00
Jack Jansen
e9b2a0597e
HFS+ API contributed by Nitin Ganatra. This checkin is identical to what he sent me, except for the namechange (fmgr->hfsplus).
2001-11-06 11:10:13 +00:00
Andrew M. Kuchling
1f774b062e
Update obsolete e-mail address, and remove myself as a module author
2001-11-05 21:34:36 +00:00
Tim Peters
e5a611c1bc
A couple more test cases to ensure join() doesn't add an "extra" backslash
...
in the presence of empty-string arguments.
2001-11-05 21:33:04 +00:00
Andrew M. Kuchling
4794f0b234
Update obsolete e-mail address
2001-11-05 21:31:33 +00:00
Andrew M. Kuchling
47ccfe2d8f
Remove obsolete e-mail address
2001-11-05 21:31:15 +00:00