]> granicus.if.org Git - python/log
python
22 years agoUse is None rather than general boolean
Raymond Hettinger [Sat, 1 Jun 2002 00:06:20 +0000 (00:06 +0000)]
Use is None rather than general boolean

22 years agoUse is None rather than general boolean
Raymond Hettinger [Fri, 31 May 2002 23:54:44 +0000 (23:54 +0000)]
Use is None rather than general boolean

22 years agoUse is None rather than general boolean
Raymond Hettinger [Fri, 31 May 2002 23:03:33 +0000 (23:03 +0000)]
Use is None rather than general boolean

22 years agoRemove unused static function
Neal Norwitz [Fri, 31 May 2002 21:47:02 +0000 (21:47 +0000)]
Remove unused static function

22 years agoSF 560736. Optimize list iteration by filling the tp_iter slot.
Raymond Hettinger [Fri, 31 May 2002 21:40:38 +0000 (21:40 +0000)]
SF 560736.  Optimize list iteration by filling the tp_iter slot.

22 years agoSF bug 533625 (Armin Rigo). rexec: potential security hole
Guido van Rossum [Fri, 31 May 2002 21:12:53 +0000 (21:12 +0000)]
SF bug 533625 (Armin Rigo). rexec: potential security hole

If a rexec instance allows writing in the current directory (a common
thing to do), there's a way to execute bogus bytecode.  Fix this by
not allowing imports from .pyc files (in a way that allows a site to
configure things so that .pyc files *are* allowed, if writing is not
allowed).

I'll apply this to 2.2 and 2.1 too.

22 years agoExplain that tp_basicsize must provide alignment for the items.
Guido van Rossum [Fri, 31 May 2002 21:00:18 +0000 (21:00 +0000)]
Explain that tp_basicsize must provide alignment for the items.

22 years agoUse string methods, remove import string
Neal Norwitz [Fri, 31 May 2002 20:51:31 +0000 (20:51 +0000)]
Use string methods, remove import string

22 years agoUse more string methods, remove import string
Neal Norwitz [Fri, 31 May 2002 20:46:39 +0000 (20:46 +0000)]
Use more string methods, remove import string

22 years agoFix typo
Neal Norwitz [Fri, 31 May 2002 20:23:33 +0000 (20:23 +0000)]
Fix typo

22 years agoImplement the intention of SF patch 472523 (but coded differently).
Guido van Rossum [Fri, 31 May 2002 20:03:54 +0000 (20:03 +0000)]
Implement the intention of SF patch 472523 (but coded differently).

In the past, an object's tp_compare could return any value.  In 2.2
the docs were tightened to require it to return -1, 0 or 1; and -1 for
an error.

We now issue a warning if the value is not in this range.  When an
exception is raised, we allow -1 or -2 as return value, since -2 will
the recommended return value for errors in the future.  (Eventually
tp_compare will also be allowed to return +2, to indicate
NotImplemented; but that can only be implemented once we know all
extensions return a value in [-2...1].  Or perhaps it will require the
type to set a flag bit.)

I haven't decided yet whether to backport this to 2.2.x.  The patch
applies fine.  But is it fair to start warning in 2.2.2 about code
that worked flawlessly in 2.2.1?

22 years agoChange name from string to basestring
Neal Norwitz [Fri, 31 May 2002 19:58:02 +0000 (19:58 +0000)]
Change name from string to basestring

22 years agoUpdate links and information on PyQt/PyKDE.
Fred Drake [Fri, 31 May 2002 18:21:56 +0000 (18:21 +0000)]
Update links and information on PyQt/PyKDE.

22 years agoReplace '== None' with 'is None'
Raymond Hettinger [Fri, 31 May 2002 17:49:10 +0000 (17:49 +0000)]
Replace '==  None' with 'is None'

