« first day (3268 days earlier)      last day (1679 days later) » 
00:00 - 21:0021:00 - 23:00

9:02 PM
@Kevin I meant to say: perfplot curves like @cs95's in stackoverflow.com/questions/54028199/…
 
thefourtheye is pingable here if you want to involve them in the discussion, by the way. Wim has already left a comment on their answer.
 
@smci My gut feeling is that an __eq__ method written in python doesn't need to be overly complex to be slower than the interpreter hashing a string with the speed of C. Ultimately that's just speculation though. I don't really think that either of the two approaches is so bad that it's worth worrying about.
 
@thefourtheye: I started a discussion on your answer to "How do I check if all elements in a list are the same?". The question title is overly broad, but answers assuming the input data is numeric or one-character strings will not really be scaleable when run on long strings O(N) (my original point), or arbitrarily nested Python objects (Aran-Fey's point). all(x == l[0] for x in l) will short-circuit when long strings mismatch, unlike hashing.
... So, should we modify the question title to not be misleadingly over-general? or else what? I see several questions along the lines of "How do I check if all elements in a list are the same?", but none of them are universal enough to be good dupe targets.
 
just to skip rehashing repeating some of the arguments, the discussion started here chat.stackoverflow.com/transcript/message/47421458#47421458
 
@AndrasDeak Andras, don't write comments like that. 'rehashing' is deliberately pejorative. (I didn't know the etiquette of how to summarize the existing discussion for thefourtheye.) No unwelcoming room behavior, please.
 
9:19 PM
I don't see how that's pejorative. Looks like a good ol' bad room 6 pun to me
 
@Aran-Fey It can be read multiple ways
 
@smci sorry, I only meant it as an obvious pun on hashing. No offense intended.
 
9:42 PM
@AndrasDeak Okay
 
9:53 PM
Slightly unclear; their example looks like they might want a multiindex.
but if col A really is a data column then the dupe is spot on
the fact that OP wants "line breaks" suggests that it's unclear
> Note I want to keep them within the same cell, just add linebreaks between the elements, and optionally remove the square brackets and quotes if possible.
that means it's not an explode dupe, @Erfan ^
the existing answer seems to be what they want
 
I feel like OP does not understand what he exactly wants.
But I understand what you mean
 
No, they are very clear, they just want to insert newlines into a string. It's a weird thing to want to do, but if you take it at face value it's clear.
moving it to prevent a future mishammer
 
I see, sure no prob.
 
10:07 PM
I thought I was smart when I wrote two libraries for commonly used stuff for my userscripts, but what I didn't realize is that I'd have to update every single userscript every time one of the libraries is updated...
 
because of the hash?
 
Yeah. The libraries are set up so that they only load once per page (instead of once for each userscript running on the page), so basically only the first userscript loads the library and all others use the (possibly outdated) version that that script uses.
 
Anyone know a convenient type implemented in C with an __ipow__ that could return NotImplemented? I'm trying to test a possible bug where the wrong __ipow__ could be used.
 
wim
10:30 PM
I couldn't even name any type that implements __ipow__.
 
I could only name np.ndarray but it's messy because it delegates to a ufunc
 
No, but it's closely related.
The C-level **= code has a case where it could delegate to the right-hand operand's nb_inplace_power, which makes no sense.
This usually doesn't cause problems, since nb_inplace_power is separate from __ipow__. For types with __ipow__ implemented in Python, nb_inplace_power is a function that searches for __ipow__ and delegates to it. The right-hand operand's nb_inplace_power usually isn't called at all because it matches the left-hand operand's nb_inplace_power, and when it is called, it calls the left-hand operand's __ipow__.
Still, when C types are involved, this can result in one operand's nb_inplace_power being called twice, or being called with a self it doesn't support.
(Also there's an in-place version of 3-argument pow that's only accessible at C level, and that behaves even weirder.)
 
wim
10:55 PM
@Aran-Fey one more request ... add https://stackoverflow.com and https://stackoverflow.com/ to the list of urls to match on
 
The slash matters? Ugh, internet
 
00:00 - 21:0021:00 - 23:00

« first day (3268 days earlier)      last day (1679 days later) »