Jack Jansen [Sat, 10 Mar 2001 13:24:41 +0000 (13:24 +0000)]
Chris Stern's BBEdit Python language module.
Ka-Ping Yee [Sat, 10 Mar 2001 09:33:14 +0000 (09:33 +0000)]
Make docstrings raw, since they contain literal backslashes.
Ka-Ping Yee [Sat, 10 Mar 2001 09:31:55 +0000 (09:31 +0000)]
Fix findsource() to work for derived classes.
Fred Drake [Sat, 10 Mar 2001 02:18:47 +0000 (02:18 +0000)]
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.
Fred Drake [Sat, 10 Mar 2001 02:15:37 +0000 (02:15 +0000)]
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.
Jack Jansen [Fri, 9 Mar 2001 23:15:27 +0000 (23:15 +0000)]
Finished implementation of removing incorrect preferences file.
Jack Jansen [Thu, 8 Mar 2001 23:10:37 +0000 (23:10 +0000)]
Default waittime in the eventloop is now None. At low level it will then be set to GetCaretTime().
Jack Jansen [Thu, 8 Mar 2001 23:09:32 +0000 (23:09 +0000)]
Handle the ReopenApplication event (by ignoring it).
Jack Jansen [Thu, 8 Mar 2001 23:07:57 +0000 (23:07 +0000)]
Detect that the preference file may be incorrect, and offer to remove it. This isn't finished yet.
Jack Jansen [Thu, 8 Mar 2001 23:07:16 +0000 (23:07 +0000)]
Started on relnotes for the next beta.
Fred Drake [Thu, 8 Mar 2001 22:46:41 +0000 (22:46 +0000)]
Re-order some method descriptions for a more logical grouping.
(Based on reader comment!)
Fred Drake [Thu, 8 Mar 2001 22:17:54 +0000 (22:17 +0000)]
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.
Jack Jansen [Thu, 8 Mar 2001 21:18:54 +0000 (21:18 +0000)]
Added a warning message about the delay after installation. Untested.
Martin v. Löwis [Wed, 7 Mar 2001 10:22:20 +0000 (10:22 +0000)]
Define sunmath prototypes if sunmath.h was not included.
Martin v. Löwis [Wed, 7 Mar 2001 09:08:11 +0000 (09:08 +0000)]
Replace setenv with putenv. Reported by Dietmar Schwertberger.
Martin v. Löwis [Wed, 7 Mar 2001 09:05:45 +0000 (09:05 +0000)]
Unify _Environ processing on riscos with other platforms.
Jack Jansen [Tue, 6 Mar 2001 22:51:42 +0000 (22:51 +0000)]
Files for 2.1b1 distribution.
Jack Jansen [Tue, 6 Mar 2001 22:51:00 +0000 (22:51 +0000)]
PythonInterpreterClassic and PythonInterpreterCarbon now have filetype "Atmp". The ConfigurePythonXXX scripts will set this to APPL when copying either of those to PythonInterpreter.
Jack Jansen [Tue, 6 Mar 2001 22:46:25 +0000 (22:46 +0000)]
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).
Jack Jansen [Tue, 6 Mar 2001 22:45:29 +0000 (22:45 +0000)]
Started on plst resource. Not enabled yet.
Jack Jansen [Tue, 6 Mar 2001 22:43:06 +0000 (22:43 +0000)]
Re-try the file copy once if it fails. This works around an obscure and non-reproducibe bug in GUSI.
Jack Jansen [Tue, 6 Mar 2001 22:42:12 +0000 (22:42 +0000)]
Files for 2.1b1 distribution.
Skip Montanaro [Tue, 6 Mar 2001 15:26:07 +0000 (15:26 +0000)]
fix typo in extending __all__ for riscos platform - closes bug 406296
Martin v. Löwis [Tue, 6 Mar 2001 12:14:54 +0000 (12:14 +0000)]
Avoid giving prototypes on Solaris.
Martin v. Löwis [Tue, 6 Mar 2001 12:13:56 +0000 (12:13 +0000)]
Document SIG_* warning causes on Solaris.
Martin v. Löwis [Tue, 6 Mar 2001 12:12:02 +0000 (12:12 +0000)]
Use Py_CHARMASK for ctype macros. Fixes bug #232787.
Martin v. Löwis [Tue, 6 Mar 2001 12:10:20 +0000 (12:10 +0000)]
Regenerate.
Martin v. Löwis [Tue, 6 Mar 2001 12:09:07 +0000 (12:09 +0000)]
Define __EXTENSIONS__ on Solaris. Fixes posixmodule error in bug #232787.
Martin v. Löwis [Tue, 6 Mar 2001 12:07:27 +0000 (12:07 +0000)]
Document that _REENTRANT is not needed explicitly.
Fred Drake [Tue, 6 Mar 2001 07:34:00 +0000 (07:34 +0000)]
Do not refer to "sub-modules" since that is not a defined term.
Fred Drake [Tue, 6 Mar 2001 07:32:11 +0000 (07:32 +0000)]
Re-word the explanation of the in/not in operators for increased content
and clarity.
Add a footnote to the information on the possibility of shadowing builtins
with locals & module globals.
Fred Drake [Tue, 6 Mar 2001 07:28:20 +0000 (07:28 +0000)]
Turn "Python Documentation Central" into just "Documentation Central"; some
Web browsers tried to wrap lines in bad ways, so we avoid the problem by
putting fewer words on the page.
Fred Drake [Tue, 6 Mar 2001 07:22:16 +0000 (07:22 +0000)]
Make sure the README files that contain page count information land in
the right directory (which actually exists).
Fred Drake [Tue, 6 Mar 2001 07:19:34 +0000 (07:19 +0000)]
Correct typos in Ping's email address.
Remove premature use of negative indexes in string operation examples;
negative indexes have not been explained at that point, and the use of
negative indexes are not necessary for the examples.
Fred Drake [Tue, 6 Mar 2001 06:55:18 +0000 (06:55 +0000)]
Update documentation to reflect the shift to NetrcParseError instead of
SyntaxError.
Fred Drake [Tue, 6 Mar 2001 06:33:08 +0000 (06:33 +0000)]
Define & use NetrcParseError instead of improperly overloading SyntaxError.
Always has the lineno and filename of the source text.
Fred Drake [Tue, 6 Mar 2001 06:31:15 +0000 (06:31 +0000)]
Add some spaces around the "=" in assignments.
Fred Drake [Tue, 6 Mar 2001 05:52:16 +0000 (05:52 +0000)]
Move all knowledge that $(MAINOBJ) is built in the Modules/ directory
into Makefile.pre.in; the configure script will only determine the basename
of the file.
This fixes installation of a Python built using C++, reported by Greg
Wilson.
Jack Jansen [Mon, 5 Mar 2001 15:44:55 +0000 (15:44 +0000)]
Testing commit with a single blank line.
Jack Jansen [Mon, 5 Mar 2001 13:45:38 +0000 (13:45 +0000)]
Grr, splittag was also missing from __all__.
Jack Jansen [Mon, 5 Mar 2001 13:41:14 +0000 (13:41 +0000)]
Added url2pathname and pathname2url to __all__.
Neil Schemenauer [Sun, 4 Mar 2001 06:39:33 +0000 (06:39 +0000)]
Add Python/ prefix to files in LIBOBJS. This closes SF bug "[ #404827 ] Python
Makefile: LIBOBJS incorrect".
Tim Peters [Sun, 4 Mar 2001 00:30:25 +0000 (00:30 +0000)]
Clean up junk files left behind by imp.load_source().
Fred Drake [Sat, 3 Mar 2001 19:57:26 +0000 (19:57 +0000)]
Remove debugging "set -x".
Fred Drake [Sat, 3 Mar 2001 19:47:24 +0000 (19:47 +0000)]
Fix a few minor markup nits.
Fred Drake [Sat, 3 Mar 2001 19:41:55 +0000 (19:41 +0000)]
Be a bit more strict in setting up the export of the C API for this
module; do not attempt to insert the API object into the module dict
if there was an error creating it.
Fred Drake [Sat, 3 Mar 2001 19:18:01 +0000 (19:18 +0000)]
Rene Liebscher <R.Liebscher@gmx.de>:
Added information on using non-Microsoft compilers on Windows.
[Minor edits for markup consistency. --FLD]
Fred Drake [Sat, 3 Mar 2001 18:08:52 +0000 (18:08 +0000)]
Wrap several more of the constants in #ifdef/#endif for FreeBSD; at least
some fairly recent versions have an anaemic selection of terminal-control
symbols.
This closes SF bug #405567.
Barry Warsaw [Sat, 3 Mar 2001 04:14:21 +0000 (04:14 +0000)]
Added `memtest' target which excludes the quicktest modules plus
test_dl, test___all__, test_fork1, and test_longexp. All these either
take way too long with Insure or crash it.
Andrew M. Kuchling [Sat, 3 Mar 2001 03:25:04 +0000 (03:25 +0000)]
Discuss PEP 236.
Update nested scope section.
Ka-Ping Yee [Fri, 2 Mar 2001 23:31:43 +0000 (23:31 +0000)]
Use r""" instead of """ for the docstring so that backslashes are preserved.
Andrew M. Kuchling [Fri, 2 Mar 2001 21:19:38 +0000 (21:19 +0000)]
Update estimate bug and patch counts
Fred Drake [Fri, 2 Mar 2001 21:05:58 +0000 (21:05 +0000)]
Revise the scripts I use to update the documentation on the SourceForge
site. These now seem (slightly) more reliable, and easier to work with
since update-docs.sh no longer needs to be installed ahead of time on
my account at SF.
Fred Drake [Fri, 2 Mar 2001 20:39:34 +0000 (20:39 +0000)]
Lots of organizational changes for consistency with the rest of the
documentation.
Fix a few small markup nits.
cvs2svn [Fri, 2 Mar 2001 19:48:06 +0000 (19:48 +0000)]
This commit was manufactured by cvs2svn to create tag 'r21b1'.
Fred Drake [Fri, 2 Mar 2001 19:48:06 +0000 (19:48 +0000)]
There was a real leak in the "export a C API" example; fix that one.
(There are too many initspam() functions; they need to be renamed
post-beta.)
Fred Drake [Fri, 2 Mar 2001 18:57:05 +0000 (18:57 +0000)]
Label classes and exceptions explicitly in the documentation (for their
*desc environments).
Fred Drake [Fri, 2 Mar 2001 18:15:11 +0000 (18:15 +0000)]
There is no longer a -X option to the interpreter, so remove the comments
on how PyErr_NewException() behaves in that case.
Clarify why an owned reference is kept in an extension module's
variable that refers to the result of PyErr_NewException(); one reader
thought that was a leak.
Clean up some tabs and simplify some markup.
Barry Warsaw [Fri, 2 Mar 2001 16:53:54 +0000 (16:53 +0000)]
Added -o/--output-file option as per GNU msgfmt to specify the output
file instead of using inputfilename.mo
Fred Drake [Fri, 2 Mar 2001 16:46:42 +0000 (16:46 +0000)]
For copyfile(), be explicit that src and dst are file names; that was only
implied.
Jack Jansen [Fri, 2 Mar 2001 16:32:03 +0000 (16:32 +0000)]
Enable FSpResourceFileAlreadyOpen only for Carbon. This is not strictly correct: OS9 InterfaceLib has it, but enabling it will make Python refuse to run on 8.6 and earlier.
Fred Drake [Fri, 2 Mar 2001 16:26:45 +0000 (16:26 +0000)]
Job.build_html(): When formatting HTML into more than one HTML page, and
not doing the \label{foo} --> foo.html transformation (--numeric was
specified on the command line), still look to see if there is an
"About this document..." node and copy that to "about.html", since the
page footers use that as the target.
Guido van Rossum [Fri, 2 Mar 2001 14:05:59 +0000 (14:05 +0000)]
Add some more info about pydoc. (Can you see I'm excited?)
Guido van Rossum [Fri, 2 Mar 2001 14:00:32 +0000 (14:00 +0000)]
Add big news item about nested scopes, __future__, and compile-time
warnings.
Guido van Rossum [Fri, 2 Mar 2001 13:37:42 +0000 (13:37 +0000)]
Itamar S.T.
Guido van Rossum [Fri, 2 Mar 2001 13:35:37 +0000 (13:35 +0000)]
Patch by Itamar S.T. (SF#305470): add reset() method.
Fred Drake [Fri, 2 Mar 2001 07:28:03 +0000 (07:28 +0000)]
When not copying a file because the output is up to date, make the message
slightly more brief, and more like the message that an extension will not
be built because the built copy is up to date.
Guido van Rossum [Fri, 2 Mar 2001 07:09:54 +0000 (07:09 +0000)]
Extra fix from bbum (SF #402357) for his previous patch:
It should use the normal CC referenced compiler as ObjC is integrated
directly into gcc and enabled through the use of the -ObjC flag.
Guido van Rossum [Fri, 2 Mar 2001 07:04:51 +0000 (07:04 +0000)]
Fix by Donn Cave for BeOS (SF #403642):
UNIX style fork/execve/wait are not fully compatible with thread
support on BeOS. For Python, that means neither fork() from import
nor import from a fork work reliably. os._execvpe() does the latter,
importing tempfile to set up a tantalizing target for hackers. This
patch replaces both the tempfile name generation and the exec that
uses it, in case we're on BeOS. Need this for
setup:distutils:execvp(); symptoms are random crashes and internal
BeOS error messages about th name, in case we're on BeOS. It's an
issue because setup.py + distutils calls os.execvp(); symptoms are
random crashes during setup.py, and internal BeOS error messages
about thread IDs.
Guido van Rossum [Fri, 2 Mar 2001 06:53:29 +0000 (06:53 +0000)]
Fix typo in RISCOS patch inside MS #ifdef. (Probably my own fingers.)
Fred Drake [Fri, 2 Mar 2001 06:50:58 +0000 (06:50 +0000)]
Add more protection around the VSWTC/VSWTCH, CRTSCTS, and XTABS symbols;
these can be missing on some (all?) Irix and Tru64 versions.
Protect the CRTSCTS value with a cast; this can be a larger value on
Solaris/SPARC.
This should fix SF tracker items #405092, #405350, and #405355.
Guido van Rossum [Fri, 2 Mar 2001 06:49:50 +0000 (06:49 +0000)]
ROSCOS change.
Guido van Rossum [Fri, 2 Mar 2001 06:48:06 +0000 (06:48 +0000)]
Dietmar Schwertberger; shuffled a bunch of Sch* names in alphabetical
order.
Guido van Rossum [Fri, 2 Mar 2001 06:43:49 +0000 (06:43 +0000)]
RISCOS changes by dschwertberger.
Guido van Rossum [Fri, 2 Mar 2001 06:42:34 +0000 (06:42 +0000)]
Use != instead of <>. Sorry, Barry.
Guido van Rossum [Fri, 2 Mar 2001 06:34:14 +0000 (06:34 +0000)]
RISCOS changes by dschwertberger.
Guido van Rossum [Fri, 2 Mar 2001 06:28:17 +0000 (06:28 +0000)]
RISCOS changes by dschwertberger
Andrew M. Kuchling [Fri, 2 Mar 2001 06:24:14 +0000 (06:24 +0000)]
Disable the dl module
Guido van Rossum [Fri, 2 Mar 2001 06:18:03 +0000 (06:18 +0000)]
RISCOS changes by dschwertberger.
Guido van Rossum [Fri, 2 Mar 2001 06:10:17 +0000 (06:10 +0000)]
RISCOS patch by dschwertberger
Ka-Ping Yee [Fri, 2 Mar 2001 05:58:17 +0000 (05:58 +0000)]
Use '127.0.0.1' only on Mac; for other, sane platforms, use 'localhost'.
Guido van Rossum [Fri, 2 Mar 2001 05:58:11 +0000 (05:58 +0000)]
RISCOS files by dschwertberger
Ka-Ping Yee [Fri, 2 Mar 2001 05:54:35 +0000 (05:54 +0000)]
The sys.platform identifier for Windows is just 'win32' (for all varieties).
Guido van Rossum [Fri, 2 Mar 2001 05:51:16 +0000 (05:51 +0000)]
Search /tmp before /var/tmp and /usr/tmp -- this seems preferred.
SF patch #404564, Gregor Hoffleit.
Ka-Ping Yee [Fri, 2 Mar 2001 05:50:34 +0000 (05:50 +0000)]
Make getsourcefile() succeed even if the filename doesn't end in '.py' --
as long as the filename also doesn't end in a suffix that indicates
a binary file (according to the flags in imp.get_suffixes()).
Shrink try...except clauses and replace some of them with explicit checks.
Ka-Ping Yee [Fri, 2 Mar 2001 05:48:10 +0000 (05:48 +0000)]
Replace literal '@test' with TESTFN.
Guido van Rossum [Fri, 2 Mar 2001 05:46:17 +0000 (05:46 +0000)]
When catching errors from os.rmdir(), test for os.error, not IOError!
Guido van Rossum [Fri, 2 Mar 2001 04:59:38 +0000 (04:59 +0000)]
Add a new item to the Python 2.1 start menu: "Module Docs".
This brings up Ping's pydoc server.
(XXX The icons for this and for IDLE seem screwed. Oh well.)
Guido van Rossum [Fri, 2 Mar 2001 04:27:08 +0000 (04:27 +0000)]
Believe it or not, but "more" on Windows requires "more <file" rather
than "more file". Since tempfilepager() is only used on Windows, it
seems, do this unconditionally -- on Unix, it always invokes something
else.
Guido van Rossum [Fri, 2 Mar 2001 03:30:41 +0000 (03:30 +0000)]
Refactored the warning-issuing code more.
Made sure that the warnings issued by symtable_check_unoptimized()
(about import * and exec) contain the proper filename and line number,
and are transformed into SyntaxError exceptions with -Werror.
Tim Peters [Fri, 2 Mar 2001 03:28:03 +0000 (03:28 +0000)]
Thanks to Steven Majewski, finally putting MacOS X imports to bed for 2.1b1.
Tim Peters [Fri, 2 Mar 2001 03:11:53 +0000 (03:11 +0000)]
Typo repair.
Tim Peters [Fri, 2 Mar 2001 02:54:27 +0000 (02:54 +0000)]
Added William Tanksley.
Tim Peters [Fri, 2 Mar 2001 02:53:08 +0000 (02:53 +0000)]
Make names in __future__.py bind to class instances instead of 2-tuples.
Suggested on c.l.py by William Tanksley, and I like it.
Ka-Ping Yee [Fri, 2 Mar 2001 02:45:08 +0000 (02:45 +0000)]
Clean up the handling of getsourcefile/getabsfile.
Remove __main__ from the index of built-in modules.
Miscellaneous compatibility fixes.
Ka-Ping Yee [Fri, 2 Mar 2001 02:08:53 +0000 (02:08 +0000)]
Clarify the purpose of getsourcefile().
Add getabsfile() for getting a most-normalized path.
Ka-Ping Yee [Fri, 2 Mar 2001 02:01:40 +0000 (02:01 +0000)]
Clarify synopsis line a bit.
Remove -no-about-splash option (not understood by all Netscapes).
Tim Peters [Fri, 2 Mar 2001 01:48:16 +0000 (01:48 +0000)]
test_global was broken by some recent checkin. Repairing.
Ka-Ping Yee [Fri, 2 Mar 2001 01:19:39 +0000 (01:19 +0000)]
When seeking the module for an object, compare absolute (not relative) paths.
Ka-Ping Yee [Fri, 2 Mar 2001 01:19:14 +0000 (01:19 +0000)]
Use imp.get_suffixes to determine a module name in modulename(file).
When possible, display strings containing backslashes using r'' notation.