« first day (2123 days earlier)      last day (2842 days later) » 

8:00 PM
I mean, can it be faster, and if so, can that be a reason?
 
wim
for that matter, why aren't they listed here
>>> types.__all__

['TracebackType',
 'coroutine',
 'FunctionType',
 'BuiltinFunctionType',
 'SimpleNamespace',
 'CoroutineType',
 'MemberDescriptorType',
 'BuiltinMethodType',
 'GetSetDescriptorType',
 'ModuleType',
 'MappingProxyType',
 'CodeType',
 'DynamicClassAttribute',
 'GeneratorType',
 'LambdaType',
 'FrameType',
 'new_class',
 'prepare_class',
 'MethodType']
 
From what I can find, enumerate came in the same release that generators did. Interesting
 
Maybe just implemented by someone else
 
@KevinMGranger: It'd be a lot slower in Python, and you'd have to deal with the awkwardness of mixing Python and C code in the same module.
 
Or that
 
8:04 PM
@wim: They don't need to be listed there, because they're already available through built-in names. Types like dict aren't in there either, at least in Python 3 (which you seem to be using).
 
Can one map a class bound function? For example, if I have a class ParseThis(file) is there a way of mapping the equivalent of return [ParseThis(file).do_parsing() for file in file_list]?
I ask because I would like to multiprocess it and Pool.map() would fail
 
Pool.map(lambda file: ParseThis(file).do_parsing(), file_list)
 
@tristan: Either enumerate returns an enumerate-specific iterator type, or it returns some sort of general iterator. If it returns an enumerate-specific type, it's easiest to just make enumerate be that type; if it returns something more general, you have to deal with extra layers of indirection. (This is all from the perspective of implementing things in C and working with the iterator API directly, without the convenience of generators.)
 
user559633
@user2357112 Ah, that makes sense. Thank you
 
@tristan you should livestream playing online poker for money! makes sure he gets in the same game
 
user6568562
8:18 PM
Can someone explain to me how come we can assign a value to the keyword max in python : / ?
It drove me crazy when, due to a typo, I assigned a value to max instead of max1 and then Python TypeErrored the life out of me.
 
It's not a keyword
 
user559633
@RobertGrant i used to be a top 250 GPI ranked player, so yes, please get into the same game.
 
user6568562
A built_in function ?
 
@tristan you know what livestreaming is, right? :)
Good comment on No Man's Sky:
 
user559633
@RobertGrant i know, i wanted to blur past your joke and make one about how i'm good at bluffing
 
8:20 PM
> ...there's also a part of me worrying that just before launch Sean Murray posts a video where he slowly peels away his face to reveal he is in fact Peter Molyneux and all the promises turn to dust in the wind.
@tristan ah I see :) Didn't even think of that, so it worked
 
user559633
but a+ it was not underappreciated
 
user6568562
@Ffisegydd Thank you. You actually put me on some right path. You can assign values to the name of any built_in function.
I'll take it from here.
 
user559633
yeah, during that livestream, the devs seemed earnestly uninterested in the collect resources/upgrade/repeat cycle, which is worrying, because that's so much of the game.
 
How do you know? :P
There's a lot of the game that's not really understood as they've not made it known.
 
@randomhopeful it's called shadowing, and you should watch out for that with dynamic languages
 
user559633
8:22 PM
@Ffisegydd Tone of voice and also because one of them said so
 
I'm hopeful that it all works out, but honestly I'm happy to give them some money just for the experience of playing it/the sheer audacity of being a what? 11 man team?
They've got one of the most anticipated games of recent times.
 
Yeah and it has such a great look to it I'll probably buy it just for that
 
user559633
Oh, yeah, I'm not poo-pooing on it and it's quite a thing to set out to do and ship.
 
Or I'll buy a house and never afford games again
 
user6568562
@Andras Yes, two hours of despair and self-cursing taught me that valuable lesson. I'll google the keyword you just gave me. Thank you [ :
 
8:23 PM
Even if it is too much resource stuff, I reckon I can get enough enjoyment out of it before it gets boring.
 
Whatever works
 
@Robert I thought the point of a mortgage was to be cheaper?
 
roars with fake laughter 3 inches from Fizzy's face. Til it's like, embarrassing that he's still doing it
 
