]> granicus.if.org Git - python/log
python
22 years agoGet test_capi & test_getargs2 to pass on alphas
Neal Norwitz [Tue, 22 Apr 2003 01:28:57 +0000 (01:28 +0000)]
Get test_capi & test_getargs2 to pass on alphas
  * UINT_MAX -> ULONG_MAX since we are dealing with longs
  * ParseTuple needs &int for 'i' and &long for 'l'
    There may be a better way to do this, but this works.

22 years agoAdd helper function to get module name taking packages into account.
Jeremy Hylton [Mon, 21 Apr 2003 22:49:17 +0000 (22:49 +0000)]
Add helper function to get module name taking packages into account.

22 years agoHolistic refactoring.
Jeremy Hylton [Mon, 21 Apr 2003 22:04:46 +0000 (22:04 +0000)]
Holistic refactoring.

Remove "." in coverage output for lines with comments.
Silence complaints in coverage output about unexecuted docstrings.

Eliminate use of inspect module in favor of direct access to frame and
code objects.  We're in a trace function here:  Efficiency counts!

Remove unused code.  Reflow long lines.

Remove backwards compatibility for stored trace output from Zooko's
experiment to add calledfuncs to the pickled dict.

Move code to generate per-file coverage stats to a separate routine.

Replace use of parser module with call to compile.

22 years agoAdd a useful docstring to enumerate.
Jeremy Hylton [Mon, 21 Apr 2003 20:26:25 +0000 (20:26 +0000)]
Add a useful docstring to enumerate.

22 years agoMakefile & config.c:
Andrew MacIntyre [Mon, 21 Apr 2003 14:33:04 +0000 (14:33 +0000)]
Makefile & config.c:
- restructure build for modules now in Python DLL

README.os2emx
- clean out old cruft no longer appropriate now that EMX port builds
  from CVS
- reflect move of modules into core DLL
- add section on building from source

22 years agoMakefile:
Andrew MacIntyre [Mon, 21 Apr 2003 14:28:01 +0000 (14:28 +0000)]
Makefile:
- add _csv module to the build list
- various cleanups

config.c:
- various cleanups

pyconfig.h:
- various cleanups

22 years agoapply Mark Hammond's PEP 311 changes to the EMX ripoff of the Windows
Andrew MacIntyre [Mon, 21 Apr 2003 14:22:36 +0000 (14:22 +0000)]
apply Mark Hammond's PEP 311 changes to the EMX ripoff of the Windows
popen[234]() code

22 years ago- DosSetExtLIBPATH objects to a NULL pointer, but a pointer to a NULL
Andrew MacIntyre [Mon, 21 Apr 2003 14:19:51 +0000 (14:19 +0000)]
- DosSetExtLIBPATH objects to a NULL pointer, but a pointer to a NULL
  string does what is expected (ie unset [BEGIN|END]LIBPATH)

- set the size of the DosQuerySysInfo buffer correctly; it was safe,
  but incorrect (allowing a 1 element overrun)

22 years agoTest suite for optparse. This is a slightly-edited copy of
Greg Ward [Mon, 21 Apr 2003 02:41:25 +0000 (02:41 +0000)]
Test suite for optparse.  This is a slightly-edited copy of
test/test_optik.py (rev 1.19) from the Optik CVS.

22 years agoUpdate to Optik 1.4.1; here are the relevant bits of the change log:
Greg Ward [Mon, 21 Apr 2003 02:40:34 +0000 (02:40 +0000)]
Update to Optik 1.4.1; here are the relevant bits of the change log:

  * Fixed some long-hidden bugs revealed by the new PyUnit-based
    test suite (thanks to Johannes Gijsbers the new test suite,
    improved tests that caught the bugs, and the bug fixes).

  * Make store_true/store_false store True/False rather than 1/0.

Details available in Optik's CVS repository.

22 years agoMore work on bug #672491 and patch #712900.
Gustavo Niemeyer [Sun, 20 Apr 2003 07:35:44 +0000 (07:35 +0000)]
More work on bug #672491 and patch #712900.

