Fred Drake [Thu, 5 Apr 2001 18:26:31 +0000 (18:26 +0000)]
Effectively revert the previous change: leave the new #include in, but
comment it out with an explanation. This makes it easier for someone
who wants the additional symbols to try re-enabling it for their platform.
Fred Drake [Thu, 5 Apr 2001 18:14:50 +0000 (18:14 +0000)]
Added more link attributes based on additonal information from Chris
McCafferty <christopher.mccafferty@csg.ch>, and a bit of experimentation
with Navigator 4.7.
HTML-as-deployed is evil!
Andrew M. Kuchling [Thu, 5 Apr 2001 16:08:41 +0000 (16:08 +0000)]
Bug #412086, reported by Peter Wilson: The _curses module doesn't
define COLORS or COLOR_PAIRS until after start_color() is called,
but they were never added to the curses module. Fixed by adding
a wrapper around start_color(), similar to the wrapper around initscr().
Andrew M. Kuchling [Thu, 5 Apr 2001 15:46:48 +0000 (15:46 +0000)]
Patch #413912 from Steve Majewski: Add .m to the list of extensions
in order to support Objective-C.
Andrew M. Kuchling [Thu, 5 Apr 2001 14:50:40 +0000 (14:50 +0000)]
Mention pydoc in the man page
Fred Drake [Thu, 5 Apr 2001 14:41:30 +0000 (14:41 +0000)]
Corrected default value of the DocumentType.internalSubset attribute based
on a clarification sent to the www-dom list.
Fred Drake [Wed, 4 Apr 2001 21:19:26 +0000 (21:19 +0000)]
Add an #include of sys/ioctl.h to pick up a lot of the constants supported
in the previous patch.
This closes (again!) SF patch #410267.
Tim Peters [Wed, 4 Apr 2001 18:56:49 +0000 (18:56 +0000)]
Sf bug [ #412214 ] ZipFile constructor leaves files open.
This applies the patch Fred Drake created to fix it.
I'm checking it in since I had to apply the patch anyway in order
to test its behavior on Windows.
Tim Peters [Wed, 4 Apr 2001 18:35:19 +0000 (18:35 +0000)]
SF patch [ #413750 ] Cygwin entry for README file, from Jason Tishler.
Fred Drake [Wed, 4 Apr 2001 17:47:25 +0000 (17:47 +0000)]
A number of improvements based on a discussion with Chris McCafferty
<christopher.mccafferty@csg.ch>:
Add javascript: and telnet: to the types of URLs we ignore.
Add support for several additional URL-valued attributes on the BODY,
FRAME, IFRAME, LINK, OBJECT, and SCRIPT elements.
Fred Drake [Wed, 4 Apr 2001 15:15:18 +0000 (15:15 +0000)]
CharacterData methods: Update self.length on changes instead of extended
the __getattr__() handler.
Text.splitText(): Update the length and nodeValue attributes.
Fred Drake [Wed, 4 Apr 2001 14:09:46 +0000 (14:09 +0000)]
Add support for the CharacterData methods, CDATASection.
Fred Drake [Wed, 4 Apr 2001 01:25:17 +0000 (01:25 +0000)]
Document PySequence_Size(), and describe PySequence_Length() as simply an
alternate name for the same function.
Jack Jansen [Tue, 3 Apr 2001 21:56:12 +0000 (21:56 +0000)]
Disable fused-add-mul instructions. They give a nonstandard result for some things that test_coercion complains about. The added performance is probably minimal for Python anyway.
Fred Drake [Tue, 3 Apr 2001 17:41:56 +0000 (17:41 +0000)]
Make reference to the Library Reference in the "What Now?" chapter a
hyperlink.
Fix two English usage errors caught by Jan Wells: Changed "subsequence"
to "sub-sequence" in two places, and avoid improper use of "hopefully" in
the first paragraph of the "What Now?" chapter.
Jack Jansen [Tue, 3 Apr 2001 14:36:35 +0000 (14:36 +0000)]
If the frontmost window is not a Tk window exit the event handling code early. This fixes that using Tk once used to disable cmd-. processing. It may also influence Tk/IDE interaction, I'm not sure.
Tim Peters [Mon, 2 Apr 2001 20:15:57 +0000 (20:15 +0000)]
SF bug [#410708] Condition.wait() and KeyboardInterrupt.
http://sourceforge.net/tracker/?func=detail&aid=410708&group_id=5470&atid=105470
Added try/finally around Condition.wait() guts, so that the lock state gets
restored at the end no matter what happens.
Guido van Rossum [Mon, 2 Apr 2001 17:59:02 +0000 (17:59 +0000)]
Applying SF patch #412553 by Christopher Lee: fix linuxaudiodev
handling of EAGAIN.
This may or may not fix the problem for me (Mandrake 7.2 on a Dell
Optiplex GX110 desktop): I can't hear the output, but it does pass the
test now. It doesn't fix the problem for Fred (Mandrake 7.2 on a Dell
Inspiron 7500 which has the Maestro sound drivers). Fred suspects
that it's the kernel version in combination with the driver.
Martin v. Löwis [Sat, 31 Mar 2001 16:30:40 +0000 (16:30 +0000)]
Initialize Attr.value with empty string in createAttribute*, as per DOM
spec. Closes bug #412036.
Also reindent toprettyxml.
Andrew M. Kuchling [Sat, 31 Mar 2001 02:42:42 +0000 (02:42 +0000)]
Remove the backed-out version requirement
Andrew M. Kuchling [Sat, 31 Mar 2001 02:41:01 +0000 (02:41 +0000)]
Back out the requirement to supply a version number
Eric S. Raymond [Sat, 31 Mar 2001 01:50:52 +0000 (01:50 +0000)]
Fixes a fatal bug when the module has computed alternatives containing %s.
Neil Schemenauer [Sat, 31 Mar 2001 00:01:55 +0000 (00:01 +0000)]
"install -d" does not work on BSDI systems even though autoconf thinks
install works on that system. Use "install-sh" on BSDI.
Fred Drake [Thu, 29 Mar 2001 23:31:22 +0000 (23:31 +0000)]
Allow the <author/> element to appear before a paragraph without being
made a part of the paragraph.
Fred Drake [Thu, 29 Mar 2001 22:23:19 +0000 (22:23 +0000)]
Add entry for curses.panel documentation.
Fred Drake [Thu, 29 Mar 2001 22:22:23 +0000 (22:22 +0000)]
Fix serious markup errors.
Fred Drake [Thu, 29 Mar 2001 18:24:08 +0000 (18:24 +0000)]
Remove the spurious space of uncertain origin from the output for function,
method and constructor signatures. Suggested by Peter Funk on the Doc-SIG
mailing list.
Jack Jansen [Thu, 29 Mar 2001 13:54:23 +0000 (13:54 +0000)]
On OSX show a dialog explaining that ConfigurePythonCarbon launch will probably fail. This turns out to be a VISE 7.1.1 problem, probably.
Jack Jansen [Thu, 29 Mar 2001 13:53:19 +0000 (13:53 +0000)]
On OSX always copy PythonCore. It turns out an orphaned alias in /Library/CFMSupport (happens when you remove python and aliased pythoncore) wreaks havoc with the system.
Jack Jansen [Thu, 29 Mar 2001 13:52:16 +0000 (13:52 +0000)]
Changed some of the dialogs to be a little clearer.
Tim Peters [Thu, 29 Mar 2001 04:36:09 +0000 (04:36 +0000)]
Whitespace normalization.
Tim Peters [Thu, 29 Mar 2001 03:34:43 +0000 (03:34 +0000)]
Initialize new save_warnings_filters data member in ModifiedInterpreter.__init__.
Was getting mystery
ModifiedInterpreter instance has no attribute 'save_warnings_filters'
errors at odd times (for sure in a fresh IDLE, fresh file, then Run Script).
Fred Drake [Wed, 28 Mar 2001 21:15:41 +0000 (21:15 +0000)]
Added example use of weak references, contributed by Tim Peters.
Fred Drake [Wed, 28 Mar 2001 21:14:32 +0000 (21:14 +0000)]
Added documentation for PyObject_IsInstance() and PyObject_IsSubclass().
Jack Jansen [Wed, 28 Mar 2001 20:33:24 +0000 (20:33 +0000)]
Don't show finder-delay-warning on OSX. Untested.
Fred Drake [Wed, 28 Mar 2001 16:55:53 +0000 (16:55 +0000)]
Typo: "ariables" --> "variables"
This fixes SF bug #411118.
Fred Drake [Wed, 28 Mar 2001 16:51:20 +0000 (16:51 +0000)]
Fix a number of small issues; this closes SF bug #411063.
Guido van Rossum [Wed, 28 Mar 2001 01:14:56 +0000 (01:14 +0000)]
Based on info from Jens@digicool.com, add 'darwin1' to the list of
BSD-style OS'es. Makes sense, really.
Jack Jansen [Tue, 27 Mar 2001 21:38:55 +0000 (21:38 +0000)]
Updated for 2.1b2 distribution.
Martin v. Löwis [Tue, 27 Mar 2001 21:38:15 +0000 (21:38 +0000)]
Arghh. Fix typo.
Jack Jansen [Tue, 27 Mar 2001 21:37:06 +0000 (21:37 +0000)]
Added a note about BBPy.lm.
Jack Jansen [Tue, 27 Mar 2001 21:34:31 +0000 (21:34 +0000)]
Added a note about the new (since 2.0) OSA architecture.
Jack Jansen [Tue, 27 Mar 2001 21:32:34 +0000 (21:32 +0000)]
Oops, ISO translation was off. Fixed.
Guido van Rossum [Tue, 27 Mar 2001 17:04:37 +0000 (17:04 +0000)]
Add Robin Thomas (author of the slice() comparability hack).
Martin v. Löwis [Tue, 27 Mar 2001 08:42:12 +0000 (08:42 +0000)]
Use Guido's trick for always extracting the version number from a
CVS Revision string correctly, even under -kv.
Ka-Ping Yee [Tue, 27 Mar 2001 08:13:42 +0000 (08:13 +0000)]
Fix some reloading problems (still more work needed).
Add hyperlinks to PEPs at http://www.python.org/peps/pep-%04d.html
Remove script directory (dirname of sys.argv[0]) from sys.path.
Jack Jansen [Mon, 26 Mar 2001 20:03:30 +0000 (20:03 +0000)]
Disable fused-add-mul instructions. They give a nonstandard result for some things that test_coercion complains about. The added performance is probably minimal for Python anyway.
Jeremy Hylton [Mon, 26 Mar 2001 19:53:38 +0000 (19:53 +0000)]
Bug fix: compile() called from a nested-scopes-enable Python was not
using nested scopes to compile its argument. Pass compiler flags
through to underlying compile call.
Guido van Rossum [Mon, 26 Mar 2001 17:41:35 +0000 (17:41 +0000)]
Turn SyntasWarning into SyntaxError for all code entered
interactively.
Fred Drake [Mon, 26 Mar 2001 17:14:02 +0000 (17:14 +0000)]
Michael Hudson <mwh21@cam.ac.uk>:
Add many more constants for some systems.
This closes SF patch #410267.
Fred Drake [Mon, 26 Mar 2001 16:17:21 +0000 (16:17 +0000)]
Add a note that the "kfm" controller supports "konqueror" as well as the
old KDE 1 "kfm" command.
Fred Drake [Mon, 26 Mar 2001 15:49:24 +0000 (15:49 +0000)]
Itamar Shtull-Trauring <itamar@maxnm.com>:
Add support to zipfile to support opening an archive represented by an
open file rather than a file name.
Fred Drake [Mon, 26 Mar 2001 15:06:15 +0000 (15:06 +0000)]
Update auto-detection for Konqueror to include KDE 2 -- the kfm command is
gone; "konqueror" is the new name, and the command-line args are different.
kfmclient has not changed, though.
Andrew M. Kuchling [Mon, 26 Mar 2001 13:34:53 +0000 (13:34 +0000)]
Note missing explanation
Jack Jansen [Mon, 26 Mar 2001 08:37:28 +0000 (08:37 +0000)]
Fixed some access paths.
Marc-André Lemburg [Sun, 25 Mar 2001 19:16:13 +0000 (19:16 +0000)]
Fixed ref count bug. Patch #411191. Found by Walter Dörwald.
Fred Drake [Sat, 24 Mar 2001 19:58:26 +0000 (19:58 +0000)]
get_version_string(): New function -- returns a Python string object that
gives the CVS revision of this file even if it does not include the
extra RCS "$Revision: " cruft.
initpyexpat(): Use get_version_string() instead of hard-coding magic
indexes into the RCS string (which may be affected by export options).
Guido van Rossum [Sat, 24 Mar 2001 19:17:35 +0000 (19:17 +0000)]
Document use_rawinput. (Although now that I think more about it, a
better solution would have been to factor out the raw_input() call and
make it into an overridable method. Oh well, maybe later...)
cvs2svn [Fri, 23 Mar 2001 20:24:07 +0000 (20:24 +0000)]
This commit was manufactured by cvs2svn to create tag 'r21b2'.
Barry Warsaw [Fri, 23 Mar 2001 20:24:07 +0000 (20:24 +0000)]
main(): Application of SF patch #405851, which allows this test to be
used by Jython. The tests in this module expect C locale, so be
explicit about setting that (for CPython). However, in Jython, there
is no C locale, so instead be explicit about setting the US locale.
Closes the patch.
Tim Peters [Fri, 23 Mar 2001 20:21:29 +0000 (20:21 +0000)]
pydoc changed overnight in such a way that it no longer worked from the
Windows start-menu item. This recovers from that.
Guido van Rossum [Fri, 23 Mar 2001 18:30:19 +0000 (18:30 +0000)]
Fix a memory leak -- there's no need to INCREF() the result of
newreadlinesobject() in xreadlines().
Barry Warsaw [Fri, 23 Mar 2001 18:04:02 +0000 (18:04 +0000)]
In Jython, `@' is not allowed in module names. Extend the TESTFN test
to use "$test" when in Jython. Closes SF patch #403668.
Guido van Rossum [Fri, 23 Mar 2001 17:54:43 +0000 (17:54 +0000)]
Finishing touch to Ping's changes. This is a patch that Ping sent me
but apparently he had to go to school, so I am checking it in for him.
This makes PyRun_HandleSystemExit() a static instead, called
handle_system_exit(), and let it use the current exception rather than
passing in an exception. This slightly simplifies the code.
Barry Warsaw [Fri, 23 Mar 2001 17:53:49 +0000 (17:53 +0000)]
Two minor changes for better Jython compatibility. Finn Bock says:
Change 1: Not all 'modules' in sys.modules have a
sensible __file__ attribute. Some of our java package
can have the __file__ attribute set to None.
Change 2: In jython we have the jython license file in
<root> and the CPython license file in <root>/Lib. By
reversing the search sequence jython will find and
show the jython license file before the CPython file.
Closes SF patch #405853.
Fred Drake [Fri, 23 Mar 2001 17:51:37 +0000 (17:51 +0000)]
Update Mac OS X platform notes.
This closes SF bug #406191.
Fred Drake [Fri, 23 Mar 2001 17:42:09 +0000 (17:42 +0000)]
Strengthen the constraints on calling PyObject_GC_Fini().
Barry Warsaw [Fri, 23 Mar 2001 17:40:16 +0000 (17:40 +0000)]
Make socket.getservbyname test optional on socket module having that
attribute. Jython does not have this function.
Closes SF patch #403667.
Fred Drake [Fri, 23 Mar 2001 17:34:02 +0000 (17:34 +0000)]
call_sys_exitfunc(): Remove unused variable f.
Andrew M. Kuchling [Fri, 23 Mar 2001 17:30:26 +0000 (17:30 +0000)]
Change rfc822_escape() to ensure there's a consistent amount of whitespace
after each newline, instead of just blindly inserting a space at
the start of each line. (Improvement suggested by Thomas Wouters)
Jeremy Hylton [Fri, 23 Mar 2001 17:23:50 +0000 (17:23 +0000)]
Add nested scopes spec to appendix.
Add new opcodes LOAD_CLOSURE, LOAD_DEREF, STORE_DEREF, MAKE_CLOSURE to
docs for dis module.
Add docs for new function and code members in Sec. 3 of ref manual.
They're present regardless of whether nested scopes are used.
Remove description of default argument hack from Sec. 7 of the ref
manual and refer the reader to the appendix.
Fred Drake [Fri, 23 Mar 2001 17:09:02 +0000 (17:09 +0000)]
Remove the annoying __version__ definitions.
Fred Drake [Fri, 23 Mar 2001 17:01:47 +0000 (17:01 +0000)]
Lots of small changes to make this work with the Python DOM bindings
(minidom in particular); it was using PyDOM which is now obsolete.
Only write the output file on success -- this avoids updating the timestamp
on the file on failure, which confuses "make".
Barry Warsaw [Fri, 23 Mar 2001 17:00:07 +0000 (17:00 +0000)]
setlocale(): In _locale-missing compatibility function, string
comparison should be done with != instead of "is not".
Fred Drake [Fri, 23 Mar 2001 16:53:34 +0000 (16:53 +0000)]
Pick up the "encode" function from esistools instead of defining our own
(broken) version.
Remove Conversion.err_write() -- use dbgmsg() consistently.
Fred Drake [Fri, 23 Mar 2001 16:47:11 +0000 (16:47 +0000)]
No quotes around the "future" in the first use of the term "future
statement".
Fred Drake [Fri, 23 Mar 2001 16:42:08 +0000 (16:42 +0000)]
Re-write to no longer depend on an old version of PyXML. This now
implements a SAX XMLReader interface instead of the old Builder interface
used with PyDOM (now obsolete).
This only depends on the standard library, not PyXML.
Fred Drake [Fri, 23 Mar 2001 16:38:12 +0000 (16:38 +0000)]
Pick the "escape" function from the standard library instead of from PyXML.
Fred Drake [Fri, 23 Mar 2001 16:29:06 +0000 (16:29 +0000)]
Add conversions for more of the markup -- not all of this was around when
this file was written!
Fred Drake [Fri, 23 Mar 2001 16:23:21 +0000 (16:23 +0000)]
Add entry for the futures appendix in the reference manual.
Correct the comment at the top of the file.
Fred Drake [Fri, 23 Mar 2001 16:21:15 +0000 (16:21 +0000)]
Include the futures appendix.
Fred Drake [Fri, 23 Mar 2001 16:20:46 +0000 (16:20 +0000)]
Revise the markup so that this formats and uses markup consistently with
the rest of the documentation.
Barry Warsaw [Fri, 23 Mar 2001 16:13:30 +0000 (16:13 +0000)]
Several changes for Jython portability. This closes SF patch
#403666. Specifically,
In codestr, force `c' to be global. It's unclear what the semantics
should be for a code object compiled at module scope, but bound and
run in a function. In CPython, `c' is global (by accident?) while in
Jython, `c' is local. The intent of the test clearly is to make `c'
global, so let's be explicit about it.
Jython also does not have a __builtins__ name in the module's
namespace, so we use a more portable alternative (though I'm not sure
why the test requires "__builtins__" in the g namespace).
Finally, skip the new.code() test if the new module doesn't have a
`code' attribute. Jython will never have this.
Jeremy Hylton [Fri, 23 Mar 2001 15:41:14 +0000 (15:41 +0000)]
flesh out __all__
remove debugging code in if __debug__:
add get_children() method on SymbolTable
Ka-Ping Yee [Fri, 23 Mar 2001 15:36:41 +0000 (15:36 +0000)]
Allow sys.excepthook and sys.exitfunc to quietly exit with a sys.exit().
sys.exitfunc gets the last word on the exit status of the program.
Ka-Ping Yee [Fri, 23 Mar 2001 15:29:59 +0000 (15:29 +0000)]
Extend isclass() to work for extension classes (by looking for __bases__).
Jeremy Hylton [Fri, 23 Mar 2001 15:29:54 +0000 (15:29 +0000)]
Add some initial text for the appendix on future statements and nested scopes.
Jeremy Hylton [Fri, 23 Mar 2001 14:34:06 +0000 (14:34 +0000)]
Note that assignments to __debug__ are illegal
Jeremy Hylton [Fri, 23 Mar 2001 14:18:27 +0000 (14:18 +0000)]
News items for my recent checkins
Ka-Ping Yee [Fri, 23 Mar 2001 14:10:39 +0000 (14:10 +0000)]
Script for starting pydoc with a GUI in Windows.
Jeremy Hylton [Fri, 23 Mar 2001 14:08:38 +0000 (14:08 +0000)]
Make it illegal to assign to __debug__ as per Guido's request.
Ka-Ping Yee [Fri, 23 Mar 2001 14:05:53 +0000 (14:05 +0000)]
Browser compatibility fixes.
Show methods aliased into a class from other classes.
Jeremy Hylton [Fri, 23 Mar 2001 14:05:16 +0000 (14:05 +0000)]
Revert to ver 1.22, which was the version before the nested scopes
docs were introduced. This loses a few small changes, but Fred says
that's okay.
Ka-Ping Yee [Fri, 23 Mar 2001 13:35:45 +0000 (13:35 +0000)]
Small formatting improvements.
Ka-Ping Yee [Fri, 23 Mar 2001 13:17:50 +0000 (13:17 +0000)]
Show inherited methods, with hyperlinks to the base class they came from.
Font adjustment to improve viewing in Windows (the default monospaced font,
Courier New, seems to have no reasonable size in IE!)
Improve error handling. Try very hard to distinguish between failure to
find a module and failure during the module importing process.
Improve reloading behaviour. (Still needs some work.)
Add '.' to sys.path when running as a script at the command-line.
Don't automatically assume '-g' based on the platform. We'll just have
the batch file supply -g.
Fred Drake [Fri, 23 Mar 2001 12:12:05 +0000 (12:12 +0000)]
Bump version number.
Tim Peters [Fri, 23 Mar 2001 06:14:28 +0000 (06:14 +0000)]
Revert the 1.8 patch, since it's implicated in nasty blowups (see Pyhon-Dev).
Ka-Ping Yee [Fri, 23 Mar 2001 05:22:49 +0000 (05:22 +0000)]
Provide a StopTokenizing exception for conveniently exiting the loop.
Ka-Ping Yee [Fri, 23 Mar 2001 05:22:12 +0000 (05:22 +0000)]
Explain the difference between NL and NEWLINE.
Ka-Ping Yee [Fri, 23 Mar 2001 05:17:41 +0000 (05:17 +0000)]
Give a slightly better explanation of excepthook.