]> granicus.if.org Git - python/log
python
24 years agocontinue now allowed in try block
Jeremy Hylton [Thu, 1 Feb 2001 22:53:15 +0000 (22:53 +0000)]
continue now allowed in try block

24 years agoAllow 'continue' inside 'try' clause
Jeremy Hylton [Thu, 1 Feb 2001 22:48:12 +0000 (22:48 +0000)]
Allow 'continue' inside 'try' clause
SF patch 102989 by Thomas Wouters

24 years agoSpecial case around some of the nastier annoyances with the type-in
Barry Warsaw [Thu, 1 Feb 2001 21:31:58 +0000 (21:31 +0000)]
Special case around some of the nastier annoyances with the type-in
fields.  You can now backspace out the 0 in 0x0, and you can clear the
field when in decimal mode.  There are still some oddities about
typing into these fields, but it should be much less annoying.  The
real solution is to ditch the update-while-typing "feature".

24 years agoMove the "from Tkinter import *" out of the method and into the module
Barry Warsaw [Thu, 1 Feb 2001 20:52:08 +0000 (20:52 +0000)]
Move the "from Tkinter import *" out of the method and into the module
scope (still inside the __name__=='__main__' guard).  Necessitated by
recent addition of nested scopes.

24 years agoAdd item about nested scopes.
Jeremy Hylton [Thu, 1 Feb 2001 20:38:45 +0000 (20:38 +0000)]
Add item about nested scopes.

Revise item about restriction on 'from ... import *'.  It was in the
wrong section and the section restriction was removed.

24 years agoUndo recent change that banned using import to bind a global, as per
Jeremy Hylton [Thu, 1 Feb 2001 20:20:45 +0000 (20:20 +0000)]
Undo recent change that banned using import to bind a global, as per
discussion on python-dev.  'from mod import *' is still banned except
at the module level.

Fix value for special NOOPT entry in symtable.  Initialze to 0 instead
of None, so that later uses of PyInt_AS_LONG() are valid.  (Bug
reported by Donn Cave.)

replace local REPR macros with PyObject_REPR in object.h

24 years agoAdded comments about the weak reference support.
Fred Drake [Thu, 1 Feb 2001 20:00:40 +0000 (20:00 +0000)]
Added comments about the weak reference support.

24 years agoadd quicktest target -- runs test suite except for the eight slowest tests
Jeremy Hylton [Thu, 1 Feb 2001 19:51:28 +0000 (19:51 +0000)]
add quicktest target -- runs test suite except for the eight slowest tests

24 years agomove extra arguments to the back of the new.code() arglist
Jeremy Hylton [Thu, 1 Feb 2001 19:50:29 +0000 (19:50 +0000)]
move extra arguments to the back of the new.code() arglist

24 years agoAdded note about need for -traditional-cpp on the MacOS X Public Beta.
Fred Drake [Thu, 1 Feb 2001 19:41:13 +0000 (19:41 +0000)]
Added note about need for -traditional-cpp on the MacOS X Public Beta.
This closes SF bug #129827.

24 years agoRevise the driver code to be more informative in the final report.
Fred Drake [Thu, 1 Feb 2001 18:11:29 +0000 (18:11 +0000)]
Revise the driver code to be more informative in the final report.

24 years agoFix some markup breakage that prevented formatting; re-wrapped a couple of
Fred Drake [Thu, 1 Feb 2001 15:53:24 +0000 (15:53 +0000)]
Fix some markup breakage that prevented formatting; re-wrapped a couple of
wide paragraphs.

24 years agoRemove spurious "\end{description}" that caused formatting to fail.
Fred Drake [Thu, 1 Feb 2001 15:37:56 +0000 (15:37 +0000)]
Remove spurious "\end{description}" that caused formatting to fail.

24 years agoRepaired a docstring.
Tim Peters [Thu, 1 Feb 2001 10:06:53 +0000 (10:06 +0000)]
Repaired a docstring.

24 years agoPEP 205, Weak References -- initial checkin.
Fred Drake [Thu, 1 Feb 2001 05:27:45 +0000 (05:27 +0000)]
PEP 205, Weak References -- initial checkin.

24 years agoAdd entries for the weakref module to the build control.
Fred Drake [Thu, 1 Feb 2001 05:26:54 +0000 (05:26 +0000)]
Add entries for the weakref module to the build control.

