]> granicus.if.org Git - python/log
python
23 years agoPEP 250: Add lib/site-packages to sys.path on Windows; also sys.prefix
Tim Peters [Thu, 12 Jul 2001 05:20:13 +0000 (05:20 +0000)]
PEP 250:  Add lib/site-packages to sys.path on Windows; also sys.prefix
to sys.path if os.sep == ':' (Macs?).  See PEP 250.

23 years agopy-cvs merge, idle_dir loading changed
Steven M. Gava [Thu, 12 Jul 2001 04:51:11 +0000 (04:51 +0000)]
py-cvs merge, idle_dir loading changed

23 years agopy-cvs merge, version update
Steven M. Gava [Thu, 12 Jul 2001 04:44:48 +0000 (04:44 +0000)]
py-cvs merge, version update

23 years agoFirst version of xmlrpclib docs. Probably has markup errors; is not complete,
Eric S. Raymond [Thu, 12 Jul 2001 02:39:45 +0000 (02:39 +0000)]
First version of xmlrpclib docs.  Probably has markup errors; is not complete,
could probably stand to have some of the internal things like Marshaller
documented.  But I think it does a decent job on the entry points and
externally visible things.

Fred and Fredrik, do your stuff!  You both need to proof this.

23 years agoFollow the recommended practices for keystroke representation; this
Fred Drake [Thu, 12 Jul 2001 02:09:51 +0000 (02:09 +0000)]
Follow the recommended practices for keystroke representation; this
improves internal consistency in the documentation.

23 years agoFor \kbd, be more prescriptive regarding how keystrokes should be
Fred Drake [Thu, 12 Jul 2001 02:08:29 +0000 (02:08 +0000)]
For \kbd, be more prescriptive regarding how keystrokes should be
written.

23 years agoRe-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters [Wed, 11 Jul 2001 22:35:31 +0000 (22:35 +0000)]
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Also note that it isn't just Linux nice() that is broken: at least FreeBSD
and BSDI also have this problem. os.nice() should probably just be emulated
using getpriority()/setpriority(), if they are available, but I'll get to
that later.

23 years agoSF patch #440170: Tests for fileinput module.
Tim Peters [Wed, 11 Jul 2001 22:21:17 +0000 (22:21 +0000)]
SF patch #440170:  Tests for fileinput module.
New test_fileinput.py from Nick Mathewson, fiddled to use TESTFN and sundry
style nits.

23 years agoSF patch #440144: Tests and minor bugfix for uu module.
Tim Peters [Wed, 11 Jul 2001 21:43:42 +0000 (21:43 +0000)]
SF patch #440144:  Tests and minor bugfix for uu module.
New test_uu.py from Nick Mathewson, fiddled to work on Windows too.
Somebody should check that it still works on non-Windows boxes, though!

23 years agoMove the section on concrete numeric objects before the section on
Fred Drake [Wed, 11 Jul 2001 20:35:37 +0000 (20:35 +0000)]
Move the section on concrete numeric objects before the section on
concrete sequence objects, since their API is simpler.

This is in response to a comment in SF bug #440037.

23 years agoNote addition of xmlrpclib
Andrew M. Kuchling [Wed, 11 Jul 2001 18:54:26 +0000 (18:54 +0000)]
Note addition of xmlrpclib
Comment out descr-branch section
Update e-mail address
    (Time to begin writing this...)

23 years agoAdded information about the timeout parameter to the poll() method for
Fred Drake [Wed, 11 Jul 2001 18:48:39 +0000 (18:48 +0000)]
Added information about the timeout parameter to the poll() method for
polling objects.  This closes SF bug #439823.

Fixed a minor markup bug.

23 years agoxmlrpclib for python 2.2; initial checkin
Fredrik Lundh [Wed, 11 Jul 2001 17:42:21 +0000 (17:42 +0000)]
xmlrpclib for python 2.2; initial checkin

23 years agoPatch #439995 (slightly modified from the uploaded version):
Thomas Wouters [Wed, 11 Jul 2001 14:45:34 +0000 (14:45 +0000)]
Patch #439995 (slightly modified from the uploaded version):