I've applied a modified version of Greg Chapman's patch. I've included
the fixes without introducing the reorganization mentioned, for the sake
of stability. Also, the second fix mentioned in the patch don't fix the
mentioned problem anymore, because of the change introduced by patch
#720991 (by Greg as well). The new fix wasn't complicated though, and is
included as well.

As a note. It seems that there are other places that require the
"protection" of LASTMARK_SAVE()/LASTMARK_RESTORE(), and are just waiting
for someone to find how to break them. Particularly, I belive that every
recursion of SRE_MATCH() should be protected by these macros. I won't
do that right now since I'm not completely sure about this, and we don't
have much time for testing until the next release.

22 years ago- Changed shlex.split() method to have more useful and
Gustavo Niemeyer [Sun, 20 Apr 2003 01:57:03 +0000 (01:57 +0000)]
- Changed shlex.split() method to have more useful and
  meaningful parameters.

22 years ago- Included examples documenting how the lastindex member of
Gustavo Niemeyer [Sun, 20 Apr 2003 01:48:59 +0000 (01:48 +0000)]
- Included examples documenting how the lastindex member of
  match objects work.

22 years agoFinally added a -h option to print the module docstring and exit. ;)
Barry Warsaw [Sun, 20 Apr 2003 00:59:24 +0000 (00:59 +0000)]
Finally added a -h option to print the module docstring and exit. ;)

22 years ago- Fixed bug #672491. This change restores the behavior of lastindex/lastgroup
Gustavo Niemeyer [Sun, 20 Apr 2003 00:45:13 +0000 (00:45 +0000)]
- Fixed bug #672491. This change restores the behavior of lastindex/lastgroup
  to be compliant with previous python versions, by backing out the changes
  made in revision 2.84 which affected this. The bugfix for backtracking is
  still maintained.

22 years agoPatch #553171: Add writeback parameter. Also add protocol parameter.
Martin v. Löwis [Sat, 19 Apr 2003 20:59:03 +0000 (20:59 +0000)]
Patch #553171: Add writeback parameter. Also add protocol parameter.

22 years agohandle_system_exit(): This leaked the current exception info, in
Tim Peters [Sat, 19 Apr 2003 18:47:02 +0000 (18:47 +0000)]
handle_system_exit():  This leaked the current exception info, in
particular leaving the traceback object (and everything reachable
from it) alive throughout shutdown.  The patch is mostly from Guido.

Bugfix candidate.

22 years agoDocstring clarifications.
Tim Peters [Sat, 19 Apr 2003 18:21:04 +0000 (18:21 +0000)]
Docstring clarifications.

