Commit Graph

1227 Commits

Author SHA1 Message Date
Martin v. Löwis 4535b18f7c Add Tim Rice, for SCO patches. 2002-09-30 16:23:15 +00:00
Skip Montanaro b45b9feafb fix a couple nits related to my understanding of ReST. Use of
``void (*)(PyObject *)``

isn't quite the same as

    void (*)(PyObject \*)

but I gather ``...`` is preferable stylistically in most cases than
... \*...
2002-09-30 15:25:13 +00:00
Skip Montanaro a2a07bce89 fix a couple nits with my use of ReST 2002-09-30 15:23:01 +00:00
Barry Warsaw 7f232121c9 (py-pychecker-run): Fix calculation of last command to include the
filename of the current buffer.
2002-09-28 18:17:56 +00:00
Guido van Rossum 6b3db551be Disable building of the fpectl module -- it's dangerous or useless
except in the hands of experts.  Will backport to 2.2.2.
2002-09-25 15:02:44 +00:00
Guido van Rossum 2848fe9e58 Attila Babo (turtle.py). 2002-09-23 17:05:02 +00:00
Skip Montanaro 4a38583456 reference the new NEWS.help file 2002-09-20 17:08:52 +00:00
Skip Montanaro 5c27e66b4b brief help file for people editing Misc/NEWS 2002-09-20 17:08:37 +00:00
Skip Montanaro e5d7f7f3af ReST-ification of the NEWS file. While the total number of changes are
fairly large, most are caused by reformatting section and subsection
headings.  The changes fall into the following categories:

    * reformatted section and subsection headers.

    * escaped isolated asterisks which would be interpreted as starting bold
      or italic text (e.g. "void (*)(PyObject \*)").

    * quoted stuff that looks like internal references but isn't
      (e.g. ``PyCmp_``).

    * changed visually balanced quotes to just use apostrophes
      (e.g. "'string'" instead of "`string'").

    * introduced and indenting multiline chunks of code.

    * created one table (search for "New codecs").
2002-09-20 14:16:59 +00:00
Guido van Rossum a989ac44ea Add MJ. 2002-09-18 04:09:27 +00:00
Guido van Rossum 923e4ef049 The SGI demos are gone. 2002-09-17 20:58:59 +00:00
Skip Montanaro 4cb2204851 migrate news about 2.1 and earlier releases from NEWS to HISTORY in
preparation for ReST-ification of NEWS.  (Also tests checkin ability
from my new Powerbook.  woohoo!)
2002-09-17 20:55:31 +00:00
Martin v. Löwis 658009afdb Make BadPickleGet a class. Fixes #609164. 2002-09-16 17:26:24 +00:00
Guido van Rossum 06067915c4 Add Mats Wichmann, another snake farmhand. 2002-09-11 21:09:53 +00:00
Guido van Rossum 6a0477b099 Alphabetize Qvist properly. 2002-09-11 19:40:10 +00:00
Guido van Rossum f981a3373c Add Laura "force of nature" Creighton and Anders "snake farmer" Qvist,
for their contributions to the snake farm.
2002-09-11 18:33:56 +00:00
Martin v. Löwis a32c994129 Always generate floats for stat_result; fix configure test. 2002-09-09 16:17:47 +00:00
Martin v. Löwis 94717ed1d4 Patch #606592: Subsecond timestamps in stat_result. 2002-09-09 14:24:16 +00:00
Jack Jansen a6db44f169 Script to generate .pkg packages, donated by Dinu Gherman. This is his
original code, it still needs fiddling to make it work in general
circumstances.
2002-09-06 19:47:49 +00:00
Walter Dörwald 5ccaf8f129 Apply diff3.txt (plus additional documentation)
from SF patch http://www.python.org/sf/554192

