]> granicus.if.org Git - python/log
python
22 years agoRemove the random=None nonsense from sample() before it gets set in stone.
Raymond Hettinger [Sat, 4 Jan 2003 05:20:33 +0000 (05:20 +0000)]
Remove the random=None nonsense from sample() before it gets set in stone.
It was once available so that faster generators could be substituted.  Now,
that is less necessary and preferrably done via subclassing.

Also, clarified and shortened the comments for sample().

22 years agoMoved this info to the top-level README where all the other
Skip Montanaro [Sat, 4 Jan 2003 04:12:19 +0000 (04:12 +0000)]
Moved this info to the top-level README where all the other
platform-specific verbiage lives.

22 years agoThe bsddb3 library does not build w/ Berkeley DB 3.0. 3.1 is the earliest
Skip Montanaro [Sat, 4 Jan 2003 04:06:56 +0000 (04:06 +0000)]
The bsddb3 library does not build w/ Berkeley DB 3.0.  3.1 is the earliest
supported version.

22 years agoMerged Misc/AtheOS-NOTES into the platform-specific section. Rewrote the
Skip Montanaro [Sat, 4 Jan 2003 04:05:51 +0000 (04:05 +0000)]
Merged Misc/AtheOS-NOTES into the platform-specific section.  Rewrote the
bsddb module build note to reflect the inclusion of bsddb3 and the demotion
of the old bsddb module.

22 years agoSF bug #655271: Slightly modify locals() doc
Raymond Hettinger [Sat, 4 Jan 2003 02:16:22 +0000 (02:16 +0000)]
SF bug #655271: Slightly modify locals() doc

Clarify the operation of locals().

22 years agoSF bug #651149: Review libshelve.tex when possible
Raymond Hettinger [Sat, 4 Jan 2003 01:53:38 +0000 (01:53 +0000)]
SF bug #651149: Review libshelve.tex when possible

Minor fixes to markup, spelling, parameter names, and abbreviations.

22 years agoM AutoExpand.py
Kurt B. Kaiser [Sat, 4 Jan 2003 01:43:53 +0000 (01:43 +0000)]
M AutoExpand.py
M Bindings.py
M EditorWindow.py
M PyShell.py
M config-keys.def
M configHandler.py
M help.txt

1. Annotate the shell window with last restart boundary upon restart.
2. Provide a shell menu entry and hot key (F6) to jump to the last
   restart boundary.
3. Add a new shell menu feature to restart the shell.
4. Update the help menu to add these features.
5. Update the help menu to put text in same order as the menus.
6. Correct a capitalization inconsistency on the Edit menu: Expand Word
7. Rename the "Debug" menu to be "Shell": it's doing more now.
8. Rearrange the "Shell" menu to make the StackViewer entries adjacent.
9. Add a get_geometry method to EditorWindow, which may be of use in
   making window positions persisent.
10. Make <ctrl-v> the "Classic Windows" paste key.
11. Restore decorum on the Help menu by removing "Advice".  As Guido said,
    things will never be the same.  Thanks, David!

22 years agoFix compiler warning
Neal Norwitz [Sat, 4 Jan 2003 01:02:25 +0000 (01:02 +0000)]
Fix compiler warning

22 years agoSF Patch #661440: Refactor and streamline PyCFunction_Call
Raymond Hettinger [Sat, 4 Jan 2003 00:37:53 +0000 (00:37 +0000)]
SF Patch #661440: Refactor and streamline PyCFunction_Call

Refactor code in PyCFunction_Call giving a modest (tiny) speed boost,
a slight improvement in semantics (now detects invalid flag combinations),
and (arguably) improved clarity (making it blindingly clear which flag
combinations are allowed).  All this comes at a cost of a few lines of
code duplication.

* Folded test for METH_KEYWORDS into the switch/case.
* Deferred testing for an empty dictionary until when and where needed.
* Make a similar deferral for filling the "size" variable.
* Inverted the dictionary test so that the common case falls though
  instead of making a jump.

