« first day (2883 days earlier)      last day (2080 days later) » 

4:00 PM
Okay I will try it
 
@wim pings all of them
 
wim
huh. nice "feature".
 
(in chat; main is different)
there's even a Kevin who changed his name to Kcvin here :P
 
wim
has this been proved experimentally?
 
I believe so
even @KevinMGranger gets all the Kevin pings
 
wim
4:02 PM
Has it been ruled out that all the Kevins are deceiving us?
 
"Has it been ruled out that Hyper-Kevin is deceiving us?" FTFU
 
"Kevin" starts with the same letter as "Konspiracy". Koincidence? I think not.
 
@Kevin Why would A be modified? You only ever set it to 2, and nothing in your code tries to modify it, or access it, apart from the return. BTW, that .mymethod2 will raise a recursion error if you try to call it.
 
@wim "all the Kevins" - plural? We all know there's only one Kevin... :)
 
4:19 PM
Aug 14 at 14:36, by Kevin
Feb 20 at 20:45, by Kevin
Feb 9 at 17:10, by Kevin
Jan 16 at 19:12, by Kevin
Sep 8 '16 at 18:44, by Kevin
Jul 17 '14 at 13:52, by Kevin
All apparent Kevins are just the 3d cross-sections of a single four dimensional hyperKevin as it intersects our universe.
 
wim
whoah, that thing takes up half the page now
 
Meh.... -1 - Not enough Kevins... (or too many Kevins... not sure which)
 
I always forget that dis can take a string.
[How many times do we have to teach you old man.png]
 
@Code-Apprentice jep, order of appearence in class. And i think there was some boilerplate included, maybe even a custom pytest flag.. i didn't have to write it, so i'm not sure on the details. It was easy in maintenance and usage, so i was fine with it.
 
4:26 PM
@Aran-Fey I have a very twitchy trigger finger on PRs that introduce new packages, so those are avoided when i'm part of the reviewer list =D
I think it's good for what it does.
 
@piRSquared Agree with you. What value does "appeal" have over readability/speed/actually working or pretty much any other metric?
 
He just needs to think about your answer as 3 consecutive one-liners that go together.
 
ahhh, one-liners plural.
 
@Kevin lol :D don't make the same mistake as martijn did :D
 
@AnttiHaapala Indeed! Though mostly he's abdicated on aiosmtpd, due to being busy with other things as well. But that's OK, cause I'm happy to put my time to good use helping make something awesome :)
 
4:50 PM
def set_and_count(df, mask, repl, target=None):
    df.loc[mask, target if target is not None else mask.name] = repl
    return mask.sum()

replaced = set_and_count(df, df.colour=='green', 'test')
@piRSquared could wrap it up something like ^^^? (not convinced I like it though but... just a thought I had)
 
Interesting thought. I usually think of one-liners as philosophically justified with some functional paradigm. EG, no side effects. Also, is there an agreed upon definition of "one-liner"? Does creating a custom function prior to executing qualify? So much ambiguity.
 
One line only, no semicolons, Final Destination
 
@piRSquared one horrendous thought was making use of df.replace with a callable object that counts the times it's been called for each replacement kind of thing... but that way madness lies I think...
 
there be dragons for sure
 
wim
[x for x in xs if cond1 if cond2]
[x for x in xs if cond1 and cond2]
what are some situations where the result is different?
I can think of one difference (short-circuiting)
 
4:58 PM
doesn't and do short circuiting for us?
 
@davidism Yeah, but it was my own fault in that case.
@davidism: I didn't actually need to set _meta on that field..
 
@WayneWerner python.org/dev/peps/pep-0401/#id16 rereading this :D
> Guido wrote the original implementation of Python in 1989, and after nearly 20 years of leading the community, has decided to step aside as its Benevolent Dictator For Life. His official title is now Benevolent Dictator Emeritus Vacationing Indefinitely from the Language (BDEVIL). Guido leaves Python in the good hands of its new leader and its vibrant community, in order to train for his lifelong dream of climbing Mount Everest.
5
 
@davidism: different question then, will there be a new release of github.com/wtforms/wtforms-sqlalchemy?
@AnttiHaapala in order to demonstrate his intention to lead the community in the same responsible and open manner as his predecessor, whose name escapes him
 
wim
hmm, actually, 2 ifs short circuits as well
 
@wim omw to enlightenment, I was slapped with the wty-hammer:
def f(x):
  print(x)
  return x

f(True) and f(True)

# True
# True
# True
 
