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
Fred Drake
ee7fd697bf
Fixed the gzip synopsis.
1998-07-27 22:30:15 +00:00
Fred Drake
a30e469fda
Added the popen2 synopsis.
1998-07-27 22:20:02 +00:00
Fred Drake
54327c4c05
Added the calendar synopsis.
1998-07-27 22:18:24 +00:00
Fred Drake
edf6b1f431
Added the bisect synopsis.
1998-07-27 22:16:46 +00:00
Fred Drake
9030b0f053
Added the dumbdbm synopsis.
1998-07-27 22:12:26 +00:00
Fred Drake
08caa964c4
Added a synopsis.
1998-07-27 22:08:49 +00:00
Fred Drake
9643c6706f
Fix the synopsis.
...
Change one \code{} to \samp{}.
1998-07-27 22:06:12 +00:00
Fred Drake
b44e75339a
Mark the new & changed items.
1998-07-27 21:11:42 +00:00
Fred Drake
6481ba6251
Update the release date.
1998-07-27 21:10:54 +00:00
Fred Drake
53af049499
do_cmd_localmoduletable(): Cause the child links table to be dropped when
...
there's a local module list.
1998-07-27 20:48:26 +00:00
Fred Drake
897d12bb87
do_cmd_versionadded(),
...
do_cmd_versionchanged(): Support for new macros.
1998-07-27 20:33:17 +00:00
Fred Drake
af958c7be2
\versionadded,
...
\versionchanged: New macros.
1998-07-27 20:32:33 +00:00
Fred Drake
9ad9c9be03
Convert operator precedence table to the new style markup.
...
Added lambda to the table.
Call "**" exponentiation instead of power.
{\em ...} --> \emph{...}
1998-07-27 20:27:53 +00:00
Fred Drake
6f5bf8d59a
Minor tidy.
1998-07-27 19:12:58 +00:00