22 years agoWrap doc strings in PyDoc_STRVAR. Fix .string docstring. Provide default
Martin v. Löwis [Sat, 4 Jan 2003 00:33:13 +0000 (00:33 +0000)]
Wrap doc strings in PyDoc_STRVAR. Fix .string docstring. Provide default
macro definitions for older Python releases.

22 years agoCompleted astimezone()'s correctness proof. This also proves we can get
Tim Peters [Sat, 4 Jan 2003 00:26:59 +0000 (00:26 +0000)]
Completed astimezone()'s correctness proof.  This also proves we can get
the desired compromise behavior during the "problem hour" when DST ends
cheaply (but I haven't yet implemented that).

22 years agoConvert Tcl path objects to strings. Fixes #661357.
Martin v. Löwis [Sat, 4 Jan 2003 00:08:09 +0000 (00:08 +0000)]
Convert Tcl path objects to strings. Fixes #661357.
Provide .string attribute and __unicode for Tcl_Objs.

22 years agoRemark about datetime tzinfo examples.
Tim Peters [Fri, 3 Jan 2003 22:35:24 +0000 (22:35 +0000)]
Remark about datetime tzinfo examples.

22 years agoReplaced the flawed "local time" example tzinfo class with the guts
Tim Peters [Fri, 3 Jan 2003 22:26:57 +0000 (22:26 +0000)]
Replaced the flawed "local time" example tzinfo class with the guts
of Guido's later Local.py (from the datetime sandbox).

22 years agoGrammatical fix in comment.
Greg Ward [Fri, 3 Jan 2003 21:22:08 +0000 (21:22 +0000)]
Grammatical fix in comment.

22 years agoGrammatical fix: change possessive "it's" to "its".
Greg Ward [Fri, 3 Jan 2003 21:09:57 +0000 (21:09 +0000)]
Grammatical fix: change possessive "it's" to "its".

22 years agoRemove a list comprehension, because a loop over the list
Walter Dörwald [Fri, 3 Jan 2003 21:06:46 +0000 (21:06 +0000)]
Remove a list comprehension, because a loop over the list
is done afterwards anyway, so what the list comp does
can be done in the loop.

22 years agoPass the strict argument from read() on to readfp(), so the
Walter Dörwald [Fri, 3 Jan 2003 21:02:36 +0000 (21:02 +0000)]
Pass the strict argument from read() on to readfp(), so the
file content ends up in the correct dict.

22 years agoUse RUNSHARED for python invocations. Fixes #661408.
Martin v. Löwis [Fri, 3 Jan 2003 20:39:29 +0000 (20:39 +0000)]
Use RUNSHARED for python invocations. Fixes #661408.

22 years agoFix read_mime_types() so that it returns a dict as documented.
Walter Dörwald [Fri, 3 Jan 2003 19:33:17 +0000 (19:33 +0000)]
Fix read_mime_types() so that it returns a dict as documented.
This fixes a bug reported as http://www.python.org/sf/661630,
which was introduced in the patch http://www.python.org/sf/554192.

22 years agoAllow PyFile_GetLine() to return Unicode objects. Fixes #660165.
Martin v. Löwis [Fri, 3 Jan 2003 19:16:14 +0000 (19:16 +0000)]
Allow PyFile_GetLine() to return Unicode objects. Fixes #660165.

22 years agoFix SF #659228, 'realpath' function missing from os.path
Neal Norwitz [Fri, 3 Jan 2003 18:12:28 +0000 (18:12 +0000)]
Fix SF #659228, 'realpath' function missing from os.path

Also added realpath = abspath for os2emx, similar to windows/mac
which also don't really implement realpath.

Backport candidate, I think?

22 years agoSpread the blame (err, I mean credit) for ossaudiodev around a bit.
Greg Ward [Fri, 3 Jan 2003 18:03:21 +0000 (18:03 +0000)]
Spread the blame (err, I mean credit) for ossaudiodev around a bit.

22 years agoMention ossaudiodev.
Greg Ward [Fri, 3 Jan 2003 18:02:15 +0000 (18:02 +0000)]
Mention ossaudiodev.

22 years agoFix SF #659228, 'realpath' function missing from os.path
Neal Norwitz [Fri, 3 Jan 2003 18:01:57 +0000 (18:01 +0000)]
Fix SF #659228, 'realpath' function missing from os.path

Also added realpath = abspath for os2emx, similar to windows/mac
which also don't really implement realpath.

Backport candidate, I think?

22 years agoWrite PEP 301 section
Andrew M. Kuchling [Fri, 3 Jan 2003 16:52:27 +0000 (16:52 +0000)]
Write PEP 301 section
Mention difference between 2.2.2 and 2.3 True and False

22 years agoMention that imaplib now supports SSL -- this wasn't noted before.
Guido van Rossum [Fri, 3 Jan 2003 16:33:49 +0000 (16:33 +0000)]
Mention that imaplib now supports SSL -- this wasn't noted before.

22 years agoqualify known Solaris versions related to the binutils breakage.
Skip Montanaro [Fri, 3 Jan 2003 16:26:23 +0000 (16:26 +0000)]
qualify known Solaris versions related to the binutils breakage.

22 years agoAdd SSL support for imaplib; add empty PEP301 section
Andrew M. Kuchling [Fri, 3 Jan 2003 16:24:28 +0000 (16:24 +0000)]
Add SSL support for imaplib; add empty PEP301 section

22 years agoupdate info about binutils 2.13 breakage on Solaris.
Skip Montanaro [Fri, 3 Jan 2003 16:17:08 +0000 (16:17 +0000)]
update info about binutils 2.13 breakage on Solaris.

22 years ago[Patch #658093 ] Documentation support for PEP 301
Andrew M. Kuchling [Fri, 3 Jan 2003 15:42:14 +0000 (15:42 +0000)]
[Patch #658093 ] Documentation support for PEP 301
  Add two sections to this manual about package meta-data and about
  registering packages

22 years ago[Patch #658094 ] PEP 301 implementation
Andrew M. Kuchling [Fri, 3 Jan 2003 15:29:28 +0000 (15:29 +0000)]
[Patch #658094 ] PEP 301 implementation
   Add the 'register' distutils command

22 years ago[Patch #658094] PEP 301 implementation
Andrew M. Kuchling [Fri, 3 Jan 2003 15:24:36 +0000 (15:24 +0000)]
[Patch #658094] PEP 301 implementation
  Add 'classifiers' keyword to DistributionMetadata

22 years agoFix for bug #661136
Just van Rossum [Fri, 3 Jan 2003 11:18:56 +0000 (11:18 +0000)]
Fix for bug #661136
Lesson learned: kids should not be allowed to use API's starting
with an underscore :-/
zipimport in 2.3a1 is even more broken than I thought: I attemped
to _PyString_Resize a string created by PyString_FromStringAndSize,
which fails for strings with length 0 or 1 since the latter returns
an interned string in those cases. This would cause a SystemError
with empty source files (and no matching pyc) in the zip archive.
I rewrote the offending code to simply allocate a new buffer and
avoid _PyString_Resize altogether.
Added a test that would've caught the problem.

22 years agoAdd contributor.
Raymond Hettinger [Fri, 3 Jan 2003 10:41:50 +0000 (10:41 +0000)]
Add contributor.

22 years agoRemove debugging prints.
Michael W. Hudson [Fri, 3 Jan 2003 10:25:20 +0000 (10:25 +0000)]
Remove debugging prints.

22 years agoSF patch 660559: Use METH_O and METH_NOARGS where possible
Raymond Hettinger [Fri, 3 Jan 2003 08:24:58 +0000 (08:24 +0000)]
SF patch 660559: Use METH_O and METH_NOARGS where possible

Simplify code and speed access by using PyArg_UnpackTuple, METH_O and
METH_NOARGS in three modules that can benefit from it.

22 years agoFixed markup.
David Goodger [Fri, 3 Jan 2003 03:30:21 +0000 (03:30 +0000)]
Fixed markup.

22 years agoUpdated (2.3 OK now)
David Goodger [Fri, 3 Jan 2003 03:29:58 +0000 (03:29 +0000)]
Updated (2.3 OK now)

22 years agoFix error in previous correction; thanks, Just!
Andrew M. Kuchling [Thu, 2 Jan 2003 23:50:18 +0000 (23:50 +0000)]
Fix error in previous correction; thanks, Just!

22 years agoJack complained that on test_crlf_separation() was failing on MacOS9
Barry Warsaw [Thu, 2 Jan 2003 22:48:36 +0000 (22:48 +0000)]
Jack complained that on test_crlf_separation() was failing on MacOS9
because the test file, msg_26.txt which has \r\n line endings, was
getting munged by cvs, which knows to do line ending conversions for
text files.  But we want \r\n to be preserved on all platforms, so we
cvs admin'd the file to be -kb (binary), which means we have to open
the file in binary mode to preserve these line ends.  Hopefully this
will be the end of the thrashing on this issue (but probably not).

Test passes on *nix now, and Tim confirms it passes on Windows.  We'll
leave it to Jack to test MacOS.

22 years agoFix PEP 302 description; bump version number
Andrew M. Kuchling [Thu, 2 Jan 2003 21:33:15 +0000 (21:33 +0000)]
Fix PEP 302 description; bump version number

22 years agoThe tzinfo methods utcoffset() and dst() must return a timedelta object
Tim Peters [Thu, 2 Jan 2003 21:28:08 +0000 (21:28 +0000)]
The tzinfo methods utcoffset() and dst() must return a timedelta object
(or None) now.  In 2.3a1 they could also return an int or long, but that
was an unhelpfully redundant leftover from an earlier version wherein
they couldn't return a timedelta.  TOOWTDI.

22 years agoAllow list sort's comparison function to explicitly be None. See SF patch
Skip Montanaro [Thu, 2 Jan 2003 20:51:08 +0000 (20:51 +0000)]
Allow list sort's comparison function to explicitly be None.  See SF patch
661092.

22 years ago1. Remove obsolete, incorrect comment on non-package installation
Kurt B. Kaiser [Thu, 2 Jan 2003 20:33:26 +0000 (20:33 +0000)]
1. Remove obsolete, incorrect comment on non-package installation
2. Add more .txt files to installation
3. Fix the reference to Visual Python, s/b VPython

22 years agoastimezone() internals: if utcoffset() returns a duration, complain if
Tim Peters [Thu, 2 Jan 2003 19:35:54 +0000 (19:35 +0000)]
astimezone() internals:  if utcoffset() returns a duration, complain if
dst() returns None (instead of treating that as 0).

22 years agoAdded a section to record datetime changes. There's apparently going to
Tim Peters [Thu, 2 Jan 2003 19:10:19 +0000 (19:10 +0000)]
Added a section to record datetime changes.  There's apparently going to
be an unbounded number of API changes <0.6 wink>.

22 years agoThe astimezone() correctness proof endured much pain to prove what
Tim Peters [Thu, 2 Jan 2003 17:55:03 +0000 (17:55 +0000)]
The astimezone() correctness proof endured much pain to prove what
turned out to be 3 special cases of a single more-general result.
Proving the latter instead is a real simplification.

22 years agoImprove exception handling.
Kurt B. Kaiser [Thu, 2 Jan 2003 17:09:34 +0000 (17:09 +0000)]
Improve exception handling.

22 years agoThere are two more copyright notices in the Windows world:
Tim Peters [Thu, 2 Jan 2003 17:09:19 +0000 (17:09 +0000)]
There are two more copyright notices in the Windows world:

PC/python_nt.rc sets up the DLL version resource (displayed when you
right-click on the DLL and select Properties).

PCbuld/python20.wse sets up the installer version resource (displayed
when you right-click on the installer .exe and select Properties).  Turns
out this one hadn't been updated since 2001 <frown>!

22 years agoSF bug 661086: datetime.today() truncates microseconds.
Tim Peters [Thu, 2 Jan 2003 16:32:54 +0000 (16:32 +0000)]
SF bug 661086: datetime.today() truncates microseconds.
On Windows, it was very common to get microsecond values (out of
.today() and .now()) of the form 480999, i.e. with three trailing
nines.  The platform precision is .001 seconds, and fp rounding
errors account for the rest.  Under the covers, that 480999 started
life as the fractional part of a timestamp, like .4809999978.
Rounding that times 1e6 cures the irritation.

Confession:  the platform precision isn't really .001 seconds.  It's
usually worse.  What actually happens is that MS rounds a cruder value
to a multiple of .001, and that suffers its own rounding errors.

A tiny bit of refactoring added a new internal utility to round
doubles.

22 years agoUpdate the copyright year.
Guido van Rossum [Thu, 2 Jan 2003 16:31:35 +0000 (16:31 +0000)]
Update the copyright year.

22 years agoAnother copyright update. (JvR: can you backport this to the 2.3a1
Guido van Rossum [Thu, 2 Jan 2003 16:27:15 +0000 (16:27 +0000)]
Another copyright update.  (JvR: can you backport this to the 2.3a1
release branch?)

22 years agoSF bug 660795: logging missing from Python 2.3a1 for Windows.
Tim Peters [Thu, 2 Jan 2003 16:02:27 +0000 (16:02 +0000)]
SF bug 660795:  logging missing from Python 2.3a1 for Windows.
Added the logging package.  In the meantime, Neal Norwitz added a
test_logging.py to the std test suite, which would have caught this
oversight in the Windows installer.

22 years agoAdd some version info for new methods and class
Neal Norwitz [Thu, 2 Jan 2003 15:32:00 +0000 (15:32 +0000)]
Add some version info for new methods and class

22 years agoSF #660795
Neal Norwitz [Thu, 2 Jan 2003 14:56:39 +0000 (14:56 +0000)]
SF #660795

Add a test for logging from Vinay Sajip (module author)

22 years agoFix an example
Andrew M. Kuchling [Thu, 2 Jan 2003 13:42:32 +0000 (13:42 +0000)]
Fix an example

22 years agoReplaced imp.set_frozenmodules() cruft with proper zipimport support.
Just van Rossum [Thu, 2 Jan 2003 13:13:01 +0000 (13:13 +0000)]
Replaced imp.set_frozenmodules() cruft with proper zipimport support.
This work uncovered the zipimport bug in 2.3a1 -- wish I'd had time to
do this before the release :-(.

22 years agoUgh, zipimport is virtually broken in 2.3a1 :-( It worked by accident in
Just van Rossum [Thu, 2 Jan 2003 12:55:48 +0000 (12:55 +0000)]
Ugh, zipimport is virtually broken in 2.3a1 :-( It worked by accident in
the test set as it only tested with a zip archive in the current directory,
but it doesn't work at all for packages when the zip archive was specified
as an absolute path. It's a real embarrassing bug: a strchr call should
have been strrchr; fever apparently implies dyslexia.

Second stupid bug: the zipimport test failed with a name error
__importer__ (which I had renamed to __loader__ everywhere but here).
I would've sworn I ran the test after that change but that can't be true.
What I don't understand that noone reported a failing test_zipimport.py
before the release of 2.3a1.

22 years agoEMX fork() emulation not good enough to cope with test_socketserver
Andrew MacIntyre [Thu, 2 Jan 2003 12:49:00 +0000 (12:49 +0000)]
EMX fork() emulation not good enough to cope with test_socketserver

22 years agoOS/2 sockets do not support AF_UNIX, even though EMX headers define it
Andrew MacIntyre [Thu, 2 Jan 2003 12:45:34 +0000 (12:45 +0000)]
OS/2 sockets do not support AF_UNIX, even though EMX headers define it

22 years agocatch up with zipimport changes to std getpathp.c
Andrew MacIntyre [Thu, 2 Jan 2003 12:41:58 +0000 (12:41 +0000)]
catch up with zipimport changes to std getpathp.c

22 years agobring structure closer to std config.c, whitespace normalisation
Andrew MacIntyre [Thu, 2 Jan 2003 12:40:41 +0000 (12:40 +0000)]
bring structure closer to std config.c, whitespace normalisation

22 years agofix a merge mistake - readline not built by default
Andrew MacIntyre [Thu, 2 Jan 2003 12:38:39 +0000 (12:38 +0000)]
fix a merge mistake - readline not built by default

22 years ago- documented Ellipsis, NotImplemented
Fred Drake [Thu, 2 Jan 2003 05:13:51 +0000 (05:13 +0000)]
- documented Ellipsis, NotImplemented
- minor markup changes
- indented for consistency with newer content

22 years agoAdd dependency info for the recently added lib/libconsts.tex.
Fred Drake [Thu, 2 Jan 2003 05:00:12 +0000 (05:00 +0000)]
Add dependency info for the recently added lib/libconsts.tex.

22 years agoDocument that apply() is deprecated. See:
Fred Drake [Thu, 2 Jan 2003 04:54:04 +0000 (04:54 +0000)]
Document that apply() is deprecated.  See:
http://mail.python.org/pipermail/python-dev/2003-January/031556.html

22 years agoCompleted astimezone's correctness proof. That doesn't mean it's
Tim Peters [Thu, 2 Jan 2003 03:14:59 +0000 (03:14 +0000)]
Completed astimezone's correctness proof.  That doesn't mean it's
correct by your lights, it means that-- barring coding errors --it
implements what it intended to implement.

22 years agoClearing out old patch queue. Patch #558547, make SocketServer more
Anthony Baxter [Thu, 2 Jan 2003 03:07:48 +0000 (03:07 +0000)]
Clearing out old patch queue. Patch #558547, make SocketServer more
robust. This makes socketserver's close() method callable repeatedly
without error - similar to other file-like objects.

22 years agoAdd byext.py
Guido van Rossum [Thu, 2 Jan 2003 02:24:22 +0000 (02:24 +0000)]
Add byext.py

22 years agoA quicker astimezone() implementation, rehabilitating an earlier
Tim Peters [Wed, 1 Jan 2003 21:51:37 +0000 (21:51 +0000)]
A quicker astimezone() implementation, rehabilitating an earlier
suggestion from Guido, along with a formal correctness proof of the
trickiest bit.  The intricacy of the proof reveals how delicate this
is, but also how robust the conclusion:  correctness doesn't rely on
dst() returning +- one hour (not all real time zones do!), it only
relies on:

1. That dst() returns a (any) non-zero value if and only if daylight
   time is in effect.

and

2. That the tzinfo subclass implements a consistent notion of time zone.

The meaning of "consistent" was a hidden assumption, which is now an
explicit requirement in the docs.  Alas, it's an unverifiable (by the
datetime implementation) requirement, but so it goes.

22 years agomention built-in constants.
Skip Montanaro [Wed, 1 Jan 2003 20:37:14 +0000 (20:37 +0000)]
mention built-in constants.

22 years agoprocess libconsts.tex
Skip Montanaro [Wed, 1 Jan 2003 20:34:00 +0000 (20:34 +0000)]
process libconsts.tex

22 years agonew section - builtin constants
Skip Montanaro [Wed, 1 Jan 2003 20:33:38 +0000 (20:33 +0000)]
new section - builtin constants

22 years agoadd find-uname.py
Skip Montanaro [Wed, 1 Jan 2003 20:27:13 +0000 (20:27 +0000)]
add find-uname.py

22 years agoSearch for Unicode character names using regular expressions.
Skip Montanaro [Wed, 1 Jan 2003 20:26:47 +0000 (20:26 +0000)]
Search for Unicode character names using regular expressions.

22 years agoSplit OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro [Wed, 1 Jan 2003 20:07:49 +0000 (20:07 +0000)]
Split OPT make variable into OPT and BASECFLAGS.  The latter contains those
compiler flags which are necessary to get a clean compile.  The former is
for user-specified optimizer, debug, trace fiddling.  See patch 640843.

Add /sw/lib and /sw/include to setup.py search paths on Darwin to take
advantage of fink goodies.

Add scriptsinstall target to Makefile to install certain scripts from
Tools/scripts directory.

22 years agoMove _PyInt_Init() into pythonrun.h, since all the other _Init()
Neal Norwitz [Wed, 1 Jan 2003 15:18:32 +0000 (15:18 +0000)]
Move _PyInt_Init() into pythonrun.h, since all the other _Init()
functions are here.  Suggested by Skip.

22 years agoRevert last change -- test works on HPUX again after Martin's checkin
Neal Norwitz [Wed, 1 Jan 2003 14:53:27 +0000 (14:53 +0000)]
Revert last change -- test works on HPUX again after Martin's checkin
to 'properly configure the slave terminal'

See SF patch # 656590 for the details.

22 years agoSilly little script to print statistics (files, lines, words) by
Guido van Rossum [Wed, 1 Jan 2003 14:41:25 +0000 (14:41 +0000)]
Silly little script to print statistics (files, lines, words) by
extension.  Could use some work, but already very useful.

22 years agoExpose I_ constants. Auto-detect stropts.h. Properly configure the slave terminal.
Martin v. Löwis [Wed, 1 Jan 2003 09:51:12 +0000 (09:51 +0000)]
Expose I_ constants. Auto-detect stropts.h. Properly configure the slave terminal.

22 years agoRevert merge from 2.3 alpha 1 release branch; the change does not
Fred Drake [Wed, 1 Jan 2003 04:50:32 +0000 (04:50 +0000)]
Revert merge from 2.3 alpha 1 release branch; the change does not
apply to the trunk.

22 years agodatetimetz_astimezone(): Speed optimizations -- although I'd rather
Tim Peters [Wed, 1 Jan 2003 04:48:01 +0000 (04:48 +0000)]
datetimetz_astimezone():  Speed optimizations -- although I'd rather
find a more elegant algorithm (OTOH, the hairy new implementation allows
user-written tzinfo classes to be elegant, so it's a big win even if
astimezone() remains hairy).

Darn!  I've only got 10 minutes left to get falling-down drunk!  I suppose
I'll have to smoke crack instead now.

22 years agoThe failure of the last-second addition to the timezone coversion test is
Tim Peters [Wed, 1 Jan 2003 04:18:51 +0000 (04:18 +0000)]
The failure of the last-second addition to the timezone coversion test is
understood now:  it can't work.  Added comments explaining why (it's "the
usual"-- unrepresentable hours in local time --but in a slightly different
guise).

22 years agoMerging in changes from r23a1-branch. Doc/makefile had conflicts, which
Tim Peters [Wed, 1 Jan 2003 02:14:12 +0000 (02:14 +0000)]
Merging in changes from r23a1-branch.  Doc/makefile had conflicts, which
I leave to Fred to sort out.

22 years agoMore installation info. Bump alpha version.
Kurt B. Kaiser [Wed, 1 Jan 2003 01:14:13 +0000 (01:14 +0000)]
More installation info.  Bump alpha version.

22 years agoDebugger was tracing through rpc.py when IDLEfork was not started
Kurt B. Kaiser [Wed, 1 Jan 2003 00:26:41 +0000 (00:26 +0000)]
Debugger was tracing through rpc.py when IDLEfork was not started
from its source directory.  Generalize the "workaround" (though
the latter seems a reasonable solution?) to handle this.

22 years agoImprove exception handling.
Kurt B. Kaiser [Tue, 31 Dec 2002 23:18:00 +0000 (23:18 +0000)]
Improve exception handling.

22 years agoTry to get compilation working for cygwin
Neal Norwitz [Tue, 31 Dec 2002 21:55:16 +0000 (21:55 +0000)]
Try to get compilation working for cygwin

22 years agoPatch #660485: Cygwin _tkinter Tcl/Tk 8.3 patch
Jason Tishler [Tue, 31 Dec 2002 20:30:46 +0000 (20:30 +0000)]
Patch #660485: Cygwin _tkinter Tcl/Tk 8.3 patch

The attached patch enables Cygwin Python to
build cleanly against the latest Cygwin Tcl/Tk
which is based on Tcl/Tk 8.3. It also prevents
building against the real X headers, if installed.

22 years agoThe trunk is (nominally) post-alpha.
Fred Drake [Tue, 31 Dec 2002 20:26:25 +0000 (20:26 +0000)]
The trunk is (nominally) post-alpha.

22 years agoMerge to trunk from release branch:
Guido van Rossum [Tue, 31 Dec 2002 19:50:03 +0000 (19:50 +0000)]
Merge to trunk from release branch:

Plug the leak that Tim just reported.

22 years agoMake two tests non-locale-dependent
Barry Warsaw [Tue, 31 Dec 2002 19:27:45 +0000 (19:27 +0000)]
Make two tests non-locale-dependent

22 years agoResults of a rewrite pass
Andrew M. Kuchling [Tue, 31 Dec 2002 18:34:54 +0000 (18:34 +0000)]
Results of a rewrite pass

22 years ago- use classdesc where we can (for better indexing)
Fred Drake [Tue, 31 Dec 2002 18:31:48 +0000 (18:31 +0000)]
- use classdesc where we can (for better indexing)
- more style consistency crud

22 years agoReplace all but one explicit emit('SET_LINENO') with call to set_lineno().
Jeremy Hylton [Tue, 31 Dec 2002 18:26:17 +0000 (18:26 +0000)]
Replace all but one explicit emit('SET_LINENO') with call to set_lineno().

Remove broken code in visitDict().  I assume the code was trying to
add set lineno events for each line of a dict constructor, but I think
it was using the wrong object (node instead of k or v).

22 years agoDon't let the docstring end up in __main__.__doc__
Tony Lownds [Tue, 31 Dec 2002 18:22:37 +0000 (18:22 +0000)]
Don't let the docstring end up in __main__.__doc__

22 years agotest01_close_dbenv_before_db(): Added an XXX comment that this test is
Barry Warsaw [Tue, 31 Dec 2002 18:21:43 +0000 (18:21 +0000)]
test01_close_dbenv_before_db(): Added an XXX comment that this test is
BerkeleyDB version dependent.

22 years agoComment out test, since it hangs on HPUX, still investigating
Neal Norwitz [Tue, 31 Dec 2002 18:21:11 +0000 (18:21 +0000)]
Comment out test, since it hangs on HPUX, still investigating

22 years agoSF patch [ 597919 ] compiler package and SET_LINENO
Jeremy Hylton [Tue, 31 Dec 2002 18:17:44 +0000 (18:17 +0000)]
SF patch [ 597919 ] compiler package and SET_LINENO

A variety of changes from Michael Hudson to get the compiler working
with 2.3.  The primary change is the handling of SET_LINENO:

# The set_lineno() function and the explicit emit() calls for
# SET_LINENO below are only used to generate the line number table.
# As of Python 2.3, the interpreter does not have a SET_LINENO
# instruction.  pyassem treats SET_LINENO opcodes as a special case.

A few other small changes:
 - Remove unused code from pycodegen and pyassem.
 - Fix error handling in parsermodule.  When PyParser_SimplerParseString()
   fails, it sets an exception with detailed info.  The parsermodule
   was clobbering that exception and replacing it was a generic
   "could not parse string" exception.  Keep the original exception.