22 years ago- bool() called without arguments now returns False rather than
Guido van Rossum [Sat, 19 Apr 2003 18:15:10 +0000 (18:15 +0000)]
- bool() called without arguments now returns False rather than
  raising an exception.  This is consistent with calling the
  constructors for the other builtin types -- called without argument
  they all return the false value of that type.  (SF patch #724135)
  Thanks to Alex Martelli.

22 years ago- Several methods of nntplib.NNTP have grown an optional file argument
Guido van Rossum [Sat, 19 Apr 2003 18:04:57 +0000 (18:04 +0000)]
- Several methods of nntplib.NNTP have grown an optional file argument
  which specifies a file where to divert the command's output
  (already supported by the body() method).  (SF patch #720468)
  Thanks to Terry Carroll.

22 years agoNew PyGILState_ API - implements pep 311, from patch 684256.
Mark Hammond [Sat, 19 Apr 2003 15:41:53 +0000 (15:41 +0000)]
New PyGILState_ API - implements pep 311, from patch 684256.

22 years agoMention the bz2 module
Andrew M. Kuchling [Sat, 19 Apr 2003 15:38:47 +0000 (15:38 +0000)]
Mention the bz2 module
Various rewrites

22 years agoNew file.
Martin v. Löwis [Sat, 19 Apr 2003 12:57:57 +0000 (12:57 +0000)]
New file.

22 years agoFully support 32-bit codes. Enable BIGCHARSET in UCS-4 builds.
Martin v. Löwis [Sat, 19 Apr 2003 12:56:08 +0000 (12:56 +0000)]
Fully support 32-bit codes. Enable BIGCHARSET in UCS-4 builds.

22 years agoPatch #681152: Support escaped Unicode characters in classes. Fixes #612074.
Martin v. Löwis [Sat, 19 Apr 2003 08:37:24 +0000 (08:37 +0000)]
Patch #681152: Support escaped Unicode characters in classes. Fixes #612074.
Will backport to 2.2.

22 years agoPatch #716969: Detect thread creation failure. Will backport to 2.2.
Martin v. Löwis [Sat, 19 Apr 2003 07:44:52 +0000 (07:44 +0000)]
Patch #716969: Detect thread creation failure. Will backport to 2.2.

22 years agoMake _strptime escape regex syntax in format string to prevent use in internal regex.
Brett Cannon [Sat, 19 Apr 2003 04:00:56 +0000 (04:00 +0000)]
Make _strptime escape regex syntax in format string to prevent use in internal regex.

22 years agoas_string(): Added some text to the docstring to make it clear that
Barry Warsaw [Fri, 18 Apr 2003 23:04:35 +0000 (23:04 +0000)]
as_string(): Added some text to the docstring to make it clear that
it's a convenience only and give hints on what to do for more
flexibility.

22 years agoAdded some more documentation to as_string() to make it clear that
Barry Warsaw [Fri, 18 Apr 2003 23:03:53 +0000 (23:03 +0000)]
Added some more documentation to as_string() to make it clear that
it's a convenience only.  Give an example of what to do for more
flexibility.

22 years agoChange email address.
Martin v. Löwis [Fri, 18 Apr 2003 22:04:34 +0000 (22:04 +0000)]
Change email address.

22 years agoFix spelling of cedillas.
Martin v. Löwis [Fri, 18 Apr 2003 21:48:56 +0000 (21:48 +0000)]
Fix spelling of cedillas.

22 years agoCorrect methoddesc environments.
Martin v. Löwis [Fri, 18 Apr 2003 21:48:13 +0000 (21:48 +0000)]
Correct methoddesc environments.

22 years agoAdd lib/libstringprep.tex lib/libdocxmlrpc.tex.
Martin v. Löwis [Fri, 18 Apr 2003 21:45:26 +0000 (21:45 +0000)]
Add lib/libstringprep.tex lib/libdocxmlrpc.tex.

22 years agoPatch #536883: SimpleXMLRPCServer auto-docing subclass.
Martin v. Löwis [Fri, 18 Apr 2003 21:04:39 +0000 (21:04 +0000)]
Patch #536883: SimpleXMLRPCServer auto-docing subclass.

22 years agoSkip nameprep test 3.43, as we do allow unassigned characters. The test
Martin v. Löwis [Fri, 18 Apr 2003 20:21:00 +0000 (20:21 +0000)]
Skip nameprep test 3.43, as we do allow unassigned characters. The test
fails only in UCS-2 mode, since it tests a non-BMP character.

22 years agoDon't double-space the "??? new object ..." messages.
Guido van Rossum [Fri, 18 Apr 2003 19:51:10 +0000 (19:51 +0000)]
Don't double-space the "??? new object ..." messages.

22 years agoPatch #718049: Setting exe_extension for cygwin
Jason Tishler [Fri, 18 Apr 2003 17:27:47 +0000 (17:27 +0000)]
Patch #718049: Setting exe_extension for cygwin

On cygwin, the setup.py script uses unixccompiler.py for compiling and linking
C extensions. The unixccompiler.py script assumes that executables do not get
special extensions, which makes sense for Unix.  However, on Cygwin,
executables get an .exe extension.

This causes a problem during the configuration step (python setup.py config),
in which some temporary executables may be generated. As unixccompiler.py does
not know about the .exe extension, distutils fails to clean up after itself: it
does not remove _configtest.exe but tries to remove _configtest instead.

The attached patch to unixccompiler.py sets the correct exe_extension for
cygwin by checking if sys.platform is 'cygwin'. With this patch, distutils
cleans up after itself correctly.

Michiel de Hoon
University of Tokyo, Human Genome Center.

22 years ago- accepted (slightly) modified version of docs for the OptionGroup
Fred Drake [Fri, 18 Apr 2003 15:50:13 +0000 (15:50 +0000)]
- accepted (slightly) modified version of docs for the OptionGroup
  class; closes SF patch #697941
- use em-dashes intead of en-dashes
- section references: use a "tie" between the word "section" and the
  section number, use quotation marks around section titles
- other minor markup corrections/cleanups

22 years agoPatch #711835: Remove unnecessary lock operations. Will backport to 2.2.
Martin v. Löwis [Fri, 18 Apr 2003 11:11:09 +0000 (11:11 +0000)]
Patch #711835: Remove unnecessary lock operations. Will backport to 2.2.

22 years agoPatch #714957: Explain ADDMODULE MARKER.
Martin v. Löwis [Fri, 18 Apr 2003 10:51:14 +0000 (10:51 +0000)]
Patch #714957: Explain ADDMODULE MARKER.

22 years agoImplement IDNA (Internationalized Domain Names in Applications).
Martin v. Löwis [Fri, 18 Apr 2003 10:39:54 +0000 (10:39 +0000)]
Implement IDNA (Internationalized Domain Names in Applications).

22 years agoHeh -- I checked in an old version of this, at a time I documented the
Tim Peters [Fri, 18 Apr 2003 01:02:37 +0000 (01:02 +0000)]
Heh -- I checked in an old version of this, at a time I documented the
internal read() as being a generator but hadn't yet changed it into one.

22 years ago_Py_PrintReferenceAddresses(): also print the type name. In real use
Tim Peters [Fri, 18 Apr 2003 00:45:59 +0000 (00:45 +0000)]
_Py_PrintReferenceAddresses():  also print the type name.  In real use
I'm finding some pretty baffling output, like reprs consisting entirely
of three left parens.  At least this will let us know what type the object
is (it's not str -- there's no quote character in the repr).

New tool combinerefs.py, to combine the two output blocks produced via
PYTHONDUMPREFS.

22 years agoDelete the 'h' test -- 'h' is no longer unsigned so the machinery here
Guido van Rossum [Fri, 18 Apr 2003 00:13:53 +0000 (00:13 +0000)]
Delete the 'h' test -- 'h' is no longer unsigned so the machinery here
can't test it.  It's unchanged so why would we test it anyway...

22 years agoRoll back changes to 'h' format code -- too much breaks. Other
Guido van Rossum [Fri, 18 Apr 2003 00:12:30 +0000 (00:12 +0000)]
Roll back changes to 'h' format code -- too much breaks.  Other
changes stay.

22 years agoUse True in a few more places.
Neal Norwitz [Thu, 17 Apr 2003 23:09:08 +0000 (23:09 +0000)]
Use True in a few more places.
Use isinstance(somestring, basestring) instead of type() as per PEP 8

22 years agoOops, missed updating doc to correct version for split
Neal Norwitz [Thu, 17 Apr 2003 23:07:13 +0000 (23:07 +0000)]
Oops, missed updating doc to correct version for split

22 years agoGet test to work under regrtest when running whole suite
Neal Norwitz [Thu, 17 Apr 2003 23:04:22 +0000 (23:04 +0000)]
Get test to work under regrtest when running whole suite

22 years agoAdded documentation for the handle_pi() method, based on SF patch #662464.
Fred Drake [Thu, 17 Apr 2003 22:36:52 +0000 (22:36 +0000)]
Added documentation for the handle_pi() method, based on SF patch #662464.
Closes SF bug #659188, patch #662464.

22 years agoSF Feature #: 719429, Get the SSL module to build on RedHat 9.
Neal Norwitz [Thu, 17 Apr 2003 22:23:36 +0000 (22:23 +0000)]
SF Feature #: 719429, Get the SSL module to build on RedHat 9.

krb5.h is in it's own directory

22 years agoAdd test that demonstrates SGML-style handling of processing
Fred Drake [Thu, 17 Apr 2003 22:19:26 +0000 (22:19 +0000)]
Add test that demonstrates SGML-style handling of processing
instructions.

22 years ago- use Tue/False for booleans
Fred Drake [Thu, 17 Apr 2003 22:01:17 +0000 (22:01 +0000)]
- use Tue/False for booleans
- some very minor cleanups

22 years agodded missing k and K format specifiers to Py_BuildValue and friends.
Jack Jansen [Thu, 17 Apr 2003 22:01:10 +0000 (22:01 +0000)]
dded missing k and K format specifiers to Py_BuildValue and friends.

22 years agomarkup banalities
Fred Drake [Thu, 17 Apr 2003 21:49:04 +0000 (21:49 +0000)]
markup banalities

22 years agoImplemented posix-mode parsing support in shlex.py, as dicussed in
Gustavo Niemeyer [Thu, 17 Apr 2003 21:31:33 +0000 (21:31 +0000)]
Implemented posix-mode parsing support in shlex.py, as dicussed in
mailing list, and in patch #722686.

22 years agoOops, 'k' is the new format code for un unchecked 32 bit quantity,
Jack Jansen [Thu, 17 Apr 2003 20:44:21 +0000 (20:44 +0000)]
Oops, 'k' is the new format code for un unchecked 32 bit quantity,
not 'K'.

22 years agoConverted manually written code to the new K format specifier.
Jack Jansen [Thu, 17 Apr 2003 20:40:07 +0000 (20:40 +0000)]
Converted manually written code to the new K format specifier.
Untested, but at least it still compiles.

22 years ago_Py_PrintReferences(): Changed to print object address at start of each
Tim Peters [Thu, 17 Apr 2003 19:52:29 +0000 (19:52 +0000)]
_Py_PrintReferences():  Changed to print object address at start of each
new line.

New pvt API function _Py_PrintReferenceAddresses():  Prints only the
addresses and refcnts of the live objects.  This is always safe to call,
because it has no dependence on Python's C API.

Py_Finalize():  If envar PYTHONDUMPREFS is set, call (the new)
_Py_PrintReferenceAddresses() right before dumping final pymalloc stats.
We can't print the reprs of the objects here because too much of the
interpreter has been shut down.  You need to correlate the addresses
displayed here with the object reprs printed by the earlier
PYTHONDUMPREFS call to _Py_PrintReferences().

22 years agoSF # 595026: support for masks in getargs.c.
Thomas Heller [Thu, 17 Apr 2003 18:55:45 +0000 (18:55 +0000)]
SF # 595026: support for masks in getargs.c.

New functions:
  unsigned long PyInt_AsUnsignedLongMask(PyObject *);
  unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);
  unsigned long PyLong_AsUnsignedLongMask(PyObject *);
  unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);

