]> granicus.if.org Git - python/log
python
22 years agoDB.remove() needs to set the internal DB handle to NULL after being called.
Gregory P. Smith [Thu, 15 May 2003 00:13:18 +0000 (00:13 +0000)]
DB.remove() needs to set the internal DB handle to NULL after being called.
(sourceforge pybsddb bug #737970).

Also: don't allow other threads to run during calls that invalidate the
DB handle.

22 years agoRestore Python 1.5.2 compatibility.
Marc-André Lemburg [Wed, 14 May 2003 19:48:57 +0000 (19:48 +0000)]
Restore Python 1.5.2 compatibility.

22 years agoForward slash warnings now only occur for potentially valid LaTeX commands.
Raymond Hettinger [Wed, 14 May 2003 18:15:55 +0000 (18:15 +0000)]
Forward slash warnings now only occur for potentially valid LaTeX commands.
(Idea contributed by Anthony Baxter.)

22 years agoOn Windows the subprocess was not exiting during a restart.
Kurt B. Kaiser [Wed, 14 May 2003 18:15:40 +0000 (18:15 +0000)]
On Windows the subprocess was not exiting during a restart.

This bug, henceforth designated Freddy, was due to the mistaken
elimination of the KeyboardInterrupt exception at the previous revision.
PyShell's unix_terminate hammer was masking the problem on Linux.  On W2K
the subprocess MainThread was trying to print the exception after the
SockThread had ceased to service the socket.  The subprocess would then
detach and spin when the GUI created the new subprocess.

Modified Files: run.py

22 years agodefer re module imports to help improve interpreter startup
Skip Montanaro [Wed, 14 May 2003 17:33:53 +0000 (17:33 +0000)]
defer re module imports to help improve interpreter startup

22 years ago[Bug #471893] Replace security material with a warning against unpickling
Andrew M. Kuchling [Wed, 14 May 2003 16:51:46 +0000 (16:51 +0000)]
[Bug #471893] Replace security material with a warning against unpickling
untrusted data.

22 years agodocument Stats.dump_stats(), new for Python 2.3
Fred Drake [Wed, 14 May 2003 14:29:27 +0000 (14:29 +0000)]
document Stats.dump_stats(), new for Python 2.3

22 years ago- add a dump_stats() method similar to that of the profile.Profile class
Fred Drake [Wed, 14 May 2003 14:28:09 +0000 (14:28 +0000)]
- add a dump_stats() method similar to that of the profile.Profile class
- don't use "file" as the name of local variables

22 years agoWhen an external application we use exits normally, exit with the same
Fred Drake [Wed, 14 May 2003 04:16:14 +0000 (04:16 +0000)]
When an external application we use exits normally, exit with the same
exit code they returned.  All other types of exit from child processes
are normalized to a return code of 1.
Closes SF bug #732143.

22 years agoFleshed out tests for urllib requiring a network connection.
Brett Cannon [Wed, 14 May 2003 02:18:31 +0000 (02:18 +0000)]
Fleshed out tests for urllib requiring a network connection.

22 years agoCall time.tzset (if available) just before calculating possible timezones from time...
Brett Cannon [Tue, 13 May 2003 20:28:15 +0000 (20:28 +0000)]
Call time.tzset (if available) just before calculating possible timezones from time.tzname.

22 years agoFix use of 'file' as a variable name.
Andrew M. Kuchling [Tue, 13 May 2003 18:14:25 +0000 (18:14 +0000)]
Fix use of 'file' as a variable name.
    (I've tested the fixes, but please proofread anyway.)

22 years agoAdd optional 'onerror' argument to os.walk(), to control error
Guido van Rossum [Tue, 13 May 2003 18:01:19 +0000 (18:01 +0000)]
Add optional 'onerror' argument to os.walk(), to control error
handling.

22 years agoPrevent script from allowing '-r12'
Andrew M. Kuchling [Tue, 13 May 2003 17:56:07 +0000 (17:56 +0000)]
Prevent script from allowing '-r12'

22 years agoRename sum5.py to md5sum.py, because sum5.py is more interesting
Andrew M. Kuchling [Tue, 13 May 2003 17:39:26 +0000 (17:39 +0000)]
Rename sum5.py to md5sum.py, because sum5.py is more interesting
    as an example program

22 years agoDon't use 'file' as a variable name
Andrew M. Kuchling [Tue, 13 May 2003 17:38:05 +0000 (17:38 +0000)]
Don't use 'file' as a variable name
Modernize the code a bit
Add docstring

22 years ago[Bug #724767] Avoid use of 'file' as a variable name
Andrew M. Kuchling [Tue, 13 May 2003 17:09:01 +0000 (17:09 +0000)]
[Bug #724767] Avoid use of 'file' as a variable name

22 years ago1. The command-line arguments for subprocesses no longer need to be
Tony Lownds [Tue, 13 May 2003 15:28:21 +0000 (15:28 +0000)]
1. The command-line arguments for subprocesses no longer need to be
specialized for Mac OS X.

2. buildapp.py - a new file for building an application icon for IDLE on Mac
OS X. See INSTALL.txt

22 years ago[Bug #713722] Delete dangling references to unwritten sections
Andrew M. Kuchling [Tue, 13 May 2003 15:02:06 +0000 (15:02 +0000)]
[Bug #713722] Delete dangling references to unwritten sections

22 years ago[Bug #724767] crlf.py uses the variable name file, which it shouldn't anymore.
Andrew M. Kuchling [Tue, 13 May 2003 14:51:39 +0000 (14:51 +0000)]
[Bug #724767] crlf.py uses the variable name file, which it shouldn't anymore.

22 years ago[Bug #732124] Clarify .pos, .endpos by saying 'method' instead of 'function'
Andrew M. Kuchling [Tue, 13 May 2003 14:40:24 +0000 (14:40 +0000)]
[Bug #732124] Clarify .pos, .endpos by saying 'method' instead of 'function'
Also, put match() description before search(); search() refers to match()

22 years agoRemove more markup from headers
Andrew M. Kuchling [Tue, 13 May 2003 14:26:54 +0000 (14:26 +0000)]
Remove more markup from headers

22 years ago[Bug #729297] Remove markup in section headers
Andrew M. Kuchling [Tue, 13 May 2003 14:23:54 +0000 (14:23 +0000)]
[Bug #729297] Remove markup in section headers

22 years ago[Bug #729817] Document the rexec and Bastion modules as dead
Andrew M. Kuchling [Tue, 13 May 2003 14:16:18 +0000 (14:16 +0000)]
[Bug #729817] Document the rexec and Bastion modules as dead

22 years agoFix typo
Andrew M. Kuchling [Tue, 13 May 2003 14:13:58 +0000 (14:13 +0000)]
Fix typo

22 years agoFixed test_anydbm_creates to use proper paths for the created db.
Brett Cannon [Tue, 13 May 2003 06:42:59 +0000 (06:42 +0000)]
Fixed test_anydbm_creates to use proper paths for the created db.

Made some stylistic fixes.

22 years agoFix and add reference to urllib.urlencode for parse_qsl? functions.
Brett Cannon [Tue, 13 May 2003 02:50:36 +0000 (02:50 +0000)]
Fix and add reference to urllib.urlencode for parse_qsl? functions.

22 years ago* Added separate checks for matching braces.
Raymond Hettinger [Mon, 12 May 2003 23:33:28 +0000 (23:33 +0000)]
* Added separate checks for matching braces.
* Added more LaTex cmds from the docs.
* Blocked forward-slash warnings with delimiters-only option.
* Put help message on shorter line to fit an 80 char screen.

22 years agoJohn J. Lee contributed two urllib2 patches.
Brett Cannon [Mon, 12 May 2003 22:39:57 +0000 (22:39 +0000)]
John J. Lee contributed two urllib2 patches.

22 years agoFix broken API descriptions in comments.
Fred Drake [Mon, 12 May 2003 21:41:39 +0000 (21:41 +0000)]
Fix broken API descriptions in comments.

22 years agoWhitespace normalization.
Tim Peters [Mon, 12 May 2003 20:19:37 +0000 (20:19 +0000)]
Whitespace normalization.

22 years agoEffectively renamed tokenize_tests.py to have a txt extension instead.
Tim Peters [Mon, 12 May 2003 19:42:04 +0000 (19:42 +0000)]
Effectively renamed tokenize_tests.py to have a txt extension instead.
This file isn't meant to be executed, it's data input for test_tokenize.py.
The problem with the .py extension is that it uses "non-standard"
indentation, and it's good to test that, but reindent.py keeps wanting
to fix it.  But fixing the indentation causes the expected-output file to
change, since exact line and column numbers are part of the
tokenize.tokenize() output getting tested.

22 years agoClose the file after tokenizing it. Because the open file object was
Tim Peters [Mon, 12 May 2003 19:29:36 +0000 (19:29 +0000)]
Close the file after tokenizing it.  Because the open file object was
bound to a module global, the file object remained opened throughout
the test suite run.

22 years agocmp_type(): The grammar stopped allowing '=' as a comparison operator
Tim Peters [Mon, 12 May 2003 19:16:52 +0000 (19:16 +0000)]
cmp_type():  The grammar stopped allowing '=' as a comparison operator
about a decade ago.  Put the code still allowing for it in cmp_type()
out of its lonely misery.

22 years agoUpdated simple example. This should have been checked in the other
Jim Fulton [Mon, 12 May 2003 17:42:56 +0000 (17:42 +0000)]
Updated simple example. This should have been checked in the other
day, but I missfired in CVS.

22 years agoAdd a specific mention of the term "operator overloading" and add an
Fred Drake [Mon, 12 May 2003 13:50:11 +0000 (13:50 +0000)]
Add a specific mention of the term "operator overloading" and add an
index entry.  Suggested to python-docs.

22 years agoRemove assert that checked if a parameter was an instance of Request. Closes patch...
Brett Cannon [Mon, 12 May 2003 07:31:53 +0000 (07:31 +0000)]
Remove assert that checked if a parameter was an instance of Request.  Closes patch #639139.

22 years agoChange Request.add_header to call string.capitalize in order to normalize
Brett Cannon [Mon, 12 May 2003 07:29:42 +0000 (07:29 +0000)]
Change Request.add_header to call string.capitalize in order to normalize
headers and not have any dependency on case.  Closes patch #649742.

Also changed all instances of dict.items to dict.iteritems where appropriate.

22 years agoFix minor typos.
Raymond Hettinger [Mon, 12 May 2003 03:23:51 +0000 (03:23 +0000)]
Fix minor typos.

22 years agoUpdate for SF 71033 and changes to subprocess threading
Kurt B. Kaiser [Mon, 12 May 2003 03:04:59 +0000 (03:04 +0000)]
Update for SF 71033 and changes to subprocess threading

22 years ago1. RemoteDebugger now runs user code in subprocess MainThread
Kurt B. Kaiser [Mon, 12 May 2003 02:33:47 +0000 (02:33 +0000)]
1. RemoteDebugger now runs user code in subprocess MainThread
2. run.py: move exception printing to toplevel to allow access from main()
3. Clarification in PyShell.py: when the subprocess is restarted, the
   debugger GUI is reused with a fresh instance of the subprocess
   debugger.

M PyShell.py
M RemoteDebugger.py
M run.py

22 years agoPatch #735613: Pass install-purelib to idleinstall.
Martin v. Löwis [Sun, 11 May 2003 20:28:02 +0000 (20:28 +0000)]
Patch #735613: Pass install-purelib to idleinstall.

22 years agoPatch #718286: Support DESTDIR.
Martin v. Löwis [Sun, 11 May 2003 20:25:35 +0000 (20:25 +0000)]
Patch #718286: Support DESTDIR.

22 years agoBeefed up timezone support. UTC and GMT are now always recognized timezones
Brett Cannon [Sun, 11 May 2003 06:23:36 +0000 (06:23 +0000)]
Beefed up timezone support.  UTC and GMT are now always recognized timezones
with values of 0.  Also now check time.daylight to see if time.tzname[1]
should be used in timezone checking.

22 years agoUpdate patch #732284: Correct versions of OpenUNIX, UnixWare, add OpenServer.
Martin v. Löwis [Sun, 11 May 2003 05:53:41 +0000 (05:53 +0000)]
Update patch #732284: Correct versions of OpenUNIX, UnixWare, add OpenServer.

22 years ago- object is a class type, not a function
Fred Drake [Sat, 10 May 2003 19:46:39 +0000 (19:46 +0000)]
- object is a class type, not a function
- when marking a function, the trailing () should be included
  consistently

22 years agoMinor fixups.
Raymond Hettinger [Sat, 10 May 2003 09:04:37 +0000 (09:04 +0000)]
Minor fixups.

22 years agoFix unbalanced parethesis.
Raymond Hettinger [Sat, 10 May 2003 08:51:28 +0000 (08:51 +0000)]
Fix unbalanced parethesis.

22 years agoAdd table level validation and made minor fix-ups.
Raymond Hettinger [Sat, 10 May 2003 07:41:55 +0000 (07:41 +0000)]
Add table level validation and made minor fix-ups.

22 years agoMissing parenthesis found by texcheck.py
Raymond Hettinger [Sat, 10 May 2003 07:40:56 +0000 (07:40 +0000)]
Missing parenthesis found by texcheck.py

22 years agoPatch #734231: Update RiscOS support. In particular, correct
Martin v. Löwis [Sat, 10 May 2003 07:36:56 +0000 (07:36 +0000)]
Patch #734231: Update RiscOS support. In particular, correct
riscospath.extsep, and use os.extsep throughout.

22 years agoPatch #612627: Add encoding attribute to file objects, and determine
Martin v. Löwis [Sat, 10 May 2003 07:10:12 +0000 (07:10 +0000)]
Patch #612627: Add encoding attribute to file objects, and determine
the terminal encoding on Windows and Unix.

22 years agoAll two more modules with __all__.
Raymond Hettinger [Sat, 10 May 2003 05:37:13 +0000 (05:37 +0000)]
All two more modules with __all__.

22 years agoFix missing parenthesis.
Raymond Hettinger [Sat, 10 May 2003 04:21:08 +0000 (04:21 +0000)]
Fix missing parenthesis.

22 years agoFixed spacing and unbalanced brackets or parenthesis.
Raymond Hettinger [Sat, 10 May 2003 03:35:37 +0000 (03:35 +0000)]
Fixed spacing and unbalanced brackets or parenthesis.

22 years agoAdded a tool for making a rough check of LaTeX documents.
Raymond Hettinger [Sat, 10 May 2003 03:30:13 +0000 (03:30 +0000)]
Added a tool for making a rough check of LaTeX documents.
It checks for known commands, forward slashes, unbalanced or
mismatched delimters, and unbalanced or mismatched begin/end blocks.

22 years ago[ SF 710733 - Martin v. Loewis] Improving source encoding dialog
Kurt B. Kaiser [Sat, 10 May 2003 00:49:56 +0000 (00:49 +0000)]
[ SF 710733 - Martin v. Loewis] Improving source encoding dialog

M IOBinding.py
M config-main.def
M configDialog.py

22 years ago1. Update debugger to not trace RPC code even when calling Queue and
Kurt B. Kaiser [Sat, 10 May 2003 00:09:52 +0000 (00:09 +0000)]
1. Update debugger to not trace RPC code even when calling Queue and
   threading modules.  Can debug user code which imports these modules,
   though.
2. Re-enable debugger in PyShell.
3. Remove old code implementing previous approaches to this issue.

M Debugger.py
M PyShell.py
M rpc.py

22 years agoMake this format again.
Fred Drake [Fri, 9 May 2003 19:10:12 +0000 (19:10 +0000)]
Make this format again.

22 years agoadd a note about accessing user-defined functions with an import statement
Skip Montanaro [Fri, 9 May 2003 18:21:02 +0000 (18:21 +0000)]
add a note about accessing user-defined functions with an import statement
in the setup parameter

22 years agoMake this format again.
Fred Drake [Fri, 9 May 2003 18:18:46 +0000 (18:18 +0000)]
Make this format again.

22 years agoReplace line somehow deleted before last checkin.
Jeremy Hylton [Fri, 9 May 2003 16:55:28 +0000 (16:55 +0000)]
Replace line somehow deleted before last checkin.

22 years agohelp with MSVC 7 support in distutils
Jeremy Hylton [Fri, 9 May 2003 16:08:22 +0000 (16:08 +0000)]
help with MSVC 7 support in distutils

22 years agoVariant of SF patch 614770: MSVC 7 support
Jeremy Hylton [Fri, 9 May 2003 16:06:42 +0000 (16:06 +0000)]
Variant of SF patch 614770: MSVC 7 support

distutils now looks for the compiler version in sys.version, falling
back to MSVC 6 if the version isn't listed (Python 2.2 and lower).
Add helper routines for reading the registry.  Refactor many
module functions into methods of the compiler to avoid passing
lots of state as arguments.

22 years agoPydoc also needs its #! line massaged. Fixes #733199.
Jack Jansen [Fri, 9 May 2003 15:09:50 +0000 (15:09 +0000)]
Pydoc also needs its #! line massaged. Fixes #733199.

22 years agoPass DIRMODE and FILEMODE to Mac/OSX/Makefile on framework builds (and
Jack Jansen [Fri, 9 May 2003 15:08:39 +0000 (15:08 +0000)]
Pass DIRMODE and FILEMODE to Mac/OSX/Makefile on framework builds (and
honor them). Use this when building the MacOSX binary installer to
get group-writeable files.

Ths fix works for directories and executables, not for files just yet,
because of bug #735274.

22 years ago- remove bogus \end{description}
Fred Drake [Fri, 9 May 2003 15:04:56 +0000 (15:04 +0000)]
- remove bogus \end{description}
- fix two typos

22 years agoadded note about autoGIL
Just van Rossum [Fri, 9 May 2003 15:01:25 +0000 (15:01 +0000)]
added note about autoGIL

22 years agoDocumented the new autoGIL module.
Jack Jansen [Fri, 9 May 2003 14:45:04 +0000 (14:45 +0000)]
Documented the new autoGIL module.

22 years agoalso support cmd-. in the interactive window
Just van Rossum [Fri, 9 May 2003 11:47:23 +0000 (11:47 +0000)]
also support cmd-. in the interactive window

22 years agoSimple fix for
Michael W. Hudson [Fri, 9 May 2003 10:45:20 +0000 (10:45 +0000)]
Simple fix for

[ 733781 ] fcntl fails to build on old RH Linux

22 years agoSuppress wartning on macfs import.
Jack Jansen [Fri, 9 May 2003 10:15:18 +0000 (10:15 +0000)]
Suppress wartning on macfs import.

22 years agoOnly look for krb5.h if ssl.h was found.
Martin v. Löwis [Fri, 9 May 2003 09:05:19 +0000 (09:05 +0000)]
Only look for krb5.h if ssl.h was found.
Fixes bug reported in comment to #728322.

22 years agoDeclare encoding. Use unsigned long constants. Fixes #728277.
Martin v. Löwis [Fri, 9 May 2003 08:59:17 +0000 (08:59 +0000)]
Declare encoding. Use unsigned long constants. Fixes #728277.

22 years agoadd explicit support for cancelling a running script (CFM-based MacPython had this...
Just van Rossum [Fri, 9 May 2003 08:58:02 +0000 (08:58 +0000)]
add explicit support for cancelling a running script (CFM-based MacPython had this built-in)

22 years agomore dead code removal
Just van Rossum [Fri, 9 May 2003 08:33:58 +0000 (08:33 +0000)]
more dead code removal

22 years agodead code removal
Just van Rossum [Fri, 9 May 2003 08:27:33 +0000 (08:27 +0000)]
dead code removal

22 years agoPatch #734118: Add {get|set}busywaitinterval.
Martin v. Löwis [Fri, 9 May 2003 08:19:48 +0000 (08:19 +0000)]
Patch #734118: Add {get|set}busywaitinterval.

22 years agoYet another addition to [731644]: only use the lock if thread-support
Just van Rossum [Fri, 9 May 2003 08:12:00 +0000 (08:12 +0000)]
Yet another addition to [731644]: only use the lock if thread-support
is enabled.

22 years agoAddition to [731644]: also use the lock when using the getaddrinfo
Just van Rossum [Fri, 9 May 2003 08:03:44 +0000 (08:03 +0000)]
Addition to [731644]: also use the lock when using the getaddrinfo
emulation (ie. when HAVE_GETADDRINFO isn't defined).

22 years ago[ 731644] & [ 604210 ] Release the GIL around getaddrinfo(), yet protect
Just van Rossum [Fri, 9 May 2003 07:53:18 +0000 (07:53 +0000)]
[ 731644] & [ 604210 ] Release the GIL around getaddrinfo(), yet protect
access with lock on those platforms that getaddrinfo() isn't (known to be)
thread-safe. Thanks to MvL for mentoring this patch.

22 years ago1. Implement processing of user code in subprocess MainThread. Pass loop
Kurt B. Kaiser [Thu, 8 May 2003 20:26:55 +0000 (20:26 +0000)]
1. Implement processing of user code in subprocess MainThread.  Pass loop
   is now interruptable on Windows.
2. Tweak signal.signal() wait parameters as called by various methods
   to improve I/O response, especially on Windows.
3. Debugger is disabled at this check-in pending further development.

M NEWS.txt
M PyShell.py
M rpc.py
M run.py

22 years agoLeading "C:" no longer hardcoded in the default installation directory.
Tim Peters [Thu, 8 May 2003 18:13:59 +0000 (18:13 +0000)]
Leading "C:" no longer hardcoded in the default installation directory.
After removing that, two testers on machines where C: is not the system
drive reported that the installer suggested their system drive instead
of C:, and that's what they wanted it to do.

22 years agoFixed small typo Pointed out by Michael Hudson.
Jim Fulton [Thu, 8 May 2003 10:35:07 +0000 (10:35 +0000)]
Fixed small typo Pointed out by Michael Hudson.

22 years agoFixed a typo in an example dealloc routine that calls it's "self"
Jim Fulton [Thu, 8 May 2003 10:32:10 +0000 (10:32 +0000)]
Fixed a typo in an example dealloc routine that calls it's "self"
argument "obj" rather than "self".

22 years agoBump version number
Barry Warsaw [Thu, 8 May 2003 03:34:58 +0000 (03:34 +0000)]
Bump version number

22 years agoA couple of new parsedate test cases.
Barry Warsaw [Thu, 8 May 2003 03:34:01 +0000 (03:34 +0000)]
A couple of new parsedate test cases.

22 years agoparsedate_tz(): Be slightly more lenient when there's no day of the
Barry Warsaw [Thu, 8 May 2003 03:33:15 +0000 (03:33 +0000)]
parsedate_tz(): Be slightly more lenient when there's no day of the
week.  Patch given by Daniel Berlin in SF bug # 732761.  Also closes
SF bug # 727719.

Backport candidate.

22 years agoClarify the dedent() example a bit by indenting the input lines unevenly.
Greg Ward [Thu, 8 May 2003 02:12:35 +0000 (02:12 +0000)]
Clarify the dedent() example a bit by indenting the input lines unevenly.

22 years agoSF patch #598163 (Ville Vainio, vvainio@users.sourceforge.net):
Greg Ward [Thu, 8 May 2003 02:09:49 +0000 (02:09 +0000)]
SF patch #598163 (Ville Vainio, vvainio@users.sourceforge.net):
document dedent() function.

22 years agoMinor clarification of dedent().
Greg Ward [Thu, 8 May 2003 02:02:50 +0000 (02:02 +0000)]
Minor clarification of dedent().

22 years agoAdd DedentTestCase to test dedent() function.
Greg Ward [Thu, 8 May 2003 01:58:26 +0000 (01:58 +0000)]
Add DedentTestCase to test dedent() function.

22 years agoSF patch #598163 (Ville Vainio, vvainio@users.sourceforge.net):
Greg Ward [Thu, 8 May 2003 01:58:05 +0000 (01:58 +0000)]
SF patch #598163 (Ville Vainio, vvainio@users.sourceforge.net):
add dedent() function, to remove indentation from multiline strings
(eg. triple-quoted strings).  Differs from inspect.getdoc() by not
special-casing the first line (often a sensible approach for
non-docstring multiline strings).  This should make this function more
general (symmetric 'indent' also possible), and more fitting for the
textwrap module.

22 years agoUpdate to Optik 1.4.1+: adds __all__ (Optik SF bug #728563).
Greg Ward [Thu, 8 May 2003 01:38:52 +0000 (01:38 +0000)]
Update to Optik 1.4.1+: adds __all__ (Optik SF bug #728563).

22 years agoLibrary documentation for the 'test' package. Still needs to be checked by Fred.
Brett Cannon [Wed, 7 May 2003 22:02:17 +0000 (22:02 +0000)]
Library documentation for the 'test' package.  Still needs to be checked by Fred.

22 years agoRewrote the basic section of the chapter on defining new types.
Jim Fulton [Wed, 7 May 2003 19:48:13 +0000 (19:48 +0000)]
Rewrote the basic section of the chapter on defining new types.
Changed the example to show how to create types the new way:

- Use a class new method rather than a new function.

- Use self->ob_type->tp_free in deallocators

- Use attribute descriptors rather than set/getattr methods.

- Make the type usable as a base type.

I split the example into 3 parts:

1. The minimal new type

2. Adding attributes and methods.

3. Finer control over attributes.

It's much simpler to define builtin types. These updates hopefully
show this.

I also made minor wording changes in two other places.

I still need to update xxobject.c

22 years agoMore message updates and minor fixes.
Raymond Hettinger [Wed, 7 May 2003 17:49:36 +0000 (17:49 +0000)]
More message updates and minor fixes.

22 years agoUpdate traceback message
Raymond Hettinger [Wed, 7 May 2003 17:11:15 +0000 (17:11 +0000)]
Update traceback message

22 years agoAdd list.insert() change for negative positions
Andrew M. Kuchling [Wed, 7 May 2003 17:00:35 +0000 (17:00 +0000)]
Add list.insert() change for negative positions
Add ~ to MvL's last name
Fix use of all-caps for a name
Bump version number

22 years agoadd missing parens - verified w/ interpreter - sorry to dismiss your comment
Skip Montanaro [Wed, 7 May 2003 16:01:43 +0000 (16:01 +0000)]
add missing parens - verified w/ interpreter - sorry to dismiss your comment
Fred