Barry Warsaw
033daa49ea
Test the new semantics for setting and deleting a function's __dict__
...
attribute. Deleting it, or setting it to a non-dictionary result in a
TypeError. Note that getting it the first time magically initializes
it to an empty dict so that func.__dict__ will always appear to be a
dictionary (never None).
Closes SF bug #446645 .
2001-08-14 18:28:28 +00:00
Barry Warsaw
142865cae1
func_getattro(), func_setattro(): Implement the new semantics for
...
setting and deleting a function's __dict__ attribute. Deleting
it, or setting it to a non-dictionary result in a TypeError. Note
that getting it the first time magically initializes it to an
empty dict so that func.__dict__ will always appear to be a
dictionary (never None).
Closes SF bug #446645 .
2001-08-14 18:23:58 +00:00
Barry Warsaw
5ef99a0bc5
Describe the new semantics for setting and deleting a function's
...
__dict__ attribute. Deleting it, or setting it to a non-dictionary
result in a TypeError. Note that getting it the first time magically
initializes it to an empty dict so that func.__dict__ will always
appear to be a dictionary (never None).
Closes SF bug #446645 .
2001-08-14 18:22:24 +00:00
Fred Drake
680cabb225
Add "exceptions" to the list of fundamental modules
...
created by Py_Initialize().
This closes SF bug #450621 .
2001-08-14 15:32:16 +00:00
Fred Drake
280f7253e4
Insert omitted "the".
2001-08-14 11:42:13 +00:00
Fred Drake
bf781a95c0
Add the smtpd module to the list of undocumented modules; Barry needs to
...
write the documentation for this module.
2001-08-14 11:38:35 +00:00
Barry Warsaw
b9c1d3dedf
reload(exceptions) should not raise an ImportError, but should act
...
just like reload(sys). Test that this is so. Closes SF bug #422004 .
2001-08-13 23:07:00 +00:00
Barry Warsaw
928833891a
Fixed typo in comment leading up to _PyImport_FixupExtension().
2001-08-13 23:05:44 +00:00
Barry Warsaw
5821bc5145
Py_Initialize(): Apply patch by Jürgen Hermann to call
...
_PyImport_FixupExtension() on the exceptions module. Now
reload(exceptions) acts just like reload(sys) instead of raising
an ImportError.
This closes SF bug #422004 .
2001-08-13 23:04:56 +00:00
Tim Peters
04601063e8
Repair Unix-specific assumptions that caused this to fail on Windows.
2001-08-13 22:25:24 +00:00
Barry Warsaw
406d46e185
found_terminator(): Add a debug print showing the data.
2001-08-13 21:18:01 +00:00
Fred Drake
3a28ca8fb8
Nick Mathewson: test suite for the class browser support module.
2001-08-13 20:26:19 +00:00
Fred Drake
03f7a70345
Nick Mathewson: Make sure the recursion is handled properly.
...
This is part of SF patch #440292 .
2001-08-13 20:20:51 +00:00
Fred Drake
6943a29cbf
David Goodger <dgoodger@atsautomation.com>:
...
Documentation for difflib/ndiff refactoring: more of the ndiff functionality
has been moved to the underlying library (difflib).
This closes SF patch #445413 .
2001-08-13 19:31:59 +00:00
Guido van Rossum
97dbec97bc
Remove redundant import (PyChecker).
...
Update greeting message to avoid the long copyright notice.
2001-08-13 15:58:26 +00:00
Guido van Rossum
4a5555b19d
Remove unused variable 'imports' from readmodule_ex().
2001-08-13 15:55:19 +00:00
Guido van Rossum
8f15bd8500
Remove redundant 'import string' (PyChecker).
2001-08-13 15:48:06 +00:00
Guido van Rossum
ef8f4dee07
Remove redundant imports (PyChecker).
2001-08-13 15:37:02 +00:00
Guido van Rossum
a79bbaca54
Remove redundant 'import sys' (PyChecker).
2001-08-13 15:34:41 +00:00
Guido van Rossum
f9f48812d0
Remove two redundant statements (PyChecker).
2001-08-13 15:30:22 +00:00
Guido van Rossum
bfbc18dbf9
Remove redundant assignment l = [] from poll3() -- copy-and-paste
...
error.
2001-08-13 15:21:55 +00:00
Andrew M. Kuchling
f3b9430fd1
Update a beopen.com e-mail
2001-08-13 15:14:13 +00:00
Andrew M. Kuchling
5996825ebc
Update a few references to beopen.com
2001-08-13 15:13:24 +00:00
Andrew M. Kuchling
392aa1de1d
Update e-mail address
2001-08-13 15:10:54 +00:00
Guido van Rossum
8710681400
Commenting out the getfillable() method -- it's broken, and nobody
...
remembers what it is supposed to do. :-(
2001-08-13 15:04:33 +00:00
Andrew M. Kuchling
8837814cd4
Add a name
2001-08-13 15:00:36 +00:00
Andrew M. Kuchling
7c2cf73811
Remove redefinition of has_option() method
2001-08-13 14:58:32 +00:00
Andrew M. Kuchling
8ea9227b1b
Remove empty __init__ (PyChecker)
2001-08-13 14:55:17 +00:00
Andrew M. Kuchling
f31d31373e
Remove redefinition of writelines() method
...
Remove unused variable and import
2001-08-13 14:54:12 +00:00
Andrew M. Kuchling
77f9caf633
Remove unused variable (PyChecker)
2001-08-13 14:52:37 +00:00
Andrew M. Kuchling
1f877ef199
Remove some dead code (PyChecker)
2001-08-13 14:50:44 +00:00
Andrew M. Kuchling
86c7e22036
Add forgotten import (PyChecker)
2001-08-13 14:47:12 +00:00
Andrew M. Kuchling
e7abf97903
Remove unused import (PyChecker)
2001-08-13 14:43:43 +00:00
Andrew M. Kuchling
6be424fdd6
Remove redundant import
2001-08-13 14:41:39 +00:00
Andrew M. Kuchling
994b51e906
Capture exception message (PyChecker)
2001-08-13 14:40:47 +00:00
Andrew M. Kuchling
a49e0a0893
Remove unused imports (PyChecker)
2001-08-13 14:40:29 +00:00
Andrew M. Kuchling
3e44248483
Remove unused variable
2001-08-13 14:38:50 +00:00
Andrew M. Kuchling
118aa5337c
Fix malformed line (PyChecker)
2001-08-13 14:37:23 +00:00
Guido van Rossum
49fa2bdaa1
Fix two bugs discovered by PyChecker. (I cannot test these, but I'm
...
confident that the old code was utterly broken -- the worse that can
happen is that the new code is still broken.)
2001-08-13 14:12:35 +00:00
Andrew M. Kuchling
246c425964
Fix for NameError caught by PyChecker.
...
(This command seems to be essentially untested; should fix that...)
2001-08-13 13:56:24 +00:00
Andrew M. Kuchling
fd6608bcea
Fix typo (PyChecker)
2001-08-13 13:48:55 +00:00
Andrew M. Kuchling
fee3126eb3
Catch curses.error instead of a non-existent global (PyChecker)
...
Edit comment
2001-08-13 13:47:23 +00:00
Andrew M. Kuchling
40ea6177b9
Remove redundant import
2001-08-13 13:45:22 +00:00
Tim Peters
3055ad234a
+ A msg on c.l.py reminded me that docstrings can be implicitly catenated.
...
Cater to that.
+ Major speed boost via not reading more of files than necessary. This
was no slouch before; now it screams.
+ Improve msg when giving up on a goofy future statement.
2001-08-13 05:33:53 +00:00
Steven M. Gava
33277c767f
further work on font config and general feel improvements
2001-08-13 04:36:58 +00:00
Tim Peters
5e824c37d3
SF patch #445412 extract ndiff functionality to difflib, from
...
David Goodger.
2001-08-12 22:25:01 +00:00
Jeremy Hylton
39f77bc90e
Modify _Set to support iteration.
...
Otherwise printlist(surprise) will fail with a TypeError, because map
is called with an argument that doesn't support iteration.
2001-08-12 21:53:08 +00:00
Jeremy Hylton
910d7d46dc
Remove much dead code from ceval.c
...
The descr changes moved the dispatch for calling objects from
call_object() in ceval.c to PyObject_Call() in abstract.c.
call_object() and the many functions it used in ceval.c were no longer
used, but were not removed.
Rename meth_call() as PyCFunction_Call() so that it can be called by
the CALL_FUNCTION opcode in ceval.c.
Also, fix error message that referred to PyEval_EvalCodeEx() by its
old name eval_code2(). (I'll probably refer to it by its old name,
too.)
2001-08-12 21:52:24 +00:00
Martin v. Löwis
f65b1a175f
Bump size of sprintf buffer. Suggested by Alex Coventry.
2001-08-12 09:28:40 +00:00
Tim Peters
b704238a6c
Tool to delete (or just rewrite parts of) obsolete future statements.
2001-08-12 08:41:13 +00:00