« first day (2461 days earlier)      last day (2487 days later) » 
00:00 - 16:0016:00 - 23:00

user8167727
4:00 PM
Sending you another one.
 
@mini I don't understand what we're looking at in these images
 
user8167727
@LangeHaare me too don't know.
 
user8167727
 
user8167727
Going to sleep
 
Yes yes, I know how to get there. I just couldn't see there was a graph there because it's unnoticeable with the theme I use. I'd send a screenshot, but I can't seem to figure out where Fedora is saving them...
 
4:04 PM
The graph is participation in chat, not rep on SO main.
@Rawing Isn't that what find is for?
 
user8167727
@Rawing can I hack wifi with python?
 
@Code-Apprentice well, I don't know the file name either. I guess I could search based on creation time, but that's hardly worth the effort
@mini I have no idea, I'm not a hacker
 
user8167727
Going to sleep ;)))))))))))))))))))))
 
@Rawing It is probably .gif or .png...maybe .jpeg.
so search on the extension.
 
user8167727
4:29 PM
@Rawing Can I create a graph in python?
 
@mini Yup
absolutely
 
user8167727
How?
 
The answer to most "can I do X in python" is going to be "yes". I don't know how though, so you'll have to ask my good friend google.
 
@mini Use Matplotlib package
 
user8167727
It will Use PIL ?
 
4:31 PM
@Rawing the input is [a,b,c,d] and the output should be {(a, b): (c, d)}? could you plz help
 
Hey. American Room 6-ers. Today's the day to fight for net neutrality. That site makes it easy, and it's important for all of us.
 
user8167727
I created a site. Want check out?
 
user8167727
@KevinMGranger maybe anyone can send fake mails.
 
@pythonRcpp oh sorry, I forgot about that. It's hard to say without knowing exactly why that list becomes that dict, but how about {tuple(my_list[:2]): my_list[2:]}?
 
DSM
@KevinMGranger: Or not to, if you think that putting more power in the hands of government to regulate the internet is a bad idea, I suppose.
 
user8167727
4:33 PM
@KevinMGranger I sent one fake it worked :-0
 
@DSM well, it would be more like "the same amount" because they'd just be getting rid of existing regulation
 
user8167727
I hacked wifi of neighborhood; my brother knew the password, but he didn't tell me So I hacked it :-)
 
user8167727
@KevinMGranger you can send fake mails million times automatically by contacting meusman: fiverr.com/meusman
 
user8167727
what do you think @KevinMGranger ?
 
I think that's not relevant to the room and repeated pings aren't appreciated
 
user8167727
4:37 PM
Ok;
 
user8167727
Can anyone send me a sample of matplotlib package?
 
DSM
@KevinMGranger: this isn't the room for the argument, but groups like the EFF have argued pretty strongly against zero-rating certain data sources and I don't think that's any of their business, so even if I were a Yankee I think I'd be sitting this one out.
@mini: there are countless easily-available matplotlib tutorials on the web. Did none of them help?
 
user8167727
@KevinMGranger @DSM is 100000% correct.
 
@DSM I don't wish to continue the discussion then, but I also don't understand the EFF part of that sentence
 
user8167727
Can anyone send me a sample of matplotlib package for python?
 
4:42 PM
Garlic.
 
user8167727
Onion
 
user8167727
I need to find it on google :-(
 
DSM
@mini: we're not an alternative to google or a free tutorial site. Please don't treat the room as such, and don't repeat questions hoping for a different result.
 
user8167727
Sorry @DSM
 
alright what shenanigans are we dealing with today
 
DSM
4:45 PM
Fed's up 2 sets to none. :-/
 
oh...forgot to put the match on the tv at work
need to get on that
 
Stuff at work is broken right as the person who knows everything went on vacation, that's the shenanigans I'm dealing with :(
 
5:14 PM
hi there
Traceback (most recent call last):
  File "script.py", line 28, in test_search_in_python_org
    personsWrapper = driver.find_element_by_class_name('_54_6 _4-ss _4-sv')
  File "c:\Users\Anaconda\lib\site-packages\selenium\webdriver\remote\we
bdriver.py", line 426, in find_element_by_class_name
    return self.find_element(by=By.CLASS_NAME, value=name)
  File "c:\Users\Anaconda\lib\site-packages\selenium\webdriver\remote\we
bdriver.py", line 784, in find_element
    'value': value})['value']
  File "c:\Users\Anaconda\lib\site-packages\selenium\webdriver\remote\we
