Tim Peters
8c3e91efaf
Repair typos in comments.
2001-05-10 19:40:30 +00:00
Tim Peters
3918fb2549
Repair typo in comment.
2001-05-10 18:58:31 +00:00
Fred Drake
e61967f537
Change some text just a little to avoid font-lock hell.
2001-05-10 18:41:02 +00:00
Fred Drake
e7ec1efe50
Fix typo in weakref.proxy() documentation.
...
This closes SF bug #423087 .
2001-05-10 17:22:17 +00:00
Fred Drake
aaa48ff5c9
Extend the weakref test suite to cover the complete mapping interface for
...
both weakref.Weak*Dictionary classes.
This closes SF bug #416480 .
2001-05-10 17:16:38 +00:00
Fred Drake
791c351b3d
Update example to no longer use the FCNTL module.
2001-05-10 15:57:17 +00:00
Fred Drake
1d531997a6
Fix the fcntl() docstring so the user is not mis-directed to the FCNTL
...
module for useful constants.
2001-05-10 15:54:32 +00:00
Fred Drake
48a1638d78
Do no regenerate modules that should no longer be here.
2001-05-10 15:52:47 +00:00
Fred Drake
a94414a287
Remove all remaining uses of the FCNTL module from the standard library.
2001-05-10 15:33:31 +00:00
Fred Drake
7c116d7acb
Fix typo reported by David Goodger. This closes SF patch #422383 .
2001-05-10 15:09:36 +00:00
Fred Drake
e9735ac215
Remove all mentions of the strop module -- it has been pronounced Evil.
...
(The string "strop" is found in the rexec documentation, but that should
not be changed until strop is actually removed or rexec no longer allows
it.)
2001-05-10 15:05:03 +00:00
Jack Jansen
99e607a86f
Added a note that test_longexp needs 400MB.
2001-05-10 12:20:30 +00:00
Jack Jansen
d454b578e2
Has been dead so long that there's no use keeping it in the active bit of the repository.
2001-05-10 12:17:03 +00:00
Tim Peters
95bf9390a4
SF bug #422121 Insecurities in dict comparison.
...
Fixed a half dozen ways in which general dict comparison could crash
Python (even cause Win98SE to reboot) in the presence of kay and/or
value comparison routines that mutate the dict during dict comparison.
Bugfix candidate.
2001-05-10 08:32:44 +00:00
Fred Drake
66aaaae54c
Update to reflect deprecation of the FCNTL module: The fcntl module does
...
*not* define O_RDWR; get that from the os module.
2001-05-10 05:17:02 +00:00
Steve Purcell
4bc808533f
patch 418489 from Andrew Dalke for string format bug
2001-05-10 01:28:40 +00:00
Tim Peters
1ee77d9b71
Guido has Spoken. Restore strop.replace()'s treatment of a 0 count as
...
meaning infinity -- but at least warn about it in the code! I pissed
away a couple hours on this today, and don't wish the same on the next
in line.
Bugfix candidate.
2001-05-10 01:23:39 +00:00
Tim Peters
da45d55a6e
The strop module and test_strop.py believe replace() with a 0 count
...
means "replace everything". But the string module, string.replace()
amd test_string.py believe a 0 count means "replace nothing".
"Nothing" wins, strop loses.
Bugfix candidate.
2001-05-10 00:59:45 +00:00
Tim Peters
9c012af3c3
Heh. I need a break. After this: stropmodule & stringobject were more
...
out of synch than I realized, and I managed to break replace's "count"
argument when it was 0. All is well again. Maybe.
Bugfix candidate.
2001-05-10 00:32:57 +00:00
Tim Peters
4cd44ef4bf
Fudge. stropmodule and stringobject both had copies of the buggy
...
mymemXXX stuff, and they were already out of synch. Fix the remaining
bugs in both and get them back in synch.
Bugfix release candidate.
2001-05-10 00:05:33 +00:00
Tim Peters
1a7b3eee94
SF bug #422088 : [OSF1 alpha] string.replace().
...
Platform blew up on "123".replace("123", ""). Michael Hudson pinned the
blame on platform malloc(0) returning NULL.
This is a candidate for all bugfix releases.
2001-05-09 23:00:26 +00:00
Tim Peters
0f8b494df6
Mechanical changes for easier edits.
2001-05-09 22:15:03 +00:00
Fred Drake
48871f2a6e
Remove the old platform-specific FCNTL.py modules; these are no longer
...
needed now that fcntl exports the constants.
2001-05-09 21:15:06 +00:00
Fred Drake
76d6139961
Add a new FCNTL.py backward compatibility module that issues a deprecation
...
warning. This is similar to the TERMIOS backward compatbility module.
2001-05-09 21:13:23 +00:00
Fred Drake
bc7809b529
Update the tests for the fcntl module to check passing in file objects,
...
and using the constants defined there instead of FCNTL.
2001-05-09 21:11:59 +00:00
Fred Drake
d0de57cfbb
Update the fcntl module documentation.
2001-05-09 21:09:57 +00:00
Fred Drake
152a25ee1c
Modify to allow file objects wherever file descriptors are needed.
...
This closes SF bug #231328 .
Added all constants needed to use the functions defined in this module
that are not defined elsewhere (the O_* symbols are available in the
os module). No additonal modules are needed to use this now.
2001-05-09 21:02:02 +00:00
Fred Drake
c99ff60573
fdconv(): Do not second guess the error condition returned by
...
PyObject_AsFileDescriptor() -- it does the same thing everywhere, so
use it the same way everyone else does so that exceptions are
consistent. This means we have less code here, and we do not need to
resort to hackish ways of getting the Python-visible function name to
fdconv().
2001-05-09 20:14:09 +00:00
Tim Peters
1a97d5f098
SF patch #416247 2.1c1 stringobject: unused vrbl cleanup.
...
Thanks to Mark Favas.
2001-05-09 20:06:00 +00:00
Fred Drake
bda3a59a93
Itamar Shtull-Trauring <python@itamarst.org>:
...
Updates zipfile.ZipFile docs to mention the fact that you can create a
ZipFile instance from an arbitrary file-like object.
This closes patch #418011 .
2001-05-09 19:57:37 +00:00
Fred Drake
fd16834ca7
Three uses of makesockaddr() used sockaddr buffers that had not be cleared;
...
this could cause invalid paths to be returned for AF_UNIX sockets on some
platforms (including FreeBSD 4.2-RELEASE), appearantly because there is
no assurance that the address will be nul-terminated when filled in by the
kernel.
PySocketSock_recvfrom(): Use PyString_AS_STRING() to get the data pointer
of a string we create ourselves; there is no need for the extra type
check from PyString_AsString().
This closes SF bug #416573 .
2001-05-09 19:11:33 +00:00
Tim Peters
5ac946c697
SF patch #416249 , from Mark Favas: 2.1c1 compile: unused vrbl cleanup
2001-05-09 18:53:51 +00:00
Tim Peters
d6283b84c8
Minor fiddling related to
...
SF patch 416251 2.1c1 mmapmodule: unused vrbl cleanup
2001-05-09 18:48:26 +00:00
Fred Drake
8449f6b95e
Update build notes for Mac OS X 10.0.
...
This closes SF bug #416530 .
2001-05-09 18:13:47 +00:00
Fred Drake
b2877dd122
Only import termio.h on OSF, and add a comment about why it is needed there.
...
This header does not exist on all Unix flavors; FreeBSD in particular does
not include it.
This closes SF bug #422320 .
2001-05-09 17:53:06 +00:00
Fred Drake
b8ac0096b2
Fix the operator precedence table: exponentiation binds tighter than
...
negation.
This closes SF bug #421999 .
2001-05-09 16:51:49 +00:00
Fred Drake
251ebe7d30
Remove items that have been done or are being tracked in the SourceForge
...
bug tracker.
2001-05-09 16:43:47 +00:00
Fred Drake
283b352d48
Update the directory names to match changes at SourceForge.
2001-05-09 16:33:34 +00:00
Jeremy Hylton
e3e61049a5
Trivial tests of urllib2 for recent SF bug
2001-05-09 15:50:25 +00:00
Fred Drake
c116b82b77
Work around limitations of the module synopsis table generation to avoid
...
leaking LaTeX2HTML's internal string munging.
This fixes SF bug #420399 .
2001-05-09 15:50:17 +00:00
Jeremy Hylton
78cae61ad4
Raise useful exception when called with URL for which request type
...
cannot be determined.
Pseudo-fix for SF bug #420724
2001-05-09 15:49:24 +00:00
Fred Drake
caa79a9ee4
Minor adjustments to HTML for the module synopsis tables.
2001-05-09 15:32:14 +00:00
Tim Peters
4862ab7bf4
Sheesh -- repair the dodge around "cast isn't an lvalue" complaints to
...
restore correct semantics.
2001-05-09 08:43:21 +00:00
Tim Peters
9e897f41db
Mark Favas reported that gcc caught me using casts as lvalues. Dodge it.
2001-05-09 07:37:07 +00:00
Fred Drake
af922187ae
Job.build_html(): Be more robust in ensuring about.html exists; copying
...
the right HTML file to the name about.html is needed even if the
--numeric option was not given -- some other name may have been
assigned due to some non-determinism in the algorithm use to perform
name allocation. ;-(
This closes the "About..." portion of SF bug #420216 .
2001-05-09 04:03:16 +00:00
Fred Drake
a7c9ac6544
There is no IMAP class in the imaplib module; the class is IMAP4.
...
There is no imap module; refer to imaplib instead, since it exists.
Move the "See Also:" section in front of the sub-sections, for
consistency with other portions of the library reference.
This closes the library reference portion of SF bug #420216 .
2001-05-09 03:49:48 +00:00
Fred Drake
1ef24e1b30
Note that when inplace=1 existing backup files will be removed silently.
...
Closes SF bug #420230 .
2001-05-09 03:24:55 +00:00
Mark Hammond
fb1f68ed7c
Always pass a full path name to LoadLibraryEx(). Fixes some Windows 9x problems. As discussed on python-dev
2001-05-09 00:50:59 +00:00
Tim Peters
b4bbcd76ea
Ack! Restore the COUNT_ALLOCS one_strings code.
2001-05-09 00:31:40 +00:00
Tim Peters
cf5ad5d6f6
My change to string_item() left an extra reference to each 1-character
...
interned string created by "string"[i]. Since they're immortal anyway,
this was hard to notice, but it was still wrong <wink>.
2001-05-09 00:24:55 +00:00