Moshe Zadka
fc3fc337d0
Checking in patch #103478 -- makes popen2 and fork1 tested on BeOS.
...
Tested for not breaking builds on Linux.
2001-01-30 18:35:32 +00:00
Jeremy Hylton
251ef9666e
Fix test for free ref to global. This test should have caught a
...
recently fixed bug, but it checked for the wrong answer.
2001-01-30 01:26:53 +00:00
Jeremy Hylton
ac25a38841
add test for illegal imports
2001-01-30 01:25:56 +00:00
Marc-André Lemburg
bf222c9f12
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.)
2001-01-29 11:29:44 +00:00
Marc-André Lemburg
fde66e1bcc
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.
2001-01-29 11:14:16 +00:00
Moshe Zadka
497671e094
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
2001-01-29 06:21:17 +00:00
Skip Montanaro
080c99745f
added several more urlencode test cases - part of patch 103391
2001-01-28 21:12:22 +00:00
Skip Montanaro
14f1ad4a94
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.
2001-01-28 21:11:12 +00:00
Jack Jansen
b4cd5c1a3a
Remove single "." components from pathnames, and return os.curdir if
...
the resulting path is empty.
2001-01-28 12:23:32 +00:00
Jack Jansen
a221b2a7a9
Data pathnames were not converted from URL-style to local style. Fixed.
2001-01-28 12:22:14 +00:00
Tim Peters
0149e84af2
SF bug #130306 : statcache.py full of thread problems.
...
Fixed the thread races. Function forget_dir was also utterly Unix-specific.
2001-01-28 05:07:00 +00:00
Fred Drake
64d42c5bb1
Added tests for new signature of new.instance().
...
Use test_support.verify() where applicable.
2001-01-28 03:57:39 +00:00
Martin v. Löwis
2bcb32372c
Except HierarchyRequestErr instead of TypeError.
2001-01-27 09:17:55 +00:00
Martin v. Löwis
70d39a60a8
Re-indent.
2001-01-27 09:01:20 +00:00
Martin v. Löwis
711a5bdc44
Synchronize with PyXML 1.5.
2001-01-27 08:56:24 +00:00
Martin v. Löwis
0591725bc5
Synchronize with PyXML 1.10
...
Break cycle involving expat parser in close().
Add lex handler support to SAX2 pyexpat
2001-01-27 08:56:24 +00:00
Martin v. Löwis
52ce0d0837
Re-indent.
2001-01-27 08:47:37 +00:00
Martin v. Löwis
d5fb58f1e3
Merge changes of PyXML 1.13:
...
Use nodeName, not tagName in attributes.
Provide get method for dictionary-like objects.
Use DOM exceptions instead of standard exceptions.
2001-01-27 08:38:34 +00:00
Martin v. Löwis
e3fc722628
Synchronize with 1.10 of PyXML: Close parser when done.
2001-01-27 08:34:21 +00:00
Tim Peters
715c4c412b
New comment block to Clarify a subtlety.
2001-01-26 22:56:56 +00:00
Martin v. Löwis
04a1a542cb
Patch #103052 : Restore non-cyclic operation of pulldom.PullDOM
2001-01-26 18:53:42 +00:00
Marc-André Lemburg
49c994239f
Added an execution layer to be able to customize per-extension
...
building.
2001-01-26 18:00:48 +00:00
Jeremy Hylton
d30e587e00
unnecessary semicolon
2001-01-26 17:15:18 +00:00
Jeremy Hylton
5b48c45736
unnecessary semicolon
2001-01-26 17:08:32 +00:00
Tim Peters
e360d9507a
The combo of getstate/setstate/jumpahead is very powerful, but needs
...
examples to flesh it out for the uninitiated. Here they are.
2001-01-26 10:00:39 +00:00
Tim Peters
85e2e4742d
SF bug 130030: Claim of bad betavariate algorithm.
2001-01-26 06:49:56 +00:00
Tim Peters
cd80410854
Cosmetic changes after some sleep; no change in semantics.
2001-01-25 20:25:57 +00:00
Jeremy Hylton
619eea6821
PEP 227 implementation
...
test_new: new.code() noew takes two more arguments
test_grammer: Add a bunch of test cases for lambda (not really PEP 227 related)
2001-01-25 20:12:27 +00:00
Jeremy Hylton
4588c78faf
PEP 227 implementation
...
New tests cases for nested scopes.
2001-01-25 20:11:23 +00:00
Jeremy Hylton
5e2d0764cd
In subst_vars(), change the name of the argument from str to s to
...
prevent binding for str from masking use of builtin str in nested
function.
(This is the only case I found in the standard library where a local
shadows a global or builtin. There may be others, but the regression
test doesn't catch them.)
2001-01-25 20:10:32 +00:00
Jeremy Hylton
a39414b15c
PEP 227 implementation
...
Track changes to new opcodes. Add hasfree list that applies to all
ops that use the closure.
2001-01-25 20:08:47 +00:00
Jeremy Hylton
92e9f29aec
add extra tests to verify that co_varnames is being set up properly
...
also normalize checks for syntax errors and delete commented out
definition of verify.
2001-01-25 17:03:37 +00:00
Skip Montanaro
03d9014992
added a few more __all__ lists
...
test___all__.py: fail silently in check_all if the module can't be imported
2001-01-25 15:29:22 +00:00
Skip Montanaro
438bb94789
fail more completely by deleting dbhash from sys.modules if bsddb can't be
...
loaded - prevents second import later from succeeding spuriously - mostly of
use in regression tests where the module might get imported more than once
2001-01-25 13:47:00 +00:00
Tim Peters
d52269bfd0
Fix bugs introduced by rewrite (in particular, time-based initialization
...
got broken). Also added new method .jumpahead(N). This finally gives us
a semi-decent answer to how Python's RNGs can be used safely and efficiently
in multithreaded programs (although it requires the user to use the new
machinery!).
2001-01-25 06:23:18 +00:00
Tim Peters
d7b5e88e8e
Reworked random.py so that it no longer depends on, and offers all the
...
functionality of, whrandom.py. Also closes all the "XXX" todos in
random.py. New frequently-requested functions/methods getstate() and
setstate(). All exported functions are now bound methods of a hidden
instance. Killed all unintended exports. Updated the docs.
FRED: The more I fiddle the docs, the less I understand the exact
intended use of the \var, \code, \method tags. Please review critically.
GUIDO: See email. I updated NEWS as if whrandom were deprecated; I
think it should be.
2001-01-25 03:36:26 +00:00
Guido van Rossum
42756df91c
Fix the test output, now that escapes in repr() of string and Unicode
...
are different (Ping didn't test this).
2001-01-24 21:49:57 +00:00
Guido van Rossum
0fc8b74fc5
Fix the test output, now that escapes in repr() of string and Unicode
...
are different (Ping couldn't test this).
2001-01-24 21:46:18 +00:00
Andrew M. Kuchling
d305f515f9
New asynchat.py from Sam Rushing: this foregoes using the regex module
...
to find the prefix of strings, thus removing a warning, and simply
uses straightforward string slicing.
2001-01-24 21:10:55 +00:00
Ka-Ping Yee
fa004ad36c
Show '\011', '\012', and '\015' as '\t', '\n', '\r' in strings.
...
Switch from octal escapes to hex escapes for other nonprintable characters.
2001-01-24 17:19:08 +00:00
Neil Schemenauer
84d14baf94
There is no more Modules/Makefile, use toplevel Makefile.
2001-01-24 17:17:20 +00:00
Andrew M. Kuchling
af6963c2f0
Updated version of asyncore.py from Sam Rushing:
...
Adds support for using select.poll() if it's available
Move a 'map is None' test out of an else branch and into the right place
2001-01-24 15:50:19 +00:00
Andrew M. Kuchling
506f0b1fc6
Part of patch #102409 : special cases for Cygwin:
...
Lib/distutils/command/build_ext.py(build_ext.finalize_options): Add
Cygwin specific code to append Python's library directory to the
extension's list of library directories.
(build_ext.get_libraries): Add Cygwin specific code to append Python's
(import) library to the extension's list of libraries.
2001-01-24 15:43:09 +00:00
Tim Peters
1baf829835
test___all__ was failing on WIndows because locale.py doesn't really
...
know which names it exports. Didn't fix its ignorance, but patched
over the consequence.
2001-01-24 10:13:46 +00:00
Fredrik Lundh
06d126803c
Move uchhash functionality into unicodedata (after the recent
...
crop of changes, the files are small enough to do this). Also
adds "name" and "lookup" functions to unicodedata.
2001-01-24 07:59:11 +00:00
Skip Montanaro
17ab123cf1
a few more modules get __all__
2001-01-24 06:27:27 +00:00
Barry Warsaw
f44939105a
__all__: removed "error", "abort", "readonly", as these are not
...
exportable module attributes (they're attributes on the IMAP class).
Fixed the case typo on Time2Internaldate.
Does anybody run the test suite any more? <wink>
2001-01-24 04:16:09 +00:00
Barry Warsaw
24f3acab3b
It's "gopherlib" not "gopher".
2001-01-24 04:13:02 +00:00
Eric S. Raymond
cfa4096618
Fixed autoraise glitches.
2001-01-23 15:49:34 +00:00
Skip Montanaro
2dd4276559
added a few more __all__ lists
...
fixed typo in ihooks docstring
2001-01-23 15:35:05 +00:00