InvalidSelectorException: Message: invalid selector: Compound class names not pe
rmitted

what does that mean?
        driver.find_element_by_class_name('_54_6 _4-ss _4-sv')
Selenium
 
DSM
Did none of the questions about that error message that google brings up help at all?
 
"Leon's comment leads to the correct information that compound class names are no longer supported. What you could do instead is try using css selectors. In your case, the following line of code should help you get the element you want "
thank you
yes now
sorry
2
A: selenium with python: driver.title is not the same as an actual page title

dejavu_cmd_deltThe expected condition needs to be changed because presence_of_element_located hold true in this scenario as title remains visible since search page was opened so it doesn't really wait for title to update. Instead you should wait until text is changed in title to what is expected in expected con...

WebDriverWait(driver, 10).until
(
   EC.text_to_be_present_in_element((By.XPATH, "/html/head/title"), "dog - Google Search")
)
"This will poll the DOM for 10 seconds and if title match is found it will proceed to next instruction."
that means it waits till the page is loaded(has the right title) right?
 
I can only assume that it means it will keep querying the DOM until it sees it, or until 10 seconds have passed, whichever comes first.
 
hm ok sounds good
but unfurtunately it doesn't wait in my script right now.. I have a click, after that I have those lines above - and then I have a queryselector - which fails because there is no such elements yet
driver.find_element_by_name('login').click()
        WebDriverWait(driver, 10).until
        (
           EC.text_to_be_present_in_element((By.XPATH, "/html/head/title"), "Personen, denen diese Seite gefällt")
        )

        personsWrapper = driver.find_element_by_css_selector('._54_6._4-ss._4-sv')
without waiting those 10s it crashes:
NoSuchElementException: Message: no such element: Unable to locate element: {"me
thod":"css selector","selector":"._54_6._4-ss._4-sv"}
 
Yours doesn't appear to be within a wait?
You've been here a bunch, you should be able to give us a better Minimal, Complete, and Verifiable example by now :/
 
5:38 PM
what should I give you exactly?
that is the whole code I have
python seems ignoring the lines about the WebDriveWait().until() ...
@KevinMGranger what do you mean by beeing within a wait?
 
I'm not familiar enough with selenium to help with that further but the whole .until followed by a line wrapped in parens for no apparent reason seems strange to me.
 
user8167727
Oh my god; using matplotlib module for the first time is killing me...
 
DSM
I think the argument of until is a custom object specifying what to wait for just to defer execution, so that part makes sense.
 
i have a column with values NaN, sting1,string2. I need to check if value is NaN i tried if (str(x.BuyAccountNo)=="NaN")
 
5:44 PM
Does socket.recv(), if launched on a thread, give chance to another thread?
 
is it wrong
 
My server program, launches one thread every accept().
 
user8167727
How to capitalize first word of string?
 
@DSM but if it's on the next line, won't python just think you're accessing the function itself?
 
But second client could not connect
 
DSM
5:47 PM
@KevinMGranger: what do you mean by "next line"? I think it's like SomeObject.do(lambda x: time.sleep(5)), only instead of lambda x: time.sleep(5) it's a custom object which probably has some kind of .execute() method.
 
full house
 
DSM
With all of the quality we've come to expect from the extended Tanner family.
 
def until(arg):
    print("Got arg", arg)

until
# <function until at IDHERE>
(
    1
)
# 1
 
user8167727
??
 
user8167727
How can I increase size of text that is printed temporarily?
 
user8167727
5:52 PM
Why are you not answering me?
 
@mini because you are mistaking us with a googling service which we are not. Try to solve your problems first. We have better things to do. Please read this and try not to be a help vampire.
 
@overexchange do you have any idea of pandas
 
the reason why is:
 
user8167727
Oh; sorry
 
DSM
5:55 PM
(Aside: if someone gets kicked by a room owner, assume that they're going to handle the warning.)
 
@DSM ?
is that directed towards me?
 
It's non-obvious to non-ROs when someone gets kicked, the only UI hint is their icon does the same thing as if they'd left of their own accord
 
DSM
@enderland: Andras won this battle, and beat me to commenting. :-)
 
I've got a beginner question about using git
 
@mini a good suggestion is to take your question and google it first. if you see answers to it, you are very likely going to get ignored and annoy people if you bother them with it
@DSM ah
 
DSM
5:57 PM
@KevinMGranger: but my suspicion is that the argument to until isn't a function but a custom object, something like:
 
@DSM what KevinMG said
 
@DSM What I'm trying to say is that until isn't getting an argument whatsoever :) unless it's a descriptor that does something on __get__, nothing is happening
But I would guess that it works the way you describe when it does get an argument, yes
 
