Guido van Rossum
bbb931bebd
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...
2003-04-18 00:13:53 +00:00
Guido van Rossum
fce26e7f9f
Roll back changes to 'h' format code -- too much breaks. Other
...
changes stay.
2003-04-18 00:12:30 +00:00
Neal Norwitz
10cf21802d
Use True in a few more places.
...
Use isinstance(somestring, basestring) instead of type() as per PEP 8
2003-04-17 23:09:08 +00:00
Neal Norwitz
a6bdf2aef6
Oops, missed updating doc to correct version for split
2003-04-17 23:07:13 +00:00
Neal Norwitz
aa1ac546b6
Get test to work under regrtest when running whole suite
2003-04-17 23:04:22 +00:00
Fred Drake
30b6e8230b
Added documentation for the handle_pi() method, based on SF patch #662464 .
...
Closes SF bug #659188 , patch #662464 .
2003-04-17 22:36:52 +00:00
Neal Norwitz
816653fccb
SF Feature #: 719429, Get the SSL module to build on RedHat 9.
...
krb5.h is in it's own directory
2003-04-17 22:23:36 +00:00
Fred Drake
fafd56f439
Add test that demonstrates SGML-style handling of processing
...
instructions.
2003-04-17 22:19:26 +00:00
Fred Drake
243152384b
- use Tue/False for booleans
...
- some very minor cleanups
2003-04-17 22:01:17 +00:00
Jack Jansen
dbd6503e97
dded missing k and K format specifiers to Py_BuildValue and friends.
2003-04-17 22:01:10 +00:00
Fred Drake
aa3b5d2ec5
markup banalities
2003-04-17 21:49:04 +00:00
Gustavo Niemeyer
68d8cef89a
Implemented posix-mode parsing support in shlex.py, as dicussed in
...
mailing list, and in patch #722686 .
2003-04-17 21:31:33 +00:00
Jack Jansen
84c2b1b9aa
Oops, 'k' is the new format code for un unchecked 32 bit quantity,
...
not 'K'.
2003-04-17 20:44:21 +00:00
Jack Jansen
ecc6635ae4
Converted manually written code to the new K format specifier.
...
Untested, but at least it still compiles.
2003-04-17 20:40:07 +00:00
Tim Peters
269b2a6797
_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().
2003-04-17 19:52:29 +00:00
Thomas Heller
a4ea603b05
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.
2003-04-17 18:55:45 +00:00
Guido van Rossum
e13ddc9ec8
- New C API PyGC_Collect(), same as calling gc.collect().
...
- Call this in Py_Finalize().
- Expand the Misc/NEWS text on PY_LONG_LONG.
2003-04-17 17:29:22 +00:00
Guido van Rossum
cf8d285ba3
Changes in support of PEP 269.
2003-04-17 16:53:26 +00:00
Guido van Rossum
66ebd91244
A missing piece of the PEP 269 patch: add PyParser_SetError(), a
...
wrapper around err_input().
2003-04-17 16:02:26 +00:00
Tim Peters
d08e3824d4
Trimmed trailing whitespace.
2003-04-17 15:24:21 +00:00
Tim Peters
9cf25ce3a0
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.
2003-04-17 15:21:01 +00:00
Guido van Rossum
d3ab37f1df
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.
2003-04-17 14:55:42 +00:00
Neal Norwitz
6e5be22d97
Remove extra space in docstring
2003-04-17 13:13:55 +00:00
Guido van Rossum
c1f6e8cbc1
- 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.
2003-04-16 21:13:23 +00:00
Martin v. Löwis
6f29ff319b
Support UCS-4 Tcl for UCS-4 Python builds. Fixes #719880 .
2003-04-16 20:34:55 +00:00
Guido van Rossum
2cd0a65c70
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).
2003-04-16 20:10:03 +00:00
Guido van Rossum
a4541a30fc
- super() no longer ignores data descriptors, except __class__. See
...
the thread started at
http://mail.python.org/pipermail/python-dev/2003-April/034338.html
2003-04-16 20:02:22 +00:00
Guido van Rossum
6cc5bb685d
Sigh. The crucial change was still missing from the previous
...
checkin. :-(
2003-04-16 20:01:36 +00:00
Martin v. Löwis
bfe175c190
For StringVar results to strings. Document that boolean things are of
...
type bool. Requested in #721171 .
2003-04-16 19:42:51 +00:00
Guido van Rossum
76ba09fd81
- super() no longer ignores data descriptors, except __class__. See
...
the thread started at
http://mail.python.org/pipermail/python-dev/2003-April/034338.html
2003-04-16 19:40:58 +00:00
Raymond Hettinger
954bcf5fe0
Minor source formatting fixes.
2003-04-16 18:40:04 +00:00
Barry Warsaw
e04ee70a68
Mostly reformatting, splitting long lines, whitespace normalization
...
etc.
Fixed one typo in the __main__ section.
2003-04-16 18:08:23 +00:00
Raymond Hettinger
2ed6dff796
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.
2003-04-16 17:28:12 +00:00
Neal Norwitz
1475c49211
Add version info for name2codepoint and codepoint2name
2003-04-16 13:21:06 +00:00
Jack Jansen
be5d707926
When on MacOSX, and only in a framework build, add
...
~/Library/Python/2.3/site-packages to sys.path, if it exists.
2003-04-16 13:12:21 +00:00
Jack Jansen
36d49a907f
The identify() description didn't match the code. Fixed.
2003-04-16 13:10:53 +00:00
Jack Jansen
36b5198381
Refer people to the help pages on failure to load the database.
2003-04-16 12:40:21 +00:00
Jack Jansen
64509b33a7
Added a note on getting 404 Not Found errors when loading the database.
2003-04-16 12:39:03 +00:00
Jack Jansen
a950d7b24f
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).
2003-04-16 12:17:56 +00:00
Jack Jansen
20fa6754d1
Allow switching of install dir after creation of preferences.
...
Changed some message to be clearer when presented by Package Manager.
2003-04-16 12:15:34 +00:00
Walter Dörwald
5688b7ac3e
Add two dictionaries to htmlentitydefs: name2codepoint maps
...
HTML entity names to Unicode codepoints (as integers).
codepoint2name is the reverse mapping. From SF patch #722017 .
2003-04-16 09:46:13 +00:00
Guido van Rossum
19a02ba69d
Fix three (!) object leaks in the code for assignment to __bases__.
2003-04-15 22:09:45 +00:00
Jack Jansen
4323090d95
Adapted GUI for per-user install. Doesn't do anything yet, though
2003-04-15 21:59:42 +00:00
Jack Jansen
a95eab5920
Test SystemEvents too.
2003-04-15 21:40:30 +00:00
Martin v. Löwis
ee24e9cad0
Use object interface for global vars. Fixes #721171 .
...
Also move complete processing of get/set/delvar calls to target thread.
2003-04-15 20:33:20 +00:00
Guido van Rossum
52b2705e9c
Ouch, it's Carlo Verre, not Verre Carlo.
2003-04-15 20:05:10 +00:00
Walter Dörwald
357981e99d
Add a few errors tests for range().
2003-04-15 18:59:28 +00:00
Walter Dörwald
64976e74af
Fix copy & paste error in comment.
2003-04-15 16:08:01 +00:00
Walter Dörwald
43bc1f18db
Fix the test so that it works even when /etc/group has two entries
...
for the same gid.
2003-04-15 15:59:36 +00:00
Walter Dörwald
66e1e508b9
Fix the test so that it works even when /etc/passwd has two entries
...
for the same uid.
2003-04-15 15:39:08 +00:00