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
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
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
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
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
Skip Montanaro
81e4b1c5c8
fix typo in extending __all__ for riscos platform - closes bug 406296
2001-03-06 15:26:07 +00:00
Fred Drake
ec6ec90dd2
Define & use NetrcParseError instead of improperly overloading SyntaxError.
...
Always has the lineno and filename of the source text.
2001-03-06 06:33:08 +00:00
Jack Jansen
282fed1363
Grr, splittag was also missing from __all__.
2001-03-05 13:45:38 +00:00
Jack Jansen
49985638fa
Added url2pathname and pathname2url to __all__.
2001-03-05 13:41:14 +00:00
Tim Peters
243bff4708
Clean up junk files left behind by imp.load_source().
2001-03-04 00:30:25 +00:00
Ka-Ping Yee
feb6719851
Use r""" instead of """ for the docstring so that backslashes are preserved.
2001-03-02 23:31:43 +00:00
Guido van Rossum
d1d053cc3f
Patch by Itamar S.T. (SF#305470): add reset() method.
2001-03-02 13:35:37 +00:00
Fred Drake
53a79060bb
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.
2001-03-02 07:28:03 +00:00
Guido van Rossum
b7fe432a88
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.
2001-03-02 07:04:51 +00:00
Guido van Rossum
d74fb6b12a
RISCOS changes by dschwertberger.
2001-03-02 06:43:49 +00:00
Guido van Rossum
4ba3d657ef
Use != instead of <>. Sorry, Barry.
2001-03-02 06:42:34 +00:00
Ka-Ping Yee
db8ed1517f
Use '127.0.0.1' only on Mac; for other, sane platforms, use 'localhost'.
2001-03-02 05:58:17 +00:00
Guido van Rossum
228d80736c
RISCOS files by dschwertberger
2001-03-02 05:58:11 +00:00
Ka-Ping Yee
c92cdf7aa7
The sys.platform identifier for Windows is just 'win32' (for all varieties).
2001-03-02 05:54:35 +00:00
Guido van Rossum
7dcf84f2f8
Search /tmp before /var/tmp and /usr/tmp -- this seems preferred.
...
SF patch #404564 , Gregor Hoffleit.
2001-03-02 05:51:16 +00:00
Ka-Ping Yee
4eb0c003f8
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.
2001-03-02 05:50:34 +00:00
Ka-Ping Yee
9054344d14
Replace literal '@test' with TESTFN.
2001-03-02 05:48:10 +00:00
Guido van Rossum
ca956e2e47
When catching errors from os.rmdir(), test for os.error, not IOError!
2001-03-02 05:46:17 +00:00
Guido van Rossum
b616e114f7
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.
2001-03-02 04:27:08 +00:00
Tim Peters
fd85a4e600
Typo repair.
2001-03-02 03:11:53 +00:00
Tim Peters
d74bc432b2
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.
2001-03-02 02:53:08 +00:00
Ka-Ping Yee
239432a545
Clean up the handling of getsourcefile/getabsfile.
...
Remove __main__ from the index of built-in modules.
Miscellaneous compatibility fixes.
2001-03-02 02:45:08 +00:00
Ka-Ping Yee
c113c24e19
Clarify the purpose of getsourcefile().
...
Add getabsfile() for getting a most-normalized path.
2001-03-02 02:08:53 +00:00
Ka-Ping Yee
0a8c29be4b
Clarify synopsis line a bit.
...
Remove -no-about-splash option (not understood by all Netscapes).
2001-03-02 02:01:40 +00:00
Tim Peters
fc35de409b
test_global was broken by some recent checkin. Repairing.
2001-03-02 01:48:16 +00:00
Ka-Ping Yee
7a25765f48
When seeking the module for an object, compare absolute (not relative) paths.
2001-03-02 01:19:39 +00:00
Ka-Ping Yee
a2fe103c9b
Use imp.get_suffixes to determine a module name in modulename(file).
...
When possible, display strings containing backslashes using r'' notation.
2001-03-02 01:19:14 +00:00
Guido van Rossum
9aa643cf69
Test interaction of global and nested scopes -- thanks to Samuele Pedroni.
2001-03-01 20:35:45 +00:00
Ka-Ping Yee
d977e35dd0
Also accept .so as an extension for module files.
2001-03-01 19:31:25 +00:00
Ka-Ping Yee
4f64c13582
Better __credits__.
2001-03-01 17:11:17 +00:00
Ka-Ping Yee
244c593598
Add __author__ and __credits__ variables.
2001-03-01 13:56:40 +00:00
Ka-Ping Yee
8b58b84d72
Add __author__ variable.
...
Robustify: don't rely on modules being present in sys.modules.
2001-03-01 13:56:16 +00:00
Ka-Ping Yee
66efbc7481
Docstring improvements.
...
Add checks for .pyo and .pyd.
Collapse docfunction, docmethod, docbuiltin into the one method docroutine.
Small formatting fixes.
Link the segments of a package path in the title.
Link to the source file only if it exists.
Allow modules (e.g. repr.py) to take precedence over built-ins (e.g. repr()).
Add interruptible synopsis scanner (so we can do searches in the background).
Make HTTP server quit.
Add small GUI for controlling the server and launching searches (like -k).
(Tested on Win2k, Win98, and Linux.)
2001-03-01 13:55:20 +00:00
Moshe Zadka
8a18e99008
Checking in patch 404826 -- urllib2 enhancements and documentations.
...
(please not that the library reference does *not* include the
urllib2 documnetation -- that will wiat for Fred)
2001-03-01 08:40:42 +00:00
Tim Peters
251083142f
Whitespace normalization.
2001-03-01 08:31:39 +00:00
Skip Montanaro
40fc16059f
final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be
...
giving it a slight facelift
2001-03-01 04:27:19 +00:00
Skip Montanaro
58eadbaf12
move import into function to avoid having to add an __all__ list...
2001-03-01 04:13:51 +00:00
Ka-Ping Yee
59ade08079
Add getlineno() routine to account for LINENO optimization.
2001-03-01 03:55:35 +00:00
Fred Drake
5c015344a6
Add tests for the .copy() methods of both weak dictionary classes.
2001-03-01 03:06:53 +00:00