DSM
It's getting EC.text_to_be_present_in_element((By.XPATH, "/html/head/title"), "Personen, denen diese Seite gefällt"), unless I'm very much misreading the snippet.
 
when I commit + push, it adds the commit message to all files that were modified. I often work on multiple things simultaneously, so the commit message is added to completely unrelated files as well. What's the usual way to deal with this? Should I just suck it up?
 
user8167727
Thanks @enderland ;I will be careful next time.
 
5:59 PM
@Rawing you do git add to the files that you want to commit
 
It's on a new line
 
DSM
@KevinMGranger: oh, wait. I'm reading the docs, the whitespace was messed up when Suisse posted.
 
It's messed up in the (accepted, upvoted) answer they linked to, too. Bad!
 
@Rawing I think one commit has one message
if you want separate changes to have separate messages, make them into separate commits
 
6:00 PM
Messages are in commits, not files. Add files by staging them with git add, and you can go even more granularly with git add -p
 
I think git stash or something similar might be useful if you've already edited some stuff
 
@AndrasDeak not necessary if files are different, and complicated if changes are in the same file
 
DSM
Umpteenth lesson learned: don't trust code pasted secondhand from OPs..
 
stash is more for "I have work in progress that I don't want to commit yet, but I need to switch branches".
 
@Rawing you can also commit files in different commits
 
6:01 PM
@AshishNitinPatil as I said, "or something similar". I don't actually know much git, so the rest of my hint is left as an exerise to the reader :P
 
@AshishNitinPatil oh, that pretty much answers the other question I had as well. That sounds like a pretty error-prone procedure though. My code is split into a loooot of files
 
@AndrasDeak haha, true, but he mentioned beginner. So I didn't want to complicate things for him
 
@DSM you could use a filter based on OP;) For instance, be highly suspicious if the source is Kevin MG
 
Yeah I don't even know what python is tbh. Some kind of lizard, right?
 
Maybe I should get a little more acquainted with git before I ask too many questions
 
DSM
6:03 PM
@KevinMGranger: maybe we should edit that code, I've looked at it a few times and I can't see how it'll work written that way -- it's syntactically valid but as you note, is basically just naming the method and then creating a dummy object.
 
@AshishNitinPatil Interesting! Thank you
 