This adds two new functions to mimetypes:
guess_all_extensions() which returns a list of all known
extensions for a mime type, and add_type() which adds one
mapping between a mime type and an extension.
2002-09-06 16:15:58 +00:00
Neal Norwitz b567392bbf SF bug # 585792, Invalid mmap crashes Python interpreter
Raise ValueError if user passes a size to mmap which is larger
than the file.
2002-09-05 21:48:07 +00:00
Neal Norwitz 7165af23e6 Added "that" to correct grammar, the rest is due to wrapping 2002-09-05 21:42:24 +00:00
Skip Montanaro 979c74b969 added a bit about the change to the thread ticker 2002-09-03 21:25:14 +00:00
Skip Montanaro 8e790e7007 expose PYTHON_API_VERSION macro as sys.api_version. Closes patch # 601456. 2002-09-03 13:25:17 +00:00
Walter Dörwald 3aeb632c31 PEP 293 implemention (from SF patch http://www.python.org/sf/432401) 2002-09-02 13:14:32 +00:00
Jack Jansen c58eafbe3e Distutils-based script by Bill Fancher to download the Python documentation
HTML tarball and use it to create a documentation tree readable and
searchable with Apple Help Viewer. The documentation also shows up in
Project Builder (if you add Python.framework to your project).
2002-08-28 21:23:53 +00:00
Michael W. Hudson 1e9718a334 Fix grammatically inept comment. 2002-08-22 13:36:11 +00:00
Guido van Rossum 76afbd9aa4 Fix some endcase bugs in unicode rfind()/rindex() and endswith().
These were reported and fixed by Inyeol Lee in SF bug 595350.  The
endswith() bug was already fixed in 2.3, but this adds some more test
cases.
2002-08-20 17:29:29 +00:00
Guido van Rossum 45ec02aed1 SF patch 576101, by Oren Tirosh: alternative implementation of
interning.  I modified Oren's patch significantly, but the basic idea
and most of the implementation is unchanged.  Interned strings created
with PyString_InternInPlace() are now mortal, and you must keep a
reference to the resulting string around; use the new function
PyString_InternImmortal() to create immortal interned strings.
2002-08-19 21:43:18 +00:00
Guido van Rossum d8ab35c933 News about sets. (There's no documentation; if someone wants to
convert the doc strings to LaTeX, be my guest.)
2002-08-19 16:25:46 +00:00
Raymond Hettinger f2f2a2c130 Fix spelling errors and note the addition of operator.pow() 2002-08-19 14:25:03 +00:00
Jack Jansen 0281512b87 Merged the MacPython thanks list into the general acknowledgements.
There's really no point in a separate list of thank-you notes.
2002-08-19 13:17:39 +00:00
Raymond Hettinger 5403737e3c Add Steve Purcell for unittest.py 2002-08-18 22:22:14 +00:00
Tim Peters 012c0a393a Newly-relaxed limits on random.randrange(). Also added some info about
Karatsuba's better cache behavior with extremely large multiplicands.
2002-08-16 03:40:07 +00:00
Guido van Rossum f808b891d6 Mention warnings about defining None. 2002-08-16 03:38:10 +00:00
Michael W. Hudson dd32a91cc0 This is my patch
[ 587993 ] SET_LINENO killer

Remove SET_LINENO.  Tracing is now supported by inspecting co_lnotab.

Many sundry changes to document and adapt to this change.
2002-08-15 14:59:02 +00:00
Guido van Rossum add88060c1 Add notes about universal newlines. 2002-08-15 14:01:14 +00:00
Guido van Rossum fdb8648327 Add news about Fred's change to Py_InitModule4(). 2002-08-14 21:20:32 +00:00
Martin v. Löwis f399fd9635 Added Hisao Suzuki. 2002-08-14 18:52:54 +00:00
Guido van Rossum 9be8946a3e Add news about FutureWarning and PEP 237 stage B0.
Tim predicts that we might as well call this CassandraWarning.
2002-08-14 16:11:30 +00:00
Tim Peters 6000464d08 Added new function k_lopsided_mul(), which is much more efficient than
k_mul() when inputs have vastly different sizes, and a little more
efficient when they're close to a factor of 2 out of whack.

I consider this done now, although I'll set up some more correctness
tests to run overnight.
2002-08-12 22:01:34 +00:00
Guido van Rossum b9f1e9865d New names. 2002-08-12 20:20:39 +00:00
Tim Peters d64c1def7c k_mul() and long_mul(): I'm confident that the Karatsuba algorithm is
correct now, so added some final comments, did some cleanup, and enabled
it for all long-int multiplies.  The KARAT envar no longer matters,
although I left some #if 0'ed code in there for my own use (temporary).
k_mul() is still much slower than x_mul() if the inputs have very
differenent sizes, and that still needs to be addressed.
2002-08-12 17:36:03 +00:00
Guido van Rossum e343878eec New news about __class__ assignment restrictions and speed-up of
new-style object creation/deallocation.

Moved all news about type/class unification and new-stype classes to a
separate section at the top.
2002-08-12 03:42:03 +00:00
Neal Norwitz 6c70fca8b1 Revert what looks like a typo from the last checkin 2002-08-12 03:33:32 +00:00
Tim Peters 5af4e6c739 Cautious introduction of a patch that started from
SF 560379:  Karatsuba multiplication.
Lots of things were changed from that.  This needs a lot more testing,
for correctness and speed, the latter especially when bit lengths are
unbalanced.  For now, the Karatsuba code gets invoked if and only if
envar KARAT exists.
2002-08-12 02:31:19 +00:00
Marc-André Lemburg cc8764ca9d Add C API PyUnicode_FromOrdinal() which exposes unichr() at C level.
u'%c' will now raise a ValueError in case the argument is an
integer outside the valid range of Unicode code point ordinals.

Closes SF bug #593581.
2002-08-11 12:23:04 +00:00
Mark Hammond 8f3afc7cd3 Clarify that the interruptable popen fixes aren't used under Win9x. 2002-08-10 06:26:31 +00:00
Guido van Rossum bffb2efee0 Credit to Oren for the file-iterator patch. 2002-08-09 17:17:07 +00:00
Guido van Rossum deb0936795 News about the tempfile rewrite. 2002-08-09 17:16:30 +00:00
Guido van Rossum d81a9834f7 News about Neil's fix to correctly invoke __rmul__. 2002-08-09 15:57:34 +00:00
Sjoerd Mullender b6434f2c2f Document that -u puts stdin, stdout, and stderr in binary mode. 2002-08-09 13:37:31 +00:00
Barry Warsaw d79f683772 Describe new "str1 in str2" behavior. 2002-08-06 17:01:51 +00:00
Guido van Rossum b57089cdf8 Files are now their own iterator. The xreadlines method and module
are obsolete.
2002-08-06 16:20:26 +00:00
Guido van Rossum 2805428d92 SF patch 590294: os._execvpe security fix (Zack Weinberg). 2002-08-05 16:14:46 +00:00
Fred Drake 40813b1dbc Typo: "now" --> "the new" 2002-08-05 15:24:19 +00:00
Martin v. Löwis 98ce7b7ef1 IDLE support for PEP 263. 2002-08-05 15:11:26 +00:00
Guido van Rossum de392d3f3f Add a small description of PEP 263. 2002-08-05 14:17:20 +00:00
Martin v. Löwis 00f1e3f5a5 Patch #534304: Implement phase 1 of PEP 263. 2002-08-04 17:29:52 +00:00
Andrew MacIntyre 161ad0e16b OS/2 EMX now supported 2002-08-04 07:25:58 +00:00
Guido van Rossum 4a57c33dff Adding the heap queue algorithm, per discussion in python-dev last
week.
2002-08-02 18:05:20 +00:00
Guido van Rossum 37c3b2788b Add Kevin O'Connor, author of the heapq code. 2002-08-02 16:50:58 +00:00
Guido van Rossum 0dbab4c560 SF patch 588728 (Nathan Srebro).
The __delete__ method wrapper for descriptors was not supported

(I added a test, too.)

2.2 bugfix candidate.
2002-08-01 14:39:25 +00:00
Tim Peters f47630ff54 A blurb about the sort implementation. 2002-08-01 02:34:51 +00:00
Michael W. Hudson 202a4b6fdd Repair fill-paragraph damage.
Clarify LLTRACE description.  It was introduced in 1992, revision 2.20 of
ceval.c, well before Python 1.0!
2002-07-30 15:25:57 +00:00
Michael W. Hudson a6255238b2 add description of LLTRACE. 2002-07-30 09:49:29 +00:00
Thomas Heller 085358a3e2 New functions for extension writers on Windows:
PyErr_SetExcFromWindowsErr(), PyErr_SetExcFromWindowsErrWithFilename().

Similar to PyErr_SetFromWindowsErrWithFilename() and
PyErr_SetFromWindowsErr(), but they allow to specify
the exception type to raise. Available on Windows.

See SF patch #576458.
2002-07-29 14:27:41 +00:00
Martin v. Löwis 0cec0ffc78 Patch #573770: Implement lchown. 2002-07-28 16:33:45 +00:00
Martin v. Löwis 611a7101ca Patch #552812: Better description in "python -h" for -u. 2002-07-28 10:34:08 +00:00
Guido van Rossum 2d5389c08f News about StopIteration as a "sink state". 2002-07-23 03:44:35 +00:00
Guido van Rossum 79f0a106e6 Add news about strptime and socket.setdefaulttimeout(). 2002-07-23 03:32:08 +00:00
Neal Norwitz 1389f3e059 Move DL_IMPORT/DL_EXPORT to Build section, I think this is the correct place 2002-07-22 13:21:10 +00:00
Mark Hammond a5083ec3b3 Add note about DL_IMPORT deprecation.
[ 583894 ] doc DL_IMPORT/DL_EXPORT changes
2002-07-22 12:53:16 +00:00
Neal Norwitz 36eb4b2d7e Pure Python strptime implementation by Brett Cannon. See SF patch 474274. 2002-07-19 18:38:25 +00:00
Barry Warsaw f31ff27c57 (py-pychecker-run): Use the last pychecker invocation as the default
contents of the next command.
2002-07-17 21:25:43 +00:00
Barry Warsaw 1f4fed68e9 We need to (require 'compile) to guarantee that compile-internal is
defined.  /Really/ closes SF # 580631.
2002-07-17 13:45:00 +00:00
Barry Warsaw 32a03967b7 (py-imenu-create-index-function): Skip over stuff that looks like code
but which is in a comment or string.  Closes SF bug # 572341 reported
by Adrian van den Dries.
2002-07-16 16:04:13 +00:00
Barry Warsaw daa192104d (py-pychecker-run): Thomas Heller points out that this function messes
up the compile command's history.  Fix that by using compile-internal.

Fixes SF bug # 580631
2002-07-16 15:56:28 +00:00
Mark Hammond c0e35158fb Add a blurb on the 3 Windows bugs I worked on over the last couple of days. 2002-07-16 01:32:30 +00:00
Tim Peters a65523a151 Added Andrew MacIntyre -- overdue! 2002-07-15 16:13:06 +00:00
Tim Peters 58cf361e35 docompare(): Another reasonable optimization from Jonathan Hogg for the
explicit comparison function case:  use PyObject_Call instead of
PyEval_CallObject.  Same thing in context, but gives a 2.4% overall
speedup when sorting a list of ints via list.sort(__builtin__.cmp).
2002-07-15 05:16:13 +00:00
Marc-André Lemburg 58e2ff2e81 Mention new encoding. 2002-07-12 14:40:04 +00:00
Guido van Rossum dd523eef95 Fernando Pérez of SF bug 579701 fame. 2002-07-12 13:13:28 +00:00
Guido van Rossum 0c08864fbb Replace rare tabs with 4 spaces, assuming that's what was intended. 2002-07-11 01:04:32 +00:00
Guido van Rossum 715a0c67b8 Note the existence of SpecialBuilds.txt. 2002-07-11 01:01:49 +00:00
Tim Peters 8acdf7a935 Noted the releases in which COUNT_ALLOCS can blow up. 2002-07-11 00:38:05 +00:00
Tim Peters 62fc52e6a1 Recorded the introduction release for each gimmick, as best I was able to
reconstruct that info.
Filled out some sketchy explanations of pragmatics.
2002-07-11 00:23:58 +00:00
Tim Peters 20c8a04a08 Some clarifications. 2002-07-11 00:02:52 +00:00
Tim Peters 889f61dcfb Documented PYMALLOC_DEBUG. This completes primary coverage of all the
"special builds" I ever use.  If you use others, document them here, or
don't be surprised if I rip out the code for them <0.5 wink>.
2002-07-10 19:29:49 +00:00
Tim Peters a788f5ef02 Clarified sys.getobjects() pragmatics. 2002-07-10 18:47:03 +00:00
Tim Peters 44c1a7bc51 Typo repair. 2002-07-09 19:27:20 +00:00
Tim Peters 48ba649ae3 Moved COUNT_ALLOCS down and finished writing its description. 2002-07-09 19:24:54 +00:00
Tim Peters 3486f617a1 Checkin comment. 2002-07-09 18:48:32 +00:00
Tim Peters 6045d48e5c New file to try to document the "special build" preprocessor symbols.
Incomplete.  Add to it!  Once it settles down, it would make a nice
appendix in the real docs.
2002-07-09 18:35:34 +00:00
Tim Peters 7c321a80f9 The Py_REF_DEBUG/COUNT_ALLOCS/Py_TRACE_REFS macro minefield: added
more trivial lexical helper macros so that uses of these guys expand
to nothing at all when they're not enabled.  This should help sub-
standard compilers that can't do a good job of optimizing away the
previous "(void)0" expressions.

Py_DECREF:  There's only one definition of this now.  Yay!  That
was that last one in the family defined multiple times in an #ifdef
maze.

Py_FatalError():  Changed the char* signature to const char*.

_Py_NegativeRefcount():  New helper function for the Py_REF_DEBUG
expansion of Py_DECREF.  Calling an external function cuts down on
the volume of generated code.  The previous inline expansion of abort()
didn't work as intended on Windows (the program often kept going, and
the error msg scrolled off the screen unseen).  _Py_NegativeRefcount
calls Py_FatalError instead, which captures our best knowledge of
how to abort effectively across platforms.
2002-07-09 02:57:01 +00:00
Tim Peters c6a3ff634a SF bug 578752: COUNT_ALLOCS vs heap types
Repair segfaults and infinite loops in COUNT_ALLOCS builds in the
presence of new-style (heap-allocated) classes/types.

Bugfix candidate.  I'll backport this to 2.2.  It's irrelevant in 2.1.
2002-07-08 22:11:52 +00:00
Tim Peters 943382c8e5 Removed WITH_CYCLE_GC #ifdef-ery. Holes:
+ I'm not sure what to do about configure.in.  Left it alone.

+ Ditto pyexpat.c.  Fred or Martin will know what to do.
2002-07-07 03:59:34 +00:00
Tim Peters 1de41bfbc0 Stop trying to cater to platforms with a broken HUGE_VAL definition. It
breaks other platforms (in this case, the hack for broken Cray systems in
turn caused failure on a Mac system broken in a different way).
2002-07-03 03:31:20 +00:00
Martin v. Löwis 7d650ca83b Implement the encoding argument for toxml and toprettyxml.
Document toprettyxml.
2002-06-30 15:05:00 +00:00
Jeremy Hylton 3e76d7f3b3 Add Bob Kline of HTTP 100 fame. 2002-06-28 22:39:56 +00:00