New and changed format codes:

b unsigned char 0..UCHAR_MAX
B unsigned char none **
h unsigned short 0..USHRT_MAX
H unsigned short none **
i int INT_MIN..INT_MAX
I * unsigned int 0..UINT_MAX
l long LONG_MIN..LONG_MAX
k * unsigned long none
L long long LLONG_MIN..LLONG_MAX
K * unsigned long long none

Notes:

* New format codes.

** Changed from previous "range-and-a-half" to "none"; the
range-and-a-half checking wasn't particularly useful.

New test test_getargs2.py, to verify all this.

22 years ago- New C API PyGC_Collect(), same as calling gc.collect().
Guido van Rossum [Thu, 17 Apr 2003 17:29:22 +0000 (17:29 +0000)]
- New C API PyGC_Collect(), same as calling gc.collect().
- Call this in Py_Finalize().
- Expand the Misc/NEWS text on PY_LONG_LONG.

22 years agoChanges in support of PEP 269.
Guido van Rossum [Thu, 17 Apr 2003 16:53:26 +0000 (16:53 +0000)]
Changes in support of PEP 269.

22 years agoA missing piece of the PEP 269 patch: add PyParser_SetError(), a
Guido van Rossum [Thu, 17 Apr 2003 16:02:26 +0000 (16:02 +0000)]
A missing piece of the PEP 269 patch: add PyParser_SetError(), a
wrapper around err_input().

