Martin v. Löwis [Fri, 22 Nov 2002 08:23:09 +0000 (08:23 +0000)]
Patch #486438: Make module argument to testmod optional.
Martin v. Löwis [Fri, 22 Nov 2002 08:08:44 +0000 (08:08 +0000)]
Patch #550765: Add daemon_threads flag.
Piers Lauder [Fri, 22 Nov 2002 05:53:04 +0000 (05:53 +0000)]
added new IMAP4_stream class; added proxyauth command; added login_cram_md5 method
Piers Lauder [Fri, 22 Nov 2002 05:47:39 +0000 (05:47 +0000)]
added details of new IMAP4_stream class; emphasised meaning of data part of command results; added proxyauth command description
Just van Rossum [Fri, 22 Nov 2002 00:31:50 +0000 (00:31 +0000)]
fixed error in cmd line doc; moved funny self.name line once more
Just van Rossum [Fri, 22 Nov 2002 00:08:47 +0000 (00:08 +0000)]
fixed stupid bug
Raymond Hettinger [Fri, 22 Nov 2002 00:07:40 +0000 (00:07 +0000)]
Implement dict() style constructor.
Already supported dict() and dict(mapping).
Now supports dict(itemsequence) and
Just van Rossum's new syntax for dict(keywordargs).
Also, added related unittests.
The docs already promise dict-like behavior
so no update is needed there.
Martin v. Löwis [Thu, 21 Nov 2002 23:53:25 +0000 (23:53 +0000)]
Properly compute array size even for --disable-unicode.
Martin v. Löwis [Thu, 21 Nov 2002 23:52:35 +0000 (23:52 +0000)]
Fix --disable-unicode compilation problems.
Just van Rossum [Thu, 21 Nov 2002 23:19:37 +0000 (23:19 +0000)]
added command line interface; refactored a bit; little things.
Tim Peters [Thu, 21 Nov 2002 22:26:37 +0000 (22:26 +0000)]
float_int(): Some systems raise an exception if a double is cast to
long but the double is too big to fit in a long. Prevent that. This
closes some recent bug or patch on SF, but SF is down now so I can't
say which.
Bugfix candidate.
Martin v. Löwis [Thu, 21 Nov 2002 21:45:32 +0000 (21:45 +0000)]
Patch #633547: Support plural forms. Do TODOs in test suite.
Guido van Rossum [Thu, 21 Nov 2002 21:08:39 +0000 (21:08 +0000)]
The _Event class should be more careful with releasing its lock when
interrupted. A try/finally will do nicely. Maybe other classes need
this too, but since they manipulate more state it's less clear that
that is always the right thing, and I'm in a hurry.
Backport candidate.
Martin v. Löwis [Thu, 21 Nov 2002 20:41:28 +0000 (20:41 +0000)]
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
prototypes explicitly.
Andrew M. Kuchling [Thu, 21 Nov 2002 20:41:07 +0000 (20:41 +0000)]
Reflow comment
Martin v. Löwis [Thu, 21 Nov 2002 20:33:24 +0000 (20:33 +0000)]
Patch #642019: Recognize gcc-x.y as gcc.
Martin v. Löwis [Thu, 21 Nov 2002 20:29:57 +0000 (20:29 +0000)]
Patch #642020: Pass down prefix, BINDIR, and DESTSHARED to idleinstall.
Walter Dörwald [Thu, 21 Nov 2002 20:23:11 +0000 (20:23 +0000)]
Wrap uargs declaration in a #ifdef Py_USING_UNICODE, so that
the --disable-unicode build doesn't complain about an
unused variable.
Walter Dörwald [Thu, 21 Nov 2002 20:18:46 +0000 (20:18 +0000)]
Comment out the getcwdu implementation for --disable-unicode builds
Walter Dörwald [Thu, 21 Nov 2002 20:13:40 +0000 (20:13 +0000)]
Move three variables that are only used inside an if block into the block,
so the --disable-unicode build doesn't complain about unused variables.
Walter Dörwald [Thu, 21 Nov 2002 20:08:33 +0000 (20:08 +0000)]
Fix PEP 293 related problems with --disable-unicode builds
reported by Michael Hudson in
http://mail.python.org/pipermail/python-dev/2002-November/030299.html
Andrew M. Kuchling [Thu, 21 Nov 2002 18:33:28 +0000 (18:33 +0000)]
Bug #639118 from Ollie Oldham: archiver should use zipfile before zip
Previously archive_util.py attempted to spawn an
external 'zip' program for the zip action, if this fails, an
attempt to import zipfile.py is made...
This bites folks who have 'old' or non-conforming zip
programs on windows platforms. This change tries the 'zipfile'
module first, falling back to spawning a zip process if
the module isn't available.
Tim Peters [Thu, 21 Nov 2002 16:32:11 +0000 (16:32 +0000)]
NamedTemporaryFile: clarify behavior based on confusions noted by a
user, and spell out a x-platform use limitation.
Tim Peters [Thu, 21 Nov 2002 15:59:59 +0000 (15:59 +0000)]
_RandomNameSequence(): style guide changes, small speedup, don't
put more in the critical section than absolutely needed, acquire
the mutex before the "try".
Tim Peters [Thu, 21 Nov 2002 15:48:33 +0000 (15:48 +0000)]
_TemporaryFileWrapper: changed self.close_called to a proper bool.
Michael W. Hudson [Thu, 21 Nov 2002 14:17:51 +0000 (14:17 +0000)]
Always call tparm with 10 arguments. It seems it's not varargs i
more often than it is. In response to bug:
[ 641808 ] Portability of Modules/_cursesmodule.c
submitted by Nick Mclaren.
Just van Rossum [Thu, 21 Nov 2002 10:29:57 +0000 (10:29 +0000)]
name kwargs kwargs
Just van Rossum [Thu, 21 Nov 2002 10:23:04 +0000 (10:23 +0000)]
Tools to create MacOS X (application) bundles.
Todo:
- command line parsing
- main program
- modulefinder(-like ;-) support to build standalone apps.
Kurt B. Kaiser [Thu, 21 Nov 2002 03:02:17 +0000 (03:02 +0000)]
Apply Nicolas Riley's Patch.
[ 634250 ] SearchDialogBase.py fix for Tk 8.4.1
SearchDialogBase refers to the grid 'col' option
considered ambiguous with Python 2.2.2 and Tk 8.4.1.
The correct name is 'column'.
Neal Norwitz [Wed, 20 Nov 2002 23:15:54 +0000 (23:15 +0000)]
Fix SF #640094, on win32 getpass runs into unix_getpass
Make sure we have a UNIX-compatible termios.
Apparently, McMillan Installer made a termios on windows
which caused unix_getpass() to be used instead of win_getpass().
Will backport.
Just van Rossum [Wed, 20 Nov 2002 20:47:55 +0000 (20:47 +0000)]
- cleaned up example/test code
- don't encode/escape elements
- fixed typo in doc string
- provide our own copy function for the Dict class
Andrew M. Kuchling [Wed, 20 Nov 2002 16:10:29 +0000 (16:10 +0000)]
Add missing import
Jack Jansen [Wed, 20 Nov 2002 14:14:14 +0000 (14:14 +0000)]
dded cvsignores.
Jack Jansen [Wed, 20 Nov 2002 14:07:57 +0000 (14:07 +0000)]
Minimal instructions on building a MacPython-OSX addon for Apple's
/usr/bin/python.
Jack Jansen [Wed, 20 Nov 2002 14:06:16 +0000 (14:06 +0000)]
Build PythonLauncher for MacPython-OSX 2.2 as well.
Jack Jansen [Wed, 20 Nov 2002 14:05:41 +0000 (14:05 +0000)]
This file is now generated dynamically.
Andrew M. Kuchling [Wed, 20 Nov 2002 13:50:15 +0000 (13:50 +0000)]
Add change to int() and OverflowError
Re-order the "porting" section to list items by decreasing significance
Just van Rossum [Tue, 19 Nov 2002 23:11:49 +0000 (23:11 +0000)]
removed a redundant .strip(); made a doc string more or less tell the truth
Just van Rossum [Tue, 19 Nov 2002 23:01:20 +0000 (23:01 +0000)]
No need to import __builtin__, spotted by Skip.
Just van Rossum [Tue, 19 Nov 2002 22:01:02 +0000 (22:01 +0000)]
Pure Python implementation of a plist generator/parser.
Walter Dörwald [Tue, 19 Nov 2002 21:51:35 +0000 (21:51 +0000)]
Document additional error handling names available through PEP 293.
Walter Dörwald [Tue, 19 Nov 2002 21:42:53 +0000 (21:42 +0000)]
Add missing documentation for the PEP 293 functionality to
the codecs docstrings.
Walter Dörwald [Tue, 19 Nov 2002 21:20:25 +0000 (21:20 +0000)]
Fix typo.
Walter Dörwald [Tue, 19 Nov 2002 20:49:15 +0000 (20:49 +0000)]
Change int() so that passing a string, unicode, float or long argument
that is outside the integer range no longer raises OverflowError, but
returns a long object instead.
This fixes SF bug http://www.python.org/sf/635115
Martin v. Löwis [Tue, 19 Nov 2002 17:48:49 +0000 (17:48 +0000)]
Replace bsddb3 and _db occurrences.
Martin v. Löwis [Tue, 19 Nov 2002 17:47:07 +0000 (17:47 +0000)]
Importing test suite from bsddb3 3.4.0 (with modifications).
Tim Peters [Tue, 19 Nov 2002 17:38:27 +0000 (17:38 +0000)]
Renamed Wise vrbl from _TCLMINOR_ to _TCLDIR_, to remove any script
dependence on the Tcl/Tk version number. Now you point it at the
Tcl/Tk install you want to ship, and that's what it ships.
Andrew M. Kuchling [Tue, 19 Nov 2002 13:31:16 +0000 (13:31 +0000)]
Add Lib/bsddb to list of installed directories
Andrew M. Kuchling [Tue, 19 Nov 2002 13:12:28 +0000 (13:12 +0000)]
Add comment to Distutil files about requiring 1.5.2 compatibility, as
suggested by PEP 291.
Andrew M. Kuchling [Tue, 19 Nov 2002 13:09:00 +0000 (13:09 +0000)]
Use \ulink instead of \citetitle; bump version number
Andrew M. Kuchling [Tue, 19 Nov 2002 13:05:33 +0000 (13:05 +0000)]
Add PyBSDDB update
Martin v. Löwis [Tue, 19 Nov 2002 08:30:08 +0000 (08:30 +0000)]
Don't try to use unsupported DB versions.
Martin v. Löwis [Tue, 19 Nov 2002 08:12:57 +0000 (08:12 +0000)]
Document PyBSDDB import.
Martin v. Löwis [Tue, 19 Nov 2002 08:09:52 +0000 (08:09 +0000)]
Import PyBSDDB 3.4.0. Rename historical wrapper to bsddb185.
Guido van Rossum [Mon, 18 Nov 2002 16:27:16 +0000 (16:27 +0000)]
Comment on PyNumber_Check().
Neil Schemenauer [Mon, 18 Nov 2002 16:19:39 +0000 (16:19 +0000)]
Note that PyNumber_Check() returns true for string and unicode objects.
Neil Schemenauer [Mon, 18 Nov 2002 16:12:54 +0000 (16:12 +0000)]
Add __mod__ method to UserString.
Neil Schemenauer [Mon, 18 Nov 2002 16:12:11 +0000 (16:12 +0000)]
check for str.__mod__
Neil Schemenauer [Mon, 18 Nov 2002 16:11:34 +0000 (16:11 +0000)]
check for unicode.__mod__
Neil Schemenauer [Mon, 18 Nov 2002 16:10:18 +0000 (16:10 +0000)]
Add nb_remainder (i.e. __mod__) slot to unicode type. Fixes SF bug #615506.
Neil Schemenauer [Mon, 18 Nov 2002 16:09:38 +0000 (16:09 +0000)]
Add nb_remainder (i.e. __mod__) slot to str type. Fixes SF bug #615506.
Neil Schemenauer [Mon, 18 Nov 2002 16:06:21 +0000 (16:06 +0000)]
Improve exception message raised by PyFloat_AsDouble if the object does not
have a nb_float slot. This matches what PyInt_AsLong does.
Neil Schemenauer [Mon, 18 Nov 2002 16:04:52 +0000 (16:04 +0000)]
str and unicode objects now have a __mod__ slot so don't special case them in
PyNumber_Remainder(). This fixes SF bug #615506 and allows string and unicode
subclasses to override __mod__.
Neil Schemenauer [Mon, 18 Nov 2002 16:02:29 +0000 (16:02 +0000)]
Don't use PyNumber_Float() since it's is nearly useless. Instead, rely on
PyFloat_AsDouble to generate a good error message.
Jack Jansen [Mon, 18 Nov 2002 15:29:02 +0000 (15:29 +0000)]
Another workaround, to find the IDE directory when we're in MacPython-OSX
on Jaguar.
Ceteram censeam W era packagendam esse.
Jack Jansen [Mon, 18 Nov 2002 15:26:43 +0000 (15:26 +0000)]
Define PyDoc_STR if it isn't defined. This makes these modules compile
for Python 2.2.
Jack Jansen [Mon, 18 Nov 2002 13:48:18 +0000 (13:48 +0000)]
Build waste, _Help and _Scrap too.
Raymond Hettinger [Mon, 18 Nov 2002 09:01:24 +0000 (09:01 +0000)]
Improve comments. Clarify docs.
Replace "type(0)" with "int".
Replace "while 1" with "while True"
Raymond Hettinger [Mon, 18 Nov 2002 04:34:10 +0000 (04:34 +0000)]
Improve DictMixin.
Replaced docstring with comments. Prevents subclass contamination.
Added the missing __cmp__() method and a test for __cmp__().
Used try/except style in preference to has_key() followed by a look-up.
Used iteritem() where possible to save creating a long key list and
to save redundant lookups.
Expanded .update() to look for the most helpful methods first and gradually
work down to a mininum expected interface.
Expanded documentation to be more clear on how to use the class.
Eric S. Raymond [Sun, 17 Nov 2002 17:53:12 +0000 (17:53 +0000)]
Guard against error if .netrc is missing.
Neil Schemenauer [Sun, 17 Nov 2002 17:52:44 +0000 (17:52 +0000)]
Remove _Py_ResetReferences. Fixes bug #529750 "Circular reference makes
Py_Init crash". refchain cannot be cleared because objects can live across
Py_Finalize() and Py_Initialize() if they are kept alive by circular
references.
Skip Montanaro [Sun, 17 Nov 2002 11:09:50 +0000 (11:09 +0000)]
correct typo detected by Lee Hansen
Fred Drake [Sat, 16 Nov 2002 00:44:00 +0000 (00:44 +0000)]
Better note that str.zfill() was added in 2.2.2 as well. ;-(
Fred Drake [Sat, 16 Nov 2002 00:41:55 +0000 (00:41 +0000)]
Document that a minor feature was added in 2.2.2. ;-(
Closes SF bug #639170.
Neal Norwitz [Fri, 15 Nov 2002 23:33:20 +0000 (23:33 +0000)]
SF Patch #638825
Fix pychecker warnings, port arg was unused (it was always the default)
Need a global statement for _listener
Neal Norwitz [Fri, 15 Nov 2002 23:31:28 +0000 (23:31 +0000)]
SF Patch #638825 logging module
Fix pychecker warnings, remove unused imports and rename root
Neal Norwitz [Fri, 15 Nov 2002 23:00:30 +0000 (23:00 +0000)]
SF 639138, Ref. calendar module in time docs by John J Lee
Will backport.
Fred Drake [Fri, 15 Nov 2002 20:34:52 +0000 (20:34 +0000)]
Minor markup nits.
Fred Drake [Fri, 15 Nov 2002 20:32:03 +0000 (20:32 +0000)]
Fix stupid typo.
Thomas Heller [Fri, 15 Nov 2002 20:13:26 +0000 (20:13 +0000)]
Document the available command line flags for bdist_wininst, which are
avaliable in the Python 2.2 branch.
I've left out some flags which are more thought for debugging, if
someone needs them, he can always look at the output of --help.
I'm sure Fred will make some adjustments, so I'll only mark this as a
2.2 bugfix candidate.
There are more options available in the current CVS bdist_wininst,
I will document them after this is in.
Thomas Heller [Fri, 15 Nov 2002 19:20:56 +0000 (19:20 +0000)]
Correct typo: the option is 'formats' not 'format'.
Tim Peters [Fri, 15 Nov 2002 19:08:50 +0000 (19:08 +0000)]
Style guide reformats. I saw this test fail on a very heavily loaded
Win98SE box, but whatever the cause, it had scrolled off the DOS box.
(There was just the "test_queue failed" summary at the end of the
regrtest run.)
Fred Drake [Fri, 15 Nov 2002 19:04:10 +0000 (19:04 +0000)]
Squash an enormous number of warnings reported when adding "use
warnings;" to this, and keep the "use" statement this time.
Fix an obscure bug that caused weird index entries to be generated in
a few cases, and a minor problem with horizontal alignmetn of the last
column of 5-column tables.
[I'd report a SF bug #, but I can't get to that right now.]
Fred Drake [Fri, 15 Nov 2002 18:49:57 +0000 (18:49 +0000)]
Fix critical markup errors.
Tim Peters [Fri, 15 Nov 2002 18:36:11 +0000 (18:36 +0000)]
Repaired typos in the Tcl/Tk compilation instructions. Turns out they
work on Win98SE too (yay!).
Fred Drake [Fri, 15 Nov 2002 16:38:06 +0000 (16:38 +0000)]
Minor revisions to clarify the status of xreadlines(), change the way
iteration support was documented; the docs for __iter__() were just
confusing.
Andrew M. Kuchling [Fri, 15 Nov 2002 14:42:34 +0000 (14:42 +0000)]
Fix minor nits
Trim excess whitespace off one line
Andrew M. Kuchling [Fri, 15 Nov 2002 14:37:46 +0000 (14:37 +0000)]
Mention that the MRO algorithm changes in 2.3
Andrew M. Kuchling [Fri, 15 Nov 2002 14:37:10 +0000 (14:37 +0000)]
Mention change in MRO
Guido van Rossum [Fri, 15 Nov 2002 13:19:58 +0000 (13:19 +0000)]
Add Optik news.
Raymond Hettinger [Fri, 15 Nov 2002 08:39:40 +0000 (08:39 +0000)]
SF patch #520382: Expand shelve.py to have a full dictionary interface
and add a mixin to UserDict.py to make it easier to implement a full
dictionary interface.
Martin v. Löwis [Fri, 15 Nov 2002 07:28:05 +0000 (07:28 +0000)]
Explain what to do in case of missing shared libraries. Remove mentioning
of egcs. Fixes #635929. Backported to 2.2.3.
Raymond Hettinger [Fri, 15 Nov 2002 06:46:14 +0000 (06:46 +0000)]
SF patch #520382: Expand shelve.py to have a full dictionary interface
and add a mixin to UserDict.py to make it easier to implement a full
dictionary interface.
Andrew M. Kuchling [Fri, 15 Nov 2002 02:52:44 +0000 (02:52 +0000)]
Draft a section on modifying Python's path. I'm not sure where
this section fits best in inst.tex's organization; Fred or someone, feel
free to move it.
Jack Jansen [Fri, 15 Nov 2002 00:13:33 +0000 (00:13 +0000)]
First stab at a Makefile that will create a MacPython that uses the
Apple-installed Python 2.2 from /usr/bin as it's underlying engine.
All the MacPython stuff is installed into /Applications/MacPython-OSX,
and .pth files and other magic are used to tie everything together.
So far only the raw windowing interpreter and BuildApplet work.
Jack Jansen [Fri, 15 Nov 2002 00:08:29 +0000 (00:08 +0000)]
Go from filename to FSSpec via FSRefs, to work around outdated macfs module
in python 2.2.
Jack Jansen [Fri, 15 Nov 2002 00:07:31 +0000 (00:07 +0000)]
Make the Resources directory if needed.
Jack Jansen [Fri, 15 Nov 2002 00:06:52 +0000 (00:06 +0000)]
Python 2.2 as installed by Apple has a version of _Res that is too old. We
attempt to load an override version in this case.
Jack Jansen [Fri, 15 Nov 2002 00:05:47 +0000 (00:05 +0000)]
Added a hack so we can build applets with a MacPython that uses the
OSX 10.2 apple-supplied Python as its base: if we've copied a symlink
as the executable we remove it and install appletrunner in stead.
Jack Jansen [Fri, 15 Nov 2002 00:04:09 +0000 (00:04 +0000)]
A script to run applets. Originally by Just, slightly modified by me.