Work around Linux's nonstandard nice() systemcall, which does not return the
new priority.

This closes SF bug #439990.

23 years agoThe usual...
Fred Drake [Wed, 11 Jul 2001 06:27:56 +0000 (06:27 +0000)]
The usual...

23 years agoCheck for --with-pydebug earlier, and record the result.
Fred Drake [Wed, 11 Jul 2001 06:27:00 +0000 (06:27 +0000)]
Check for --with-pydebug earlier, and record the result.

When setting up the basic OPT value for GCC, only use optimization if
not using debugging mode.

Fix a typo in a comment in the IPv6 check.

23 years agoSF patch #440144: Tests and minor bugfix for uu module
Tim Peters [Wed, 11 Jul 2001 04:08:49 +0000 (04:08 +0000)]
SF patch #440144:  Tests and minor bugfix for uu module

decode():  While writing tests for uu.py, Nick Mathewson discovered
that the 'Truncated input file' exception could never get raised,
because its "if not str:" test was actually testing the builtin
function "str", not the local string vrbl "s" as intended.

Bugfix candidate.

23 years agoInitial revision
Kurt B. Kaiser [Wed, 11 Jul 2001 02:53:57 +0000 (02:53 +0000)]
Initial revision

23 years agoChange the way hex type-ins are displayed. The old way was way too
Barry Warsaw [Tue, 10 Jul 2001 21:50:44 +0000 (21:50 +0000)]
Change the way hex type-ins are displayed.  The old way was way too
fragile.  Now the leading "0x" on hex numbers are displayed as labels
and the type-in entry fields just accept the hex digits.  Be sure to
strip off the "0x" string when displaying hex values too.

Also, de-string-module-ification, and other Python 2.x improvements.

23 years ago__init__(), save_views(): Catch ValueError along with IOError and
Barry Warsaw [Tue, 10 Jul 2001 21:48:51 +0000 (21:48 +0000)]
__init__(), save_views(): Catch ValueError along with IOError and
EOFError so any failures in unmarshalling are just ignored.  Use
print>> instead of sys.stderr.write().

23 years agoUpdate a comment.
Barry Warsaw [Tue, 10 Jul 2001 21:45:27 +0000 (21:45 +0000)]
Update a comment.

23 years ago__init__(): Use augmented assignments.
Barry Warsaw [Tue, 10 Jul 2001 21:44:59 +0000 (21:44 +0000)]
__init__(): Use augmented assignments.

23 years agoDe-string-module-ification.
Barry Warsaw [Tue, 10 Jul 2001 21:44:24 +0000 (21:44 +0000)]
De-string-module-ification.

23 years ago__version__: Bump to 1.2
Barry Warsaw [Tue, 10 Jul 2001 21:42:04 +0000 (21:42 +0000)]
__version__: Bump to 1.2

De-string-module-ification.

23 years ago__populate(): Use augmented assignments.
Barry Warsaw [Tue, 10 Jul 2001 21:39:41 +0000 (21:39 +0000)]
__populate(): Use augmented assignments.

23 years ago__delta(): Use augmented assignments.
Barry Warsaw [Tue, 10 Jul 2001 21:39:18 +0000 (21:39 +0000)]
__delta(): Use augmented assignments.

23 years agoDe-string-module-ification and other Python 2.x improvements.
Barry Warsaw [Tue, 10 Jul 2001 21:38:47 +0000 (21:38 +0000)]
De-string-module-ification and other Python 2.x improvements.

23 years agoUpdate a comment.
Barry Warsaw [Tue, 10 Jul 2001 21:37:28 +0000 (21:37 +0000)]
Update a comment.

23 years agoUpdated documentation, and bump the version number to 1.2.
Barry Warsaw [Tue, 10 Jul 2001 21:37:04 +0000 (21:37 +0000)]
Updated documentation, and bump the version number to 1.2.