22 years agoTrimmed trailing whitespace.
Tim Peters [Thu, 17 Apr 2003 15:24:21 +0000 (15:24 +0000)]
Trimmed trailing whitespace.

22 years agoPy_Finalize(): Reverted recent changes that tried to move the
Tim Peters [Thu, 17 Apr 2003 15:21:01 +0000 (15:21 +0000)]
Py_Finalize():  Reverted recent changes that tried to move the
PYTHONDUMPREFS output after most teardown.  Attempts to use
PYTHONDUMPREFS with the Zope3 test suite died with Py_FatalError(),
since _Py_PrintReferences() can end up executing arbitrary Python code
(for objects that override __repr__), and that requires an intact
interpreter.

22 years agoChanges from Jonathan Riehl to allow his pgen extension (PEP 269) to
Guido van Rossum [Thu, 17 Apr 2003 14:55:42 +0000 (14:55 +0000)]
Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to
work.  This includes some more code that used to be part of pgen in
the main parser; I'm okay with that.  I'll see if the Windows build
needs work next.

22 years agoRemove extra space in docstring
Neal Norwitz [Thu, 17 Apr 2003 13:13:55 +0000 (13:13 +0000)]
Remove extra space in docstring

22 years ago- The repr() of a weakref object now shows the __name__ attribute of
Guido van Rossum [Wed, 16 Apr 2003 21:13:23 +0000 (21:13 +0000)]
- The repr() of a weakref object now shows the __name__ attribute of
  the referenced object, if it has one.