22 years agoAdd definition of Py_IgnoreEnvironmentFlag (needed at least in debug
Guido van Rossum [Fri, 31 May 2002 14:32:07 +0000 (14:32 +0000)]
Add definition of Py_IgnoreEnvironmentFlag (needed at least in debug
mode).

22 years agoFix printing plural (s or "").
Neal Norwitz [Fri, 31 May 2002 14:15:11 +0000 (14:15 +0000)]
Fix printing plural (s or "").

22 years agoRemove import of re, it is not used
Neal Norwitz [Fri, 31 May 2002 14:14:06 +0000 (14:14 +0000)]
Remove import of re, it is not used

22 years agoUse string methods where possible, and remove import string
Neal Norwitz [Fri, 31 May 2002 14:13:04 +0000 (14:13 +0000)]
Use string methods where possible, and remove import string

22 years agoFix SF bug [ 561825 ] Confusing error for "del f()"
Jeremy Hylton [Fri, 31 May 2002 14:08:29 +0000 (14:08 +0000)]
Fix SF bug [ 561825 ] Confusing error for "del f()"

In the error message, say del for del and assign for everything else.

22 years agoPy_IgnoreEnvironmentFlag should be extern, since it is declared in pythonrun.c
Neal Norwitz [Fri, 31 May 2002 13:11:40 +0000 (13:11 +0000)]
Py_IgnoreEnvironmentFlag should be extern, since it is declared in pythonrun.c

22 years agoRemove unneeded import
Andrew M. Kuchling [Thu, 30 May 2002 19:15:16 +0000 (19:15 +0000)]
Remove unneeded import

22 years agoimp_load_module(): correct and comment the sense of the test for '+'
Guido van Rossum [Thu, 30 May 2002 17:33:07 +0000 (17:33 +0000)]
imp_load_module(): correct and comment the sense of the test for '+'
in the mode (it's forbidden).

22 years agoCover a few corners in the 'U' mode integration to make imp work.
Jeremy Hylton [Thu, 30 May 2002 17:15:25 +0000 (17:15 +0000)]
Cover a few corners in the 'U' mode integration to make imp work.

get_file() must convert 'U' to "r" PY_STDIOTEXTMODE before calling
fopen().

imp_load_module() must accept 'r' or 'U' or something with '+'.

Also reflow some long lines.

22 years agoVerify that the imp can find and load .py files.
Jeremy Hylton [Thu, 30 May 2002 17:10:20 +0000 (17:10 +0000)]
Verify that the imp can find and load .py files.

22 years agoTypo fixes.
Fred Drake [Thu, 30 May 2002 16:41:14 +0000 (16:41 +0000)]
Typo fixes.

22 years agoAdd the pymemcompat.h header as discussed on python-dev.
Michael W. Hudson [Thu, 30 May 2002 16:22:29 +0000 (16:22 +0000)]
Add the pymemcompat.h header as discussed on python-dev.

Now we just need to make sure people know about it...

22 years agoHolger Krekel.
Guido van Rossum [Thu, 30 May 2002 15:42:58 +0000 (15:42 +0000)]
Holger Krekel.

22 years agoSF #558432: Prevent Annoying ' ' from readline (Holker Krekel).
Guido van Rossum [Thu, 30 May 2002 15:41:56 +0000 (15:41 +0000)]
SF #558432: Prevent Annoying ' ' from readline (Holker Krekel).

    readline in all python versions is configured
    to append a 'space' character for a successful
    completion. But for almost all python expressions
    'space' is not wanted (see coding conventions PEP 8).
    For example if you have a function 'longfunction'
    and you type 'longf<TAB>' you get 'longfunction '
    as a completion. note the unwanted space at the
    end.

    The patch fixes this behaviour by setting readline's
    append_character to '\0' which means don't append
    anything. This doesn't work with readline < 2.1
    (AFAIK nowadays readline2.2 is in good use).

    An alternative approach would be to make the
    append_character
    accessable from python so that modules like
    the rlcompleter.py can set it to '\0'.

[Ed.: I think expecting readline >= 2.2 is fine.  If a completer wants
another character they can append that to the keyword in the list.]

22 years agoRemove comment about inheritance, look one line up
Neal Norwitz [Thu, 30 May 2002 12:12:04 +0000 (12:12 +0000)]
Remove comment about inheritance, look one line up

22 years agoMove statement out of comment block
Raymond Hettinger [Thu, 30 May 2002 00:06:01 +0000 (00:06 +0000)]
Move statement out of comment block

22 years agoUse floor division where appropriate.
Guido van Rossum [Wed, 29 May 2002 20:38:21 +0000 (20:38 +0000)]
Use floor division where appropriate.

22 years agoMinor cleanup:
Fred Drake [Wed, 29 May 2002 19:40:36 +0000 (19:40 +0000)]
Minor cleanup:
- Add comment explaining the structure of the stack.
- Minor optimization: make stack tuple directly usable as part of return
  value for enter/exit events.

22 years agoAdd OS/2 text
Andrew M. Kuchling [Wed, 29 May 2002 19:20:57 +0000 (19:20 +0000)]
Add OS/2 text

22 years agoThe logreader object did not always refill the input buffer correctly
Neil Schemenauer [Wed, 29 May 2002 18:19:14 +0000 (18:19 +0000)]
The logreader object did not always refill the input buffer correctly
and got confused by certain log files.  Remove logreader_refill and the
associated logic and replace with fgetc.

22 years agoVarious minor rewrites
Andrew M. Kuchling [Wed, 29 May 2002 17:33:48 +0000 (17:33 +0000)]
Various minor rewrites

22 years agoMore additions
Andrew M. Kuchling [Wed, 29 May 2002 17:30:34 +0000 (17:30 +0000)]
More additions

22 years agoPatch 560023 adding docstrings. 2.2 Candidate (after verifying modules were not...
Raymond Hettinger [Wed, 29 May 2002 16:18:42 +0000 (16:18 +0000)]
Patch 560023 adding docstrings.  2.2 Candidate (after verifying modules were not updated after 2.2).

22 years agoAs discussed on python-dev, add a mechanism to indicate features
Neal Norwitz [Wed, 29 May 2002 15:54:55 +0000 (15:54 +0000)]
As discussed on python-dev, add a mechanism to indicate features
that are in the process of deprecation (PendingDeprecationWarning).
Docs could be improved.

22 years agoIssue an explicit error when we can't find an appropriate type for
Guido van Rossum [Wed, 29 May 2002 14:00:22 +0000 (14:00 +0000)]
Issue an explicit error when we can't find an appropriate type for
UINT4.

22 years agoFix a possible segfault. Found be Neal Norvitz.
Marc-André Lemburg [Wed, 29 May 2002 13:46:29 +0000 (13:46 +0000)]
Fix a possible segfault. Found be Neal Norvitz.

22 years agoFix for bug [ 561796 ] string.find causes lazy error
Marc-André Lemburg [Wed, 29 May 2002 11:33:13 +0000 (11:33 +0000)]
Fix for bug [ 561796 ] string.find causes lazy error

22 years agoThis is patch
Michael W. Hudson [Wed, 29 May 2002 10:32:24 +0000 (10:32 +0000)]
This is patch

[ 558914 ] Build md5.c fails on Cray T3E

I've also deleted a comment that I didn't understand.  Feel free to
put it back if it makes/made sense to you.

22 years agoWhitespace normalization
Neal Norwitz [Wed, 29 May 2002 00:54:38 +0000 (00:54 +0000)]
Whitespace normalization

22 years agoImporting Charset should not fail when Unicode is disabled. (XXX
Guido van Rossum [Tue, 28 May 2002 18:49:03 +0000 (18:49 +0000)]
Importing Charset should not fail when Unicode is disabled.  (XXX
Using Unicode-aware methods may still die with a NameError on unicode.
Maybe there's a more elegant solution but I doubt anybody cares.)

22 years agoAccept u"..." literals even when Unicode is disabled. But these
Guido van Rossum [Tue, 28 May 2002 18:47:29 +0000 (18:47 +0000)]
Accept u"..." literals even when Unicode is disabled.  But these
literals must not contain \u, \U or \N escapes.  (XXX Should they also
not contain non-ASCII characters?)

22 years agoFile modes in filedescr entries are also passed to Python, so we now put "U"
Jack Jansen [Tue, 28 May 2002 10:58:19 +0000 (10:58 +0000)]
File modes in filedescr entries are also passed to Python, so we now put "U"
in there, and convert it to "rb" (or "r" for non-universal-newline builds)
before passing it to fopen().

Fixes #561326.

22 years agoThis is a Python 2.1 and 2.2 bugfix candidate:
Christian Tismer [Tue, 28 May 2002 08:04:00 +0000 (08:04 +0000)]
This is a Python 2.1 and 2.2 bugfix candidate:
(or how do I "mark" something to be a candidate?)

fixed an old buglet that caused bdb to be unable to
continue in the botframe, after a breakpoint was set.
the key idea is not to set botframe to the bottom level frame,
but its f_back, which actually might be None.
Additional changes: migrated old exception trick to use
sys._getframe(), which exists both in 2.1 and 2.2 .

Note: I believe Mark Hammond needs to look over his code now.
F5 correctly starts up in the debugger, but later on doesn't stop at a given
breakpoint any longer.

kind regards - chris

22 years agoGeiger Ho's patch for better subclassing
Steven M. Gava [Mon, 27 May 2002 21:58:05 +0000 (21:58 +0000)]
Geiger Ho's patch for better subclassing

22 years agoRearrange paragraph
Andrew M. Kuchling [Mon, 27 May 2002 17:19:46 +0000 (17:19 +0000)]
Rearrange paragraph

22 years agoThis is patch
Michael W. Hudson [Mon, 27 May 2002 15:08:24 +0000 (15:08 +0000)]
This is patch

[ 559250 ] more POSIX signal stuff

Adds support (and docs and tests and autoconfery) for posix signal
mask handling -- sigpending, sigprocmask and sigsuspend.

22 years agoSilly typo.
Michael W. Hudson [Mon, 27 May 2002 14:05:31 +0000 (14:05 +0000)]
Silly typo.

22 years agoUse self.__class__ to instantiate a TreeNode item recursively, to
Guido van Rossum [Mon, 27 May 2002 13:35:05 +0000 (13:35 +0000)]
Use self.__class__ to instantiate a TreeNode item recursively, to
allow subclassing.

22 years agoGvR's rpc patch
Chui Tey [Sun, 26 May 2002 13:36:41 +0000 (13:36 +0000)]
GvR's rpc patch

22 years agoDefine the "all" target more reasonably, but retain "html" as the default
Fred Drake [Sat, 25 May 2002 20:28:46 +0000 (20:28 +0000)]
Define the "all" target more reasonably, but retain "html" as the default
target.

22 years agoFix for SF bug 551412. When _PyType_Lookup() is called on a type
Guido van Rossum [Fri, 24 May 2002 21:40:08 +0000 (21:40 +0000)]
Fix for SF bug 551412.  When _PyType_Lookup() is called on a type
whose tp_mro hasn't been initialized, it would dump core.  Fix this by
checking for NULL and calling PyType_Ready().  Will fix this in 2.2.1
too.

22 years agoMention math.degrees() and math.radians()
Andrew M. Kuchling [Fri, 24 May 2002 21:08:58 +0000 (21:08 +0000)]
Mention math.degrees() and math.radians()
Other minor rewrites

22 years ago- A new type object, 'string', is added. This is a common base type
Guido van Rossum [Fri, 24 May 2002 19:01:59 +0000 (19:01 +0000)]
- A new type object, 'string', is added.  This is a common base type
  for 'str' and 'unicode', and can be used instead of
  types.StringTypes, e.g. to test whether something is "a string":
  isinstance(x, string) is True for Unicode and 8-bit strings.  This
  is an abstract base class and cannot be instantiated directly.

22 years agoAdd a safeguard against setting the class to something with a
Guido van Rossum [Fri, 24 May 2002 18:47:47 +0000 (18:47 +0000)]
Add a safeguard against setting the class to something with a
different free or alloc slot.

22 years agoDon't require Unicode support.
Guido van Rossum [Fri, 24 May 2002 17:58:05 +0000 (17:58 +0000)]
Don't require Unicode support.

22 years agoMove really open-ended XXX items into comments
Andrew M. Kuchling [Fri, 24 May 2002 17:06:17 +0000 (17:06 +0000)]
Move really open-ended XXX items into comments
Remove 1.5.2 reference: who cares?

22 years agoDisambiguate the grammar for backtick.
Guido van Rossum [Fri, 24 May 2002 15:47:06 +0000 (15:47 +0000)]
Disambiguate the grammar for backtick.
The old syntax suggested that a trailing comma was OK inside backticks,
but in fact (due to ideosyncrasies of pgen) it was not.  Fix the grammar
to avoid the ambiguity.  Fred: you may want to update the refman.

22 years agoAdd missing \ to macro definition only used when universal newlines
Guido van Rossum [Fri, 24 May 2002 15:24:38 +0000 (15:24 +0000)]
Add missing \ to macro definition only used when universal newlines
are disabled.

22 years agoWhitespace normalized.
Raymond Hettinger [Thu, 23 May 2002 23:58:17 +0000 (23:58 +0000)]
Whitespace normalized.

22 years agoAllow the shared library initialization routine to be overridden with an initialize...
Jack Jansen [Thu, 23 May 2002 22:34:18 +0000 (22:34 +0000)]
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.

Should fix #492465.

22 years agoAdded missing dirs to LIBSUBDIRS, and reformatted it so it's easier to read
Jack Jansen [Thu, 23 May 2002 22:18:13 +0000 (22:18 +0000)]
Added missing dirs to LIBSUBDIRS, and reformatted it so it's easier to read
and maintain. Fixes #557482.

22 years agoMarkup adjustments; fix the names of modules referenced in an expression.
Fred Drake [Thu, 23 May 2002 21:07:19 +0000 (21:07 +0000)]
Markup adjustments; fix the names of modules referenced in an expression.

22 years agoJohn Aycock correctly pointed out that the grammar for
Tim Peters [Thu, 23 May 2002 20:05:40 +0000 (20:05 +0000)]
John Aycock correctly pointed out that the grammar for
"power" was formally ambiguous.  Here's his fix.

22 years agoDeprecated Random.cunifvariate clearing bug 506647. Also, added docstrings.
Raymond Hettinger [Thu, 23 May 2002 19:44:49 +0000 (19:44 +0000)]
Deprecated Random.cunifvariate clearing bug 506647.  Also, added docstrings.

22 years ago(py-goto-statement-below): Watch out for landing in a triple quoted
Barry Warsaw [Thu, 23 May 2002 19:42:16 +0000 (19:42 +0000)]
(py-goto-statement-below): Watch out for landing in a triple quoted
string with text in column zero.  Skip that stuff when looking for the
"first statement following the statement containing point".

22 years agoAdded missing dependency on the refcount data file.
Fred Drake [Thu, 23 May 2002 19:41:25 +0000 (19:41 +0000)]
Added missing dependency on the refcount data file.

22 years agoLink with the right C library! This has always been wrong (& my fault).
Tim Peters [Thu, 23 May 2002 19:25:59 +0000 (19:25 +0000)]
Link with the right C library!  This has always been wrong (& my fault).

22 years agoUse Perl function prototypes to help avoid definition/usage mismatches
Fred Drake [Thu, 23 May 2002 17:59:16 +0000 (17:59 +0000)]
Use Perl function prototypes to help avoid definition/usage mismatches
while modifying these files.
Minor style changes to make the use of "my" with arrays more consistent.

22 years agoAdd refcount information for PySequence_ITEM().
Fred Drake [Thu, 23 May 2002 16:03:16 +0000 (16:03 +0000)]
Add refcount information for PySequence_ITEM().

22 years agoAdd version annotation for PySequence_ITEM().
Fred Drake [Thu, 23 May 2002 16:02:28 +0000 (16:02 +0000)]
Add version annotation for PySequence_ITEM().

22 years agoUse function instead of macro spellings for PyObject_memorystuff.
Tim Peters [Thu, 23 May 2002 15:51:20 +0000 (15:51 +0000)]
Use function instead of macro spellings for PyObject_memorystuff.

22 years agoWhitespace normalization.
Tim Peters [Thu, 23 May 2002 15:49:38 +0000 (15:49 +0000)]
Whitespace normalization.

22 years agoWhitespace normalization.
Tim Peters [Thu, 23 May 2002 15:15:30 +0000 (15:15 +0000)]
Whitespace normalization.

22 years agoparseaddr(): Fixed in the same way that Message.getaddrlist() was
Barry Warsaw [Thu, 23 May 2002 03:21:01 +0000 (03:21 +0000)]
parseaddr(): Fixed in the same way that Message.getaddrlist() was
fixed (re: SF bug #555035).  Include a unittest.

22 years agoforce gzip module to open files using 'b'inary mode.
Skip Montanaro [Thu, 23 May 2002 01:43:05 +0000 (01:43 +0000)]
force gzip module to open files using 'b'inary mode.
closes patch #536278.

22 years agoCloses: #556025 seg fault when doing list(xrange(1e9))
Neal Norwitz [Wed, 22 May 2002 23:19:17 +0000 (23:19 +0000)]
Closes: #556025 seg fault when doing list(xrange(1e9))
A MemoryError is now raised when the list cannot be created.
There is a test, but as the comment says, it really only
works for 32 bit systems.  I don't know how to improve
the test for other systems (ie, 64 bit or systems
where the data size != addressable size,
e.g. 64 bit data, but 48 bit addressable memory)

22 years agoRemove spurious "()" from the __str__() description.
Fred Drake [Wed, 22 May 2002 20:44:03 +0000 (20:44 +0000)]
Remove spurious "()" from the __str__() description.

22 years agoJack's documentation for the U mode character on the file()
Barry Warsaw [Wed, 22 May 2002 20:39:43 +0000 (20:39 +0000)]
Jack's documentation for the U mode character on the file()
constructor, vetted by Barry.

22 years agofile_doc: Add some description of the U mode character, but only when
Barry Warsaw [Wed, 22 May 2002 20:37:53 +0000 (20:37 +0000)]
file_doc: Add some description of the U mode character, but only when
WITH_UNIVERSAL_NEWLINES is enabled.

22 years agoPatch #491107: Cygwin setup.py import workaround patch
Jason Tishler [Wed, 22 May 2002 16:46:15 +0000 (16:46 +0000)]
Patch #491107: Cygwin setup.py import workaround patch

mwh wrote:
> Jason, feel free to complain if you think this isn't
> the right thing to do.

I guess that I would like to complain and reopen this
issue. :,)  I cannot build a Python 2.2.1 with threads
under Cygwin without this patch even though I'm using
Michael's static _socket workaround.  This is due to the
Cygwin fork() problem with DLL base address conflicts
that are triggered by importing many modules during the
setup.py run.  Similar problems can also be caused by
regrtest.py.

Even after my rebase patch is accepted into Cygwin's
setup.exe, I feel this patch will still be necessary.
This is because during the build process, the shared
extensions (i.e., DLLs) will not be rebased yet.  Hence,
the potential for DLL base address conflicts will exist.

One way to obviate this patch is to push the rebase
functionality into Cygwin's ld.  Unfortunately, I don't
think this is likely to happen.  Another possible way,
is to use the yet to be defined and implemented unload
module functionality:

    http://mail.python.org/pipermail/python-dev/2001-December/019028.html

22 years agoRegenerated from new Universal Headers.
Jack Jansen [Wed, 22 May 2002 15:08:58 +0000 (15:08 +0000)]
Regenerated from new Universal Headers.

22 years agoAllow the script to have not only a TEXT filetype but also a null filetype (to enable...
Jack Jansen [Wed, 22 May 2002 15:02:08 +0000 (15:02 +0000)]
Allow the script to have not only a TEXT filetype but also a null filetype (to enable files to be created from the Unix side of OSX to be droppable on the MacPython interpreter).

22 years agoReplaced lots of PyMem_DEL() calls with PyObject_DEL().
Jack Jansen [Wed, 22 May 2002 14:31:48 +0000 (14:31 +0000)]
Replaced lots of PyMem_DEL() calls with PyObject_DEL().

22 years agoEnable WITH_PYMALLOC.
Jack Jansen [Wed, 22 May 2002 14:31:10 +0000 (14:31 +0000)]
Enable WITH_PYMALLOC.

22 years agoAdded 2 more addresses to send release notifications to.
Jack Jansen [Wed, 22 May 2002 14:30:37 +0000 (14:30 +0000)]
Added 2 more addresses to send release notifications to.

22 years agoAdded a version annotation for StringTypes.
Fred Drake [Wed, 22 May 2002 02:44:24 +0000 (02:44 +0000)]
Added a version annotation for StringTypes.
Added documentation for BooleanType.

22 years agoBump to version 2.0.4
Barry Warsaw [Wed, 22 May 2002 01:52:33 +0000 (01:52 +0000)]
Bump to version 2.0.4

22 years agogetaddresses(): Like the change in rfc822.py, this one needs to access
Barry Warsaw [Wed, 22 May 2002 01:52:10 +0000 (01:52 +0000)]
getaddresses(): Like the change in rfc822.py, this one needs to access
the AddressList.addresslist attribute directly.

Also, add a test case for the email.Utils.getaddresses() interface.

22 years agoMinor typo: Message.getall() -> Message.get_all()
Barry Warsaw [Wed, 22 May 2002 01:22:46 +0000 (01:22 +0000)]
Minor typo: Message.getall() -> Message.get_all()

22 years agoadd BooleanType
Skip Montanaro [Tue, 21 May 2002 23:17:12 +0000 (23:17 +0000)]
add BooleanType

22 years agoIn both spilldata() functions, pretend that the docstring for
Guido van Rossum [Tue, 21 May 2002 20:56:15 +0000 (20:56 +0000)]
In both spilldata() functions, pretend that the docstring for
non-callable objects is always None.  This makes for less confusing
output and fixes the problem reported in SF patch #550290.

22 years agoMessage.getaddrlist(): Use the AddressList.addresslist attribute
Barry Warsaw [Tue, 21 May 2002 19:46:13 +0000 (19:46 +0000)]
Message.getaddrlist(): Use the AddressList.addresslist attribute
instead of calling the getaddrlist() method, since the latter doesn't
work with multiple calls (it will return the empty list for the second
and subsequent calls).

Closes SF bug #555035.  Include a unittest.

22 years agoPatch 543387. Document deprecation of complex %, //,and divmod().
Raymond Hettinger [Tue, 21 May 2002 18:19:49 +0000 (18:19 +0000)]
Patch 543387.  Document deprecation of complex %, //,and divmod().

22 years agoPatch 533291. Deprecate None return form of __reduce__.
Raymond Hettinger [Tue, 21 May 2002 17:22:02 +0000 (17:22 +0000)]
Patch 533291.  Deprecate None return form of __reduce__.

22 years agoPatch 543222. Disable script bindings in shell window.
Raymond Hettinger [Tue, 21 May 2002 17:00:20 +0000 (17:00 +0000)]
Patch 543222. Disable script bindings in shell window.

22 years agoAdd additional comments on the use of \deprecated.
Fred Drake [Tue, 21 May 2002 16:27:20 +0000 (16:27 +0000)]
Add additional comments on the use of \deprecated.