Neal Norwitz [Thu, 14 Nov 2002 04:56:09 +0000 (04:56 +0000)]
Fix SF # 638126, logging module not installed
Skip Montanaro [Thu, 14 Nov 2002 03:58:20 +0000 (03:58 +0000)]
add liblogging
Skip Montanaro [Thu, 14 Nov 2002 03:57:19 +0000 (03:57 +0000)]
initial rough cut at documentation of logging module. This is basically
just a conversion of pydoc.help(logging).
Neal Norwitz [Thu, 14 Nov 2002 03:31:32 +0000 (03:31 +0000)]
Update the docstring to match the code. Will backport.
Neal Norwitz [Thu, 14 Nov 2002 02:44:08 +0000 (02:44 +0000)]
Sync tixwidgets from Mike Clarkson, a maintainer
Neal Norwitz [Thu, 14 Nov 2002 02:43:40 +0000 (02:43 +0000)]
Sync Tix from Mike Clarkson, a maintainer
Andrew M. Kuchling [Thu, 14 Nov 2002 02:25:42 +0000 (02:25 +0000)]
Remove 'created by' lines; people can use CVS for this, and the information is often out of date
Neal Norwitz [Thu, 14 Nov 2002 02:19:44 +0000 (02:19 +0000)]
Fix typo in comment
Andrew M. Kuchling [Thu, 14 Nov 2002 01:58:48 +0000 (01:58 +0000)]
Fix docstring typo; remove 'created' line
Andrew M. Kuchling [Thu, 14 Nov 2002 01:44:35 +0000 (01:44 +0000)]
[Bug #550364] Use sysconfig.get_python_version()
Andrew M. Kuchling [Thu, 14 Nov 2002 01:43:00 +0000 (01:43 +0000)]
[Bug #550364] Add get_python_version()
Andrew M. Kuchling [Thu, 14 Nov 2002 01:29:00 +0000 (01:29 +0000)]
[Bug #599248] ext module generation problem
If you have source files srcdir1/foo.c and srcdir2/foo.c, the
temporary .o for both files is written to build/temp.<platform>/foo.o.
This patch sets strip_dir to false for both calls to object_filename,
so now the object files are written to temp.<platform>/srcdir1/foo.o
and .../srcdir2/foo.o.
2.2 bugfix candidate
Eric S. Raymond [Wed, 13 Nov 2002 23:05:35 +0000 (23:05 +0000)]
Make nntplib aware of ~/.netrc credentials; now they get used if they are
present and the caller has not specified a name/password pair. This change
makes it less likely that a lazy coder will expose sensitive information in a
word-readable script.
Also, make the test a bit smarter. If NNTPSERVER is defined in the environment
it will go talk to that server rather than look for a possibly nonexistent
local one named 'news'. Maybe the osession initializer ought to look at
NNTPSERVER rather than requiring a host arg? Must look around and see how
universal this convention is first.
Jeremy Hylton [Wed, 13 Nov 2002 22:10:47 +0000 (22:10 +0000)]
Add some simple tests of the persistence hooks.
Jeremy Hylton [Wed, 13 Nov 2002 22:01:27 +0000 (22:01 +0000)]
Remove inst_persistent_id() WANNI (we ain't never needed it).
Add some simple tests of the persistence hooks.
Jeremy Hylton [Wed, 13 Nov 2002 22:00:02 +0000 (22:00 +0000)]
remove debugging print
Guido van Rossum [Wed, 13 Nov 2002 21:04:31 +0000 (21:04 +0000)]
Tim wins a bet. Don't use re.
Andrew M. Kuchling [Wed, 13 Nov 2002 20:54:21 +0000 (20:54 +0000)]
Allow unknown keyword arguments to the Extension class, and warn about them.
Jeremy Hylton [Wed, 13 Nov 2002 19:34:26 +0000 (19:34 +0000)]
Add getstate and setstate implementation to concrete set classes.
Fred Drake [Wed, 13 Nov 2002 19:31:04 +0000 (19:31 +0000)]
Integrate updates to the GNU info conversion.
This includes SF patch #590352 and additional support for more of the custom
markup.
Fred Drake [Wed, 13 Nov 2002 19:16:37 +0000 (19:16 +0000)]
- Committing the modified signature lines I've been using for a long
time in http://www.python.org/dev/doc/. There have been no bug
reports on these for a long time now.
- Remove local "use" statement that duplicates a top-level "use".
Fred Drake [Wed, 13 Nov 2002 19:05:01 +0000 (19:05 +0000)]
Document struct_time and the field names.
Fred Drake [Wed, 13 Nov 2002 17:55:17 +0000 (17:55 +0000)]
Add \funcline, \funclineni, and \methodlineni to the list of functions
that are processed before their arguments.
Closes SF bug #637807.
Fred Drake [Wed, 13 Nov 2002 17:48:15 +0000 (17:48 +0000)]
Fix broken markup.
Closes SF bug #637807.
Jeremy Hylton [Wed, 13 Nov 2002 17:30:32 +0000 (17:30 +0000)]
Remove some test code.
The buggy yahoo server was fixed, and the opalgroup test files are
gone.
Jeremy Hylton [Wed, 13 Nov 2002 17:27:43 +0000 (17:27 +0000)]
Fix SF bug #637789: Handle Proxy-Connection header.
Also, remove unused local variable noted by pychecker.
Andrew M. Kuchling [Wed, 13 Nov 2002 17:03:05 +0000 (17:03 +0000)]
Back out part of rev. 1.53, restoring the use of the string module.
The two long lines have been reflowed differently; hopefully someone on
BeOS can test them. Rev. 1.53 also converted string.atoi() to int(); I've
left that alone.
Guido van Rossum [Wed, 13 Nov 2002 16:29:18 +0000 (16:29 +0000)]
News about the logging module.
Guido van Rossum [Wed, 13 Nov 2002 16:18:29 +0000 (16:18 +0000)]
Get rid of #! lines, references to usage as __main__, README.txt, and
http://www.red-dove.com/python_logging.html.
Guido van Rossum [Wed, 13 Nov 2002 16:15:58 +0000 (16:15 +0000)]
Adding Vinay Sajip's logging package.
Fred Drake [Wed, 13 Nov 2002 15:56:13 +0000 (15:56 +0000)]
Typo: it's --> its
Closes SF bug #637810.
Fred Drake [Wed, 13 Nov 2002 15:32:34 +0000 (15:32 +0000)]
Update: Older versions of Python crashed when calling repr()
(including the implied call using back-ticks) of a recursive object,
but this is no longer the case.
Reported by Manus Hand via email.
Raymond Hettinger [Wed, 13 Nov 2002 15:26:37 +0000 (15:26 +0000)]
Improved clarity and thoroughness of docstring.
Added design notes in comments.
Used better variable names.
Eliminated the unsavory "pool[-k:]" which was an aspiring bug (for k==0).
Used if/else to show the two algorithms in parallel style.
Added one more test assertion.
Fred Drake [Wed, 13 Nov 2002 15:13:38 +0000 (15:13 +0000)]
Clarify that PyImport_AddModule() and PyImport_ExecCodeModule() don't
add any package support structure even if a dotted-name is passed for
the module.
Closes SF bug #424106.
Fred Drake [Wed, 13 Nov 2002 14:59:06 +0000 (14:59 +0000)]
Normalize whitespace.
Fix a number of markup consistency buglets.
Fred Drake [Wed, 13 Nov 2002 14:38:17 +0000 (14:38 +0000)]
Fix typo in comment.
Andrew M. Kuchling [Wed, 13 Nov 2002 13:26:59 +0000 (13:26 +0000)]
Update file
Andrew M. Kuchling [Wed, 13 Nov 2002 13:25:46 +0000 (13:25 +0000)]
Docstring typo fix
Andrew M. Kuchling [Wed, 13 Nov 2002 13:24:41 +0000 (13:24 +0000)]
Fill out the 'Porting' section
Add random.sample()
Martin v. Löwis [Wed, 13 Nov 2002 08:51:19 +0000 (08:51 +0000)]
The libsocket/libnsl problem is specific to IRIX 4. Confirmed by Tim Rice.
Neal Norwitz [Tue, 12 Nov 2002 23:21:15 +0000 (23:21 +0000)]
Fix SF # 464405, freeze doesn't like DOS files on Linux
Use universal newline support when opening a file for freezing.
Fred Drake [Tue, 12 Nov 2002 23:12:54 +0000 (23:12 +0000)]
Clarified meaning of \w and \W with respect to the UNICODE and LOCALE flags.
Closes SF bug #635595.
Neal Norwitz [Tue, 12 Nov 2002 23:09:12 +0000 (23:09 +0000)]
SF # 627900, Bytecode copy bug in freeze
Pass co_freevars and co_cellvars to new.code().
Will backport.
Neal Norwitz [Tue, 12 Nov 2002 23:01:12 +0000 (23:01 +0000)]
Fix SF # 635969, No error "not all arguments converted"
When mwh added extended slicing, strings and unicode became mappings.
Thus, dict was set which prevented an error when doing:
newstr = 'format without a percent' % string_value
This fix raises an exception again when there are no formats
and % with a string value.
Fred Drake [Tue, 12 Nov 2002 22:19:34 +0000 (22:19 +0000)]
Handle the Content-Type header a little more appropriately: if it
contains options, drop them to get the major/minor content type.
Modified from the supplied patch to support more whitespace variation.
Closes SF patch #613605.
Tim Peters [Tue, 12 Nov 2002 22:08:10 +0000 (22:08 +0000)]
SF patch 637176: list.sort crasher
Armin Rigo's Draconian but effective fix for
SF bug 453523: list.sort crasher
slightly fiddled to catch more cases of list mutation. The dreaded
internal "immutable list type" is gone! OTOH, if you look at a list
*while* it's being sorted now, it will appear to be empty. Better
than a core dump.
Fred Drake [Tue, 12 Nov 2002 22:07:11 +0000 (22:07 +0000)]
Clarified documentation of tempnam().
Closes SF bug #635656.
Andrew M. Kuchling [Tue, 12 Nov 2002 18:59:20 +0000 (18:59 +0000)]
Update text to refer to 2.2.2
Remove an XXX item: I'm not going to write a section on the email package
at this point
Andrew M. Kuchling [Tue, 12 Nov 2002 18:45:46 +0000 (18:45 +0000)]
Remove extra word
Raymond Hettinger [Tue, 12 Nov 2002 17:41:57 +0000 (17:41 +0000)]
SF patch 629637: Add sample(population, k) method to the random module.
Used for random sampling without replacement.
Skip Montanaro [Tue, 12 Nov 2002 16:53:36 +0000 (16:53 +0000)]
delete reference to building on Minix, which will be unsupported in 2.3
Walter Dörwald [Tue, 12 Nov 2002 11:42:20 +0000 (11:42 +0000)]
Use PyInt_AsLong instead of PyInt_AS_LONG after the call to
PyNumber_Int, because now PyNumber_Int might return a long,
and PyInt_AsLong can handle that, whereas PyInt_AS_LONG can't.
This closes SF bug #629989.
Martin v. Löwis [Tue, 12 Nov 2002 06:04:39 +0000 (06:04 +0000)]
Don't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.
Tim Peters [Mon, 11 Nov 2002 20:21:06 +0000 (20:21 +0000)]
Forgot a paren in the MSVC + 64-bit + Intel case.
Tim Peters [Mon, 11 Nov 2002 19:51:33 +0000 (19:51 +0000)]
Added a blurb about the change to sys.version under MSVC.
Tim Peters [Mon, 11 Nov 2002 19:44:39 +0000 (19:44 +0000)]
Some help for SF 614770: MSVC 7.0 compiler support
This changes sys.version under Microsoft builds to include the MS compiler
version number (_MSC_VER). Since VC 6 and VC 7 are apparently
incompatible, and both can be installed on a single box, distutils needs
some way to figure out which version of MSVC a given Python was compiled
under.
As also suggested by MvL, got rid of #ifdef'ery for the defunct _M_ALPHA
target.
Bugfix candidate? Hard to say. As far as I'm concerned, VC 7 wasn't
a supported platform in the 2.2 line. If somebody thinks it should be,
they can do the work.
Martin v. Löwis [Mon, 11 Nov 2002 14:58:44 +0000 (14:58 +0000)]
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Fixes #636431.
Martin v. Löwis [Mon, 11 Nov 2002 13:37:28 +0000 (13:37 +0000)]
Protect pyconfig.h from multiple inclusions.
Martin v. Löwis [Mon, 11 Nov 2002 13:26:51 +0000 (13:26 +0000)]
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis [Mon, 11 Nov 2002 13:26:51 +0000 (13:26 +0000)]
Don't define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012].
Martin v. Löwis [Mon, 11 Nov 2002 13:23:45 +0000 (13:23 +0000)]
Check whether we can take the address of chown, link, and symlink.
Jack Jansen [Mon, 11 Nov 2002 00:06:14 +0000 (00:06 +0000)]
- Use imp to find appletrawmain.py in stead of hand-crafting the path
to it.
- Allow for symlinks in the applet template.
Jack Jansen [Mon, 11 Nov 2002 00:05:00 +0000 (00:05 +0000)]
- Building IDE is optional on waste being available, similar to building
IDLE (it was a fatal error before)
- Shuffled a few things around to facilitate the experimental building
of MacPython for Jaguar's pre-installed python.
Neal Norwitz [Sun, 10 Nov 2002 14:33:26 +0000 (14:33 +0000)]
Make private functions static so we don't pollute the namespace
Martin v. Löwis [Sat, 9 Nov 2002 20:19:12 +0000 (20:19 +0000)]
Allow both string and Unicode objects in levels.
Martin v. Löwis [Sat, 9 Nov 2002 19:57:26 +0000 (19:57 +0000)]
Don't try to convert the test filename to Unicode with -U.
Martin v. Löwis [Sat, 9 Nov 2002 19:54:06 +0000 (19:54 +0000)]
Fix typo.
Martin v. Löwis [Sat, 9 Nov 2002 19:53:04 +0000 (19:53 +0000)]
Look in db4 directories when checking for db4.
Martin v. Löwis [Sat, 9 Nov 2002 19:01:44 +0000 (19:01 +0000)]
Search for tix subdirectories. Fixes #564729. Will backport to 2.2.
Michael W. Hudson [Sat, 9 Nov 2002 14:47:18 +0000 (14:47 +0000)]
Restore to ANSI C.
Tim Peters [Sat, 9 Nov 2002 08:24:58 +0000 (08:24 +0000)]
Install the bz2 DLL on Windows.
Tim Peters [Sat, 9 Nov 2002 06:51:30 +0000 (06:51 +0000)]
I already forgot what I changed -- it wasn't important <wink>.
Tim Peters [Sat, 9 Nov 2002 06:49:43 +0000 (06:49 +0000)]
OK -- all tests pass on Windows now. The rest were due to 3 more
binary-vs-text-mode screwups.
Tim Peters [Sat, 9 Nov 2002 06:45:31 +0000 (06:45 +0000)]
More tests run on Windows now. Something is still wrong here, but no
idea what. Added liberal XXX explanations for the next guy.
Tim Peters [Sat, 9 Nov 2002 06:31:56 +0000 (06:31 +0000)]
Many changes to get this to pass on Windows, and to make it easier to
figure out what the code was doing. The fixes were a combination of
closing open files before deletion, opening files in binary mode, and
plain skipping things that can't work on Windows (BaseTest.decompress
uses a process gimmick that doesn't exist on Windows, and, even if it
did, assumes a "bunzip2" executable is on PATH).
Tim Peters [Sat, 9 Nov 2002 05:26:15 +0000 (05:26 +0000)]
Whitespace normalization.
Tim Peters [Sat, 9 Nov 2002 05:22:41 +0000 (05:22 +0000)]
Comment out the test docstrings so we can at least tell which tests are
failing.
Tim Peters [Sat, 9 Nov 2002 05:08:07 +0000 (05:08 +0000)]
Whitespace normalization.
Tim Peters [Sat, 9 Nov 2002 04:48:58 +0000 (04:48 +0000)]
Start building the bz2 module on Windows.
CAUTION: The Python test still has many failures, but I'm out of time
for this now (already took much longer than hoped to get this far).
The base bz2 library does pass its own tests (see next).
CAUTION: People building on Windows have to download and build tne
bz2 compression libraries now. See PCbuild\readme.txt for complete
instructions.
Tim Peters [Sat, 9 Nov 2002 04:44:30 +0000 (04:44 +0000)]
Open at least one binary file in binary mode. This allows a few of the
bz2 tests to pass on Windows; most are still failing.
Tim Peters [Sat, 9 Nov 2002 04:33:36 +0000 (04:33 +0000)]
bz2_compress/bz2_decompress: more casting away LONG_LONG for
_PyString_Resize calls.
Tim Peters [Sat, 9 Nov 2002 04:31:38 +0000 (04:31 +0000)]
BZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.
Tim Peters [Sat, 9 Nov 2002 04:30:08 +0000 (04:30 +0000)]
BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.
Tim Peters [Sat, 9 Nov 2002 04:28:17 +0000 (04:28 +0000)]
BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to
_PyString_Resize to int.
Tim Peters [Sat, 9 Nov 2002 04:26:02 +0000 (04:26 +0000)]
BZ2Comp_compress(): changed decl of totalout to LONG_LONG, since it's
solely used to hold LONG_LONG values, and the compiler rightfully warns
about potential data loss otherwise.
Tim Peters [Sat, 9 Nov 2002 04:23:31 +0000 (04:23 +0000)]
Repaired signed-vs-unsigned mismatch.
Tim Peters [Sat, 9 Nov 2002 04:21:44 +0000 (04:21 +0000)]
This couldn't compile on WIndows, due to hardcoded "long long". Repaired.
Guido van Rossum [Fri, 8 Nov 2002 17:03:36 +0000 (17:03 +0000)]
Another attempt at making the set constructor both safe and fast. [SF
bug 628246]
Andrew M. Kuchling [Fri, 8 Nov 2002 16:18:24 +0000 (16:18 +0000)]
[Bug #233259] Ugly traceback for DistutilsPlatformError
Fixed by catching all exceptions that are subclasses of DistutilsError,
so only the error message will be printed. You can still get the
whole traceback by enabling the Distutils debugging mode.
Andrew M. Kuchling [Fri, 8 Nov 2002 15:11:42 +0000 (15:11 +0000)]
Fix comment typo
Gustavo Niemeyer [Fri, 8 Nov 2002 14:31:49 +0000 (14:31 +0000)]
* Modules/bz2module.c
(BZ2File_dealloc): Call Util_DropReadAhead().
(*): Included aesthetic changes by Neal Norwitz.
Andrew M. Kuchling [Fri, 8 Nov 2002 13:11:50 +0000 (13:11 +0000)]
Simply delete the fpectl module, instead of leaving it commented out;
if people want to compile it, they should edit Modules/Setup, not setup.py
Michael W. Hudson [Fri, 8 Nov 2002 13:09:39 +0000 (13:09 +0000)]
Richie Hindle
Michael W. Hudson [Fri, 8 Nov 2002 13:08:46 +0000 (13:08 +0000)]
This is Richie Hindle's patch:
[ 631276 ] Exceptions raised by line trace function
It conflicted with the patches from Armin I just checked it, so I had
to so some bits by hand.
Michael W. Hudson [Fri, 8 Nov 2002 12:53:11 +0000 (12:53 +0000)]
Assorted patches from Armin Rigo:
[ 617309 ] getframe hook (Psyco #1)
[ 617311 ] Tiny profiling info (Psyco #2)
[ 617312 ] debugger-controlled jumps (Psyco #3)
These are forward ports from 2.2.2.
Martin v. Löwis [Fri, 8 Nov 2002 12:09:59 +0000 (12:09 +0000)]
Make strip behave as documented. Will backport to 2.2.3.
Raymond Hettinger [Fri, 8 Nov 2002 05:49:47 +0000 (05:49 +0000)]
Clarify the meaning of "requires Python 1.5.2".
Raymond Hettinger [Fri, 8 Nov 2002 05:30:23 +0000 (05:30 +0000)]
Closes SF bug #634069 reporting the docs on the ** operator were out
of date and did not reflect the current CPython implementation.
Tim Peters [Fri, 8 Nov 2002 05:26:52 +0000 (05:26 +0000)]
_update(): Commented the new obscurity. Materialized into a tuple
instead of into a list for a bit of speed/space savings. Reopened the
bug report too (628246), as I'm unclear on why we don't sort out the
cause of the TypeError instead.
Raymond Hettinger [Fri, 8 Nov 2002 05:03:21 +0000 (05:03 +0000)]
Closes SF bug #628246.
The _update method detected mutable elements by trapping TypeErrors.
Unfortunately, this masked useful TypeErrors raised by the iterable
itself. For cases where it is possible for an iterable to raise
a TypeError, the iterable is pre-converted to a list outside the
try/except so that any TypeErrors propagate through.