23 years ago- fixed some re usage, partly so it'll still work when re uses pre instead
Just van Rossum [Tue, 10 Jul 2001 19:25:40 +0000 (19:25 +0000)]
- fixed some re usage, partly so it'll still work when re uses pre instead
  of sre, and partly fixing re -> regex porting oversights
- fixed PyFontify.py so it actually *works* again..

23 years agoSF Patch #432457 by Jason Tishler: support for readline 4.2.
Guido van Rossum [Tue, 10 Jul 2001 16:45:32 +0000 (16:45 +0000)]
SF Patch #432457 by Jason Tishler: support for readline 4.2.

This patch allows the readline module to build cleanly with GNU
readline 4.2 without breaking the build for earlier GNU readline
versions.  The configure script checks for the presence of
rl_completion_matches in libreadline.

23 years agoCorrected the refcount information for PyList_SET_ITEM().
Fred Drake [Tue, 10 Jul 2001 16:19:13 +0000 (16:19 +0000)]
Corrected the refcount information for PyList_SET_ITEM().

23 years agoDocument PyObject_New(), PyObject_NewVar(), PyObject_Init(),
Fred Drake [Tue, 10 Jul 2001 16:10:08 +0000 (16:10 +0000)]
Document PyObject_New(), PyObject_NewVar(), PyObject_Init(),
PyObject_InitVar(), PyObject_Del(), PyObject_NEW(),
PyObject_NEW_VAR(), and PyObject_DEL().

Add notes to PyMem_Malloc() and PyMem_New() about the memory buffers
not being initialized.

This fixes SF bug #439012.

Added explicit return value information for PyList_SetItem(),
PyDict_SetItem(), and PyDict_SetItemString().  Corrected return type
for PyList_SET_ITEM().

Fixed index entries in the descriptions of PyLong_AsLong() and
PyLong_AsUnignedLong().

This fixes the API manual portion of SF bug #440037.

Note that the headers properly declare everything as 'extern "C"' for
C++ users.

Document _Py_NoneStruct.

Added links to the Extending & Embedding manual for PyArg_ParseTuple()
and PyArg_ParseTupleAndKeywords().

Added note that PyArg_Parse() should not be used in new code.

Fix up a few style nits -- avoid "e.g." and "i.e." -- these make
translation more difficult, as well as reading the English more
difficult for non-native speakers.

23 years agoPorted to Windows:
Guido van Rossum [Tue, 10 Jul 2001 15:46:34 +0000 (15:46 +0000)]
Ported to Windows:

- Set the host to "localhost" instead of "".

- Skip the AF_UNIX tests when socket.AF_UNIX is not defined.

23 years agoAdded descriptions for some modules that previously did not have any
Fred Drake [Tue, 10 Jul 2001 14:19:45 +0000 (14:19 +0000)]
Added descriptions for some modules that previously did not have any
information about them, based on comments from Jack Jansen.

23 years agoA test suite for SocketServer.py that exposes the various bugs just
Guido van Rossum [Tue, 10 Jul 2001 11:52:38 +0000 (11:52 +0000)]
A test suite for SocketServer.py that exposes the various bugs just
fixed.  Regrettably, this must be run manually -- somehow the I/O
redirection of the regression test breaks the test.  When run under
the regression test, this raises ImportError with a warning to that
effect.

Bugfix candidate!

23 years agoIMPORTANT FIX: This should definitely go into the 2.1.1 release!!!
Guido van Rossum [Tue, 10 Jul 2001 11:50:09 +0000 (11:50 +0000)]
IMPORTANT FIX: This should definitely go into the 2.1.1 release!!!

Fix various serious problems:

- The ThreadingTCPServer class and its derived classes were completely
  broken because the main thread would close the request before the
  handler thread had time to look at it.  This was introduced by
  Ping's close_request() patch.  The fix moves the close_request()
  calls to after the handler has run to completion in the BaseServer
  class and the ForkingMixIn class; when using the ThreadingMixIn,
  closing the request is the handler's responsibility.

- The ForkingUDPServer class has always been been broken because the
  socket was closed in the child before calling the handler.  I fixed
  this by simply not calling server_close() in the child at all.