How did you get in my house? Why are you naked?
4
 
That's all part of it
 
8:24 PM
@randomhopeful I meant this one of course
 
But seriously, surely a mortgage is cheaper?
 
No. Why would it be?
It's not cheaper, but it is pretty good considering we're going 2 bed flat in Abingdon to 3 bed house in Oxford
 
most of the "halp Invalid index... error" questions in matlab are due to OP shadowing some built-in function
 
Well if you were to rent the same house, the person would have to cover the mortgage and make some profit.
 
They wouldn't have to; it just depends on the market
 
8:26 PM
I realise I'm sounding slightly naive, but every single friend I know of that has bought a place ended up saving loads.
</anecdata>
 
user559633
If I could convince a small team from here to do it, I'd buy a startup cabin in the woods and offer free housing
 
Not horror movie setupy at all...
 
Well you make money on it as it appreciates, which helps
 
would you stream that too?
 
How's the internet in the woods
 
8:27 PM
But you also pay a massive deposit and fees and pay for maintenance
 
@Rob ah well I'm talking about like for like, comparing the rent of a 2 bed flat and a 3 bed house is a bit different.
But you also get to do what you want to the house.
 
user559633
Mortgage can be cheaper if you plan on staying in the same house, if the town doesn't get some influx of undesirable populations, and you don't have to do any major renovations
 
I literally know people that have gone from renting for £700 to mortgaging for £400 on the same (or similar enough) properties.
</anecdata>
 
My mortgage is that mortgage plus a thousand more
 
user559633
@AndrasDeak nah, i wouldn't stream a startup. too much cursing and if you go back and watch it, you'd get so deeply sad inside
 
8:28 PM
It can also depend on where the property is, so they could've bought in a cheaper area
 
No they literally moved down the road.
 
@tristan what about streaming the times when you get annoyed and lift weights? Asking for a friend.
 
I know of others who saved money, but not quite so drastic as that.
 
user559633
@RobertGrant lol i honestly don't know how to respond to this
 
That's a big old mortgage.
 
8:29 PM
I love the phrase "asking for a friend"
 
only stream weight lifting if you can quote the "Pump U Up" skits from SNL
 
user559633
Hulked-out lifting is the best though because you can stack on so much more weight
 
Use it all the time to just soften dodgy sounding jokes that they become ok
@Ffisegydd :)
 
user6568562
@Andras I see ! That will teach me to not take book authors' recommendations of naming variables not seriously enough.

I made the max built_in function forsake its name in my function's scope. Thank you [ :
 
That's with a 15% deposit. 10% would've been a lot more
 
8:30 PM
Sounds like you need a better job, maybe at some kind of place that lets you play with cool tech all day
 
Though I locked in 5 years, and if your friends did 2 year fixed then they'd pay a lot less
@Ffisegydd :D
I would very happily take that. Name my price.
 
I see. And the unit?
 
Yes
 
7 sealed, mint condition Yes albums? You could probably sell those to a collector
 
8:32 PM
It definitely has a unit
 
Can I hit 6 figures? That would be pretty cool.
Then I could buy a much bigger house
 
@RobertGrant see Figure 5b (the sixth figure) for an analysis of what you could afford.
 
I mean I'm currently on 8 so sure you could probably hit 6
 
I mean I want to punch shop mannikins. 6 of them.
 
I hate you SOD: can someone approve this deletion of TKinter example in NLTK library - thanks
 
8:45 PM
@JGreenwell oh Deer Jesus
retracted?
 
okay: this one - there were 4 of them
 
that's a dead link for me, I mean it doesn't point to a revision
 
....if this one doesn't work I have no idea
 
OK, it's the same as before, it has my approval on it already:)
which is odd because it's a different revision
hooray SOD
 
note: found out this was wrong cause I pointed a student (graduate peer not my student) towards NLP using NLTK and got a very confused email back from him after he found that in SOD
...... :|
 
8:52 PM
heh, 5 upvotes on that
did you try to find out who was the first butt who added tk into nltk docs?
 
hi, so i was wondering. Why do people answer questions in comments under the question and not with full answer responses?
 
@polka because the question is crap
or typo
or too simple
or rtfm
or the thousandth iteration of a duplicate
 