Also use %p to format pointers consistently, and use <weakproxy ...>
in proxy_repr(), to match the type name.

22 years agoSupport UCS-4 Tcl for UCS-4 Python builds. Fixes #719880.
Martin v. Löwis [Wed, 16 Apr 2003 20:34:55 +0000 (20:34 +0000)]
Support UCS-4 Tcl for UCS-4 Python builds. Fixes #719880.

22 years agoAdd 'get' method to Variable and switch it from internal class to
Guido van Rossum [Wed, 16 Apr 2003 20:10:03 +0000 (20:10 +0000)]
Add 'get' method to Variable and switch it from internal class to
standard class (it is now useful because it doesn't constrain the type
of the value).

22 years ago- super() no longer ignores data descriptors, except __class__. See
Guido van Rossum [Wed, 16 Apr 2003 20:02:22 +0000 (20:02 +0000)]
- super() no longer ignores data descriptors, except __class__.  See
  the thread started at
  http://mail.python.org/pipermail/python-dev/2003-April/034338.html

22 years agoSigh. The crucial change was still missing from the previous
Guido van Rossum [Wed, 16 Apr 2003 20:01:36 +0000 (20:01 +0000)]
Sigh.  The crucial change was still missing from the previous
checkin. :-(

22 years agoFor StringVar results to strings. Document that boolean things are of
Martin v. Löwis [Wed, 16 Apr 2003 19:42:51 +0000 (19:42 +0000)]
For StringVar results to strings. Document that boolean things are of
type bool. Requested in #721171.

22 years ago- super() no longer ignores data descriptors, except __class__. See
Guido van Rossum [Wed, 16 Apr 2003 19:40:58 +0000 (19:40 +0000)]
- super() no longer ignores data descriptors, except __class__.  See
  the thread started at
  http://mail.python.org/pipermail/python-dev/2003-April/034338.html

22 years agoMinor source formatting fixes.
Raymond Hettinger [Wed, 16 Apr 2003 18:40:04 +0000 (18:40 +0000)]
Minor source formatting fixes.

22 years agoMostly reformatting, splitting long lines, whitespace normalization
Barry Warsaw [Wed, 16 Apr 2003 18:08:23 +0000 (18:08 +0000)]
Mostly reformatting, splitting long lines, whitespace normalization
etc.

Fixed one typo in the __main__ section.

22 years agoAs discussed on python-dev, revised docs to note that
Raymond Hettinger [Wed, 16 Apr 2003 17:28:12 +0000 (17:28 +0000)]
As discussed on python-dev, revised docs to note that
PyObject_IsTrue() can have an error result.

Also, added missing docs for PyObject_Not().

Will backport.

22 years agoAdd version info for name2codepoint and codepoint2name
Neal Norwitz [Wed, 16 Apr 2003 13:21:06 +0000 (13:21 +0000)]
Add version info for name2codepoint and codepoint2name

22 years agoWhen on MacOSX, and only in a framework build, add
Jack Jansen [Wed, 16 Apr 2003 13:12:21 +0000 (13:12 +0000)]
When on MacOSX, and only in a framework build, add
~/Library/Python/2.3/site-packages to sys.path, if it exists.

22 years agoThe identify() description didn't match the code. Fixed.
Jack Jansen [Wed, 16 Apr 2003 13:10:53 +0000 (13:10 +0000)]
The identify() description didn't match the code. Fixed.

22 years agoRefer people to the help pages on failure to load the database.
Jack Jansen [Wed, 16 Apr 2003 12:40:21 +0000 (12:40 +0000)]
Refer people to the help pages on failure to load the database.

22 years agoAdded a note on getting 404 Not Found errors when loading the database.
Jack Jansen [Wed, 16 Apr 2003 12:39:03 +0000 (12:39 +0000)]
Added a note on getting 404 Not Found errors when loading the database.

22 years agoAdded support for per-user installs.
Jack Jansen [Wed, 16 Apr 2003 12:17:56 +0000 (12:17 +0000)]
Added support for per-user installs.
Don't show psuedo-packages by default, added a button to show them.
Cleaned up interface a little (not enough, though).

22 years agoAllow switching of install dir after creation of preferences.
Jack Jansen [Wed, 16 Apr 2003 12:15:34 +0000 (12:15 +0000)]
Allow switching of install dir after creation of preferences.
Changed some message to be clearer when presented by Package Manager.

22 years agoAdd two dictionaries to htmlentitydefs: name2codepoint maps
Walter Dörwald [Wed, 16 Apr 2003 09:46:13 +0000 (09:46 +0000)]
Add two dictionaries to htmlentitydefs: name2codepoint maps
HTML entity names to Unicode codepoints (as integers).
codepoint2name is the reverse mapping. From SF patch #722017.

22 years agoFix three (!) object leaks in the code for assignment to __bases__.
Guido van Rossum [Tue, 15 Apr 2003 22:09:45 +0000 (22:09 +0000)]
Fix three (!) object leaks in the code for assignment to __bases__.

22 years agoAdapted GUI for per-user install. Doesn't do anything yet, though
Jack Jansen [Tue, 15 Apr 2003 21:59:42 +0000 (21:59 +0000)]
Adapted GUI for per-user install. Doesn't do anything yet, though

22 years agoTest SystemEvents too.
Jack Jansen [Tue, 15 Apr 2003 21:40:30 +0000 (21:40 +0000)]
Test SystemEvents too.

22 years agoUse object interface for global vars. Fixes #721171.
Martin v. Löwis [Tue, 15 Apr 2003 20:33:20 +0000 (20:33 +0000)]
Use object interface for global vars. Fixes #721171.
Also move complete processing of get/set/delvar calls to target thread.

22 years agoOuch, it's Carlo Verre, not Verre Carlo.
Guido van Rossum [Tue, 15 Apr 2003 20:05:10 +0000 (20:05 +0000)]
Ouch, it's Carlo Verre, not Verre Carlo.

22 years agoAdd a few errors tests for range().
Walter Dörwald [Tue, 15 Apr 2003 18:59:28 +0000 (18:59 +0000)]
Add a few errors tests for range().

22 years agoFix copy & paste error in comment.
Walter Dörwald [Tue, 15 Apr 2003 16:08:01 +0000 (16:08 +0000)]
Fix copy & paste error in comment.

22 years agoFix the test so that it works even when /etc/group has two entries
Walter Dörwald [Tue, 15 Apr 2003 15:59:36 +0000 (15:59 +0000)]
Fix the test so that it works even when /etc/group has two entries
for the same gid.

22 years agoFix the test so that it works even when /etc/passwd has two entries
Walter Dörwald [Tue, 15 Apr 2003 15:39:08 +0000 (15:39 +0000)]
Fix the test so that it works even when /etc/passwd has two entries
for the same uid.

22 years ago- pythunrun.c, Py_Finalize(): move the call to _Py_PrintReferences()
Guido van Rossum [Tue, 15 Apr 2003 15:12:39 +0000 (15:12 +0000)]
- pythunrun.c, Py_Finalize(): move the call to _Py_PrintReferences()
  even farther down, to just before the call to
  _PyObject_DebugMallocStats().  This required the following changes:

- pystate.c, PyThreadState_GetDict(): changed not to raise an
  exception or issue a fatal error when no current thread state is
  available, but simply return NULL without raising an exception
  (ever).

- object.c, Py_ReprEnter(): when PyThreadState_GetDict() returns NULL,
  don't raise an exception but return 0.  This means that when
  printing a container that's recursive, printing will go on and on
  and on.  But that shouldn't happen in the case we care about (see
  first bullet).