- I cannot get the UnixDatagramServer class to work at all.  The
  recvfrom() call doesn't return a meaningful client address.  I added
  a comment to this effect.  Maybe it works on other Unix versions.

- The __all__ variable was missing ThreadingMixIn and ForkingMixIn.

- Bumped __version__ to "0.4".

- Added a note about the test suite (to be checked in shortly).

23 years agoinitregex(): this function is declared void, so the recent change to
Tim Peters [Mon, 9 Jul 2001 18:15:38 +0000 (18:15 +0000)]
initregex():  this function is declared void, so the recent change to
return NULL in an error case was itself an error.

23 years agoAdd a little bit more about the XML migration plan. This still needs a lot
Fred Drake [Mon, 9 Jul 2001 16:04:03 +0000 (16:04 +0000)]
Add a little bit more about the XML migration plan.  This still needs a lot
of work, but mostly it needs time spent doing the work to make the
generated XML useful.

23 years agoAdd conversion information for the grammar production support (preliminary).
Fred Drake [Mon, 9 Jul 2001 15:00:42 +0000 (15:00 +0000)]
Add conversion information for the grammar production support (preliminary).

23 years agoFix for SF bug #436525, reported by Greg Kochanski:
Thomas Wouters [Mon, 9 Jul 2001 14:35:01 +0000 (14:35 +0000)]
Fix for SF bug #436525, reported by Greg Kochanski:
The block/unblock thread macros are called 'Py_BLOCK_THREADS' and
'Py_UNBLOCK_THREADS', not 'Py_BEGIN_BLOCK_THREADS' and
'Py_BEGIN_UNBLOCK_THREADS'.

23 years agoRe-add 'advanced' xrange features, adding DeprecationWarnings as discussed
Thomas Wouters [Mon, 9 Jul 2001 12:30:54 +0000 (12:30 +0000)]
Re-add 'advanced' xrange features, adding DeprecationWarnings as discussed
on python-dev. The features will still vanish, however, just one release
later.

23 years agoinitregex(): Check return value of PyErr_Warn() and propagate the exception
Thomas Wouters [Mon, 9 Jul 2001 10:45:31 +0000 (10:45 +0000)]
initregex(): Check return value of PyErr_Warn() and propagate the exception
(if any.)

23 years agoImplemented minimal FSRef support, plus conversion between FSRefs, FSSpecs and pathna...
Jack Jansen [Sun, 8 Jul 2001 22:07:23 +0000 (22:07 +0000)]
Implemented minimal FSRef support, plus conversion between FSRefs, FSSpecs and pathnames where applicable.

PyMac_GetFSSpec and PyMac_BuildFSSpec have moved to macfsmodule from macglue.

These mods are untested on OSX.

23 years agomap re.sub() to string.replace(), when possible
Fredrik Lundh [Sun, 8 Jul 2001 13:26:57 +0000 (13:26 +0000)]
map re.sub() to string.replace(), when possible

23 years agoMove & update a comment.
Fred Drake [Sat, 7 Jul 2001 06:00:36 +0000 (06:00 +0000)]
Move & update a comment.

Add support for the \ulink macro.

23 years agoChange the way notification mails are sent so people who respond to the
Fred Drake [Fri, 6 Jul 2001 23:45:16 +0000 (23:45 +0000)]
Change the way notification mails are sent so people who respond to the
update announcements do not get bounces from trying to send mail to my
laptop, which has an identity crisis due to constant relocation.

23 years agoMore reference count information.
Fred Drake [Fri, 6 Jul 2001 23:31:49 +0000 (23:31 +0000)]
More reference count information.

23 years agoChange the grammar productions to use the new productionlist environment;
Fred Drake [Fri, 6 Jul 2001 22:49:53 +0000 (22:49 +0000)]
Change the grammar productions to use the new productionlist environment;
this supports a hyperlinked version of the grammar that can make tracking
down details and definitions a little easier.