wim
5:01 PM
>>> [x for x in [1] if x < 0 if x < "spam"]
[]
>>> [x for x in [1] if x < 0 if notanameerror]
[]
 
Oh dangit.... of course I hate it when I'm lame
 
it just looks completely wrong though...
 
I was playing around with double-if listcomps earlier and I didn't see any obvious difference between them and the more conventional form that uses and
 
same short circuiting
f(False) and f(notanameerror)
 
@wim nested ifs
 
5:04 PM
Tempted to write a question on the main site, if I can figure out how to word it so I don't get replies like "well how are we supposed to know what the devs' intent was by allowing this behavior?"
 
@piRSquared no tan am eer ror ? huh? :p
 
@Kevin simply, [... for ... if ... for ... for ... if ... if ] =>
 
wim
yeah, I will ask it on main
 
for:
    if:
        for:
            for:
                if:
                    if:
why would you allow only one consecutive if, that would make the parsing only harder
 
@jon "no tan" is a reference to my pigmentation. "am eer" is dialect (of some sort) for "I am here". Also "ror" is a bestial sound that exemplifies my power.
 
5:06 PM
@wim^ @Kevin^
 
Mm hmm, "forbidding consecutive ifs during parsing would be harder than implicitly allowing them" was my leading theory
 
it is even concisely explained in the Tutorial which of course you've all read
 
@wim: had I seen that I'd have shown you
34
A: python list comprehension with multiple 'if's

Martijn PietersThe grammar allows for multiple if statements because you can mix them between the for loops: [j for i in range(100) if i > 10 for j in range(i) if j < 20] The comprehension components should be viewed as nested statements, the above translates to: lst = [] for i in range(100): if i > 10:...

 
Not yet 100% convinced that forbidding them really would be harder. Couldn't they just change comp_if ::= "if" expression_nocond [comp_iter] to comp_if ::= "if" expression_nocond?
 
@piRSquared here i thought it was more about sin/cos :D
 
5:09 PM
> The grammar and parser do not specifically disallow such usage, in the same way that Python doesn't disallow you to nest if statements.
 
wim
@MartijnPieters ahh, yep, thanks
 
@Kevin to what end though?
It's just and anyway.
 
(because if you're crazy enough to try it - why should we stop you!?) :p
 
wim
although the accepted answer is not very enlightening, your answer should have been accepted
 
5:10 PM
pep 202 explicitly has 2 ifs in an example. ^
 
Because there ought to be one and only one way to do it
 
it has been written by FLUFL.
@MartijnPieters ^you could add a reference to PEP202 there
 
ooo.... looky at you with a gold :p
 
wim
heh
there is no need to apologize for dupe closing. dupe are good for the site.
 
"Forbidding it would be easy, but it's better to keep it so it remains conceptually parallel to longform for-loops-and-ifs" is a reasonable justification
 
5:13 PM
Special cases aren't special enough to break the rules.
Although practicality beats purity.
 
Isomorphisms are good
 
this is something opposite
because here the special case of 1 would break the rule in the name of purity.
 
Comedy explanation: "we allow it for the sake of code golfers, because if a if b is one character shorter than if a and b"
 
wim
just don't tell ajax about this feature
 
Anyone ever had a name clash between a builtin and a module? Should I 1) rename the module or 2) write my __init__.py like this:
from .bytes import *
del bytes
 
5:16 PM
Brb gonna forbid consecutive ifs in KevinScript
 
@AnttiHaapala done!
 
Is there a builtin bytes module then @Aran-Fey?
 
@JonClements can I help it that no-one else answers enough list-comp questions to get that badge? :-P
 
I guess you could by not answering all of 'em :p
 
@JonClements Not a module, no. It's clashing with the bytes class. Because a relative import in an __init__.py also adds the module to the globals, it prevents me from accessing the builtin bytes
 
wim
5:19 PM
rename the module
 
# my_module/bytes.py
pass

# my_module/__init__.py
from .bytes import *

# foo.py
from my_module import *
bytes([1, 2, 3])  # throws "module object is not callable"
I swear the python builtins are purposely named to produce the maximum possible amount of name clashes
 
I should read better.
 
ninja!
 
Invisible ninja
 
the only kind there is
 
5:22 PM
I'd like to take a minute to be thankful that I can now do with open("blah") as file: without overshadowing a builtin
 
@Aran-Fey you only make that mistake a few times when you name your module random.py or time.py and then you learn better
 
for clarity one should just default to __builtins__.bytes anyway
 
