On Tuesday, February 28, 2017 at 6:48:42 PM UTC-5, 语言破碎处 wrote:
>
> > A hypothetical frozenset.pop() is also necessarily O(N). It needs to
> copy N-1 elements into the new (smaller) frozenset object. So this isn't
> an argument.
> Pop tuple/frozenset(standard one) gain no benefit. # O(n)
> It
On Fri, Mar 31, 2017 at 3:58 AM, Chris Angelico wrote:
> This keeps on coming up in one form or another - either someone
> multiplies a list of lists and ends up surprised that they're all the
> same, or is frustrated with the verbosity of the alternatives.
>
> Can we use the
On Sat, Apr 1, 2017 at 12:44 PM, Steven D'Aprano wrote:
> On Fri, Mar 31, 2017 at 06:58:21PM +1100, Chris Angelico wrote:
>> This keeps on coming up in one form or another - either someone
>> multiplies a list of lists and ends up surprised that they're all the
>> same, or is
On Fri, Mar 31, 2017 at 06:58:21PM +1100, Chris Angelico wrote:
> This keeps on coming up in one form or another - either someone
> multiplies a list of lists and ends up surprised that they're all the
> same, or is frustrated with the verbosity of the alternatives.
>
> Can we use the matmul
On 31 March 2017 at 09:20, Stephan Houben wrote:
> FWIW, I also strongly prefer the Verbal Expression style and consider
> "normal" regular expressions to become quickly unreadable and
> unmaintainable.
Do you publish your code widely? What's the view of 3rd party users of
On Thu, Mar 30, 2017 at 10:18 AM, Markus Meskanen
wrote:
> And wondered, why don't we have a way to repeat other than looping over
> range() and using a dummy variable?
If it's the assignment to a dummy variable that bothers you, the
language already has a way around
On 3/31/17, Steven D'Aprano wrote:
> On Thu, Mar 30, 2017 at 04:23:05PM +0200, Pavol Lisy wrote:
>> On 3/30/17, Nick Coghlan wrote:
>> > On 30 March 2017 at 19:18, Markus Meskanen
>> > wrote:
>> >> Hi Pythonistas,
>> >>
>> >>
Hi all,
FWIW, I also strongly prefer the Verbal Expression style and consider
"normal" regular expressions to become quickly unreadable and
unmaintainable.
Verbal Expressions are also much more composable.
Stephan
2017-03-31 9:23 GMT+02:00 Stephen J. Turnbull
This keeps on coming up in one form or another - either someone
multiplies a list of lists and ends up surprised that they're all the
same, or is frustrated with the verbosity of the alternatives.
Can we use the matmul operator for this?
class List(list):
def __matmul__(self, other):
Abe Dillon writes:
> Note that the entire documentation is 250 words while just the syntax
> portion of Python docs for the re module is over 3000 words.
Since Verbal Expressions (below, VEs, indicating notation) "compile"
to regular expressions (spelling out indicates the internal matching
On Fri, Mar 31, 2017 at 2:49 AM Suresh V. via Python-ideas <
python-ideas@python.org> wrote:
> On Thursday 30 March 2017 02:48 PM, Markus Meskanen wrote:
> > Hi Pythonistas,
> >
> > yet again today I ended up writing:
> >
> > d = [[0] * 5 for _ in range(10)]
> >
> > And wondered, why don't we
On Thursday 30 March 2017 02:48 PM, Markus Meskanen wrote:
Hi Pythonistas,
yet again today I ended up writing:
d = [[0] * 5 for _ in range(10)]
And wondered, why don't we have a way to repeat other than looping over
range() and using a dummy variable? This seems like a rather common
thing to
12 matches
Mail list logo