@DSM "Edits must be at least 6 characters; is there something else to improve in this post?" :(
 
DSM
We can add a link to the docs, maybe?
 
Good call. Did it
 
DSM
6:07 PM
Anyone else want to approve KMG's edit here?
 
sure
done
 
Only if it's of quality, of course. No brigading allowed.
 
here's your 2 rep *throws coins at Kevin's feet*
 
DSM
Kevin probably saved someone out there half an hour of frustration.
 
"here's 2 rep, kid. Get yourself a real account privilege."
 
6:10 PM
When you do C = A[:,m:n] with an array, what does it mean? My guess is : means all rows, and m:n means columns from m to n, m included and n excluded. Am I right?
 
DSM
Yep.
 
Such questions are always nice. All you gotta do is reply - "yes".
 
@pythonRcpp yes I used it sometime back
 
fun fact: it's also equivalent to C = A[(slice(None,None,None),slice(m,n,None))] unless I'm mistaken
 
DSM
#alternativedefinitionoffun
 
6:13 PM
you need to appreciate the small things in life
 
@DSM Thanks! I wasted lot of time wondering why my program had one less column. My bad, I am trying to code in python for first time after ages that too late night and without coffee :P
 
user8167727
@Rawing How can I bold text in python shell? I have visited every site I can; nothing worked.Any help?
 
135
A: How do I print bold text in Python?

Boubakrclass color: PURPLE = '\033[95m' CYAN = '\033[96m' DARKCYAN = '\033[36m' BLUE = '\033[94m' GREEN = '\033[92m' YELLOW = '\033[93m' RED = '\033[91m' BOLD = '\033[1m' UNDERLINE = '\033[4m' END = '\033[0m' print color.BOLD + 'Hello World !' + color.END

 
That's weird, I've never run out if internet.
@Rawing I don't think that's helpful
 
I got a 23AndMe test you guys, do you think it will reveal that I am actually only 50% bird?
 
6:18 PM
It's not? It comes with code
 
user8167727
@Rawing It did't work. it only prints the code
 
@Rawing yes. My point is that feeding a vampire is probably not the quickest way to educate them :P Your mileage may vary of course, I'm particularly grumpy
@corvid what might the other half be?
 
You mean it prints \033[1mHello World?
 
birb
 
user8167727
Yep.
 
6:19 PM
@corvid bless you
 
Sounds like your terminal doesn't support bold text / ansi escape sequences
 
user8167727
I am on windows 8.1, using python 3.6.
 
user8167727
May I show you picture of what happens?
 
ok, but include your code if possible
 
user8167727
 
6:22 PM
"For Windows you cannot print to console with colors unless you're using the win32api" is mentioned in one of the answers from the first comment of the linked answer. I recommend looking into a terminal coloring/formatting library for python, such as colorama
 
user8167727
I copied it from the site you shared.
 
user8167727
Any Idea?
 
Is that IDLE? That looks like IDLE. Try saving that code to a file and then run that file. If it still doesn't work, open a windows terminal and run the file from there
 
user8167727
Ok
 
user8167727
:(
 
user8167727
6:26 PM
Not working :(
 
It's been a while since I last printed formatted text. Maybe the windows terminals just don't support it *shrug*
 
5 mins ago, by Kevin M Granger
"For Windows you cannot print to console with colors unless you're using the win32api" is mentioned in one of the answers from the first comment of the linked answer. I recommend looking into a terminal coloring/formatting library for python, such as colorama
 
user8167727
Maybe you're right
 
Can't believe I overlooked that message. KMG to the rescue.
 
user8167727
I didn't understand what you mean.
 
user8167727
6:30 PM
colorama didn't worked work for me again
 
user8167727
What is this bash shell
 
Windows terminal is a "shell". Try googling first.
 
user8167727
My badluck I am at windows 8
 
` ag1=ag[!(ag.t1.notnull() & ag.t2.notnull())]` i need to remove those rows which have t1 and t2 both notnull what is wrong in this
 
6:35 PM
is ! even valid syntax?
 
user8167727
I think I should forgot bold :(
 
@AshishNitinPatil that's fine
numpy and pandas overload binary logical operators for elementwise comparison
 
@pythonRcpp what is python telling you about what's wrong?
 
user8167727
6:37 PM
@Rawing You can use the old program again for sadness :/
 
>>> ag1=ag[!(ag.t1.notnull() & ag.t2.notnull())]
  File "<stdin>", line 1
    ag1=ag[!(ag.t1.notnull() & ag.t2.notnull())]
           ^
SyntaxError: invalid syntax
 
well there you have it
it doesn't really get any clearer than that
where did you get that ! from?
 
ohh
 
binary negation in this context is ~
 
` ag1=ag[~((ag.t1.notnull() & ag.t2.notnull())]` ? fails
 
6:39 PM
but note that this is due to how numpy defines it (so in vanilla python ~True is not False)
@pythonRcpp "fails" is never sufficient info
 
SyntaxError: invalid syntax
 
count your parentheses then
 
ohh... no.. my very silly bad
 
if you use a helpful IDE or editor for coding, it highlights mismatches in a lot of cases
 
but looks like result is wrong this time
 
6:41 PM
that's a different kind of problem :)
do you really want to negate the result?
you seem to have said "keep those which are not null"
 
i want to remove those in which both are not null
 
really?
then that should work...
try to put together a small working example I can copy into my python shell, in other words an MCVE
 
ohh wait what nonsense im doing
 
user8167727
Have another problem @Rawing. How can I print colored text? visited many sites :(
 
user8167727
It also prints code.
 
6:46 PM
come on now. Bold or colored, it's all the same.
 
ok so ag1=ag[((ag.t1.notnull() & ag.t2.notnull()))] gives me what I want. I want to remove these from the dataset and apply some operation on ag1. and then add it back to ag
 
user8167727
@AshishNitinPatil sorry.
 
user8167727
But I will keep looking for it on google :)
 
@mini If you try & learn too much at once, you are bound to get stuck multiple times. Google helps to get the basics right. If you are stuck on some jargons, that is definitely a good place to learn about things. And yes of course, you can always drop by here if you get stuck doing something (although I like to try things at least 2-3 times before asking for help).
And, this is kind of like an open forum, so individual pings are not at all encouraged, unless necessary.
The above is mentioned in the chatroom rules.
 
user8167727
6:58 PM
@Rawing I got my answer here for colors.
 
good, but please reduce the @pings.
 
user8167727
What is @pings ?
 
Have you read the room rules? They're mentioned there.
 
7:14 PM
Wasted a few hours of my life because I deleted elements from a list while iterating. Good job, me.
 
I thought you were going to do that in reverse
 
Oh, I did. But I have multiple layers of iterables stacked/interacting with one another, and I messed up in one of them.
 
in Tavern on the Meta on Meta Stack Exchange Chat, 2 mins ago, by Shog9
Clearly this is room 6's fault - go blame them.
:|
 
hehe, I wanted to onebox that. :D
 
wait what?
 
7:26 PM
Blamed by The Shog. :P
 
@ShadowWizard Ninja'd you
 
DSM
Wouldn't be the first time he'd blamed some of us for stuff. :-/
 
go 3.6
 
@BhargavRao not fair, you're immortal here... infinite power.... :D
any bots around?
 
@AndrasDeak go only has version 1.8
 
7:27 PM
:|
 
@ShadowWizard reporting for duty
 
@enderland you a bot? ;)
 
hah
 
!!/help
 
@ShadowWizard [AUTO REPLY] you are beyond help
 
7:28 PM
Is there source for unicornify?
I see balpha created a Go version.
 
DSM
I've heard good things about the design of the Go stdlib. Maybe it's time..
 
Don't leave us DSM :(
 
@DSM time to go?
 
I guess that's the important stuff, but I can't find the entry point for the web app and I never used it, so I'm not sure what the API / UI is supposed to be.
 
7:40 PM
@DSM go is neat, though I suspect you will dislike it strongly coming from python
 
I wanted to create a key using 3 column values and then do a cumulative sum of 4th column values for that key . Is it better to just use groupby (col1,col2,col3)[col4].cumsum() or create key. I'm assuming python would also create a key internally when using groupby
 
DSM
Assuming I follow, yes, just do df.groupby([col1, col2, col3])[col4].cumsum(), where the cols are the names of the columns involved.
 
user8167727
Hi; can anyone explain why I am receiving error: 1 = 4 or 1 = '4' ?
 
== is the equality comparison operator, = is the assignment operator.
You can't assign something to constants, hence the error.
 
garlic
 
DSM
7:52 PM
@AshishNitinPatil: eh?
 
@DSM bad term somewhere? where?
 
Where do you think they used the word "and"? Also, why are you continuing to help after garlic?
 
Yeah, my bad.
I'll have to lookup garlic now.
 
can someone give me solution to this question given in below link?
https://stackoverflow.com/questions/43955686/is-there-any-way-to-mount-partition-using-python-cgi-file
 
enderland was not expecting a question from May13th hah
 
7:56 PM
same
 
@DSM heyy , I meant rather than creating a key by doing str(col1value)+str(col2value)+... and then finding each occurrence of this key and summing the corresponding value. I assume groupby also will create similar group. Or is there some loophole (because groupby is for grouping and not for making unique keys) in my case I can have 1000 rows and 500 groups .
 
DSM
@user1977867: groupby makes a better key, effectively a tuple. If you add the strings together in the way you've shown, you can't distinguish between "A", "BC" and "AB", "C".
 
@DSM wow very valid point. Thanks
@DSM will the groupby order make difference. I think no
 
DSM
@user1977867: no, it won't, except in the sense that the output order could be different. But you won't have unexpected mixing, if that's what you're worried about.
 
@DSM thanks
 
8:25 PM
There's been more garlic in this room since I got here today than in your average italian restaurant
 
must be time to harvest it, I think my area it's getting ripe and ready to be picked
 
Ugh I still have 40 minutes before the day is over but the dark clouds are moving in and I didn't bring my umbrella... on another note, my friend gave me a Python 3 'riddle' (if you wanna try) which I'm 99.9999% sure there isn't an answer too and he refuses to give me the answer even when I said i gave up.
 
does anybody else have problems copy-pasting from repl.it?
 
@AndrasDeak lmgtfy... :P (troll) /s
 
what issues ?
 
DSM
8:31 PM
There's a trivial answer, but let's see if we can come up with something more clever.
 
> None
null is so much more fun than None for things like that
 
I've got it already, thanks anyway
 
@MooingRawr I don't get why this is hard
 
it's hard if you don't expect to be trolled by the puzzle
 
DSM
8:34 PM
Maybe we're not allowed to use any keywords.
 
Do we have to output exactly one "done"? Do we have to remove the 0, 1, 2, 3, 4 output?
 
DSM
My output is 0/done.
 
From what my understanding was just to print one 'done' as if the _____ ended the while loop after 0 1 2 3 4.
so from what he told me was something like
>> 0
1
2
3
4
done
>>
not sure if the first >> is in the right place. I didnt boot my IDLE up :\
@DSM at this point I'm willing to take any answer just so I can go to sleep tonight
 
...while we're clarifying the rules, are we allowed to insert newlines? :p
 
everything must be in one line, but wasn't told that I can't use ; to break up the one line :D
 
8:38 PM
$ python3 foo_tmp.py
0
1
2
3
4
done
 
DSM
(36) dsm@winter:~/coding$ python riddle2.py
0
1
2
3
4
done
 
=O so there is a solution!
Great now I won't be sleeping
 
DSM
Mine is pretty trolltastic.
 
Huh, didn't know you couldn't break as part of a ternary.
 
8:46 PM
you can't. the ternary ends at the first semicolon
 
DSM
Only expressions, no statements, I think.
 
Yeah, that makes sense. I've just never thought about it before.
 
@enderland Oooo, I like how hacky that one is.
 
I wonder if you can convince python to evaluate "True" as a negative somehow
 
8:48 PM
I went with repl.it/JZOD/1
 
DSM
That's quite nice.
 
@enderland I didn't know you could use that function without an import :o
 
ehh.... It's kinda embarrassing how I didn't think of using exec or breaking it with an or statement.... It's more shameful I thought of eval...
at least I can sleep well tonight :\
 
DSM
Rhubarb for all!
 
aww repli doesn't have an older version of python which allowed stuff like __builtin__.True = False
 
8:52 PM
Rbrb, dsm.
 
user6845426
evening cbg
 
@enderland funny thing, that was my first thought, but it was Python 3+
 
@enderland - try pythonanywhere.com
 
I wonder if you can pull off those same shenanagins in python3
 
@enderland I did that but with an import
for some weird reason I didn't realize that [redacted last expression] is a thing
and by "did that" I actually mean "put those inside a list"
 
9:09 PM
hmmm this doesn't work... :\
>>> import ctypes
>>> m = (ctypes.c_bool).from_address(id(True))
>>> m
c_bool(True)
>>> m = ctypes.c_bool(0)
>>> m
c_bool(False)
>>> True == 1
True
 
spoiler page did fun things with the non-code-format quotes
 
9:26 PM
what am I missing about this answer:
7
A: How to change the value stored in memory adress?

ch3ka>>> import ctypes >>> memfield = (ctypes.c_char).from_address(0x0A7F03E4) Now you can read memfield, assign to it, do whatever you want. As long as you have access to that memory location, of course. you can also get a memarray with >>> memarray = (ctypes.c_char*memoryfieldlen).from_address(...

that doesn't seem to even work for me, do I need to do something more than what is in the accepted answer?
 
I'm not 100% up on all the hackerdashery but I think True and False are treated specially in Python 3, while integers still are in a flyweight / interned instance for small values
 
I succeeded in reaching a segfault
 
maybe I'll write up a SO question
 
>>> import ctypes
>>> memfield = (ctypes.c_bool).from_address(id(True))
>>> memfield
c_bool(True)
>>> memfield.value
True
going on with memfield.value = False leads to a segfault the first moment you try to access it
 
hm, so it's definitely a writeable value
 
9:34 PM
no
 
I wonder why replacing the memfield with the c_bool(0) doesn't seem to take effect
 
segfault = tried to write where you can't
actually, I'm not getting a segfault
*** Error in `python3': free(): invalid pointer: 0x000055d476ebe1e0 ***
 
but setting:
>>> m = (ctypes.c_bool).from_address(id(True))
>>> m = ctypes.c_bool(0)
>>> m
c_bool(False)
does not raise a segfault, but, appears to do nothing
 
?
it binds the name m to a ctype bool?
 
sorry missed the above line :)
 
9:37 PM
it's still python
m = thing
m = other_thing
that's not mutation
 
(doh)
lol
hey----o
 
jjj
10:00 PM
cbg, btw why there is no expression in vegetabarian to say goodnight?
 
Yeah, I always interpreted rbrb to be based off of brb, so it's more of a short goodbye.
 
jjj
this makes sense
 
.... I never even noticed that @KevinMGranger
 
please stop pinging me unless it's important, I've been hearing this notification sound all day
 
10:16 PM
howdy
 
jjj
hi
 
@jjj how goes it?
 
ty Jon
was trying to delete that... but over here I'm modless!
 
jjj
fine, thks, Im doing simple plots in matplotlib. How are you Jon?
 
you're welcome - don't do the "mods on SO have mod on SE chat" thing me on though @enderland :p
 
10:23 PM
@JonClements nice to delegate for a change. ;)
 
@jjj always SSDD :)
@enderland not going to throw your hat in the ring?
 
@JonClements I have a 0% chance of winning an SO election
 
sighs
 
jjj
:)
 
cbg, Jon
 
10:27 PM
cbg
I need to get 4 hours sleep, and be back with laters
 
@JonClements you think I should run? I'm not sure if you are being serious or trolling me :P
 
00:00 - 16:0016:00 - 23:00

« first day (2461 days earlier)      last day (2487 days later) »