24 years agoAdded entry for weakref documentation.
Fred Drake [Thu, 1 Feb 2001 05:21:46 +0000 (05:21 +0000)]
Added entry for weakref documentation.

Moved commented-out entries for obsolete module to an appendix, still
commented out.

24 years agoAdd entry for weakref documentation.
Fred Drake [Thu, 1 Feb 2001 05:20:52 +0000 (05:20 +0000)]
Add entry for weakref documentation.

24 years agoDocumentation for the weakref module.
Fred Drake [Thu, 1 Feb 2001 05:20:20 +0000 (05:20 +0000)]
Documentation for the weakref module.

24 years agoWindows build: update for 2.1a2, + get ucnhash out of the installer.
Tim Peters [Thu, 1 Feb 2001 05:10:02 +0000 (05:10 +0000)]
Windows build:  update for 2.1a2, + get ucnhash out of the installer.

24 years agoChange random.seed() so that it can get at the full range of possible
Tim Peters [Thu, 1 Feb 2001 04:59:18 +0000 (04:59 +0000)]
Change random.seed() so that it can get at the full range of possible
internal states.  Put the old .seed() (which could only get at about
the square root of the # of possibilities) under the new name .whseed(),
for bit-level compatibility with older versions.  This occurred to me
while reviewing effbot's book (he found himself stumbling over .seed()
more than once there ...).

24 years agoupdate section 4.1 to describe nested scopes
Jeremy Hylton [Thu, 1 Feb 2001 03:50:59 +0000 (03:50 +0000)]
update section 4.1 to describe nested scopes

24 years agoLong ago, Guido suggested that I add this to the standard library.
Barry Warsaw [Wed, 31 Jan 2001 22:51:35 +0000 (22:51 +0000)]
Long ago, Guido suggested that I add this to the standard library.
I'm now checking it in.  I need to write some documentation for it,
but I don't have time right now.  Still, I wanted to get this into
2.1a2.

# Overview:
#
# This file implements the minimal SMTP protocol as defined in RFC 821.  It
# has a hierarchy of classes which implement the backend functionality for the
# smtpd.  A number of classes are provided:
#
#   SMTPServer - the base class for the backend.  Raises an UnimplementedError
#   if you try to use it.
#
#   DebuggingServer - simply prints each message it receives on stdout.
#
#   PureProxy - Proxies all messages to a real smtpd which does final
#   delivery.  One known problem with this class is that it doesn't handle
#   SMTP errors from the backend server at all.  This should be fixed
#   (contributions are welcome!).
#
#   MailmanProxy - An experimental hack to work with GNU Mailman
#   <www.list.org>.  Using this server as your real incoming smtpd, your
#   mailhost will automatically recognize and accept mail destined to Mailman
#   lists when those lists are created.  Every message not destined for a list
#   gets forwarded to a real backend smtpd, as with PureProxy.  Again, errors
#   are not handled correctly yet.

24 years agoSimple embedded program that does a module import. Useful for
Barry Warsaw [Wed, 31 Jan 2001 22:27:51 +0000 (22:27 +0000)]
Simple embedded program that does a module import.  Useful for
debugging leaks and other memory problems.

24 years agoIgnore the programs created in this directory.
Barry Warsaw [Wed, 31 Jan 2001 22:27:00 +0000 (22:27 +0000)]
Ignore the programs created in this directory.

24 years agoAdd targets to make building `loop' and `import' easier. Useful for
Barry Warsaw [Wed, 31 Jan 2001 22:18:49 +0000 (22:18 +0000)]
Add targets to make building `loop' and `import' easier.  Useful for
debugging memory leaks and the like.

24 years agoDocument the two changes to the mailbox.py module:
Barry Warsaw [Wed, 31 Jan 2001 22:14:01 +0000 (22:14 +0000)]
Document the two changes to the mailbox.py module:

- All constructors grow an optional argument `factory' which is a
  callable used when new message instances are created by the next()
  methods.  Defaults to the rfc822.Message class.

- A new subclass of UnixMailbox is added, called PortableUnixMailbox.
  It's identical to UnixMailbox, but uses a more portable test for
  From_ delimiter lines.  With PortableUnixMailbox, any line that
  starts with "From " is considered a delimiter (this should really
  check for two newlines before the F, but it doesn't.

24 years agoTwo changes:
Barry Warsaw [Wed, 31 Jan 2001 22:13:15 +0000 (22:13 +0000)]
Two changes:

- All constructors grow an optional argument `factory' which is a
  callable used when new message instances are created by the next()
  methods.  Defaults to the rfc822.Message class.

- A new subclass of UnixMailbox is added, called PortableUnixMailbox.
  It's identical to UnixMailbox, but uses a more portable test for
  From_ delimiter lines.  With PortableUnixMailbox, any line that
  starts with "From " is considered a delimiter (this should really
  check for two newlines before the F, but it doesn't.

24 years agoSome rewriting of the "Internationalizing your programs and modules"
Barry Warsaw [Wed, 31 Jan 2001 21:21:45 +0000 (21:21 +0000)]
Some rewriting of the "Internationalizing your programs and modules"
subsection to include a discussion of the msgfmt.py program.

24 years agomove "from stat import *" to module level
Jeremy Hylton [Wed, 31 Jan 2001 20:07:17 +0000 (20:07 +0000)]
move "from stat import *" to module level

24 years agoDocs for new Windows zlib build procedure.
Tim Peters [Wed, 31 Jan 2001 19:39:44 +0000 (19:39 +0000)]
Docs for new Windows zlib build procedure.

24 years agoFix [ Bug #129293 ] zlib library used for binary win32 distribution can crash
Mark Hammond [Wed, 31 Jan 2001 10:28:03 +0000 (10:28 +0000)]
Fix [ Bug #129293 ] zlib library used for binary win32 distribution can crash

This involves changing the zlib build process to build zlib itself from sources, then use that library.  Also updated are the comments to reflect the new official home of zlib, and add Windows specific notes regarding the build process.

24 years agoPartial fix to [ Bug #128685 ] popen on Win9x isnt smart enough about finding w9xpope...
Mark Hammond [Wed, 31 Jan 2001 07:30:29 +0000 (07:30 +0000)]
Partial fix to [ Bug #128685 ] popen on Win9x isnt smart enough about finding w9xpopen.exe.

"Partial" as the code uses sys.prefix in an attempt to locate 'w9xpopen.exe', but sys.prefix is not set if Python can't find it itself.  So this _still_ fails in Pythonwin, but I am committing the patch for 2 reasons:
* Embedded apps that set sys.prefix or use PYTHONHOME will work
* The exception raised on failure to find the executable is far more obvious

24 years agoFix Bug #125891 - os.popen2,3 and 4 leaked file objects on Windows.
Mark Hammond [Wed, 31 Jan 2001 05:38:47 +0000 (05:38 +0000)]
Fix Bug #125891 - os.popen2,3 and 4 leaked file objects on Windows.

24 years agoSF bug #130532: newest CVS won't build on AIX.
Tim Peters [Wed, 31 Jan 2001 01:16:47 +0000 (01:16 +0000)]
SF bug #130532:  newest CVS won't build on AIX.
Removed illegal redefinition of REPR macro; kept the one with the
argument name that isn't too easy to confuse with zero <wink>.

24 years agoMake HTML the default output format, since that is what people actually
Fred Drake [Tue, 30 Jan 2001 22:30:01 +0000 (22:30 +0000)]
Make HTML the default output format, since that is what people actually
want most of the time.

24 years agoChecking in patch #103478 -- makes popen2 and fork1 tested on BeOS.
Moshe Zadka [Tue, 30 Jan 2001 18:35:32 +0000 (18:35 +0000)]
Checking in patch #103478 -- makes popen2 and fork1 tested on BeOS.
Tested for not breaking builds on Linux.

24 years agoNew internal function BMObj_NewCopied() which copies the BitMap. Used to get the...
Jack Jansen [Tue, 30 Jan 2001 09:57:13 +0000 (09:57 +0000)]
New internal function BMObj_NewCopied() which copies the BitMap. Used to get the screenBits bitmap.

24 years agoadd note about two kinds of illegal imports that are now checked
Jeremy Hylton [Tue, 30 Jan 2001 01:27:28 +0000 (01:27 +0000)]
add note about two kinds of illegal imports that are now checked

24 years agoFix test for free ref to global. This test should have caught a
Jeremy Hylton [Tue, 30 Jan 2001 01:26:53 +0000 (01:26 +0000)]
Fix test for free ref to global.  This test should have caught a
recently fixed bug, but it checked for the wrong answer.

24 years agoadd test for illegal imports
Jeremy Hylton [Tue, 30 Jan 2001 01:25:56 +0000 (01:25 +0000)]
add test for illegal imports

24 years agoRemove note about the compiler not checking for two kinds of illegal
Jeremy Hylton [Tue, 30 Jan 2001 01:25:15 +0000 (01:25 +0000)]
Remove note about the compiler not checking for two kinds of illegal
imports.  It checks for them now.

24 years agoEnforce two illegal import statements that were outlawed in the
Jeremy Hylton [Tue, 30 Jan 2001 01:24:43 +0000 (01:24 +0000)]
Enforce two illegal import statements that were outlawed in the
reference manual but not checked: Names bound by import statemants may
not occur in global statements in the same scope. The from ... import *
form may only occur in a module scope.

I guess these changes could break code, but the reference manual
warned about them.

Several other small changes

If a variable is declared global in the nearest enclosing scope of a
free variable, then treat it is a global in the nested scope too.

Get rid of com_mangle and symtable_mangle functions and call mangle
directly.

If errors occur during symtable table creation, return -1 from
symtable_build().

Do not increment st_errors in assignment to lambda, because exception
is not set.

Add extra argument to symtable_assign(); the argument, flag, is ORed
with DEF_LOCAL for each symtable_add_def() call.

24 years agoRename dubiously named local variable 'cmpfunc' -- this is also a
Guido van Rossum [Mon, 29 Jan 2001 23:50:25 +0000 (23:50 +0000)]
Rename dubiously named local variable 'cmpfunc' -- this is also a
typedef, and at least one compiler choked on this.

(SF patch #103457, by bquinlan)

24 years agoRemove f_closure slot of frameobject and use f_localsplus instead.
Jeremy Hylton [Mon, 29 Jan 2001 22:51:52 +0000 (22:51 +0000)]
Remove f_closure slot of frameobject and use f_localsplus instead.
This change eliminates an extra malloc/free when a frame with free
variables is created.  Any cell vars or free vars are stored in
f_localsplus after the locals and before the stack.

eval_code2() fills in the appropriate values after handling
initialization of locals.

To track the size the frame has an f_size member that tracks the total
size of f_localsplus. It used to be implicitly f_nlocals + f_stacksize.

24 years agoCleanup logic a little. Check args first, then try to create the
Jeremy Hylton [Mon, 29 Jan 2001 22:46:35 +0000 (22:46 +0000)]
Cleanup logic a little.  Check args first, then try to create the
object.  This avoids creation + decref if bogus arguments are passed.

24 years agoplug leak detected by Barry
Jeremy Hylton [Mon, 29 Jan 2001 22:42:28 +0000 (22:42 +0000)]
plug leak detected by Barry

24 years agofix indentation glitch
Jeremy Hylton [Mon, 29 Jan 2001 22:38:32 +0000 (22:38 +0000)]
fix indentation glitch

24 years agoPatch #103485 from Donn Cave: patches to make the module compile on AIX and
Andrew M. Kuchling [Mon, 29 Jan 2001 20:47:59 +0000 (20:47 +0000)]
Patch #103485 from Donn Cave: patches to make the module compile on AIX and
    NetBSD

24 years agoRename 'lines' variable to 'nlines' to avoid conflict with a macro defined
Andrew M. Kuchling [Mon, 29 Jan 2001 20:31:29 +0000 (20:31 +0000)]
Rename 'lines' variable to 'nlines' to avoid conflict with a macro defined
    in term.h

24 years agoRestore the automatic use of the oldsharedmods and oldsharedinstall targets
Andrew M. Kuchling [Mon, 29 Jan 2001 20:18:59 +0000 (20:18 +0000)]
Restore the automatic use of the oldsharedmods and oldsharedinstall targets

24 years agoAdd back most of the old contents of Setup.dist, with all the modules
Andrew M. Kuchling [Mon, 29 Jan 2001 20:13:11 +0000 (20:13 +0000)]
Add back most of the old contents of Setup.dist, with all the modules
    commented out.

24 years agoAdd note about non-recursive Makefiles
Andrew M. Kuchling [Mon, 29 Jan 2001 17:36:53 +0000 (17:36 +0000)]
Add note about non-recursive Makefiles
Get Fred's name right
Add some XXX items that need to be written

24 years agoUse FSpCreateResFile() in stead of CreateResFile().
Jack Jansen [Mon, 29 Jan 2001 15:32:00 +0000 (15:32 +0000)]
Use FSpCreateResFile() in stead of CreateResFile().
Don't call OpenDeskAcc() and AppendResMenu() on Carbon.

24 years agoGot ZeroScrap() and PutScrap() to work under Carbon.
Jack Jansen [Mon, 29 Jan 2001 15:20:06 +0000 (15:20 +0000)]
Got ZeroScrap() and PutScrap() to work under Carbon.

24 years agoUse FSpCreateResFile() in stead of CreateResFile().
Jack Jansen [Mon, 29 Jan 2001 15:19:17 +0000 (15:19 +0000)]
Use FSpCreateResFile() in stead of CreateResFile().

24 years agoUse CountMenuItems() in stead of CountMItems().
Jack Jansen [Mon, 29 Jan 2001 15:18:46 +0000 (15:18 +0000)]
Use CountMenuItems() in stead of CountMItems().

24 years agoMake balloon code dependent on existence of Help module
Jack Jansen [Mon, 29 Jan 2001 14:59:33 +0000 (14:59 +0000)]
Make balloon code dependent on existence of Help module

24 years agoRemoved device from the list of Qd incompatibilities. It should be there, but causes...
Jack Jansen [Mon, 29 Jan 2001 14:27:32 +0000 (14:27 +0000)]
Removed device from the list of Qd incompatibilities. It should be there, but causes too many false positives.

24 years agoAccessor functions for regions and such expect an existing region as parameter. Fixed...
Jack Jansen [Mon, 29 Jan 2001 14:07:01 +0000 (14:07 +0000)]
Accessor functions for regions and such expect an existing region as parameter. Fixed for grafport attribute access.
Got GetPortBitMapForCopyBits() and port.portBits to work.

24 years agoPorted the icglue module to carbon.
Jack Jansen [Mon, 29 Jan 2001 13:33:16 +0000 (13:33 +0000)]
Ported the icglue module to carbon.

24 years agoAdded generators for EnableMenuItem and CheckMenuItem (which have Mac in front of...
Jack Jansen [Mon, 29 Jan 2001 13:32:10 +0000 (13:32 +0000)]
Added generators for EnableMenuItem and CheckMenuItem (which have Mac in front of their name in the include files).

24 years agoRe-enabled Scrap (even though it's mostly empty right now).
Jack Jansen [Mon, 29 Jan 2001 13:31:10 +0000 (13:31 +0000)]
Re-enabled Scrap (even though it's mostly empty right now).

24 years agoReplace {Enable,Disable,Check}Item with their carbon-compatible equivalents {Enable...
Jack Jansen [Mon, 29 Jan 2001 13:29:47 +0000 (13:29 +0000)]
Replace {Enable,Disable,Check}Item with their carbon-compatible equivalents {Enable,Disable,Check}MenuItem.

24 years agoPorted the icglue module to carbon.
Jack Jansen [Mon, 29 Jan 2001 13:27:46 +0000 (13:27 +0000)]
Ported the icglue module to carbon.

24 years agoAdded Help, Scrap and icglue missing methods.
Jack Jansen [Mon, 29 Jan 2001 13:22:29 +0000 (13:22 +0000)]
Added Help, Scrap and icglue missing methods.

24 years agoFixed posixpath.normpath() to respect two leading slashes, but
Marc-André Lemburg [Mon, 29 Jan 2001 11:29:44 +0000 (11:29 +0000)]
Fixed posixpath.normpath() to respect two leading slashes, but
turn three or more into a single slash. (This is in sync with POSIX
susv2 according to Fredrik.)

24 years agoFixed .capitalize() method of Unicode objects to work like the
Marc-André Lemburg [Mon, 29 Jan 2001 11:14:16 +0000 (11:14 +0000)]
Fixed .capitalize() method of Unicode objects to work like the
corresponding string method. Added tests for this too.

Patch written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.

24 years agoDon't use $< in normal make rules: it's not portable. Using $< in
Sjoerd Mullender [Mon, 29 Jan 2001 09:39:14 +0000 (09:39 +0000)]
Don't use $< in normal make rules: it's not portable.  Using $< in
inference rules (e.g. .c.o) is fine.

24 years agoAdded news of function comparison and hashing by identity
Moshe Zadka [Mon, 29 Jan 2001 06:41:00 +0000 (06:41 +0000)]
Added news of function comparison and hashing by identity

24 years agoMore on noutrefresh() and scroll().
Eric S. Raymond [Mon, 29 Jan 2001 06:39:33 +0000 (06:39 +0000)]
More on noutrefresh() and scroll().

24 years agoThe one thing I love more then writing code is deleting code.
Moshe Zadka [Mon, 29 Jan 2001 06:21:17 +0000 (06:21 +0000)]
The one thing I love more then writing code is deleting code.
* Removed func_hash and func_compare, so they can be treated as immutable
  content-less objects (address hash and comparison)
* Added tests to that affect to test_funcattrs (also testing func_code
  is writable)
* Reverse meaning of tests in test_opcodes which checked identical code
  gets identical functions

24 years agoAdded cellobject.c
Jack Jansen [Sun, 28 Jan 2001 22:45:46 +0000 (22:45 +0000)]
Added cellobject.c

24 years agoupdated to document use of sequences of two-element tuples as inputs
Skip Montanaro [Sun, 28 Jan 2001 21:18:16 +0000 (21:18 +0000)]
updated to document use of sequences of two-element tuples as inputs

24 years agoadded several more urlencode test cases - part of patch 103391
Skip Montanaro [Sun, 28 Jan 2001 21:12:22 +0000 (21:12 +0000)]
added several more urlencode test cases - part of patch 103391

24 years agoallow first param urlencode to be a sequence of two-element tuples - in this
Skip Montanaro [Sun, 28 Jan 2001 21:11:12 +0000 (21:11 +0000)]
allow first param urlencode to be a sequence of two-element tuples - in this
case, the order of parameters in the output matches the order of the inputs.

24 years agoBug #130117: add a prototype required to compile cleanly on IRIX
Andrew M. Kuchling [Sun, 28 Jan 2001 18:10:23 +0000 (18:10 +0000)]
Bug #130117: add a prototype required to compile cleanly on IRIX
   (contributed by Paul Jackson)

24 years agoAdjust documentation for new.instance() to reflect that the second
Fred Drake [Sun, 28 Jan 2001 17:23:05 +0000 (17:23 +0000)]
Adjust documentation for new.instance() to reflect that the second
parameter may be omitted or None.

24 years agoRemove single "." components from pathnames, and return os.curdir if
Jack Jansen [Sun, 28 Jan 2001 12:23:32 +0000 (12:23 +0000)]
Remove single "." components from pathnames, and return os.curdir if
the resulting path is empty.

24 years agoData pathnames were not converted from URL-style to local style. Fixed.
Jack Jansen [Sun, 28 Jan 2001 12:22:14 +0000 (12:22 +0000)]
Data pathnames were not converted from URL-style to local style. Fixed.

24 years agoAllow installation of IDLE via distutils (patch #103138).
Martin v. Löwis [Sun, 28 Jan 2001 11:01:50 +0000 (11:01 +0000)]
Allow installation of IDLE via distutils (patch #103138).

24 years agoDocument the PyInstance_*() functions and data.
Fred Drake [Sun, 28 Jan 2001 06:39:35 +0000 (06:39 +0000)]
Document the PyInstance_*() functions and data.

24 years agoSF bug #130306: statcache.py full of thread problems.
Tim Peters [Sun, 28 Jan 2001 05:07:00 +0000 (05:07 +0000)]
SF bug #130306:  statcache.py full of thread problems.
Fixed the thread races.  Function forget_dir was also utterly Unix-specific.

24 years agoAdded tests for new signature of new.instance().
Fred Drake [Sun, 28 Jan 2001 03:57:39 +0000 (03:57 +0000)]
Added tests for new signature of new.instance().

Use test_support.verify() where applicable.

24 years agonew_instance(): Use PyInstance_NewRaw() instead of knowing too much
Fred Drake [Sun, 28 Jan 2001 03:55:09 +0000 (03:55 +0000)]
new_instance():  Use PyInstance_NewRaw() instead of knowing too much
    about the internal initialization of instance objects.  Make the
    dict parameter optional, and allow None as equivalent to omission.

24 years agoRe-factored PyInstance_New() into PyInstance_New() and PyInstance_NewRaw().
Fred Drake [Sun, 28 Jan 2001 03:53:08 +0000 (03:53 +0000)]
Re-factored PyInstance_New() into PyInstance_New() and PyInstance_NewRaw().

24 years agoAdded prototype for PyInstance_NewRaw().
Fred Drake [Sun, 28 Jan 2001 03:52:08 +0000 (03:52 +0000)]
Added prototype for PyInstance_NewRaw().

24 years agoInstructive example for strftime(); how to generate RFC822 dates.
Eric S. Raymond [Sun, 28 Jan 2001 00:56:54 +0000 (00:56 +0000)]
Instructive example for strftime(); how to generate RFC822 dates.

24 years agoIt's unclear whether PyMarshal_XXX() are part of the public or private API.
Tim Peters [Sun, 28 Jan 2001 00:27:39 +0000 (00:27 +0000)]
It's unclear whether PyMarshal_XXX() are part of the public or private API.
They're named as if public, so I did a Bad Thing by changing
PyMarshal_ReadObjectFromFile() to suck up the remainder of the file in one
gulp:  anyone who counted on that leaving the file pointer merely at the
end of the next object would be screwed.  So restored
PyMarshal_ReadObjectFromFile() to its earlier state, renamed the new greedy
code to PyMarshal_ReadLastObjectFromFile(), and changed Python internals to
call the latter instead.

24 years agoFix a typo.
Neil Schemenauer [Sat, 27 Jan 2001 21:43:40 +0000 (21:43 +0000)]
Fix a typo.

24 years ago- Fix buildno dependencies (I hope).
Neil Schemenauer [Sat, 27 Jan 2001 21:42:38 +0000 (21:42 +0000)]
- Fix buildno dependencies (I hope).
- Change one last EXE to EXEEXT.

24 years agothe usual
Neil Schemenauer [Sat, 27 Jan 2001 21:40:54 +0000 (21:40 +0000)]
the usual

24 years ago- Remove Guido's LINKCC=CXX experiment.
Neil Schemenauer [Sat, 27 Jan 2001 21:39:17 +0000 (21:39 +0000)]
- Remove Guido's LINKCC=CXX experiment.
- Cygwin doesn't want CCSHARED flag when bulding the interpreter DLL.

24 years agoinit_curses_panel(): Be more consistent with indentation and blank lines.
Fred Drake [Sat, 27 Jan 2001 18:58:04 +0000 (18:58 +0000)]
init_curses_panel(): Be more consistent with indentation and blank lines.

24 years agoEmphasis that instantiating this class doesn't consume the message body.
Eric S. Raymond [Sat, 27 Jan 2001 10:56:14 +0000 (10:56 +0000)]
Emphasis that instantiating this class doesn't consume the message body.
Fix some unclear language in the description of the addrlist member.

24 years agoExcept HierarchyRequestErr instead of TypeError.
Martin v. Löwis [Sat, 27 Jan 2001 09:17:55 +0000 (09:17 +0000)]
Except HierarchyRequestErr instead of TypeError.

24 years agoRe-indent.
Martin v. Löwis [Sat, 27 Jan 2001 09:01:20 +0000 (09:01 +0000)]
Re-indent.

24 years agoSynchronize with PyXML 1.5.
Martin v. Löwis [Sat, 27 Jan 2001 08:56:24 +0000 (08:56 +0000)]
Synchronize with PyXML 1.5.

24 years agoSynchronize with PyXML 1.10
Martin v. Löwis [Sat, 27 Jan 2001 08:56:24 +0000 (08:56 +0000)]
Synchronize with PyXML 1.10
Break cycle involving expat parser in close().
Add lex handler support to SAX2 pyexpat

24 years agoRe-indent.
Martin v. Löwis [Sat, 27 Jan 2001 08:47:37 +0000 (08:47 +0000)]
Re-indent.