[i for i in range(100) if i > 10 if i < 20] has actually blown my mind a bit that this exists. Too much to research being added to my plate :)
 
@roganjosh that's so much worse than chaining those ops...
 
But at the same time, I regret that I can no longer do help(file.readlines) when I want to look at the documentation for file object methods without creating a file
 
5:24 PM
@WayneWerner I thought it wouldn't matter inside of a package, but I was wrong!
 
[-_-]~
 
Does the file type live in a module somewhere, now, or does it just... Leap into existence fully formed when I call open()?
 
@Aran-Fey it'll matter wherever you put it
because namespaces are one honking great idea
 
(That's a ninja list comprehension, y'all)
 
5:25 PM
[i for i in range(100) if 10 > i > 20]
 
There's a lot of support for conventional list comprehensions. Does the same apply to [i for i in range(100) if i > 10 if i < 20] or should it be considered a supported feature "just because"?
 
@Kevin It's probably somewhere in the io module
 
Note the chained comparison there.
 
(but really, just use range(11, 20) next time)
 
5:27 PM
@Kevin You could see what type(open(foo)) returns...
 
@Kevin the io module holds all the file object components. What you get depends on text vs binary, buffered or not, and on reading or writing.
 
wim
I got told off for stomping file here
 
@PM2Ring and then look at .buffer and .buffer.raw too.
 
@Kevin or RawBaseIO ?
 
As in, are there any benefits at all from actually using the double if in list comps over a nested loop?
 
5:28 PM
@MartijnPieters Indeed!
 
wim
@roganjosh you mean over using and?
 
@roganjosh Define "support". If you mean: "is this behavior well-defined? Can I depend on it continuing to exist in future versions of Python?" then yes. A double-if list comp appears in PEP 202, so it would be hard for them to backpedal on it being a parsing quirk.
 
@Kevin ahh... FileIO looks to be the parent of the Text/Binary IO wrappers for files...
 
wim
there are no nested loops here ..
 
@roganjosh I think the performance difference would be more around the comprehension vs a 'regular' for loop. The conditionals I don't think will add any speed difference between both methodologies (correct me if I'm wrong)
There is this answer here that seems fairly comprehensive -> stackoverflow.com/questions/22108488/…
 
5:30 PM
Ack,I didn't mean loop, sorry
Nested ifs
 
Nested, like with parentheses? I don't think that's valid syntax
 
@roganjosh nope, the resulting bytecode won't actually differ.
 
>>> [i for i in range(10) if i > 1 if i < 9]
[2, 3, 4, 5, 6, 7, 8]
>>> [i for i in range(10) if (i > 1 if i < 9)]
  File "<stdin>", line 1
    [i for i in range(10) if (i > 1 if i < 9)]
                                            ^
SyntaxError: invalid syntax
 
@idjaw there is zero difference.
@Kevin tsk tsk, you don't know how to use and, Kevin?
 
Thanks, I'll refrain from using it
 
5:32 PM
Or do you mean like [x for x in [i for i in range(10) if i > 1] if x < 9]
@MartijnPieters Sure, I'm just trying to figure out the parameters of this hypothetical
 
No, I had a brain fart and used "loop" when I meant "if" :/
 
[(\if:=_) for (\for:=_) in range(10) if \if == \for]
 
I got that part. I'm trying to figure out the difference between "nested ifs" and "double ifs"
 
Which reminds me, that file descriptor question I mentioned a few hours ago still doesn't have a decent answer. stackoverflow.com/questions/52219393/… I'd hammer it to the question I linked in a comment, but I'm not sure if it's a close enough match.
 
wim
5 mins ago, by wim
@roganjosh you mean over using and?
 
5:35 PM
lst = []
for i in range(100):
    if i > 10:
        if i < 20:
            lst.append(i)
That is the translation given. How should I refer to it? (I'm fully aware I'm probably wrong with terminology)
 
Wow... so you're going to look at all items in the sequence there :)
 
wim
if that is your question, it's exactly what I asked in Multiple filters in list comprehension. And if Martijn is to be believed, which he usually is, then there is no difference.
 
I'm quoting martijn here
 
wim
also asked starting here and nobody could come up with an example data where the result was different ..
 
Yup, so my question remains a brain fart that Kevin is pushing me on. I'm responding to "got that part. I'm trying to figure out the difference between "nested ifs" and "double ifs""
 
