Docs for META.regex_id.subn

[ Python Tutorial ] [ Python Libraries ] [ web2py epydoc ]

Description


<type 'builtin_function_or_method'>





subn(repl, string[, count = 0]) --> (newstring, number of subs)
Return the tuple (new_string, number_of_subs_made) found by replacing
the leftmost non-overlapping occurrences of pattern with the
replacement repl.


Attributes


META.regex_id.subn.__call__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__call__(...) <==> x(...)

META.regex_id.subn.__class__ <type 'type'> extends (<type 'object'>,) belongs to class <type 'type'>
<attribute '__doc__' of 'builtin_function_or_method' objects>

META.regex_id.subn.__cmp__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__cmp__(y) <==> cmp(x,y)

META.regex_id.subn.__delattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__delattr__('name') <==> del x.name

META.regex_id.subn.__doc__ <type 'str'> belongs to class <type 'str'>
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

META.regex_id.subn.__eq__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__eq__(y) <==> x==y

META.regex_id.subn.__format__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
default object formatter

META.regex_id.subn.__ge__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__ge__(y) <==> x>=y

META.regex_id.subn.__getattribute__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name

META.regex_id.subn.__gt__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__gt__(y) <==> x>y

META.regex_id.subn.__hash__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__hash__() <==> hash(x)

META.regex_id.subn.__init__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__init__(...) initializes x; see help(type(x)) for signature

META.regex_id.subn.__le__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__le__(y) <==> x<=y

META.regex_id.subn.__lt__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__lt__(y) <==> x<y

META.regex_id.subn.__module__ <type 'NoneType'> belongs to class <type 'NoneType'>

META.regex_id.subn.__name__ <type 'str'> belongs to class <type 'str'>
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

META.regex_id.subn.__ne__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__ne__(y) <==> x!=y

META.regex_id.subn.__new__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
T.__new__(S, ...) -> a new object with type S, a subtype of T

META.regex_id.subn.__reduce__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

META.regex_id.subn.__reduce_ex__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
helper for pickle

META.regex_id.subn.__repr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__repr__() <==> repr(x)

META.regex_id.subn.__self__ <type '_sre.SRE_Pattern'> belongs to class <type '_sre.SRE_Pattern'>
Compiled regular expression objects

META.regex_id.subn.__setattr__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__setattr__('name', value) <==> x.name = value

META.regex_id.subn.__sizeof__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
__sizeof__() -> int size of object in memory, in bytes

META.regex_id.subn.__str__ <type 'method-wrapper'> belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x)

META.regex_id.subn.__subclasshook__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
Abstract classes can override this to customize issubclass(). This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).