Georg Brandl
47fe9817f1
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67952 | georg.brandl | 2008-12-27 18:42:40 +0100 (Sat, 27 Dec 2008) | 2 lines
#4752 : actually use custom handler in example.
........
r67953 | georg.brandl | 2008-12-27 19:20:04 +0100 (Sat, 27 Dec 2008) | 3 lines
Patch #4739 by David Laban: add symbols to pydoc help topics,
so that ``help('@')`` works as expected.
........
r67955 | georg.brandl | 2008-12-27 19:27:53 +0100 (Sat, 27 Dec 2008) | 3 lines
Follow-up to r67746 in order to restore backwards-compatibility for
those who (monkey-)patch TextWrapper.wordsep_re with a custom RE.
........
r67957 | georg.brandl | 2008-12-27 19:49:19 +0100 (Sat, 27 Dec 2008) | 2 lines
#4754 : improve winsound documentation.
........
r67958 | georg.brandl | 2008-12-27 20:02:59 +0100 (Sat, 27 Dec 2008) | 2 lines
#4682 : 'b' is actually unsigned char.
........
r67960 | georg.brandl | 2008-12-27 20:04:44 +0100 (Sat, 27 Dec 2008) | 2 lines
#4695 : fix backslashery.
........
r67961 | georg.brandl | 2008-12-27 20:06:04 +0100 (Sat, 27 Dec 2008) | 2 lines
Use :samp: role.
........
r67963 | georg.brandl | 2008-12-27 20:11:15 +0100 (Sat, 27 Dec 2008) | 2 lines
#4671 : document that pydoc imports modules.
........
r67965 | antoine.pitrou | 2008-12-27 21:34:52 +0100 (Sat, 27 Dec 2008) | 3 lines
Issue #4677 : add two list comprehension tests to pybench.
........
r67967 | benjamin.peterson | 2008-12-27 23:18:58 +0100 (Sat, 27 Dec 2008) | 1 line
fix markup
........
r67970 | alexandre.vassalotti | 2008-12-28 02:52:58 +0100 (Sun, 28 Dec 2008) | 2 lines
Fix name mangling of PyUnicode_ClearFreeList.
........
r67971 | alexandre.vassalotti | 2008-12-28 03:10:35 +0100 (Sun, 28 Dec 2008) | 2 lines
Sort UCS-2/UCS-4 name mangling list.
........
r67973 | alexandre.vassalotti | 2008-12-28 03:58:22 +0100 (Sun, 28 Dec 2008) | 2 lines
Document Py_VaBuildValue.
........
r67982 | benjamin.peterson | 2008-12-28 16:37:31 +0100 (Sun, 28 Dec 2008) | 1 line
fix WORD_BIGEDIAN declaration in Universal builds; fixes #4060 and #4728
........
r67988 | ronald.oussoren | 2008-12-28 20:40:56 +0100 (Sun, 28 Dec 2008) | 1 line
Issue4064: architecture string for universal builds on OSX
........
r67990 | ronald.oussoren | 2008-12-28 20:50:40 +0100 (Sun, 28 Dec 2008) | 3 lines
Update the fix for issue4064 to deal correctly with all three variants of
universal builds that are presented by the configure script.
........
r67995 | benjamin.peterson | 2008-12-28 22:16:07 +0100 (Sun, 28 Dec 2008) | 1 line
#4763 PyErr_ExceptionMatches won't blow up with NULL arguments
........
r68014 | benjamin.peterson | 2008-12-29 18:47:42 +0100 (Mon, 29 Dec 2008) | 1 line
#4764 set IOError.filename when trying to open a directory on POSIX platforms
........
r68016 | benjamin.peterson | 2008-12-29 18:56:58 +0100 (Mon, 29 Dec 2008) | 1 line
#4764 in io.open, set IOError.filename when trying to open a directory on POSIX platforms
........
r68030 | benjamin.peterson | 2008-12-29 22:38:14 +0100 (Mon, 29 Dec 2008) | 1 line
fix French
........
r68057 | vinay.sajip | 2008-12-30 08:01:25 +0100 (Tue, 30 Dec 2008) | 1 line
Minor documentation change relating to NullHandler.
........
r68061 | georg.brandl | 2008-12-30 11:15:49 +0100 (Tue, 30 Dec 2008) | 2 lines
#4778 : attributes can't be called.
........
r68112 | benjamin.peterson | 2009-01-01 00:48:39 +0100 (Thu, 01 Jan 2009) | 1 line
#4795 inspect.isgeneratorfunction() should return False instead of None
........
r68115 | benjamin.peterson | 2009-01-01 05:04:41 +0100 (Thu, 01 Jan 2009) | 1 line
simplfy code
........
r68116 | georg.brandl | 2009-01-01 12:46:51 +0100 (Thu, 01 Jan 2009) | 2 lines
#4100 : note that element children are not necessarily present on "start" events.
........
r68117 | georg.brandl | 2009-01-01 12:53:55 +0100 (Thu, 01 Jan 2009) | 2 lines
#4156 : make clear that "protocol" is to be replaced with the protocol name.
........
r68118 | georg.brandl | 2009-01-01 13:00:19 +0100 (Thu, 01 Jan 2009) | 2 lines
#4185 : clarify escape behavior of replacement strings.
........
r68120 | georg.brandl | 2009-01-01 13:15:31 +0100 (Thu, 01 Jan 2009) | 4 lines
#4228 : Pack negative values the same way as 2.4
in struct's L format.
........
r68121 | georg.brandl | 2009-01-01 13:43:33 +0100 (Thu, 01 Jan 2009) | 2 lines
Point to types module in new module deprecation notice.
........
r68123 | georg.brandl | 2009-01-01 13:52:29 +0100 (Thu, 01 Jan 2009) | 2 lines
#4784 : ... on three counts ...
........
r68124 | georg.brandl | 2009-01-01 13:53:19 +0100 (Thu, 01 Jan 2009) | 2 lines
#4782 : Fix markup error that hid load() and loads().
........
r68125 | georg.brandl | 2009-01-01 14:02:09 +0100 (Thu, 01 Jan 2009) | 2 lines
#4776 : add data_files and package_dir arguments.
........
r68126 | georg.brandl | 2009-01-01 14:05:13 +0100 (Thu, 01 Jan 2009) | 2 lines
Handlers are in the `logging.handlers` module.
........
r68127 | georg.brandl | 2009-01-01 14:14:49 +0100 (Thu, 01 Jan 2009) | 2 lines
#4767 : Use correct submodules for all MIME classes.
........
r68128 | antoine.pitrou | 2009-01-01 15:11:22 +0100 (Thu, 01 Jan 2009) | 3 lines
Issue #3680 : Reference cycles created through a dict, set or deque iterator did not get collected.
........
2009-01-01 15:46:10 +00:00
Brett Cannon
d9636e17cc
Remove the use of callable() in re to silence warnings under -3.
2008-08-04 21:07:59 +00:00
Georg Brandl
dffbf5f542
Revert copy_reg -> copyreg rename.
2008-05-20 07:49:57 +00:00
Alexandre Vassalotti
9510e4a9f8
Added module stub for copy_reg renaming in 3.0.
...
Renamed copy_reg to copyreg in the standard library, to avoid
spurious warnings and ease later merging to py3k branch. Public
documentation remains intact.
2008-05-11 08:25:28 +00:00
Guido van Rossum
212861c54f
In the experimental 'Scanner' feature, the group count was set wrong.
2008-02-05 17:32:15 +00:00
Georg Brandl
422319937e
Add missing things in re docstring.
2008-01-26 11:00:18 +00:00
Georg Brandl
e42169124f
Clarify $ behavior in re docstring. #1631394 .
2008-01-21 17:29:23 +00:00
Raymond Hettinger
80016c9555
Fix issue 1661: Flags argument silently ignored in re functions with compiled regexes.
2007-12-19 18:13:31 +00:00
Neal Norwitz
94a9c09e10
Rename sre.py -> re.py
2006-03-16 06:30:02 +00:00
Neal Norwitz
559e88be28
Remove re.py, in order to rename sre.py -> re.py (svn seems to require 2 steps).
2006-03-16 06:27:37 +00:00
Neil Schemenauer
1e6ada0533
Give people who run "pydoc re" a clue.
2003-01-31 00:35:58 +00:00
Fredrik Lundh
37a0982278
point people to the Python bug tracker, rather than to a mail
...
account I hardly ever use...
2002-10-19 20:19:10 +00:00
Guido van Rossum
ad9eba7a69
Add 'engine' back. IDLE used this, others might have copied it from
...
there.
2002-07-28 19:04:07 +00:00
Tim Peters
863ac44b74
Whitespace normalization.
2002-04-16 01:38:40 +00:00
Andrew M. Kuchling
7fd1c8c880
Remove support for importing 'pre' module
2002-04-10 21:15:40 +00:00
Fred Drake
b8f2274985
Added docstrings by Neal Norwitz. This closes SF bug #450980 .
2001-09-04 19:10:20 +00:00
Skip Montanaro
0de65807e6
bunch more __all__ lists
...
also modified check_all function to suppress all warnings since they aren't
relevant to what this test is doing (allows quiet checking of regsub, for
instance)
2001-02-15 22:15:14 +00:00
Guido van Rossum
fb06539e99
My fix to the URL accidentally also switched back to the "pre" module.
...
Undo that!
2000-08-01 21:22:16 +00:00
Guido van Rossum
8c74335807
Replace the jitterbug page with the SF Bug Tracker page.
2000-08-01 20:28:33 +00:00
Fredrik Lundh
ef7bae6b2f
replaced <some suitable mail address> with something slightly
...
more suitable.
2000-06-30 22:01:36 +00:00
Guido van Rossum
2850d18615
Switch to sre for regular expression matching (the new mini-re module
...
is actually by Fredrik Lundh). This will break the re tests --
Fredrik will fix this before the final release.
2000-06-30 16:25:20 +00:00
Guido van Rossum
77980a731c
Correct typo in module doc string doscovered by Jonathan Giddy.
1999-11-15 14:19:15 +00:00
Guido van Rossum
6ebb387a08
Patch by Jeffrey Chang to add docstrings everywhere.
...
The text is condensed from the library manual.
1999-07-09 21:15:32 +00:00
Andrew M. Kuchling
9a80e00cac
The .subn() method wasn't setting _num_regs, which is used by the .groups()
...
method, so .groups() didn't work inside the replacement function
called by re.sub. One-line fix: set self._num_regs inside subn().
1998-08-21 18:39:38 +00:00
Guido van Rossum
3a8d1f5a6b
Modest speed improvement to escape() by Piet van Oostrum.
1998-07-20 15:46:13 +00:00
Guido van Rossum
0e5ab17ad3
Get a 3- to 4-fold speedup for sub()/subn(), split() and findall() by
...
not calling self.search(); instead, call self.code.match() directly
and interpret the list of registers it returns directly. This saves
the overhead of instantiating a MatchObject for each hit, basically
inlining search() as well as group(). When a MatchObject is still
needed, one is allocated and reused for the duration of the scan.
1998-07-17 20:18:49 +00:00
Guido van Rossum
be0b62cab4
Added findall() to RegexObject -- return a list of all matches in a
...
string. Added groupdict() to MatchObject -- return the named groups
as a dict. Added default argument to groups() to specify what to
return for unmatching groups; groupdict() also has this.
1998-06-29 20:29:08 +00:00
Guido van Rossum
3c46234e5e
Remove Emacs and #! cruft.
1998-05-29 18:22:53 +00:00
Guido van Rossum
8430c583da
AMK's latest
1998-04-03 21:47:12 +00:00
Guido van Rossum
45e2fbc2e7
Mass check-in after untabifying all files that need it.
1998-03-26 21:13:24 +00:00
Guido van Rossum
b1908846af
Fix for literal null bytes -- these must be replaced by the four
...
characters \, 0, 0, 0.
1998-02-19 21:18:56 +00:00
Guido van Rossum
2b2b3f9bcb
Fix two bugs:
...
(1) maxsplit was ignored in split().
(2) groups() would return a string instead of a singleton tuple when
there was only one group.
1998-01-12 18:57:53 +00:00
Guido van Rossum
dfa6790bd6
New re version from AMK
1997-12-08 17:12:06 +00:00
Guido van Rossum
af8d2bf4d8
Bugfix in match() -- the number of registers shouldn't be divided by two!
1997-10-27 18:17:19 +00:00
Guido van Rossum
5bc5b14f6d
Checking in AMK's latest installement.
1997-10-08 02:08:04 +00:00
Guido van Rossum
c6e8fd6de7
Temporary fix to valid_identifier().
1997-10-07 14:51:18 +00:00
Guido van Rossum
bf9d353bab
New "re" regular expression support.
...
The new re module was written by Andrew Kuchling and uses the pcre
code in ../Modules/. The old re module has been renamed to re1,
just in case you need it for comparison.
1997-10-06 14:45:17 +00:00
Guido van Rossum
827ea7cf5d
Last minut changes for \B, \S (?). AMK.
1997-08-15 15:44:23 +00:00
Guido van Rossum
c4d6c4d950
OK, reop is safe again.
1997-08-14 21:23:07 +00:00
Guido van Rossum
257c772afa
Comment out use of reop.expand_escape and reop._expand until their
...
bugginess has been fixed.
1997-08-14 19:33:06 +00:00
Guido van Rossum
95e8053a9f
1.5a3 prerelease 1 from AMK
1997-08-13 22:34:14 +00:00
Guido van Rossum
6af4abdba0
Various changes by AMK, e.g. remove \e, \cX, add \v
1997-08-13 03:25:34 +00:00
Guido van Rossum
71fa97c60d
Jeffrey's latest -- reorder my chages somewhat,
...
removed some of his own cruft. Added \g<...> references in replacement text.
1997-07-18 04:26:03 +00:00
Guido van Rossum
9e18ec7dc9
Correctly implement sub, subn, and split. Also correct and augment
...
the cache code.
1997-07-17 22:39:13 +00:00
Guido van Rossum
a4f1a78b6e
Jeffrey's next installment
1997-07-17 22:38:10 +00:00
Guido van Rossum
a0e4c1bffc
Jeffrey's latest -- seems to solve most problems!
1997-07-17 14:52:48 +00:00
Guido van Rossum
26d80e6714
Correct inf. while loop.
1997-07-15 18:59:04 +00:00
Guido van Rossum
9f845ec64b
More changes by Jeffrey.
1997-07-15 18:11:42 +00:00
Guido van Rossum
531097502c
Fix group() -- should be tuple even when re has exactly one group.
1997-07-15 15:40:29 +00:00
Guido van Rossum
09bcfd649a
Jeffrey's latest -- almost there.
1997-07-15 15:38:20 +00:00