23 years agoUpdate the description of how to start an interpreter and determine the
Fred Drake [Fri, 6 Jul 2001 22:46:52 +0000 (22:46 +0000)]
Update the description of how to start an interpreter and determine the
installation prefix and exec_prefix for Windows.

23 years agoAdd \ulink, grammar production markup.
Fred Drake [Fri, 6 Jul 2001 22:44:48 +0000 (22:44 +0000)]
Add \ulink, grammar production markup.

23 years agoAdd support for \ulink and hyperlink grammars.
Fred Drake [Fri, 6 Jul 2001 22:43:02 +0000 (22:43 +0000)]
Add support for \ulink and hyperlink grammars.

do_cmd_verbatiminput():  Write out a text file containing the content of the
    input file with a .txt extension, and add a link to it at the bottom of
    the presentation.  This easier retrieval of example source code for
    copy & paste use.

23 years agoRevise a comment about styles I don't think LaTeX2HTML can generate,
Fred Drake [Fri, 6 Jul 2001 22:37:36 +0000 (22:37 +0000)]
Revise a comment about styles I don't think LaTeX2HTML can generate,
but which came from their default stylesheet.

Add styles for the new hyperlinked grammar productions.

23 years agoAdd new material on some markup that will be checked in shortly. This
Fred Drake [Fri, 6 Jul 2001 22:34:33 +0000 (22:34 +0000)]
Add new material on some markup that will be checked in shortly.  This
includes some minor new inline markup and markup to generate hyperlinked
grammar productions.

Adopt a "style guide" document -- this beats writing our own and means
we'll have a chance at consistency, without having to make it all up
ourselves.

23 years agoPackaged versions of the HTML format need to include any .txt files that
Fred Drake [Fri, 6 Jul 2001 22:28:47 +0000 (22:28 +0000)]
Packaged versions of the HTML format need to include any .txt files that
were generated by the use of the productionlist environment or the
\verbatiminput macro.

23 years agoMore names, yay!
Fred Drake [Fri, 6 Jul 2001 22:27:04 +0000 (22:27 +0000)]
More names, yay!

23 years agoAdd entries for recently defined markup.
Fred Drake [Fri, 6 Jul 2001 21:13:51 +0000 (21:13 +0000)]
Add entries for recently defined markup.

23 years agoSimplification to mirror a better conversion specification and more
Fred Drake [Fri, 6 Jul 2001 21:03:30 +0000 (21:03 +0000)]
Simplification to mirror a better conversion specification and more
powerful latex2esis.py.

23 years agoAllow optional arguments to LaTeX macros to span lines. This is legal in
Fred Drake [Fri, 6 Jul 2001 21:01:19 +0000 (21:01 +0000)]
Allow optional arguments to LaTeX macros to span lines.  This is legal in
LaTeX and we have at least one occurance of that in the content, so this
script needs to support it as well.

23 years agobug #436596
Fredrik Lundh [Fri, 6 Jul 2001 20:56:10 +0000 (20:56 +0000)]
bug #436596

re.findall doesn't take a maxsplit argument

23 years agoOnce again, attempt to preserve $Revision$
Barry Warsaw [Fri, 6 Jul 2001 20:38:11 +0000 (20:38 +0000)]
Once again, attempt to preserve $Revision$

23 years agoFix up a few style nits -- avoid "e.g." and "i.e." -- these make
Fred Drake [Fri, 6 Jul 2001 20:30:11 +0000 (20:30 +0000)]
Fix up a few style nits -- avoid "e.g." and "i.e." -- these make
translation more difficult, as well as reading the English more
difficult for non-native speakers.

23 years ago(py-version): Hopefully fixed my XEmacs settings so this doesn't get
Barry Warsaw [Fri, 6 Jul 2001 20:27:29 +0000 (20:27 +0000)]
(py-version): Hopefully fixed my XEmacs settings so this doesn't get
clobbered on checkin.

23 years agoAmazing. A very subtle change in policy in descr-branch actually
Guido van Rossum [Fri, 6 Jul 2001 20:26:31 +0000 (20:26 +0000)]
Amazing.  A very subtle change in policy in descr-branch actually
found a bug here.  Here's the deal:

Class PyShell derives from class OutputWindow.  Method PyShell.close()
wants to invoke its parent method, but because PyShell long ago was
inherited from class PyShellEditorWindow, it invokes
PyShelEditorWindow.close(self).  Now, class PyShellEditorWindow itself
derives from class OutputWindow, and inherits the close() method from
there without overriding it.  Under the old rules,
PyShellEditorWindow.close would return an unbound method restricted to
the class that defined the implementation of close(), which was
OutputWindow.close.  Under the new rules, the unbound method is
restricted to the class whose method was requested, that is
PyShellEditorWindow, and this was correctly trapped as an error.

23 years agoFix up a few style nits -- avoid "e.g." and "i.e." -- these make
Fred Drake [Fri, 6 Jul 2001 20:23:02 +0000 (20:23 +0000)]
Fix up a few style nits -- avoid "e.g." and "i.e." -- these make
translation more difficult, as well as reading the English more
difficult for non-native speakers.

Add an index entry for the Telnet protocol.

Always refer to the protocol as Telnet instead of telnet.

23 years ago(py-continuation-offset): Update docstring to describe that this
Barry Warsaw [Fri, 6 Jul 2001 20:07:13 +0000 (20:07 +0000)]
(py-continuation-offset): Update docstring to describe that this
additional offset is only applied to continuation lines for block
opening statements.

(py-compute-indentation): Only add py-continuation-offset if
py-statement-opens-block-p is true.

23 years agoFix up a few style nits -- avoid "e.g." and "i.e." -- these make
Fred Drake [Fri, 6 Jul 2001 19:28:48 +0000 (19:28 +0000)]
Fix up a few style nits -- avoid "e.g." and "i.e." -- these make
translation more difficult, as well as reading the English more
difficult for non-native speakers.

23 years agoSF bug #439104: Tuple richcompares has code-typo.
Tim Peters [Fri, 6 Jul 2001 17:45:43 +0000 (17:45 +0000)]
SF bug #439104: Tuple richcompares has code-typo.
Symptom:  (1, 2, 3) <= (1, 2) returned 1.
This was already fixed in CVS for tuples, but an isomorphic error was in
the list richcompare code.

23 years agoFix up a few style nits -- avoid "e.g." and "i.e." -- these make
Fred Drake [Fri, 6 Jul 2001 17:28:39 +0000 (17:28 +0000)]
Fix up a few style nits -- avoid "e.g." and "i.e." -- these make
translation more difficult, as well as reading the English more
difficult for non-native speakers.

23 years agoWhen reading a continuation line, make sure we still use the transformed
Fred Drake [Fri, 6 Jul 2001 17:22:48 +0000 (17:22 +0000)]
When reading a continuation line, make sure we still use the transformed
name when filling in the internal data structures, otherwise we incorrectly
raise a KeyError.

This fixes SF bug #432369.

23 years agoExplain the exit code for the wait() method, including a reference to
Fred Drake [Fri, 6 Jul 2001 17:17:12 +0000 (17:17 +0000)]
Explain the exit code for the wait() method, including a reference to
the os.W*() functions used to interpret the return value.

This fixes SF bug #429361.

23 years agoFix up a few style nits -- avoid "e.g." and "i.e." -- these make
Fred Drake [Fri, 6 Jul 2001 06:49:32 +0000 (06:49 +0000)]
Fix up a few style nits -- avoid "e.g." and "i.e." -- these make
translation more difficult, as well as reading the English more
difficult for non-native speakers.

23 years agoRemoved fpectlmodule.c and fpetestmodule.c from the Windows build. They
Tim Peters [Thu, 5 Jul 2001 21:19:02 +0000 (21:19 +0000)]
Removed fpectlmodule.c and fpetestmodule.c from the Windows build.  They
weren't functional under Windows even if enabled.

23 years agoThe fpectl module does not work on Windows, so remove Windows from the
Fred Drake [Thu, 5 Jul 2001 21:17:08 +0000 (21:17 +0000)]
The fpectl module does not work on Windows, so remove Windows from the
\platform statement.

