To Whom it May Concern,
Python's `str` class has a method named `join`
I was wondering if a future release of python could have a `list.join`
which behaves in a similar fashion.
*result = [99].join([1, 2, 3])print(result)# prints [1, 99, 2, 99, 3]*
*Samuel Muldoon*
*(720) 653
*Currently, list.extend does not allow method chaining.*
*parameters = ["zero or more","zero or more".upper(),"zero or
more".lower(),"Zero or More"*
*].extend(["(0, +inf)", "[0; +in**f]"])*
*parameters.extend([&quo
ines of code in python,
probably less than fifty lines in C, or a different implementation
language.
class str:
def format(self, **kwargs):
for key in kwargs:
x = "{"+key+"}"
ostr = kwargs[key].join(self.split(x))
return ostr # output
Hi,
A lot of python's built-in functions have an attribute named __qualname__.
However, the built-in `help` function has no __qualname__ attribute.
In a future version of python can we have:
help.__qualname__ = "help"
___
Python-ideas mailing list --
amed `object` should have a method named
`__mro__` and any class which inherits from `object` may override
`__mro__` or inherit the default `* *object* *.__mro__` . *
*Samuel Muldoon*
*(720) 653 -2408*
*muldoonsam...@gmail.com *
___
Python-ideas ma
way to vet changes to
the Python interpreter or other aspects of the python language. If the
power-that-be would work with GetSatisfaction people to make a copy-cat of
the GetSatisfaction page for Minecraft, I think that the python community
could then better drive PEPs (Python Enhancement Pro
At present, multi-argument function decorators are a little bit tricky to
implement.
As an example (somewhat contrived), suppose that `wait` is a function
decorator which haults program execution for a few seconds before calling
the wrapped function.
If you do not pass a float value into *delay*
*Currently, the `in` operator (also known as `__contains__`) always uses
the rightmost argument's implementation.*
*For example,*
> * status = obj in "xylophone" *
>
*Is similar to:*
*status = "xylophone".__contains__( obj )*
*The current implementation of `__contains__` is similar t