Commit Graph

17249 Commits

Author SHA1 Message Date
Jack Jansen 4cf97c4972 Files for second 2.1b1 distribution. 2001-03-15 14:41:01 +00:00
Jack Jansen 5c82d13e1f FindFolder argument is a short, not an unsigned short.
Added kLocalDomain and friends.
2001-03-15 14:39:37 +00:00
Jack Jansen 6b498de165 Handle the apple menu differently under Carbon. 2001-03-15 14:39:03 +00:00
Jack Jansen abd703d0ce FindFolder argument is a short, not an unsigned short. 2001-03-15 14:38:10 +00:00
Jack Jansen 06646a1be0 Added QDFlushPortBuffer calls. 2001-03-15 14:35:33 +00:00
Jack Jansen fffec05bcb Import kOnSystemDisk from MACFS 2001-03-15 14:33:24 +00:00
Jack Jansen d11f93c475 Look for shared libraries first in kLocalDomain and then in kOnSystemDisk.
Don't do sys.prefix==os.getcwd() check unless we're an applet.
2001-03-15 14:28:40 +00:00
Jack Jansen 8ef786ea95 Files for second 2.1b1 distribution. 2001-03-15 14:27:09 +00:00
Ka-Ping Yee 3bda4f0878 Remove redundant "__future__:" from module docstring. 2001-03-15 10:45:44 +00:00
Fred Drake 904f2fcbd7 Import the exceptions that this module can raise. 2001-03-14 22:43:47 +00:00
Jeremy Hylton adcf8a05a4 Add doc string for run from profile.doc. (pydoc motivates me to write
good doc strings.)

Fix silly argument handling; was using *args but really wanted 1
optional arg.

XXX Should profile.doc be merged into the documentation and removed
from the Lib directory?
2001-03-14 20:01:19 +00:00
Sjoerd Mullender 538453e155 Moved clearing of "literal" flag. The flag is set in setliteral which
can be called from a start tag handler.  When the corresponding end
tag is read the flag is cleared.  However, it didn't get cleared when
the start tag was for an empty element of the type <tag .../>.  This
modification fixes the problem.
2001-03-14 17:03:30 +00:00
Fred Drake 62dfed96be Change "[%s]" % string.whitespace to r"\s" in regular expressions. 2001-03-14 16:18:56 +00:00
Skip Montanaro 44d5e0c418 updated __all__ to include several other names 2001-03-13 19:47:16 +00:00
Fred Drake 1b0b2a4df2 Add some LaTeX magic so that Latin-1 characters do not get so badly
trashed.
2001-03-13 17:56:08 +00:00
Martin v. Löwis 126f2f62db Patch #407965: Improve Level 2 conformance of minidom
- addition of a DocumentFragment implementation and createDocumentFragment method
- proper setting of ownerDocument for all nodes
- setting of namespaceURI to None in Element as a class attribute
- addition of setAttributeNodeNS and removeAttributeNodeNS as aliases
  for setAttributeNode and removeAttributeNode
- support for inheriting from DOMImplementation to extend it with
  additional features (to override the Document class)
in pulldom:
- support for nodes (comment and PI) that occur before he document element;
  that became necessary as pulldom now delays creation of the document
  until it has the document element.
2001-03-13 10:50:13 +00:00
Guido van Rossum a8f7e59761 Oops. A RISCOS patch I forgot to check in. 2001-03-13 09:31:07 +00:00
Jeremy Hylton 5b44a67bdb Add test to verify that nested functions with free variables don't
cause the free variables to leak.
2001-03-13 02:01:12 +00:00
Jeremy Hylton 30c9f3991c Variety of small INC/DECREF patches that fix reported memory leaks
with free variables.  Thanks to Martin v. Loewis for finding two of
the problems.  This fixes SF buf 405583.

There is also a C API change: PyFrame_New() is reverting to its
pre-2.1 signature.  The change introduced by nested scopes was a
mistake.  XXX Is this okay between beta releases?

cell_clear(), the GC helper, must decref its reference to break
cycles.

frame_dealloc() must dealloc all cell vars and free vars in addition
to locals.

eval_code2() setup code must INCREF cells it copies out of the
closure.

The STORE_DEREF opcode implementation must DECREF the object it passes
to PyCell_Set().
2001-03-13 01:58:22 +00:00
Fred Drake 93fe96a3c8 Py_BuildValue(): Add "D" conversion to create a Python complex value from
a Py_complex C value.

Patch by Walter Dörwald.
This closes SF patch #407148.
2001-03-12 21:06:31 +00:00
Fred Drake aec79247b1 Py_BuildValue(): Add "D" conversion to create a Python complex value from
a Py_complex C value.