Also fix a minor style consistency nit in an example.

23 years agoFix a markup error: do not omit a method's parameter list if it is
Fred Drake [Thu, 5 Jul 2001 21:14:03 +0000 (21:14 +0000)]
Fix a markup error:  do not omit a method's parameter list if it is
empty.

23 years agoAllow underscores in tag names and quote characters in unquoted attribute
Fred Drake [Thu, 5 Jul 2001 18:21:57 +0000 (18:21 +0000)]
Allow underscores in tag names and quote characters in unquoted attribute
values.  The change for attribute values matches the way Mozilla and
Navigator view the world, at least.

This closes SF bug #436621.

23 years agoAdded more information on the differences between the htmllib and HTMLParser
Fred Drake [Thu, 5 Jul 2001 16:34:36 +0000 (16:34 +0000)]
Added more information on the differences between the htmllib and HTMLParser
modules.

23 years agoList constraints on xrange() objects.
Guido van Rossum [Thu, 5 Jul 2001 15:27:19 +0000 (15:27 +0000)]
List constraints on xrange() objects.

23 years agoRip out tests for xrange() features no longer supported.
Guido van Rossum [Thu, 5 Jul 2001 14:49:21 +0000 (14:49 +0000)]
Rip out tests for xrange() features no longer supported.

23 years agoNews about xrange().
Guido van Rossum [Thu, 5 Jul 2001 14:46:25 +0000 (14:46 +0000)]
News about xrange().

23 years agoComplete the xrange-simplification checkins: call PyRange_New() with
Guido van Rossum [Thu, 5 Jul 2001 14:44:41 +0000 (14:44 +0000)]
Complete the xrange-simplification checkins: call PyRange_New() with
fewer arguments.

23 years agoRip out the fancy behaviors of xrange that nobody uses: repeat, slice,
Guido van Rossum [Thu, 5 Jul 2001 13:27:48 +0000 (13:27 +0000)]
Rip out the fancy behaviors of xrange that nobody uses: repeat, slice,
contains, tolist(), and the start/stop/step attributes.  This includes
removing the 4th ('repeat') argument to PyRange_New().

23 years ago- minor cleanup, removed bogus comments
Just van Rossum [Thu, 5 Jul 2001 07:06:26 +0000 (07:06 +0000)]
- minor cleanup, removed bogus comments
- make method reload handle __private attrs correctly
- fixed whole word search

23 years agodon't crash when encountering bad marshal data
Just van Rossum [Thu, 5 Jul 2001 07:03:16 +0000 (07:03 +0000)]
don't crash when encountering bad marshal data