5:38 PM
@Aran-Fey Your biggest problem is the fact that you did from ... import *. If you just had import my_module then you can use my_module.bytes with no problem
 
@wim again, there is no difference. When you compile either to bytecode the same bytecode is produced.
 
Or have fun with from my_module import bytes as bites :p
 
of course, anything in your module that import bytes will have to make sure they're not using the builtin bytes (or as someone mentioned, use __builtin__.bytes if you really have to shadow the existing name)
 
I'd rather from builtins import bytes to avoid dunders
 
@MartijnPieters Yeah. Thanks. My wording was terrible. It was a "if" there is a difference it would be there, but yeah. That. 😀
 
wim
5:41 PM
@MartijnPieters checks out
 
@MartijnPieters I believe you, but how do you tell? Earlier we were puzzling about whether it was possible to use dis to examine the bytecode of a list comprehension.
 
from builtins import bytes as real_bytes
 
wim
dis.dis('[x for x in y if a if b]')   # works for me
is your computer broken?
 
@Kevin a list comp produces a nested code object, but recent dis versions detect this and directly show you the disassembly.
@wim they may not be using the latest Python 3.x dis version.
 
I'm using 3.6.3 and I get:
>>> dis.dis('[x for x in y if a if b]')
  1           0 LOAD_CONST               0 (<code object <listcomp> at 0x0144FAC8, file "<dis>", line 1>)
              2 LOAD_CONST               1 ('<listcomp>')
              4 MAKE_FUNCTION            0
              6 LOAD_NAME                0 (y)
              8 GET_ITER
             10 CALL_FUNCTION            1
             12 RETURN_VALUE
 
5:42 PM
In 2.7 you also don't get a nested function object.
@Kevin use 3.7.
@Kevin ah, no, you made a mistake there.
@Kevin: dis.dis() takes a code object, not a string.
wait.
no, 3.6.3 knows a string must be code.
 
wim
upgrade, ye luddite!
 
disassembling a listcomp needs black magic with a blood sacrifice, hence you need the bleeding edge
 
a bytes object would be treated as bytecode
 
dis.dis(lambda: [x for x in y if a if b]) gives a similar result, FWIW
 
wim
well, kevin runs windows, so nothing he tries can be trusted
 
5:43 PM
windows users are people too
 
dis.dis(compile('[x for x in y if a if b]', '', 'exec').co_consts[0])
 
Ok, I will add "more comprehensive dis information" to my ever-growing list of reasons to upgrade
 
comprehensive, eh?
 
I saw this used as a dupe target a little while ago (the duped question is now self-deleted). I guess the answers there are mostly ok, apart from a few quirks, but I get the impression that they could be a bit confusing. To be honest, the most useful info on that page is in its offsite links...
 
It's like one of those tubes made out of bamboo that you see in cliche japanese gardens where they slowly fill up with water and eventually tilt over and go clunk. In this metaphor, the water is peer pressure.
 
5:45 PM
@AndrasDeak sticking up for Windows users now?
 
@Kevin: Changed in version 3.7: Implemented recursive disassembling and added depth parameter.
 
wim
interestingly, the abstract syntax tree is different, but the bytecode disassembly is same.
 
I think there must be many 3.6 users secretly among us because when I first brought it up this morning nobody said "uh, I can see the byte code just fine"
 
@roganjosh it will be a sad day when merely acknowledging the existence of humans will count as sticking up for them :D
 
J'accuse, room 6
 
5:46 PM
@AndrasDeak I was waiting for that :P
Give them some bread and milk
 
@wim the compiler can still make optimisation choices, the AST is not the final say on what is output.
 
@Kevin you said you can't, wim said you can in a string, and I stopped reading
 
Lots of 3.6 users OR lots of users with low attention span
 
wim
low care factor, more likely
 
(although it could well be that the sequential if nodes just happen to produce the same bytecode as and would have).
 
5:52 PM
@Kevin Sorry, I should've suggested trying it in 2.7
 
@WayneWerner Well, I don't think there's anything wrong with doing from .subpackage import * in __init__.py files. It reduces code duplication because you don't have to explicitly list every single name in the subpackage. But it does expose the names of your modules and subpackages to the world, which can be a problem sometimes
 
Oh, can 2.7 disassemble it? Does this have something to do with how they changed scoping for list comps?
 
12 mins ago, by Martijn Pieters
In 2.7 you also don't get a nested function object.
@Aran-Fey Pity there isn't an inverse form of __all__, so you could specify what names won't be imported with a star import.
 
__none__?
 