rtfm?
 
either that, or answerer is unsure
@polka "read the fcking manual"
 
Read The Fine Manual
 
8:54 PM
aaa
lol
thank you
 
anytime:)
 
@JGreenwell \o/
del-taco!
 
@polka and one more thing: if a question is poo but can be answered (like a blatant typo), a comment can help OP, but after the question is closed, it will get deleted soon via automatic garbage collection. An upvoted or accepted answer would hinder this process called the roomba.
 
@AndrasDeak That's my favorite part. Like, people actually upvoted Tkinter examples in the NLTK topic. Wat.
 
Rep for all, woo!
 
8:56 PM
@AndrasDeak yes (and several edits) showing just how little SOD should be allowed to exist
seriously now I'm trying to convince someone that SO Q&A (and other SE sites) are worth looking at and he shouldn't judge based on SOD
 
you just shouldn't tell them about SOD...
untell them about SOD
SOD them off
 
nice part is delete will remove the rep
 
@JGreenwell \o/
 
Install a browser extension for them that hides SOD?
 
also I just clicked on Documentation because well it says documentation and that was where he wanted to start
 
8:57 PM
heh, funny name, that Documentation
 
The delightful irony is it's not Stack Overflow documentation
... or is it?
 
user6568562
lol @wayne Superuser flow of Qs would explode in that case
 
either way, at least he has a few of my books now and some real pointers to real docs
 
huzzah
 
heh, delete 4 examples and its only +2...funny to me for some reason or another
 
user6568562
9:01 PM
For my opinion's worth, I begin to understand this feeling towards Documentation. It feels like an attempt to Redditize SO that got through.
 
you don't go to meta often, do you?:P
 
user6568562
@Andras Ah you damn past, lol
 
user6568562
It was from once when I was naive and oblivious to what's ahead of me.
 
what?
 
user6568562
Oh I thought you were talking about a stupid topic I posted on meta.
 
9:03 PM
No, meta is (among other things) for posting stupid things.
I just meant that meta has been on fire since the launch of SOD public beta
reading the complaints of high-rep gurus of various fields, it's not hard to understand the feeling
 
user6568562
@Andras Yes, I saw that very well.
 
ah OK:)
 
user6568562
@Andras New users are uneducated + accustomed to a special kind of catering. You know big smiley faces from big corporates (buttering these future consumers with ego rubs) + They start sniffing reps like cocaine.
 
user6568562
At least, that's what I think is happening
 
9:09 PM
Seems accurate to me
 
Rep: not even once.
 
user6568562
Damn you*, past. I'm sorry.
 
I don't think I like RoR... everything is way too implicit
 
That's mostly why I kind of... gave up is the wrong word
Lost interest
 
Ruby on Rails?
 
9:22 PM
I lost interest in Ruby because of the hijinks that could ensue
 
I only looked at Ruby for a short bit, Python worked more for my needs but I don't remember hating Ruby - remember being annoyed at people trying to explain why I should use .each vs. foreach loop construct (cause it was like holy doctrine but that can happen in any language)
 
I'm sure there are similar pythonic fascists out there spreading the love
 
@AndrasDeak hey, "version 2 is version poo" didn't write itself
 
two, shmoo
 
yep, I certainly didn't egg them on by saying "so its just dot notation like Java" a bunch ;)
 
9:30 PM
"I remember FORTRAN did something like that" is general-purpose languagebait :)
 
oh, that's a good one too
 
Course, it can easily be countered by "Wow, how old are you?" at which point you crumple into a ball of tears, but, you know. Probably worth the risk.
 
30 ish or not old enough to truly remebmer fortan - yet I do :)
 
revels in his decrepitude
 
fortran's not nearly as bad as its reputation
 
9:32 PM
@JGreenwell I'm a bit more than that
@AndrasDeak the problem is that they never did the marketing version bump to fivetran
@ZeroPiraeus go on then :-)
 
and have worked in both Fortran and COBOL
 
@RobertGrant as long as it fortran successfully. When it fortcrashed though...
 
which always freaks people out for some reason
 
with tornado, is there any easy way to retrieve exceptions from a future when you are running tornado/coroutines embedded in another application?
 