23 years agoSF bug #438295: [Windows] __init__.py cause strange behavior
Tim Peters [Thu, 5 Jul 2001 03:47:53 +0000 (03:47 +0000)]
SF bug #438295: [Windows] __init__.py cause strange behavior
Probable fix (the bug report doesn't have enough info to say for sure).
find_init_module():  Insist on a case-sensitive match for __init__ files.
Given __INIT__.PY instead, find_init_module() thought that was fine, but
the later attempt to do find_module("__INIT__.PY") didn't and its caller
silently suppressed the resulting ImportError.  Now find_init_module()
refuses to accept __INIT__.PY to begin with.
Bugfix candidate; specific to platforms with case-insensitive filesystems.

23 years agoDo conversion of CFStrings to/from unicode.
unknown [Wed, 4 Jul 2001 22:38:52 +0000 (22:38 +0000)]
Do conversion of CFStrings to/from unicode.

23 years agoSet the default 8-bit encoding based on the system script and language.
unknown [Wed, 4 Jul 2001 22:37:19 +0000 (22:37 +0000)]
Set the default 8-bit encoding based on the system script and language.

23 years agoDon't promise mac-japanese encoding as we don't have a codec for it.
unknown [Wed, 4 Jul 2001 22:36:27 +0000 (22:36 +0000)]
Don't promise mac-japanese encoding as we don't have a codec for it.
Return a reasonable name for the general macos exception (MacOS.Error).

23 years agoAdded a non-recursive implementation of conjoin(), and a Knight's Tour
unknown [Wed, 4 Jul 2001 22:11:22 +0000 (22:11 +0000)]
Added a non-recursive implementation of conjoin(), and a Knight's Tour
solver.  In conjunction, they easily found a tour of a 200x200 board:
that's 200**2 == 40,000 levels of backtracking.  Explicitly resumable
generators allow that to be coded as easily as a recursive solver (easier,
actually, because different levels can use level-customized algorithms
without pain), but without blowing the stack.  Indeed, I've never written
an exhaustive Tour solver in any language before that can handle boards so
large ("exhaustive" == guaranteed to find a solution if one exists, as
opposed to probabilistic heuristic approaches; of course, the age of the
universe may be a blip in the time needed!).

23 years agodummy checkin for testing, please ignore
unknown [Wed, 4 Jul 2001 16:52:02 +0000 (16:52 +0000)]
dummy checkin for testing, please ignore

23 years agoFix for SF bug #425868.
unknown [Wed, 4 Jul 2001 10:15:58 +0000 (10:15 +0000)]
Fix for SF bug #425868.
We should not depend on two spaces between words, so use the white
space after the to-be-encoded word only as lookahead and don't
actually consume it in the regular expression.

23 years agoClean up a bare except: clause.
unknown [Wed, 4 Jul 2001 07:07:33 +0000 (07:07 +0000)]
Clean up a bare except: clause.

23 years agoClean up a bare except: clause.
unknown [Wed, 4 Jul 2001 07:01:29 +0000 (07:01 +0000)]
Clean up a bare except: clause.

23 years agoMake the implementations of getElementsByTagName() and
Fred Drake [Wed, 4 Jul 2001 06:25:53 +0000 (06:25 +0000)]
Make the implementations of getElementsByTagName() and
getElementsByTagNameNS() consistent in form as well as functionality
(cosmetic).

23 years agoOnly write out one blank line before the request data.
Fred Drake [Wed, 4 Jul 2001 05:18:29 +0000 (05:18 +0000)]
Only write out one blank line before the request data.
This closes SF patch #419459.

23 years agoNull commit with -f option to force an uprev and put HEADs firmly on the trunk.
Kurt B. Kaiser [Wed, 4 Jul 2001 03:43:58 +0000 (03:43 +0000)]
Null commit with -f option to force an uprev and put HEADs firmly on the trunk.

23 years agoNull commit with -f option to force an uprev and put HEADs firmly on the trunk.
Kurt B. Kaiser [Wed, 4 Jul 2001 03:15:10 +0000 (03:15 +0000)]
Null commit with -f option to force an uprev and put HEADs firmly on the trunk.

23 years agoThis change adjusts the profiling/tracing support so that the common
Fred Drake [Tue, 3 Jul 2001 23:39:52 +0000 (23:39 +0000)]
This change adjusts the profiling/tracing support so that the common
path (with no profile/trace function) through eval_code2() and
eval_frame() avoids several checks.

In the common cases of calls, returns, and exception propogation,
eval_code2() and eval_frame() used to test two values in the
thread-state: the profiling function and the tracing function.  With
this change, a flag is set in the thread-state if either of these is
active, allowing a single check to suffice when both are NULL.  This
also simplifies the code needed when either function is in use but is
already active (to avoid profiling/tracing the profiler/tracer); the
flag is set to 0 when the profile/trace code is entered, allowing the
same check to suffice for "already in the tracer" for call/return/
exception events.

23 years agobug #416670
Fredrik Lundh [Tue, 3 Jul 2001 20:32:36 +0000 (20:32 +0000)]
bug #416670

added copy/deepcopy support to SRE (still not enabled, since it's not
covered by the test suite)

23 years agobug #232815
Fredrik Lundh [Tue, 3 Jul 2001 19:27:05 +0000 (19:27 +0000)]
bug #232815

ch is unsigned, so testing for negative values doesn't make
sense (as noticed by the OpenVMS compiler)