Just van Rossum [Sat, 23 Nov 2002 09:45:04 +0000 (09:45 +0000)]
Patch #642500 with slight modifications: allow keyword arguments in
dict() constructor. Example:
>>> dict(a=1, b=2)
{'a': 1, 'b': 2}
>>>
Martin v. Löwis [Sat, 23 Nov 2002 09:16:19 +0000 (09:16 +0000)]
Include Python.h first.
Martin v. Löwis [Sat, 23 Nov 2002 09:13:40 +0000 (09:13 +0000)]
Remove MALLOC_ZERO_RETURNS_NULL.
Tim Peters [Sat, 23 Nov 2002 03:49:08 +0000 (03:49 +0000)]
More bsddb-on-Windows fiddling:
+ News blurb, but as much XXX as news.
+ Updated installer (install the new bsddb package, and the Berkeley DLL;
still don't know how to fold that into _bsddb.pyd).
+ Fleshed out build instructions.
+ Debug Python still blows up.
Jack Jansen [Fri, 22 Nov 2002 23:39:52 +0000 (23:39 +0000)]
Allow access to the returned value(s) as FSRefs. Unfortunately for some
reason getting at saveFileName doesn't work, so it currently only really
works for opening files for reading.
Neal Norwitz [Fri, 22 Nov 2002 23:29:31 +0000 (23:29 +0000)]
Fix SF # 640557, '64-bit' systems and the dbm module
datum.dsize can apparently be long on some systems.
Ensure we pass an int* to PyArg_Parse("s#"), not &datum.dsize
Will backport.
Thomas Heller [Fri, 22 Nov 2002 21:08:34 +0000 (21:08 +0000)]
(This is hopefully the last large, funny checkin message for
bdist_wininst.py we will see.)
Removed the base64 encoded binary contents, wininst.exe must be in the
same directory as this file now.
wininst.exe must be recompiled and commited each time the sources in
PC/bdist_wininst are changed.
Thomas Heller [Fri, 22 Nov 2002 20:57:20 +0000 (20:57 +0000)]
get_python_version was not imported.
Thomas Heller [Fri, 22 Nov 2002 20:43:30 +0000 (20:43 +0000)]
Oops, MSVC was still open, so the project file was not yet saved.
Thomas Heller [Fri, 22 Nov 2002 20:39:33 +0000 (20:39 +0000)]
Copied the sources from the distutils CVS repository.
Changed the MSVC project file to create the exe in the
lib/distutils/command directory, bdist_wininst.py must still be
changed to use it.
Also changed to use the same zlib as the zlib module - this has the nice
sideeffect that now the buggy 1.1.3 version is no longer used.
Most of the source files now conform to PEP 7, except for the maximum
line length. Windows api programming in 78 character lines =:(.
README.txt is a new file, but still empty except for placeholders.
Fred Drake [Fri, 22 Nov 2002 20:13:43 +0000 (20:13 +0000)]
Two bugs:
- assertRaises() wasn't being called correctly
- test_warning() no longer applies
Tim Peters [Fri, 22 Nov 2002 20:00:34 +0000 (20:00 +0000)]
Move Windows Python away from bsddb 1.85 and toward Sleepycat's latest.
The bsddb subproject is gone.
The _bsddb subproject is new.
There are problems here, but I'm out of time to work on this now. If
anyone can address an XXX comment or two in readme.txt, please do!
Jack Jansen [Fri, 22 Nov 2002 16:12:57 +0000 (16:12 +0000)]
Fix for #641455: curses module doesn't build on MacOSX. It turns out the
system headers have two declarations for wchar_t, with different guard macros.
Not sure whether this is a bugfix candidate, that depends on what changed in the
curses module.
Guido van Rossum [Fri, 22 Nov 2002 15:56:29 +0000 (15:56 +0000)]
Comment out the warnings about mktemp(). These are too annoying, and
often unavoidable.
Jack Jansen [Fri, 22 Nov 2002 15:53:32 +0000 (15:53 +0000)]
Added the alias manager too. The interface isn't perfect yet: the alias
manager doesn't always have the alias as the first argument, so things
become functions in stead of methods.
Jack Jansen [Fri, 22 Nov 2002 14:58:35 +0000 (14:58 +0000)]
Got angry and added support for pretty much the whole file and folder
manager. This should allow us the get rid of most of the FSSpecs, only
navigation services remains to be done.
Fred Drake [Fri, 22 Nov 2002 14:29:42 +0000 (14:29 +0000)]
Clarify the default setting for daemon_threads.
Fred Drake [Fri, 22 Nov 2002 14:28:53 +0000 (14:28 +0000)]
Fix markup.
Fred Drake [Fri, 22 Nov 2002 14:22:49 +0000 (14:22 +0000)]
Use False instead of 0.
Just van Rossum [Fri, 22 Nov 2002 12:48:47 +0000 (12:48 +0000)]
workaround so the (otherwise still broken) IDE can at least quit in the Python 2.2 Jaguar addon install
Fredrik Lundh [Fri, 22 Nov 2002 12:46:35 +0000 (12:46 +0000)]
fix for SF #635398 (don't "downcast" return strings from unicode to ascii)
Just van Rossum [Fri, 22 Nov 2002 11:52:15 +0000 (11:52 +0000)]
changed to use Lib/bundlebuilder.py instead of scripts/buildappbundle.py
Just van Rossum [Fri, 22 Nov 2002 11:45:42 +0000 (11:45 +0000)]
make the --link option match the original: just symlink the executable
Just van Rossum [Fri, 22 Nov 2002 11:43:10 +0000 (11:43 +0000)]
Added --link-exec option: make a symlink for the executable only, copy all other files.
Just van Rossum [Fri, 22 Nov 2002 11:10:49 +0000 (11:10 +0000)]
Replaced the bundle building code with calls to the new bundlebuilder
module.
Jack: I've compared the .app output of the orginal with the new and I
can't find any significant differences. However, bundlebuilder.py
contains its' own command line interface and I think we should use
that instead. I'll have a look to see whether I can patch
Mac/OSX/Makefile.jaguar to this effect.
Martin v. Löwis [Fri, 22 Nov 2002 09:10:33 +0000 (09:10 +0000)]
Patch #542562, file 25252: Remove changelog.
Martin v. Löwis [Fri, 22 Nov 2002 08:36:54 +0000 (08:36 +0000)]
Patch #494845: Support string concatenation, detect non-string data,
add globbing support, find modules by name instead of by file.
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. ;-(