Yeah. The import system is probably the worst thing about python
 
6:01 PM
@MartijnPieters yes, I thought I already made a new release but apparently I forgot.
Add it to the list. :-/
 
Anyone know the dupe for stackoverflow.com/questions/52227548/… that explains slicing properly and using re.finditer with (?=...) ?
 
wim
test_richcmp -- test_resource failed in my CPython build but only for the PGO which has || true after the test run
 
I think it'd be more important to explain how for loops work. They seem to have slicing figured out
 
wim
safe to assume no cause for concern...?
@PM2Ring there is .... you use a _name like that and they don't get slurped up by * import
 
@wim That doesn't do anything for modules though. No matter how many underscores there are in your module's name, it'll be added to __init__.py's namespace anyway
 
wim
6:08 PM
@Aran-Fey huh?
don't understand
 
# my_module/_private.py
pass

# my_module/__init__.py
from ._private import *

# foo.py
import my_module

print(my_module._private)  # prints "<module _private>"
 
wim
dowvnote baiting if I ever saw it
@Aran-Fey that is a different, and necessary, part of the import system
it wasn't a * import that brought _private in as an attribute name, the same thing would have happened with from ._private import something
hmm, now that I think about it, maybe it is not a necessary part
 
6:25 PM
@StuartDTO, sorry, we usually only allow solicitations of questions that have been around for a few days. Not much point posting a question if it's still on the front page.
 
DSM
Are there any fellow Slack users having trouble? Server Errors everywhere. (Python connection: I was talking with someone about something which turns out to be a pandas bug on the channel when it went down..)
 
(also it helps if it's specifically related to Python)
 
@DSM ah good, it's not just me
Their status page says everything's fine though
 
@davidism Ta, much obliged!
 
Slack's working OK for me
 
6:28 PM
Currently using a git+https://....@<revision> reference to that project.
 
DSM
In [247]: json.dumps({0: "x/y"})
Out[247]: '{"0": "x/y"}'

In [248]: pd.Series(["x/y"]).to_json()
Out[248]: '{"0":"x\\/y"}'
 
@DSM yeah, my fiance was having some issues, now resolved.
We use slack for free international audio calls :-p (WhatsApp is banned in the UAE :/ )
 
@DSM wowsers... what excuse does it have for that :p
 
@wim I don't think anyone would mind if that behavior were disabled in __init__.py files
 
DSM
@JonClements: well, if you loads the result the backslash is consumed, so it round-trips, but it doesn't need to do it in the first place here.
 
6:37 PM
oh, so going back in you get the correct result?
 
DSM
Yeah, json.loads('"x\\/y"') == 'x/y'.
 
In PATH there is a fibo.py doc. Whe I run '>>> python fibo.py', it gives an error 'SyntaxError: invalid syntax, however, here: thepythonguru.com/what-is-if-name-__main__/ it is shown a code like mine (python my_module.py) up above is valid. Why am I getting the error?
 
DSM
You're supposed to run python fibo.py from the console, not from within the Python interpreter.
 
Oh, I didn't realize that
 
The styling on that page is a bit misleading since it's weird that it uses line numbers for a reproduction of a command prompt
 
DSM
6:44 PM
It's a little unclear in the page you linked. Don't worry about it. :-)
 
wim
do / need to be escaped in json or not? I'm seeing conflicting info
 
DSM
@wim: I tossed unescaped forward slashes into a validation engine and it was okay with it, but I don't know how strict it's being.
 
wim
it might be something that is optional, but desirable, if you want to safely embed json in html ..
 