- Updated Misc/NEWS and Doc/api/init.tex to reflect changes to
  PyThreadState_GetDict() definition.

22 years ago- Use the tarfile module to unpack tarfiles.
Jack Jansen [Tue, 15 Apr 2003 14:43:05 +0000 (14:43 +0000)]
- Use the tarfile module to unpack tarfiles.
- Allow setting the destination install directory. If this is set then
  it is used for the modules, other items (header files, etc) are not
  installed, and warnings are printed if the package would have liked to.

Unfortunaltey binary installs seem broken due to a tarfile bug (#721871)
or my misunderstanding of how tarfile works.

22 years agotest_range(): The C code changed to raise TypeError in one of these
Tim Peters [Tue, 15 Apr 2003 14:40:03 +0000 (14:40 +0000)]
test_range():  The C code changed to raise TypeError in one of these
cases, but the test still expected ValueError.  Repaired that.

22 years agoMove the call to _Py_PrintReferences() a bit further down. This
Guido van Rossum [Tue, 15 Apr 2003 14:10:09 +0000 (14:10 +0000)]
Move the call to _Py_PrintReferences() a bit further down.  This
prevents it from showing stuff (like codec state) that is cleared when
the interpreter state is cleared.

22 years agoSome errors from range() should be TypeError, not ValueError.
Guido van Rossum [Tue, 15 Apr 2003 12:43:26 +0000 (12:43 +0000)]
Some errors from range() should be TypeError, not ValueError.

22 years agoPort test_pwd.py to PyUnit. Check that getpwall() and
Walter Dörwald [Tue, 15 Apr 2003 11:10:33 +0000 (11:10 +0000)]
Port test_pwd.py to PyUnit. Check that getpwall() and
getpwnam()/getpwuid() return consistent data.

Change test_grp to check that getgrall() and
getgrnam()/getgrgid() return consistent data.
Add error checks similar to test_pwd.py.

Port test___all__.py to PyUnit.

From SF patch #662807.

22 years agoExtend SF patch #707257: Improve code generation
Raymond Hettinger [Tue, 15 Apr 2003 10:35:07 +0000 (10:35 +0000)]
Extend SF patch #707257: Improve code generation
to cover the case for:  "x,y,z=1,2,3".  Gives a 30% speed-up.

Also, added FOR_ITER to the list of opcodes that can jump.