Patch by Walter Dörwald.
This partially closes SF patch #407148.
2001-03-12 21:03:26 +00:00
Fred Drake 521c83dd80 Multifile.read(): Fix a broken conversion to string methods.
This closes SF bug #407777.
2001-03-12 02:56:15 +00:00
Tim Peters b2336529ef Identifiers matching _[A-Z_]\w* are reserved for C implementations.
May or may not be related to bug 407680 (obmalloc.c - looks like it's
corrupted).  This repairs the illegal vrbl names, but leaves a pile of
illegal macro names (_THIS_xxx, _SYSTEM_xxx, _SET_HOOKS, _FETCH_HOOKS).
2001-03-11 18:36:13 +00:00
Tim Peters 7069512bd0 When 1.6 boosted the # of digits produced by repr(float), repr(complex)
apparently forgot to play along.  Make complex act like float.
2001-03-11 08:37:29 +00:00
Tim Peters b3d6be9d93 Windows: Fallout from renaming the pydoc file. 2001-03-11 08:06:25 +00:00
Tim Peters 1eb0a92214 SF bug Win32: pydoc command isn't executable.
As the bug report notes, the Windows installer creates a useless pydoc
file in the base directory.  Changed the installer to rename it pydoc.pyw
instead.
2001-03-11 07:34:18 +00:00
Tim Peters b2a22f4533 Magic strings in both Python and the Wise installer define the registry key
to be used in Windows.  They got out of synch.  Repaired that, and added
comments to each one pointing at the other.
2001-03-11 04:30:35 +00:00
Fred Drake 8e68eb61f2 Make sure we close the group and password databases when we are done with
them; this closes SF bug #407504.
2001-03-11 03:03:07 +00:00
Tim Peters 401396fc60 Get rid of hardcoded Python path (can't guess where the user installed
IDLE, and it likely changes across releases anyway).
2001-03-10 21:48:24 +00:00
Andrew M. Kuchling 45bbda2593 Fix a further markup problem noted by FLD 2001-03-10 16:49:07 +00:00
Jack Jansen dbc692e286 Chris Stern's BBEdit Python language module. 2001-03-10 13:24:41 +00:00
Ka-Ping Yee 22fcae976a Make docstrings raw, since they contain literal backslashes. 2001-03-10 09:33:14 +00:00
Ka-Ping Yee a6e59719ec Fix findsource() to work for derived classes. 2001-03-10 09:31:55 +00:00
Fred Drake 63085d4d1e Import the nested_scopes feature twice, to exercise the patch introduced
to avoid segfaults when more than one feature is named in the future
statement.

This tests for regression of SF bug #407394.
2001-03-10 02:18:47 +00:00
Fred Drake 198457a978 When iterating over the names imported in a future statement, ignore the
commas in the concrete syntax; checking those causes a segfault.

This fixes SF bug #407394.
2001-03-10 02:15:37 +00:00
Jack Jansen 0a3939fc71 Finished implementation of removing incorrect preferences file. 2001-03-09 23:15:27 +00:00
Jack Jansen e5c9474f0f Default waittime in the eventloop is now None. At low level it will then be set to GetCaretTime(). 2001-03-08 23:10:37 +00:00
Jack Jansen 53ebe562f5 Handle the ReopenApplication event (by ignoring it). 2001-03-08 23:09:32 +00:00
Jack Jansen 54f3bdbfe1 Detect that the preference file may be incorrect, and offer to remove it. This isn't finished yet. 2001-03-08 23:07:57 +00:00
Jack Jansen 4c52203b51 Started on relnotes for the next beta. 2001-03-08 23:07:16 +00:00
Fred Drake f0ebbe0bd0 Re-order some method descriptions for a more logical grouping.
(Based on reader comment!)
2001-03-08 22:46:41 +00:00
Fred Drake 9eb41557ef Add more font flavors for <var> elements; the previous incarnation caused
some NT/IE5.5 users to see only boxes for these characters.  This might be
specific to NT Service Pack 6.
2001-03-08 22:17:54 +00:00
Jack Jansen 8f728592be Added a warning message about the delay after installation. Untested. 2001-03-08 21:18:54 +00:00
Martin v. Löwis c4db476c87 Define sunmath prototypes if sunmath.h was not included. 2001-03-07 10:22:20 +00:00
Martin v. Löwis f115a0826d Replace setenv with putenv. Reported by Dietmar Schwertberger. 2001-03-07 09:08:11 +00:00
Martin v. Löwis a90f438d4a Unify _Environ processing on riscos with other platforms. 2001-03-07 09:05:45 +00:00
Jack Jansen 1d79f79bd0 Files for 2.1b1 distribution. 2001-03-06 22:51:42 +00:00
Jack Jansen 5fc3381098 PythonInterpreterClassic and PythonInterpreterCarbon now have filetype "Atmp". The ConfigurePythonXXX scripts will set this to APPL when copying either of those to PythonInterpreter. 2001-03-06 22:51:00 +00:00
Jack Jansen c1463c9870 macostools.copy() now has an optional forcetype flag, which sets the filetype. This is used by various tools to set the type to APPL when copying interpreter template files (Atmp filetype). 2001-03-06 22:46:25 +00:00
Jack Jansen bb74f95821 Started on plst resource. Not enabled yet. 2001-03-06 22:45:29 +00:00