DSM
Could be. By my reading of the spec, `\` can be followed by / (which is apparently a "solidus"?) but needn't be.
 
wim
backslash is "reverse solidus" so makes sense :P
 
DSM
6:55 PM
Is solidus the official name of a slash? How did I never know this?
 
wim
>>> '\N{SOLIDUS}'
'/'
 
DSM
(quickly skims history of the room to see who first said the word 'solidus'):
Nov 14 '14 at 14:06, by Kevin
or is that a backslash, I always confuse the two. unicodedata calls it a REVERSE SOLIDUS.
aargh, @Kevin'd again
Nov 14 '14 at 14:08, by Kevin
SOLIDUS sounds like the name of an 80s arcade game.
 
wim
Kevin'd by a quote from Kevin
 
my shop is developing a new Broadway musical: "The Coder". Think we can get this crowd funded?
 
Sings: "You've gotta know when to code 'em, know when to modem"
8
 
7:02 PM
...Know when to compile, know when to run
 
@PM2Ring dammit... I've gotta play that now :)
 
7:22 PM
>>> '\N{liquidus}'
  File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-11: unknown Unicode character name
it's broken
also named unicodes are one of the rare case-insensitive things in python
In case anyone feels like doing some waste management:
in SOBotics Workshop, 1 min ago, by Bhargav Rao
@AndrasDeak There are a lot of questions which have 4 CVs that are starting to age away (50 of the worst affected here). Can you help us in someway to find users who can review that? Thank you so much for your help!
 
@Andras clearing up the site? Meh... who would want to do that stuff :p
 
my thoughts exactly, but worth a message ;)
 
this one screams "duplicate" to me, but it should probably be handled by someone who knows numpy
also this one which is trying to do something similar with pandas
 
and this but it only has two choices, not three
 
wim
great, now my modern answer on a python 3.6 question has been duped to a crappy old answer on a vaguely related question, where the syntax doesn't even work on the current python version
sometimes I think you "cleanup" guys do more harm than good
 
7:35 PM
"you cleanup guys" :D
 
I didn't know answers could be duplicates. Have a link?
 
wim
it was this one, and it concerns features of Python that weren't available on the 2012 Q&A (namely, ensurepip and stdlib venv)
 
Hmm. Don't know anything about that topic, unfortunately. Can't you move your answer to the dupe?
 
wim
no, because as I mentioned, the question is only vaguely related
 
Oh, I didn't see that
 
7:47 PM
@wim Sorry, I just saw a question with 4 dupe votes on it. I didn't even bother looking at the existing answers. I've unhammered it.
 
wim
cheers
please don't robo-review ...
 
@AndrasDeak I've closed a few of those, but that link page is almost unreadable for me, especially on the phone. I'm not a huge fan of dark backgrounds at the best of times. But using dark foreground colors as well is just ridiculous.
 
@PM2Ring thanks, I'll pass it on :)
on web there's a button next to the title, two circles. That toggles light/dark, second one is light
I don't know how well that works on mobile
 
@wim I try not to, and I did at least skim the questions, but I assumed with that one it must be safe to hammer if it's already got 4 dupe votes.
 
it's never safe...
I've seen awful garbage OKd by 4 or 5 reviewers
 
7:58 PM
4 dupe votes is the new
 
@AndrasDeak Oh, ok. I didn't notice, I had to zoom in just to read the text.
 
2 first questions on Bhargav's list were ok
@AndrasDeak can you ping Bhargav there to give me access :D
@AndrasDeak bhargav I am banned :D
 
yeah, yeah :D
 
I found the 2 circles. It isn't aren't exactly obvious that they are controls... And the light colour scheme is only marginally better. Is legible text with good contrast old-fashioned, or something? :mumbles get off my lawn:
 
sorry about that
 
8:08 PM
@PM2Ring sprinklers to full! :p
Always wonder what I'm going to see when question titles are like: python if else statement is ignoring the rest of my code...
 
Python if breaks several times a day anyway, do you not follow the newsfeed? :P
 
Oh... this room's broken it by all the if x > 6 if x < 2 stuff haven't they... those cabbages! :p
 
@AndrasDeak Sorry, I wasn't blaming you. I just linked your message as a point of reference to that link.
 
Sorry, I meant the python feed
Is it a feed? I refresh the python question page enough times when I'm online that it might as well be :P
 
@PM2Ring yeah, I'm obviously innocent ;) But I see how it's crap that you're trying to help out and the interface is a pain for you
 
8:22 PM
We had a question about if loops yesterday. Fortunately, the answers informed the OP that if isn't a looping construct.
 
not with that attitude
 
@PM2Ring we need to create such a construct... it sounds useful... :)
 
lol that BDEVIL thing is hilarious
 
lots of blue in the room today!
 
8:40 PM
g = df.reset_index().melt('id').groupby('value')
result = {k: v['id'].str.cat(v['variable'], sep='_').tolist() for k, v in g}
@DSM I had ^^^...
 
DSM
Great minds, etc.
 
... fools seldom differ... ? :p
 
DSM
Okay, EOD on a Friday, I'm outta here. Rhubarb for all!
 
enjoy....
I'm gonna run as well... been at the desk far too long today... rbrb for now
 
escaping rhubarb for DSM
 
8:43 PM
Rbrb DSM and the fellow doggo lover
 
oh, also for the pup
 

« first day (2883 days earlier)      last day (2080 days later) »