]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
23 years agooops. nearly forgot this one:
Anthony Baxter [Sun, 23 Dec 2001 07:02:01 +0000 (07:02 +0000)] 
oops. nearly forgot this one:
backport patch #495358  rfc822.AddressList and "<>" address

23 years agobackport of solaris thread patch, adding PTHREAD_SCOPE_SYSTEM support:
Anthony Baxter [Sun, 23 Dec 2001 04:07:25 +0000 (04:07 +0000)] 
backport of solaris thread patch, adding PTHREAD_SCOPE_SYSTEM support:

  Improve threading on Solaris, according to SF patch #460269, submitted
  by bbrox@bbrox.org / lionel.ulmer@free.fr.

  This adds a configure check and if all goes well turns on the
  PTHREAD_SCOPE_SYSTEM thread attribute for new threads.

  This should remove the need to add tiny sleeps at the start of threads
  to allow other threads to be scheduled.

This is a semi-feature, but makes such a huge difference to the
performance of Zope on Solaris that it's worthwhile (well, imho).

23 years agoThe Grande 'sendall()' patch. I believe that I've picked up everything
Anthony Baxter [Sun, 23 Dec 2001 01:47:10 +0000 (01:47 +0000)] 
The Grande 'sendall()' patch. I believe that I've picked up everything
in the std lib that should be using sendall(), rather than send() - I've
tried to check each of the patches.

