Guido van Rossum
bcc207484a
Changes for BeOS, QNX and long long, by Chris Herborth.
1998-08-04 22:53:56 +00:00
Guido van Rossum
1a8791e0b8
Changes for BeOS, QNX and long long, by Chris Herborth.
1998-08-04 22:46:29 +00:00
Guido van Rossum
7d896ab1bb
Added gethostbyname_ex(), which returns the same kind of data as
...
gethostbyaddr(). (Plain gethostbyname() returns only the IP address.)
This moves the code shared by gethostbyaddr() and gethostbyname_ex()
to a subroutine.
Original patch by Dan Stromberg; some tweaks by GvR.
1998-08-04 22:16:43 +00:00
Fred Drake
45f2601cf3
get_chapter_id(): Separate two aspects of string replacement to allow the
...
need for each to vary independently.
1998-08-04 22:07:18 +00:00
Fred Drake
f54556efae
Fixed wrapping on some long lines.
1998-08-04 20:53:55 +00:00
Guido van Rossum
ec95c7bd2b
Changes for BeOS, QNX and long long, by Chris Herborth.
1998-08-04 17:59:56 +00:00
Guido van Rossum
d8eb2119b5
Adding the BeOS port. More checkins to follow.
1998-08-04 17:57:28 +00:00
Fred Drake
3f7b6fcea0
Ok, we'll try this again: update the release date. ;-(
1998-08-04 17:01:18 +00:00
Fred Drake
228e31eef9
Update the documentation release number in RELEASE.
1998-08-04 16:59:29 +00:00
Guido van Rossum
da4d6daa4a
Support case insensitive treatment of os.environ keys on Windows and
...
DOS (as well as OS/2). I presume that making a call to putenv() with
a lowercase key will actually do the right thing. I know this is so
on Windows/DOS, and I expect it is so OS/2 -- but the old OS/2 code
didn't assume this. (I don't know if the person who provided the OS/2
patch was clueless or just didn't care about DOS and Windows.)
Also ripped out the support for pickling -- as of 1.5, this is no
longer needed to make pickling work.
1998-08-04 16:01:23 +00:00
Fred Drake
7f875ef749
parser__pickler(): Use Py_DECREF() when reference is known to be non-NULL.
1998-08-04 15:58:10 +00:00
Guido van Rossum
fcfb6323fb
Latest version by The Dragon, who writes:
...
I did some bugfixes, and fixed a major problem with the esmtp suport (I
think the person who did that part misunderstood RFC1869) Some of the
interface fer esmtp-related things has changed as a result.
I also added some documentation to the SMTP class' docstring.
1998-08-04 15:29:54 +00:00
Guido van Rossum
5053efc2c4
In BUILD_LIST, use PyList_SET_ITEM() instead of PyList_SetItem(); and
...
get rid of redundant error check.
1998-08-04 15:27:50 +00:00
Guido van Rossum
c96417980c
Patch by Jody Winston (with my changes) to add some of the "wait
...
status inspection" macros as functions: WEXITSTATUS(), WIFEXITED(),
WIFSIGNALED(), WIFSTOPPED(), WSTOPSIG(), WTERMSIG().
1998-08-04 15:26:23 +00:00
Guido van Rossum
923fece5bd
Better error messages when raising ValueError for int literals. (The
...
previous version of this code would not show the offending input, even
though there was code that attempted this.)
1998-08-04 15:04:52 +00:00
Guido van Rossum
ac6a37ae55
Fix a potential problem in PyLong_FromString(): could fall through the
...
for loop with z==NULL but continue to reference z later.
1998-08-04 15:04:06 +00:00
Guido van Rossum
df3d8756b7
Better error messages when raising ValueError for int and long
...
literals. (The previous version of this code would not show the
offending input, even though there was code that attempted this.)
1998-08-04 15:02:01 +00:00
Guido van Rossum
152d8173a3
Fix a memory leak -- the cached values of __getattr__ etc. were never
...
freed.
1998-08-04 14:59:16 +00:00
Guido van Rossum
f6fc1ec462
Jim A's new versions of these
1998-08-03 20:23:42 +00:00
Guido van Rossum
84c6fc9653
Patch by Ron Klatchko: fix invariant in _unread(). Also fixed
...
readlines() to behave like it should (return lines with "\n" appended).
1998-08-03 15:41:39 +00:00
Guido van Rossum
6fd83b7b38
Generalized so it's useful for testing other packages, by Andrew
...
Kuchling @ CNRI.
1998-08-01 17:04:08 +00:00
Guido van Rossum
3357561476
Added randrange to list of exported functions.
1998-07-31 13:40:05 +00:00
Guido van Rossum
187f154243
Introducing randrange([start,] stop [,step]) -- same as
...
choice(range(start, stop, step)) but faster. This addresses the
problem that randint() was accidentally defined as taking an inclusive
range (how unpythonic).
The code is longish because Tim Peters insisted that it reject
non-integral arguments while I insisted that it be not much slower
than randint(); the compromise satisfies both but is somewhat
convoluted.
Also changed randint() to be implemented through randrange(). This is
a semantic change because old randint() didn't test its arguments for
validity. (It also makes randrange() win any contest with randint()
:-)
1998-07-31 13:39:44 +00:00
Jack Jansen
490ec9c877
Use buildtools where appropriate.
...
Build BuildApplication applet too.
1998-07-31 09:45:27 +00:00
Jack Jansen
b44f1cca6c
Build a full standalone application from a python script (Just)
1998-07-31 09:44:58 +00:00
Jack Jansen
015b70ec93
Common code used to the buildtools module (Just)
1998-07-31 09:44:23 +00:00
Jack Jansen
b5ae378c84
Implementation of freezing from shared libraries, without source. (Just)
1998-07-31 09:43:36 +00:00
Jack Jansen
813c997b76
Common code for BuildApplet, BuildApplication and fullbuild (Just)
1998-07-31 09:42:35 +00:00
Jack Jansen
87440e44d8
Extended replacement for scripts:cfmfile.py (Just)
1998-07-31 09:41:59 +00:00
Jack Jansen
871fad2641
Added has_key() method to IC object.
...
Removed a debug print.
1998-07-31 09:39:28 +00:00
Jack Jansen
a7a7df0666
New about box and a few other fixes by Just, and everything got
...
rebinhexed again.
1998-07-31 09:38:49 +00:00
Jack Jansen
87c485c1ad
Initialize the program name before adding shared library resources (Just).
1998-07-31 09:38:01 +00:00
Jack Jansen
2e6445caa6
Don't add the library file to the resource file chain if it is the
...
same as the application file (Just).
1998-07-31 09:37:02 +00:00
Jack Jansen
7e1fb7c92d
New about box, with the version mesage filled in in a text item, and
...
PLstrcmp() fixed. (Just)
1998-07-31 09:36:30 +00:00
Jack Jansen
017e0ff1a0
The PYD resource should now contain 2 strings: one for the ppc
...
fragment name and one for the cfm68k fragment name (Just).
Also, some unused variables removed.
1998-07-31 09:34:47 +00:00
Jack Jansen
abdf93c6dc
Re-indented properly (Just).
1998-07-31 09:33:28 +00:00
Guido van Rossum
5fdd119aba
Clarify the + and b mode characters for open() a bit.
1998-07-29 21:05:35 +00:00
Fred Drake
b35631587b
Pass paper size to dvips explicitly.
1998-07-29 05:07:41 +00:00
Fred Drake
8f7abed9d4
Update.
1998-07-29 04:45:53 +00:00
Fred Drake
d05177fa84
tohtml(): Use a table instead of a definition list for module synopses.
1998-07-29 04:45:23 +00:00
Fred Drake
d19b9d6c07
Fix two remaining references to all-pdf and all-ps to only use pdf and ps.
1998-07-29 03:49:44 +00:00
Fred Drake
9f86b662d1
Update to use a separate page for front matter.
1998-07-28 21:55:19 +00:00
Fred Drake
e574405eff
Update the HOWTO template to use a separate page for front matter, with
...
comments.
1998-07-28 21:53:34 +00:00
Fred Drake
514cd87d40
do_cmd_maketitle(): No <hr> at the end of the "title page".
1998-07-28 21:52:57 +00:00
Fred Drake
1e4973be73
Define stuff to allow simple HTML-only selection using TeX's \if<foo>...\fi
...
stuff. \ifhtml ...\fi for HTML only.
1998-07-28 21:52:17 +00:00
Fred Drake
efc17bd968
Added ref/ref.tex to REFFILES.
...
Fixed up some comments.
Removed info-related targets from the really big combined targets.
1998-07-28 21:05:16 +00:00
Fred Drake
61c7728cc9
Make sure all chapters, sections, and subsections have a \label to give them
...
semantic file names in the HTML. No more node#.html files!
1998-07-28 19:34:22 +00:00
Fred Drake
020f8c0139
Make sure chapters, sections, and subsections all have a \label to give them
...
semantic file names in the HTML version; no more node#.html files.
Fix one section heading.
1998-07-28 19:32:59 +00:00
Guido van Rossum
1a7bab05e8
Don't use raw_input() to ask for the password; this puts the password
...
in the GNU readline history buffer which is not such a great idea.
1998-07-28 19:28:43 +00:00
Jeremy Hylton
ec8c8c2ef2
fix __str__ method of EnvironmentError (base class of IOError): was
...
using "%d" % errno to print out IOError exceptions -- but urllib.py
raises exceptions where the errno slot in the exception tuple is a
string.
1998-07-28 17:30:06 +00:00