Tim Peters
95c80f8439
Disallow 'yield' in a 'try' block when there's a 'finally' clause.
...
Derived from Thomas Wouters's patch on the Iterators list, but doesn't
try to read c->c_block[c->c_nblocks].
2001-06-23 02:07:08 +00:00
Fred Drake
1bf198e946
Remove an extra tab character.
2001-06-22 18:36:07 +00:00
Fred Drake
307cb05764
Re-organize a little, clean up some markup.
...
Added some comments about sys.exit(), SystemExit, and preventing restricted
code from exiting the interpreter.
This closes SF bug #434743 .
2001-06-22 18:21:53 +00:00
Fred Drake
a2d848e99c
Add sha and _sre to the list of allowed built-in modules.
2001-06-22 18:19:16 +00:00
Fred Drake
f66cb5d0eb
Corrected an error in the information on supporting weak references in
...
extension types (the docs reflected a development version of the API).
This closes SF bug #435066 .
2001-06-22 17:20:29 +00:00
Fred Drake
9ca78ac57f
Adjust to understand use of either single- or double-quotes to quote
...
attribute values, and make the logic surrounding the platform
annotations just a little easier to read. Also make the platform
notes appear in the generated page; they were supposed to, but did not.
2001-06-22 17:11:30 +00:00
Fred Drake
aff8837740
Add the new texinputs/license.tex to the shared dependencies.
2001-06-22 17:07:02 +00:00
Guido van Rossum
9966e2c663
This is a trivial command line utility to print MD5 checksums.
...
I published it on the web as http://www.python.org/2.1/md5sum.py
so I thought I might as well check it in.
Works with Python 1.5.2 and later.
Works like the Linux tool ``mdfsum file ...'' except it doesn't take
any options or read stdin.
2001-06-22 16:05:48 +00:00
Fred Drake
93438bf0a2
Fix & clean up the information about building Python with large file support
...
for Linux.
This closes SF bug #434975 .
2001-06-22 16:01:20 +00:00
Just van Rossum
1a3125ef73
Changed the order of the buttons for EasyDialogs.AskYesNoCancel() from the unusual [cancel, no, yes] to the more standard [no, cancel, yes].
2001-06-22 15:09:56 +00:00
Tim Peters
289a961cd4
Record Windows build number for 2.0.1 final.
2001-06-22 02:06:04 +00:00
Just van Rossum
67456e841c
don't blow up when the charno SyntaxError value is None
2001-06-21 21:52:15 +00:00
Just van Rossum
b10eb84f29
repaired expandselection and uncomment breakage
2001-06-21 17:51:17 +00:00
Just van Rossum
50cb38df43
Added support for the gc module (!).
2001-06-21 14:50:03 +00:00
Guido van Rossum
14e1871607
Somehow, under certain circumstances, config.h and rename1.h would pop back up.
...
Try to see if 'cvs delete' fixes this.
2001-06-21 12:34:50 +00:00
Tim Peters
d6d010b874
Teach the UNPACK_SEQUENCE opcode how to tease an iterable object into
...
giving up the goods.
NEEDS DOC CHANGES
2001-06-21 02:49:55 +00:00
Neil Schemenauer
2b13ce8317
Try to avoid creating reference cycles involving generators. Only keep a
...
reference to f_back when its really needed. Do a little whitespace
normalization as well. This whole file is a big war between tabs and spaces
but now is probably not the time to reindent everything.
2001-06-21 02:41:10 +00:00
Jack Jansen
2942131dac
Got rid of a silly #if.
2001-06-20 21:44:38 +00:00
Fred Drake
490d34dbad
Move license information to a less annoying location in the document.
...
Add documentation for PyErr_SetFromErrnoWithFilename().
2001-06-20 21:39:12 +00:00
Fred Drake
d5df09cfb6
Update to include the license information in a less annoying place.
2001-06-20 21:37:34 +00:00
Fred Drake
852f7951a2
Separate the copyright statements and license text; include some new
...
comments regarding the history of Python licensing from Guido.
2001-06-20 21:34:35 +00:00
Fred Drake
f911a84d5a
Separate the version number and release status into two separate values.
2001-06-20 21:33:13 +00:00
Fred Drake
dce975c820
Update to use the newly separated values $PACKAGE_VERSION and $RELEASE_INFO.
...
Normalize all HTML attributes to be written as name="value" instead of
name='value'.
2001-06-20 21:31:36 +00:00
Jack Jansen
b8248d8cff
Don't use extern when we mean staticforward (OSX gcc is picky about it).
...
Blacklist SendControlMessage: it's signature has changed between Universal Headers 3.3 and 3.4.
2001-06-20 21:31:28 +00:00
Fred Drake
f1927a6d80
Added support for new \setreleaseinfo macro.
...
Normalize all generated HTML so that attribute names come out as
name="value" instead of name='value'.
Changed the target of RFC links to point to the hypertext RFCs at
www.faqs.org instead of the plain text RFCs at www.ietf.org.
2001-06-20 21:29:30 +00:00
Jack Jansen
82bcbd04fd
{Is,Set}AntiAliasedTextEnabled don't exist on MacOS 8.5.5 and earlier. For now: cop out and blacklist them.
2001-06-20 21:29:19 +00:00
Jack Jansen
3685a4328d
ANSIfied function headers to shut up compiler warnings on OSX/Mach-o.
2001-06-20 21:22:23 +00:00
Jack Jansen
6b9289ff1a
Added a const to shut up a compiler warning.
2001-06-20 21:21:07 +00:00
Jack Jansen
4edc5eb639
Reversed the order of the checks for None or a Dialog where a Window is expected so it doesn't crash under OSX/Mach-o.
2001-06-20 21:20:22 +00:00
Fred Drake
c65218e1fd
Add a little more support for describing version information. This
...
is not pretty, but does what is needed.
2001-06-20 21:17:09 +00:00
Jack Jansen
8853b18cc8
Removed some unused routines under Carbon. They caused compile errors with UH34.
2001-06-20 20:55:05 +00:00
Jack Jansen
ff75c214ef
Adapted to Universal Headers 3.4: new refcontype and use UPP names in stead of Proc names for callback creation.
2001-06-20 20:53:38 +00:00
Jack Jansen
5daef31355
Adapted for Universal Headers 3.4: refcon type has changed (sigh) and use modern (UPP in stead of Proc) names for callback object creation.
2001-06-20 20:50:19 +00:00
Just van Rossum
d700d79a73
Override bdb's canonic() method with a no-op: with bdb's version we couldn't edit breakpoints in file-less ("Untitled" script windows). Besides, we did't need it as we always use full path names anyway.
2001-06-20 19:57:55 +00:00
Barry Warsaw
5c94ce58e7
write(): Karl Eichwalder points out that the #, flag comments should
...
be outputted just before the msgid lines.
2001-06-20 19:41:40 +00:00
Tim Peters
6302ec63fc
gen_iternext(): repair subtle refcount problem.
...
NeilS, please check! This came from staring at your genbug.py, but I'm
not sure it plugs all possible holes. Without this, I caught a
frameobject refcount going negative, and it was also the cause (in debug
build) of _Py_ForgetReference's attempt to forget an object with already-
NULL _ob_prev and _ob_next pointers -- although I'm still not entirely
sure how! Part of the difficulty is that frameobjects are stored on a
free list that gets recycled very quickly, so if there's a stray pointer
to one of them it never looks like an insane frameobject (never goes
trough the free() mangling MS debug forces, etc).
2001-06-20 06:57:32 +00:00
Neil Schemenauer
43afb24c30
Remove unused code.
2001-06-20 00:39:28 +00:00
Barry Warsaw
7599a3fc5a
Add a bunch of sample strings to test soft line breaks of varying end
...
cases.
2001-06-19 22:48:42 +00:00
Barry Warsaw
dac67ac8bf
encode(): Fixed the handling of soft line breaks for lines over 76
...
characters in length. Remember that when calculating the soft breaks,
the trailing `=' sign counts against the max length!
2001-06-19 22:48:10 +00:00
Just van Rossum
fb3e54fd99
made 7-bit-clean.
2001-06-19 21:38:42 +00:00
Just van Rossum
dc3c617cb8
Some long overdue maintainance. Made all IDE sources 7-bit-clean, to avoid any further encoding conversion troubles.
2001-06-19 21:37:33 +00:00
Jack Jansen
9020bcebc8
- _filename_to_abs() didn't cater for .. components in the pathname. Fixed.
...
- compile() didn't return a (empty) list of objects. Fixed.
- the various _fix_xxx_args() methods weren't called (are they new or did I overlook them?). Fixed.
2001-06-19 21:23:11 +00:00
Jack Jansen
97df7b61f2
The test used int(time.time()) to get a random number, but this doesn't work on the mac (where times are bigger than ints). Changed to int(time.time()%1000000).
2001-06-19 20:20:05 +00:00
Jack Jansen
1bdcadd610
An import MacOS was missing after the code-rearranging. Added.
2001-06-19 20:11:36 +00:00
Marc-André Lemburg
a37171dd86
Test by Martin v. Loewis for the new UTF-16 codec handling of BOM
...
marks.
2001-06-19 20:09:28 +00:00
Marc-André Lemburg
92b550cdd8
This patch by Martin v. Loewis changes the UTF-16 codec to only
...
write a BOM at the start of the stream and also to only read it as
BOM at the start of a stream.
Subsequent reading/writing of BOMs will read/write the BOM as ZWNBSP
character. This is in sync with the Unicode specifications.
Note that UTF-16 files will now *have* to start with a BOM mark
in order to be readable by the codec.
2001-06-19 20:07:51 +00:00
Barry Warsaw
8c78d3a5d1
write(): It's been generally agreed on the i18n-sig that the docstring
...
marker should be output as a #, flag, e.g. "#, docstring".
2001-06-19 19:54:19 +00:00
Barry Warsaw
6016e39250
Document the new encodestring() and decodestring() functions. Also,
...
add some description of what the quotetabs argument does for the
encode*() functions. Finally, add a "see also" pointing to the base64
module.
2001-06-19 19:44:42 +00:00
Just van Rossum
92c5bdbc19
Fixed -D emulation for symbols with a value, as specified with the define_macros Extension argument.
2001-06-19 19:44:02 +00:00
Barry Warsaw
7069763913
A unittest-based test for the quopri module.
2001-06-19 19:08:13 +00:00