Replaces calls to socket.send() (which isn't guaranteed to send all data)
with the new socket.sendall() method.

23 years agobackport of 1.196: socket.recv(-1) fixup.
Anthony Baxter [Sun, 23 Dec 2001 01:44:49 +0000 (01:44 +0000)] 
backport of 1.196: socket.recv(-1) fixup.

23 years agodarn excess whitespace.
Anthony Baxter [Sun, 23 Dec 2001 01:37:33 +0000 (01:37 +0000)] 
darn excess whitespace.

23 years agopartial backport of 1.25:
Anthony Baxter [Sun, 23 Dec 2001 01:26:49 +0000 (01:26 +0000)] 
partial backport of 1.25:
select not defensive. check for EINTR and make sure it's handled painlessly.

23 years agoFix the erroneous availability annotation for s.makefile() from the last
Fred Drake [Sat, 22 Dec 2001 19:09:42 +0000 (19:09 +0000)] 
Fix the erroneous availability annotation for s.makefile() from the last
checkin (my fault!).

23 years agoAdd notes that fromfd() and s.makefile() are Unix-specific.
Fred Drake [Fri, 21 Dec 2001 17:44:43 +0000 (17:44 +0000)] 
Add notes that fromfd() and s.makefile() are Unix-specific.
This fixes SF bug #495896.

Fix up various markup consistency & style guide conformance nits.

23 years agod'oh! could have _sworn_ I checked this in last weekend.
Anthony Baxter [Fri, 21 Dec 2001 04:46:19 +0000 (04:46 +0000)] 
d'oh! could have _sworn_ I checked this in last weekend.

Make dumbdbm merely "dumb", rather than "terminally broken". Without this
patch, it's almost impossible to use dumbdbm _without_ causing horrible
datalossage. With this patch, dumbdbm passes my own horrible torture test,
as well as the roundup test suite.

dumbdbm really could do with a smidgin of a rewrite or two, but that's not
suitable for the release21-maint branch.

This patch should go into the trunk as well.

23 years agobackport 2.35:
Anthony Baxter [Fri, 21 Dec 2001 03:49:31 +0000 (03:49 +0000)] 
backport 2.35:
 SF bug 485175:  buffer overflow in
 traceback.c.  Bugfix candidate.  tb_displayline():  the sprintf
 format was choking off the file name, but used plain %s for the
 function name (which can be arbitrarily long).  Limit both to 500
 chars max.

23 years agobackport 2.153:
Anthony Baxter [Fri, 21 Dec 2001 03:46:12 +0000 (03:46 +0000)] 
backport 2.153:
Missing DECREFs when exception is raised in sys.excepthook.

23 years agobackport 2.9:
Anthony Baxter [Fri, 21 Dec 2001 03:45:15 +0000 (03:45 +0000)] 
backport 2.9:
 PySymtableEntry_New():  I'm not sure what this
 routine is doing, but it was obviously leaking an int object when
 whatever the heck it's looking for was found.  Repaired that.  This
 accounts for why entering function and class definitions at an
 interactive prompt leaked a reference to the integer 1 each time.

23 years agobackport 2.144:
Anthony Baxter [Fri, 21 Dec 2001 03:29:12 +0000 (03:29 +0000)] 
backport 2.144:
Py_Initialize(): Apply patch by Jürgen Hermann to call
    _PyImport_FixupExtension() on the exceptions module.  Now
    reload(exceptions) acts just like reload(sys) instead of raising
    an ImportError.

    This closes SF bug #422004.

23 years agoBackport rev 2.301 to the 2.1 maintenance branch.
Jeremy Hylton [Thu, 20 Dec 2001 02:07:36 +0000 (02:07 +0000)] 
Backport rev 2.301 to the 2.1 maintenance branch.

Add checks for stack underflow and overflow.

23 years agoAdd stack depth info for FOR_LOOP opcode
Jeremy Hylton [Wed, 19 Dec 2001 20:40:54 +0000 (20:40 +0000)] 
Add stack depth info for FOR_LOOP opcode

23 years agoBackport changes from the 2.2 trunk
Jeremy Hylton [Wed, 19 Dec 2001 19:42:52 +0000 (19:42 +0000)] 
Backport changes from the 2.2 trunk

23 years agoBackport patch 1.57 to 2.1.2. Apparently ftp servers that send 227
Guido van Rossum [Tue, 18 Dec 2001 14:17:02 +0000 (14:17 +0000)] 
Backport patch 1.57 to 2.1.2.  Apparently ftp servers that send 227
responses that the original parse227() routine can't handle are
becoming more common.

"""
Change the 227 response parser to use a more liberal regular
expression.  This is needed for certain servers that (in violation of
the standard) don't return the parentheses in the response.

This fixes SF bug #441712 by Henrik Weber (not exactly using his
patch).
"""

23 years agoBackport bugfixes since rev 1.39 from the trunk.
Jeremy Hylton [Tue, 18 Dec 2001 00:06:03 +0000 (00:06 +0000)] 
Backport bugfixes since rev 1.39 from the trunk.

Add is_constant_false(), rev 1.41.
Fixed print handling, rev. 1.41.
Handle private names, 1.42.
Make sure JUMP_ABS and POP_BLOCK blocks are contiguous, rev. 1.44.
Make sure class object has no co_varnames, rev. 1.45.
Fix typo in visitDict(), rev. 1.46.
Generate correct code for continue in try/except, rev. 1.47.

23 years agoBackport bugfixes since rev 1.5 from the trunk.
Jeremy Hylton [Tue, 18 Dec 2001 00:00:15 +0000 (00:00 +0000)] 
Backport bugfixes since rev 1.5 from the trunk.

Fix for sibling nodes that define the same free variable, rev. 1.6.
Handle private names, rev. 1.7.
Fix bug in handling of statements like "l[x:y] = 2", reb. 1.8.
Fix symbol problem with slice assignment, rev. 1.9.

23 years agoBackport bugfixes from the trunk.
Jeremy Hylton [Mon, 17 Dec 2001 23:58:08 +0000 (23:58 +0000)] 
Backport bugfixes from the trunk.

Add __getitem__() to a stack to support visitContinue().
Move mangle() here and define correctly.

23 years agoBackport bugfixes from the trunk.
Jeremy Hylton [Mon, 17 Dec 2001 23:57:17 +0000 (23:57 +0000)] 
Backport bugfixes from the trunk.

Only real change is to track movement of CO_ consts to here.

23 years agoBackport bugfixes since rev 1.19 on the trunk.
Jeremy Hylton [Mon, 17 Dec 2001 23:53:10 +0000 (23:53 +0000)] 
Backport bugfixes since rev 1.19 on the trunk.

Brief summary:

Improve stack depth calculation, 1.24, 1.25, 1.28
Wrong co_lntob, 1.20.
XXX_NMAE ops should affect varnames, 1.21.
Fix list comp code gen, 1.26.
Fix _convert_NAME() for class bodies, 1.26.

23 years agoRemove extraneous "}"; possibly an incorrectly backported patch?
Fred Drake [Sat, 15 Dec 2001 20:42:52 +0000 (20:42 +0000)] 
Remove extraneous "}"; possibly an incorrectly backported patch?

23 years agoAdd a links to the gmpy and mxNumber packages.
Fred Drake [Sat, 15 Dec 2001 20:39:01 +0000 (20:39 +0000)] 
Add a links to the gmpy and mxNumber packages.

23 years agoDocument that the flag and mode arguments to dumbdbm.open() are ignored.
Fred Drake [Fri, 7 Dec 2001 21:59:56 +0000 (21:59 +0000)] 
Document that the flag and mode arguments to dumbdbm.open() are ignored.

23 years agoDescribe the behavior of the read() method when the list of filenames
Fred Drake [Fri, 7 Dec 2001 21:37:38 +0000 (21:37 +0000)] 
Describe the behavior of the read() method when the list of filenames
includes files that do not exist, explain the intended use of the interface,
and show how to ensure an expected file really exists.
This closes SF bug #490399.

23 years agoDocument that PyString_FromString() cannot take NULL as a parameter.
Fred Drake [Thu, 6 Dec 2001 20:38:15 +0000 (20:38 +0000)] 
Document that PyString_FromString() cannot take NULL as a parameter.
This closes SF bug #489872.

23 years agobackport unixccompiler.py 1.36, ccompiler.py 1.40
Anthony Baxter [Wed, 5 Dec 2001 06:57:31 +0000 (06:57 +0000)] 
backport unixccompiler.py 1.36, ccompiler.py 1.40
support for dylib - allow zlib included in OS to be
used rather than have to compile and install in /usr/local

23 years agobackport 1.53 - prevent ncurses being built on Mac OS X.
Anthony Baxter [Wed, 5 Dec 2001 06:55:46 +0000 (06:55 +0000)] 
backport 1.53 - prevent ncurses being built on Mac OS X.

23 years agobackport 1.15
Anthony Baxter [Wed, 5 Dec 2001 06:46:16 +0000 (06:46 +0000)] 
backport 1.15
Make sure path names inserted into ZIP files are normalized to use "/" as
the directory separator, as required by the format specification.
This closes SF bug #440693.

23 years agobackport 1.21 and 1.22
Anthony Baxter [Wed, 5 Dec 2001 06:42:36 +0000 (06:42 +0000)] 
backport 1.21 and 1.22
--
Fix malformed line (PyChecker)
--
_os should be os; reported by Neal Norwitz.
--

23 years agobackport 1.134:
Anthony Baxter [Wed, 5 Dec 2001 06:37:51 +0000 (06:37 +0000)] 
backport 1.134:
Added missing parameter in call to http_error_default();
reported by Neal Norwitz.

23 years agobackport 1.17:
Anthony Baxter [Wed, 5 Dec 2001 06:34:34 +0000 (06:34 +0000)] 
backport 1.17:
Fix SF bug [ #447370 ] typo in urllib2.py
Also fix another bug caught by pychecker-- HTTPError() raised when
redirect limit exceed did not pass an fp object.  Had to change method
to keep fp object around until it's certain that the error won't be
raised.
Remove useless line in do_proxy().

23 years agobackport 1.8, 1.9
Anthony Baxter [Wed, 5 Dec 2001 06:30:21 +0000 (06:30 +0000)] 
backport 1.8, 1.9
--
patch 418489 from Andrew Dalke for string format bug
--
Merged in bugfix from PyUnit CVS for problem reported by Gary Todd.
If 'unittest.py' was run from the command line with the name of a test
case class as a parameter, it failed with an ugly error. (Which was a
shame, because the documentation says you can do that.)
--

23 years agobackport:
Anthony Baxter [Wed, 5 Dec 2001 06:16:10 +0000 (06:16 +0000)] 
backport:
Add 'sendall' to list of socket methods.

23 years agobackport 1.7:
Anthony Baxter [Wed, 5 Dec 2001 06:13:38 +0000 (06:13 +0000)] 
backport 1.7:
Amazing.  This would open the sound file in text mode.  Fixed.
SF bug  #446219.

23 years agobackport half of 1.11:
Anthony Baxter [Wed, 5 Dec 2001 06:11:26 +0000 (06:11 +0000)] 
backport half of 1.11:
__getaddr(): Watch out for empty addresses that can happen when
something like "MAIL FROM:<CR>" is received.  This avoids the
IndexError and rightly returns an SMTP syntax error.

23 years agobackport 1.33:
Anthony Baxter [Wed, 5 Dec 2001 06:05:09 +0000 (06:05 +0000)] 
backport 1.33:
Be more permissive in what is accepted as an attribute name; this makes
this module slightly more resiliant in the face of XHTML input, or just
colons in attribute names.

23 years agobackport 1.23:
Anthony Baxter [Wed, 5 Dec 2001 05:56:02 +0000 (05:56 +0000)] 
backport 1.23:

SF bug #473525 pyclbr broken
As the comments in the module implied, pyclbr was easily confused by
"strange stuff" inside single- (but not triple-) quoted strings.  It
isn't anymore.  Its behavior remains flaky in the presence of nested
functions and classes, though.

23 years agobackport 1.18: Patch #416220: Fix misplaced paren.
Anthony Baxter [Wed, 5 Dec 2001 05:54:24 +0000 (05:54 +0000)] 
backport 1.18: Patch #416220: Fix misplaced paren.

23 years agobackport 1.29: Typo fix (spelling mistake in error message).
Anthony Baxter [Wed, 5 Dec 2001 05:33:27 +0000 (05:33 +0000)] 
backport 1.29: Typo fix (spelling mistake in error message).

23 years agobackport of 1.21
Anthony Baxter [Wed, 5 Dec 2001 05:19:51 +0000 (05:19 +0000)] 
backport of 1.21
SF bug [#473864] doctest expects spurios space.
Repair unlikely surprise due to magical softspace attr and the use of
print with a trailing comma in doctest examples.

23 years agobackport of 1.64, 1.65, 1.68:
Anthony Baxter [Wed, 5 Dec 2001 05:10:28 +0000 (05:10 +0000)] 
backport of 1.64, 1.65, 1.68:

1.64: Solve SF bug #231249: cgi.py opens too many (temporary) files.
1.65: Fix a denial-of-service attack, SF bug #443120.
1.68: "ib" should be "boundary"; reported by Neal Norwitz.

the first two of these are pretty severe bugs.

23 years agobackport 1.18, 1.19, 1.20:
Anthony Baxter [Wed, 5 Dec 2001 04:39:41 +0000 (04:39 +0000)] 
backport 1.18, 1.19, 1.20:
--
Apply two small changes to the Windows code, according to SF bug
#427345.  These are supposed to support binary data and avoid
buffering problems on Windows.
--
SF patch #467430.
- replace some log_error() calls with log_message()
- flush self.rfile before forking too (hope this works on Windows)
--
Fix two typos, one noted by Noah Spurrier in SF bug #475166, the
second noted after a second's thought about what the next line should
do. :-(

23 years agobackport of 1.12
Anthony Baxter [Wed, 5 Dec 2001 04:34:13 +0000 (04:34 +0000)] 
backport of 1.12
check in for patch #430846
use faster code for base64.encodestring (courtesy of Mr. Tim Peters)
and for base64.decodestring (courtesy of Anthony Baxter)

23 years agobackport 1.11
Anthony Baxter [Wed, 5 Dec 2001 04:28:59 +0000 (04:28 +0000)] 
backport 1.11
Catch only the relevant exceptions instead of using a bare except clause.

23 years agobackport of jeremy's 2.227:
Anthony Baxter [Wed, 21 Nov 2001 06:21:18 +0000 (06:21 +0000)] 
backport of jeremy's 2.227:
Fix for SF bug [ #471928 ] global made w/nested list comprehensions

. Initially I was going to just rip out the bits of this that fixed this
  bug, but the rest of the code looks (after a fair amount of staring at
  it) like it's ok - variable renames, that sort of thing.
  flames and "hey, no way!" to me, or to python-dev.
  It felt safer to just go with the full patch, rather than butchering
  it.

23 years agobackport of tim's 2.66:
Anthony Baxter [Wed, 21 Nov 2001 05:41:03 +0000 (05:41 +0000)] 
backport of tim's 2.66:
. SF bug [#467265] Compile errors on SuSe Linux on IBM/s390.
  - errors.c, PyErr_Format:  add a va_end() to balance the va_start().

23 years agobackport of 2.8, after checking with MarkH
Anthony Baxter [Wed, 21 Nov 2001 05:37:32 +0000 (05:37 +0000)] 
backport of 2.8, after checking with MarkH
. Always pass a full path name to LoadLibraryEx().  Fixes some Windows 9x
  problems.  As discussed on python-dev

23 years agobackport of patches 2.10, 2.11, 2.12, by MvL.
Anthony Baxter [Wed, 21 Nov 2001 05:01:44 +0000 (05:01 +0000)] 
backport of patches 2.10, 2.11, 2.12, by MvL.
. Patch #455231: Support ELF properly on OpenBSD.
. Patch to bug #472202: Correctly recognize NetBSD before 199712.
. Move dlfcn.h block out of NetBSD block, assuming that NetBSD before
  199712 didn't have dlfcn.h, or that it wouldn't conflict with the other
  stuff defined.

23 years agobackport of 2.8 by jack:
Anthony Baxter [Wed, 21 Nov 2001 04:58:37 +0000 (04:58 +0000)] 
backport of 2.8 by jack:
Patch by Jonathan Wight (slightly reformatted) to forestall loading the
same module twice, which apparently crashes Python. I could not test the
error condition, but in normal life it seems to have no adverse effects.

Also removed an unsued variable, and corrected 2 glaring errors (missing
'case' in front of a label).

23 years agobackport of 2.242:
Anthony Baxter [Wed, 21 Nov 2001 04:49:19 +0000 (04:49 +0000)] 
backport of 2.242:
improved error message-- names the type of the unexpected object

23 years agobackport of 2.90:
Anthony Baxter [Wed, 21 Nov 2001 03:51:20 +0000 (03:51 +0000)] 
backport of 2.90:
Patch number #422106 by Greg Ball, to fix segmentation
fault in sys.displayhook.

23 years agoUpdate the platform notes for the CGIHTTPServer module; it works on more
Fred Drake [Mon, 19 Nov 2001 05:22:44 +0000 (05:22 +0000)] 
Update the platform notes for the CGIHTTPServer module; it works on more
platforms now, and has since Python 2.0.
This closes SF bug #482943.

24 years ago\ulink is not available on the maintenance branch, so we can't use it.
Fred Drake [Fri, 2 Nov 2001 19:34:49 +0000 (19:34 +0000)] 
\ulink is not available on the maintenance branch, so we can't use it.

24 years agoCorrect misspelling of "separate" in two places.
Fred Drake [Thu, 1 Nov 2001 19:49:45 +0000 (19:49 +0000)] 
Correct misspelling of "separate" in two places.
This closes SF bug #476898.

24 years agoone more for the night.
Anthony Baxter [Thu, 1 Nov 2001 15:34:20 +0000 (15:34 +0000)] 
one more for the night.
backport of 2.26:
  Make the gc.collect() function respect the collection lock.  This fixes
  SF bug 476129: "gc.collect sometimes hangs".

24 years agobackport of (merged) 1.43 and 1.44
Anthony Baxter [Thu, 1 Nov 2001 14:55:03 +0000 (14:55 +0000)] 
backport of (merged) 1.43 and 1.44
  initregex():  this function is declared void, so the recent change to
  return NULL in an error case was itself an error.
  initregex(): Check return value of PyErr_Warn() and propagate the exception
  (if any.)

24 years agobackport of 2.58:
Anthony Baxter [Thu, 1 Nov 2001 14:43:51 +0000 (14:43 +0000)] 
backport of 2.58:
  Fix SF bug #474538: Memory (reference) leak in poller.register (Dave Brueck)
  Replace some tortuous code that was trying to be clever but forgot to
  DECREF the key and value, by more longwinded but obviously correct
  code.

24 years agobackport 2.56 from uncle tim:
Anthony Baxter [Thu, 1 Nov 2001 14:39:41 +0000 (14:39 +0000)] 
backport 2.56 from uncle tim:
  Stop adding 3 to FD_SETSIZE -- it makes no sense.  If it turns out it
  actually does <wink>, perhaps an Insure run will catch it.
  Also removed senseless Windows comment.

24 years agobackport barry's 2.54:
Anthony Baxter [Thu, 1 Nov 2001 14:37:48 +0000 (14:37 +0000)] 
backport barry's 2.54:
    select_select(): Closing bug #448351 the easy way, i.e. by changing
    the "#ifdef MS_WINDOWS" to "#ifdef SELECT_USES_HEAP" and by
    setting SELECT_USES_HEAP when FD_SETSIZE > 1024.
    The indirection seems useful since this subtly changes the path
    that "normal" Windows programs take (where Timmie sez FD_SETSIZE =
    512).  If that's a problem for Windows, he has only one place to
    change.

24 years agowrap SSL_read and SSL_write in Py_{BEGIN,END}_ALLOW_THREADS.
Anthony Baxter [Thu, 1 Nov 2001 14:25:38 +0000 (14:25 +0000)] 
wrap SSL_read and SSL_write in Py_{BEGIN,END}_ALLOW_THREADS.
other half of backport of guido's 1.188

24 years agobackport guido's 1.20 - test sktobj.sendall()
Anthony Baxter [Thu, 1 Nov 2001 14:18:29 +0000 (14:18 +0000)] 
backport guido's 1.20 - test sktobj.sendall()
needed this anyway.

24 years agopartial backport of guido's 1.188.
Anthony Baxter [Thu, 1 Nov 2001 14:14:26 +0000 (14:14 +0000)] 
partial backport of guido's 1.188.
  Add sendall() method, which loops until all data is written or an
  error occurs, and doesn't return a count.  (This is my second patch
  from SF patch #474307, with small change to the docstring for send().)

the 'partial' is because 1.188 also added a couple of Py_*_ALLOW_THREADS
wrappers around SSL_read and SSL_write, and I want to check those separately.

This is adding a new method to the socket object, which would normally
be a bad thing to do in a bugfix release - however, in this case, it
allows fixes for a nasty problem that would otherwise have a filthy
filthy fix to Get It Right. Still to-do is to patch the std library
modules to use sendall() where appropriate, rather than send().

24 years agobackport of MvL's 1.180
Anthony Baxter [Thu, 1 Nov 2001 14:05:52 +0000 (14:05 +0000)] 
backport of MvL's 1.180
  Test for __sun instead of __sun__, since SUNWspro only defines the latter;
  gcc defines both.
...must get sparc box at home out of cupboard for testing this stuff...

24 years agobackport tim's 1.191:
Anthony Baxter [Thu, 1 Nov 2001 14:00:11 +0000 (14:00 +0000)] 
backport tim's 1.191:
  PySocketSock_connect_ex():  On Windows, return the correct Windows exit
  code.  The patch is from Jeremy, and allows test_asynchat to run again.

24 years agobackport (partially) jeremy's 1.178
Anthony Baxter [Thu, 1 Nov 2001 13:58:16 +0000 (13:58 +0000)] 
backport (partially) jeremy's 1.178
  Use PySocket_Err() instead of PyErr_SetFromErrno().
  The former does the right thing on Windows, the latter does not.

The 'partial' is because the code's changed quite a lot and it's not clear
that the two that are still there of the form
                return PyErr_SetFromErrno(SSLErrorObject);
can be replaced with PySocket_Err() - it looks like they need the new
PySSL_SetError, which is a tad large to be comfortable with just checking
in without reading it further.

24 years agobackport tim's 2.44
Anthony Baxter [Thu, 1 Nov 2001 13:34:10 +0000 (13:34 +0000)] 
backport tim's 2.44
  Make clear in the docstring that "std" applies to both size and alignment,
  not just to alignment.  Spotted by Guido.

not normally bothering with docstring cleanups, but in this case Tim _did_
note it as a bugfix candidate, so I'll be nice :)

24 years agobackport of 2.114:
Anthony Baxter [Thu, 1 Nov 2001 13:14:43 +0000 (13:14 +0000)] 
backport of 2.114:
  SF patch #459385 (Norman Vine): time.timezone fix for Cygwin.
(skipped whitespace normalisation section of patch - this is a bugfix,
not a beauty contest :)

24 years agobackport 2.26
Anthony Baxter [Thu, 1 Nov 2001 12:52:27 +0000 (12:52 +0000)] 
backport 2.26
  [Bug #433047, reported by Armin Rigo] Remove extra 'i' character in
      PyArg_ParseTuple() call.

24 years agobackport 2.61.
Anthony Baxter [Thu, 1 Nov 2001 12:48:28 +0000 (12:48 +0000)] 
backport 2.61.
    Properly use &&. Closes bug #434989.

24 years agobackport of fix from 2.7
Anthony Baxter [Thu, 1 Nov 2001 11:38:44 +0000 (11:38 +0000)] 
backport of fix from 2.7
  Fix for bug [ #433047 ] missing args to PyArg_ParseTuple

24 years agobackport fixes from 2.32 and 2.29:
Anthony Baxter [Thu, 1 Nov 2001 11:30:06 +0000 (11:30 +0000)] 
backport fixes from 2.32 and 2.29:
  Change the limit on the input size for b2a_base64 to what will fit in
  memory, rather than the standard's 57.
  This fixes SF bug #473009.

  This closes bug #430849 (internal error produced by binascii.a2b_base64)

24 years agoTypo: NamedNodeList --> NamedNodeMap
Fred Drake [Thu, 25 Oct 2001 20:43:24 +0000 (20:43 +0000)] 
Typo: NamedNodeList --> NamedNodeMap

24 years agoWhen describing "import *", add a level of indirection between "*" and the
Fred Drake [Wed, 24 Oct 2001 19:52:14 +0000 (19:52 +0000)] 
When describing "import *", add a level of indirection between "*" and the
set of names imported (the "public names"), adding a definition of "public
names" that describes the use of __all__.
This closes SF bug #473986.

Flesh out the vague reference to __import__().

24 years agoClarify that the resource module does not attempt to mask platform
Fred Drake [Mon, 22 Oct 2001 14:25:12 +0000 (14:25 +0000)] 
Clarify that the resource module does not attempt to mask platform
differences by defining symbols not defined on particular platforms.
This closes SF bug #473433.

24 years agoBackport fix from 2.277 - incorrectly swapped arguments to PyFrame_BlockSetup.
Anthony Baxter [Sun, 21 Oct 2001 05:57:28 +0000 (05:57 +0000)] 
Backport fix from 2.277 - incorrectly swapped arguments to PyFrame_BlockSetup.
Fixes very obscure and nasty bug.

24 years agoAdd deprecations for profile.HotProfile and profile.OldProfile, since they
Fred Drake [Fri, 19 Oct 2001 16:11:28 +0000 (16:11 +0000)] 
Add deprecations for profile.HotProfile and profile.OldProfile, since they
will no longer exist in 2.2.

24 years agoThe 2.1 regrest.py doesn't have the test_main() feature yet, so always
Guido van Rossum [Fri, 19 Oct 2001 16:05:55 +0000 (16:05 +0000)] 
The 2.1 regrest.py doesn't have the test_main() feature yet, so always
call test_main() at the end.

24 years agoFix leak in SSLread in nonblocking mode -- from SF bug #472798.
Guido van Rossum [Fri, 19 Oct 2001 15:17:42 +0000 (15:17 +0000)] 
Fix leak in SSLread in nonblocking mode -- from SF bug #472798.
(Not a merge from the code on the trunk -- the trunk has evolved
perhaps too much.)

24 years agoMerge in selected changes from profile.py on the trunk. Note that
Guido van Rossum [Fri, 19 Oct 2001 15:13:51 +0000 (15:13 +0000)] 
Merge in selected changes from profile.py on the trunk.  Note that
this is *not* a simple-minded merge from the code on the trunk -- that
does too much other stuff to be 100% safe for the 2.1.2 release
(e.g. getting rid of HotProfile and OldProfile, changing some methods
into global functions, a new calibration API).

Add the test_profile.py module which verifies that the profiler works
as expected.

24 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Fri, 19 Oct 2001 15:13:51 +0000 (15:13 +0000)] 
This commit was manufactured by cvs2svn to create branch
'release21-maint'.

24 years agoAdd a '+' to the version to indicate this is a post-2.1.1-release CVS
Guido van Rossum [Fri, 19 Oct 2001 14:47:47 +0000 (14:47 +0000)] 
Add a '+' to the version to indicate this is a post-2.1.1-release CVS
version.

24 years agoThe version number 1.0.2pre doesn't conform to the strict versioning
Thomas Heller [Fri, 19 Oct 2001 08:07:19 +0000 (08:07 +0000)] 
The version number 1.0.2pre doesn't conform to the strict versioning
guidelines in distutils/version, resulting in failure when trying to
use distutils to install 4Suite (and perhaps other modules).

Change it to 1.0.2.

This finally really fixes Bug #417796.

24 years agoSource distribution files also updated for 2.1.1.
Jack Jansen [Sat, 11 Aug 2001 20:05:03 +0000 (20:05 +0000)] 
Source distribution files also updated for 2.1.1.

24 years agoRemove lines that should never have been checked into this
Fred Drake [Thu, 9 Aug 2001 22:00:32 +0000 (22:00 +0000)] 
Remove lines that should never have been checked into this
release21-maint branch; I checked them in erroneously in revision
1.52.4.1 of this file; it looks like that entire revision was
operator error.

This reverts that checkin and closes SF bug #449613.

24 years agoFiles used for 2.1.1 distribution.
Jack Jansen [Thu, 2 Aug 2001 22:26:53 +0000 (22:26 +0000)] 
Files used for 2.1.1 distribution.

24 years agoWhen closing a DialogWindow also clear out self.dlg.
Jack Jansen [Thu, 2 Aug 2001 22:25:31 +0000 (22:25 +0000)] 
When closing a DialogWindow also clear out self.dlg.

24 years agoGot rid of (unused) regsub imports.
Jack Jansen [Mon, 30 Jul 2001 20:26:15 +0000 (20:26 +0000)] 
Got rid of (unused) regsub imports.

24 years agoSet cursor to arrow also if no windows active. Looks better when run from IDE.
Jack Jansen [Mon, 30 Jul 2001 20:25:37 +0000 (20:25 +0000)] 
Set cursor to arrow also if no windows active. Looks better when run from IDE.

24 years agoSet cursor to arrow also when no window is active. Looks better when run from IDE.
Jack Jansen [Mon, 30 Jul 2001 20:24:49 +0000 (20:24 +0000)] 
Set cursor to arrow also when no window is active. Looks better when run from IDE.
Got rid of regsub.

24 years agoJust's fix in 1.10: call convert_path for scripts too. Needed for mac
Jack Jansen [Mon, 30 Jul 2001 09:56:31 +0000 (09:56 +0000)] 
Just's fix in 1.10: call convert_path for scripts too. Needed for mac
2.1.1, and should do no harm to 2.1.2 (on the odd chance that will
happen).

24 years agoThese demos used silly refcon values when creating their windows. This effectuively...
Jack Jansen [Sun, 29 Jul 2001 21:50:44 +0000 (21:50 +0000)] 
These demos used silly refcon values when creating their windows. This effectuively caused Pythons automatic cleanup of windows on refcount reaching zero to be disabled.

24 years agoThese demos didn't know the difference between dialogs and windows yet. Fixed.
Jack Jansen [Sun, 29 Jul 2001 21:48:25 +0000 (21:48 +0000)] 
These demos didn't know the difference between dialogs and windows yet. Fixed.

24 years agoIf you double-click a file with creator Pyth but owner != TEXT exit with a warning...
Jack Jansen [Sun, 29 Jul 2001 21:23:18 +0000 (21:23 +0000)] 
If you double-click a file with creator Pyth but owner != TEXT exit with a warning that this is not a script but an auxiliary document such as a preferrences file or an aplication template. This is a lot better than giving syntax errors on binary data:-)

24 years agoProgressBar crashed when you tried to drag it. (imported from main
Jack Jansen [Fri, 27 Jul 2001 14:31:32 +0000 (14:31 +0000)] 
ProgressBar crashed when you tried to drag it. (imported from main
branch 1.33).

24 years agoRemoved note that this is the first active installer, which isn't true (it's the...
Jack Jansen [Thu, 26 Jul 2001 21:13:53 +0000 (21:13 +0000)] 
Removed note that this is the first active installer, which isn't true (it's the second one:-).

24 years agoFiles used for 2.1.1c2 distribution.
Jack Jansen [Thu, 26 Jul 2001 21:12:45 +0000 (21:12 +0000)] 
Files used for 2.1.1c2 distribution.

24 years agoFSRef support gone for classic builds.
Jack Jansen [Thu, 26 Jul 2001 21:10:55 +0000 (21:10 +0000)] 
FSRef support gone for classic builds.

24 years agoTemporarily disabled FSRef support for non-Carbon builds. Not the correct test, as...
Jack Jansen [Thu, 26 Jul 2001 21:09:57 +0000 (21:09 +0000)] 
Temporarily disabled FSRef support for non-Carbon builds. Not the correct test, as it is an OS8 vs. OS9 issue, but it will have to do for now.