Oh, I'm not really that old ... 44. I have got to the point where I think most youngsters are idiots and assume I will now continue to get ever cooler until death / sublimation / whatever though.
 
9:35 PM
@AndrasDeak :D
 
@ZeroPiraeus do you have a cane? ;)
 
Not any more.
 
And is it fashioned from the bones of the person who killed Abel?
thinks to make sure he got that right
 
sounds legit
 
legit, and a bit of armgit
(Yes I shouldn't keep the g, but it's just better, okay)
 
user6568562
9:36 PM
@Robert You're about to start a war about its pronunciation
 
prounciation indeed :)
 
Someone was bound to prounce on that.
 
user6568562
Damn you, edit history
 
@randomhopeful just need a mod to abuse the "clear revision history" and you're clear!
 
@ZeroPiraeus well done for some PC nonarticulation of gender! I'm not a big fan of the pronoun-ciation of language
 
user6568562
9:40 PM
@enderland Haha. I'll summon the power of my self-entitlement, right away
 
@randomhopeful I'm still not used to being a mere mortal on SO chat
 
peasant
 
In the land of the Docs pretty much any moron is king
 
have been a mod for almost two years now on another site
@RobertGrant sigh. docs..
 
(Not me; I can't even do it with docs)
 
user6568562
9:46 PM
@enderland Haha Well you wouldn't like SO if it was yet another participation trophy area
 
@randomhopeful docs IS though
 
@enderland my take
 
user6568562
@enderland I know. And rep mining is a bit sneaky on SO, but at least it's still somewhat governed by knowledge
 
@AndrasDeak 'would hinder this process called the roomba'
 
user6568562
We'll let natural selection run its course
 
9:47 PM
what a truly excellent name!
 
how do I learn more about "the roomba"
 
@enderland nice
 
thank you!
 
9:50 PM
the roomba is the partial savior of SO
 
Of course high-rep users can delete crap post manually in cases where roomba is unavailable
but that's tedious and most high-reps don't spend their delete votes
 
Considering I'm spending all of today trying to find and then read documentation, too, it's a doubly painful problem
 
10:22 PM
@Kevin's list.append(The Lobster) # I gave it a solid 6.9/10
 
We gave it more than that:)
 
why?
 
We just liked it:D
 
I liked it too, that's why it is almost 7 :)
 
we're not much of movie connoisseurs
 
10:30 PM
hmm...is there a better way to annotate a bubble chart (scatterplot) then annotate or is that still the standard way with matplotlib?
 
requesting repeated transmission
 
currently I'm just doing this:
for i, txt in enumerate(ngram_results.variable): #label each dot
    ax.annotate(txt, (x[i],y[i]), color=col[i % 5])
but I swear there was another way (if not, its a meh)
 
kids are on last week of summer break so I might just be losing it from that
ah, well an upvote to that guy for the confirmation than
 
annotations are not really meant for data-y stuff, I believe
labelled contour lines might be an exception
so I wouldn't be surprised if this is the proper way
 
10:34 PM
nope, hence bubble chart for visualization for exec types
for data-types I'm using a heat chart and matrix stuff
 
ah, yeah. not worth doing anything else then - I usually work these up with wordclouds which I have other functions for but some people decided they want preliminary results so they get matplotlib :P
no pretty only truth!
 
:)
there's also a wordcloud module...
 
yeah, but they don't want a word cloud
 
:(
shame on them
heh, I should look at Martijn's or poke's tag cloud...
 
10:45 PM
yep, but these are for staff not faculty which means all administrative or business degrees :P ;)
 
bah
 
I've used word_cloud for a graduate project before (always helpful to use software with a DOI :) and I liked it
 
that's what the project I linked to uses:)
 
that's why I mentioned it ;)
 
Oh, I completely read it differently:) Sorry.
 
user6568562
11:16 PM
Good night, everybody
 
rhubarb
 
11:38 PM
Can anyone tell me what's going wrong?
 
are you using Python 3 or trying to use django: see this ether way
 
@Kelthar I would copy the suspicious part, but it's a picture
 
@AndrasDeak :P
But I am not using any of these packages
ah, nevermind
 
11:55 PM
The package that you're using doesn't appear to support Python3, as it's trying to import ConfigParser, instead of configparser
 

« first day (2123 days earlier)      last day (2842 days later) »