« first day (2140 days earlier)      last day (2802 days later) » 

user559633
5:00 PM
NerdCop polices nerds, but is also a nerd. He's a very complex character.
 
How many days you been using winzip? 30 days? Thats what they all say
 
user559633
Did I write it and it's broken? Bug. Did someone else write it and I disagree with it? Regression.
 
@davidism @tristan good to know, thanks. My world has been revolving around orchestration tools, Python and lots of bash. Haven't seen what the 'front-end' capabilities of PyCharm are yet.
 
@davidism NOOOOOOOOOOOOOOOOOOOO...
the download link takes me to 2.2 download page :(
 
5:03 PM
Too new?
 
user559633
@idjaw css/js/knowledge of common templating libraries
 
user559633
@mikeTheLiar exactly.
 
user559633
except my code is all horrible hacks
 
No earlier versions hidden somewhere?
 
5:04 PM
download link says 2016.1.4 but it goes to 2016.2.2!!
now I am getting anggri haapala.
5
 
user559633
did you try on a new computer?
 
Trol:D
 
user559633
oh no, antti haapala has turned into agrii haapala
 
Is that evolution or devolution?
 
Just an alias.
 
5:05 PM
depends....when bruce banner turns in to the hulk...it's an evolution right?
I think this is the same thing
 
user559633
yay he took the joke that i took from someone else
 
user559633
 
user559633
here's a comic i made
 
hey guys I just made this
 
user6568562
Here's a post I made
 
5:05 PM
Nice.
 
So almost certainly a noob question
 
@Ffisegydd Thanks, I try.
 
user559633
 
user559633
lol i don't remember when, but i drew this comic
 
Oh that reminds me, I made this:
29 secs ago, by tristan
user image
 
5:07 PM
@davidism the download link on my profile is b0rken, confluence.jetbrains.com/display/PYH/Previous+PyCharm+Releases
 
:32491639 did you make that?
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
I made this.
 
@tristan unless it fails
 
user559633
how are you guys finding that english language thing?
 
user559633
i made it and hope you like it
 
5:08 PM
I've got some complaints but it's okay
 
0001100211111000100100
 
Wait but did you literally? Who's the founder of the room?
 
@tristan You have a bug -> through, tough... WTF??? seriously....
 
Nice binary.
 
@KevinMGranger Pretty sure Jon Clements is to blame.
 
5:09 PM
@KevinMGranger see the transcript
 
user6568562
@idjaw It's supposed to work that way
 
user559633
@idjaw it's tough, but through manning up, you'll find it's easy
 
sure thing, colonel
 
user559633
maybe it's time to go make breakfast
 
Oct 15 '10 at 7:08, by Aiden Bell
Awww :D
 
5:10 PM
:D
 
it's past noon. you can have whiskey-os
 
I've got what amount to a factory class that's defined at the same level (i.e., same scope) as the class it's creating but I'm getting an error says the class is not defined. I'm sure I'm just missing something blindingly obvious
 
who's that, I've never seen any of them
 
what is this breakfast? I always hear people talking about it
 
An example is always good:
class Factory:

    def get(self)
        magic = doMagic()
        return Thing(magic) // NameError: 'Thing' is not defined


class Thing:

    def __init__(self, MagicalClass):
        doMoreMagic()
 
user559633
5:11 PM
@idjaw i did vodka testing and feature writing last night
 
user559633
i'm good on whiskey for a couple days
 
@mikeTheLiar need MCVE.
 
Although it wasn't called python back then (tristan hadn't invented English yet)
 
That example doesn't produce the issue.
 
@mikeTheLiar also, not very pythonic pattern :D
 
5:11 PM
@tristan vodka testing? That's awesome....Vodka is something I never dove in to, in terms of variety.
 
user559633
get yourself a bottle of vodka, some club soda, and a handful of limes. actually meant limes. don't do drugs, kids.
 
user6568562
@idjaw Wink, wink, right ?
 
IIRC the origins of the room are a little muddied because originally there was "Python and Robotics" and then there was a "Python" room made later, independent of that, and then much later the two got merged and their transcripts mixed together
 
@tristan right...that testing. :)
 
@AnttiHaapala this isn't?
 
5:12 PM
@Kevin And somewhere down the line room 6 was hijacked
 
@mikeTheLiar MCVE = minimal, complete, verifiable example.
 
.....I know what an MCVE is
 
that is about as minimal as possible yes, but not complete and not verifiable.
@mikeTheLiar it is not a MCVE.
 
user559633
Microsoft Certified Victim Entitlement
 
    class TestProvider(TableProvider):

        def __init(self):
            pass

        def get(self, company, table_class, name):
            table = {
                "MA": {datetime.date(2000, 1, 1): 1,
                       datetime.date(2001, 1, 1): 2,
                       datetime.date(2002, 1, 1): 3,
                       datetime.date(2003, 1, 1): 4}
            }

            return TestQuery(table)

    class TestQuery(TableQuery):

        def __init__(self, table):
            self.table = table
^ actual code
 
5:13 PM
@mikeTheLiar I don't believe you
 
user559633
e.g. "the right to complain"
 
That still doesn't reproduce the issue.
 
So I can copy-paste that exactly as it appears and get the error that you describe, yes?
 
user559633
@JGreenwell it's food that you eat early in the day. i think you'll really like it
 
Hold on I'll take a screen shot
 
5:14 PM
Argh
 
@mikeTheLiar please don't
 
Just ran the code. I got NameError: name 'TableProvider' is not defined.
 
use dpaste.com if you need to post a lot of code
 
Bring the Flüggegecheimler
 
user559633
@AndrasDeak too early for that
 
5:14 PM
@mikeTheLiar that is not a MCVE.
it does not reproduce the problem.
it just... is...
and additionally it produces another error now.
 
    class One:
        def get(self):
            return Two()

    class Two:
        pass

The above works for me, so I can't understand how that could be your problem
 
Screenshots are useless.
 
@tristan hmm...sounds like it would get in the way of my coffee time
 
Take it back. ADMINISTER THE TESTICLE CLAMPS INSTEAD
 
This is what I have. This is the error I'm getting
 
5:15 PM
What in the world...
 
So you have a mysterious other level of indentation that you didn't tell us about.
 
user559633
Why is there a screenshot of text on my screen
 
The ultimate answer to the ascii versus UTF-8 fight: encode it as jpeg.
 
5:16 PM
I got you fam.
 
user559633
@JGreenwell Oh, no, you shove this "breakfast" into your mouth in between drinking coffee.
 
user559633
thanks fizzy
 
@tristan first-person debugging
 
Whatever block that's in, it's not creating the scope you expect. Unfortunately, we can't help you without an mcve.
 
user559633
@Programmer FPD is the worst genre of video game
 
5:17 PM
@mikeTheLiar please don't ever use screenshots. If you have a considerable amount of text, use gist.github.com or whatever.
 
You said you didn't believe the error!
 
@mikeTheLiar no, we said what you posted didn't reproduce the error
 
I pasted a MCVE. That wasn't sufficient
 
and even though you have a pass inside that init....you are missing the trailing double underscore in your TestProvider class. But, if you are not doing anything with init why even define init?
 
@tristan ...... now?:P
 
5:17 PM
Seeing (on our own machines) is believing.
 
user559633
@mikeTheLiar I think it was suggested, maybe directly, that the code you produced didn't result in the error
 
2 mins ago, by davidism
So you have a mysterious other level of indentation that you didn't tell us about.
 
I pasted the actual code and got "I don't believe you"
 
@mike I'd suggest you take a step back and think about it. Multiple people are arguing against you now.
 
user559633
@AndrasDeak Not sure. Playing this new genre of game called "writing garbage code"
 
5:18 PM
now I understand his nick :D
 
When so many people are arguing against you, I'd consider the fact that maybe you're wrong.
 
Calm down, and post the actual actual code for an MCVE.
 
user559633
be nice (or don't, i aint your real dad)
 
I think that "I don't believe you" meant "I don't believe you understand what an MCVE is", not "I don't believe that you got the error you said you got".
 
@mikeTheLiar I said that, replying to "I know what an MCVE is". And you're a liar, no? :P
 
5:19 PM
I think he gets it now.
 
user559633
 
aaah pycharm works again
 
user559633
is there room on this dogpile for me to jump on and take a quick nap?
 
was he kicked?
 
@AnttiHaapala success!
 
5:19 PM
Did you call yourself a dog?
 
user559633
@idjaw yeah. not entirely sure what's happening but i'm vaguely stressed out
 
It's done for now anyway, let's put it aside.
 
I'm so not going to meta on my phone
 
well, last meta post seems to have done well for you @AndrasDeak
 
Interesting, I wrote this code expecting it to crash, but it runs:
def troz():
    class Foo:
        def get(self):
            return Bar()
    class Bar:
        pass
    return Foo
someClass = troz()
print(someClass().get())
This does not jive with my current mental model of closures.
 
5:22 PM
why not?
 
Well that was MSE;) And I'm still purple, aren't I? :S
 
nope
 
user559633
Where's the part that it tells me that my flaws aren't actually things that I need to improve? I expect that in my closures
 
I locked your icon in my browser's css
 
@Kevin ... :?
 
5:22 PM
3
A: Order of execution and style of coding in Python

taleinatPython does, in general, process commands from top to bottom. However, a function call will cause Python to execute that function, and continue downward only after that call has ended. In your example, the Python interpreter executes the following steps: Define func2. Define func1. Define func...

 
@JGreenwell <3
 
I think?
 
cause I wanted to see if it was caching problem (which it seems to be)
 
You're green for me unless I click on your icon
 
Maybe it's because all the times I actually use closures, it's only with a single layer of indirection, but here there are two (class Foo and def get), so it's throwing off my instinct
 
5:23 PM
so all other people change but not yours
 
@Kevin why not? closures bind scopes in Python, not values.
 
What exactly are you confused about?
 
@Kevin my guess is that it's classes nested in classes, in which case the scope might not work, although I didn't test it.
 
@davidism indeed.
that's it.
 
Oh lol Morgan set that pic as avatar:D
 
5:24 PM
Are there changes happening to your body and you're confused? Do you like a girl at school, but not sure what to do? Do you need closure? It's okay, we're here to help.
 
class Fred:
    class Foo:
        def get(self):
            return Bar()
    class Bar:
        pass
Fred.Foo().get()
#NameError: global name 'Bar' is not defined
hmmmmm
 
Good thing we got all the information up front and didn't have pages of speculation about it.
 
davidism might be being sarcastic there
 
@AndrasDeak Yeah, I needed a new one.
 
All it needs is some Thrappuccino to go with it
 
5:26 PM
Spotify has non-explicit versions of albums.....go away. I want to listen to my profanity infused music.
 
Morgan's picture changed :o
 
ahoy folks!
 
GADGET!
 
Go go
 
Hey, Gadget!
 
5:26 PM
@davidism actually you're wrong, could be function also.
 
Oh no he's got a Marx beard too. It's catching!
 
ah no...
 
@Ffisegydd Less Marx, more lazy.
 
how I couldn't repeat that...
 
hey guys! how goes? I've missed you all
 
user559633
5:27 PM
Oh yeah, are we participating in Novembeer?
 
user559633
Hi @inspectorG4dget!
 
cabbage @inspectorG4dget
 
@Ffisegydd *caching. FTFY
 
I'm participating in augunotimetoshaveleavemealoneijustdontfeellikeitst
 
is Novembeer the new Oktoberfest?
... or were you talking about pyConCA?
 
5:28 PM
@davidism *actually we can't be sure, could be function also
 
@AnttiHaapala Kevin tried that, function scope is considered during name lookup, class scope isn't
 
let's do it! Let's do the sopython movember!
 
user559633
@inspectorG4dget you know that thing about "at what point in the gradient does one color turn into another?" novembeer side steps that problem of "when does oktoberfest stop being an excuse for day drinking"
 
There are probably other ways to make it happen, such as needing nonlocal, but there was only one level of mystery indentation.
 
5:29 PM
The real question you should be asking yourselves is "Why aren't I going to PyCon UK? D:"
 
hahahaha!
 
user559633
Busy planning NoNoCoSoPyCon
 
@Ffisegydd answer: "funding... or really, the lack thereof"
 
@davidism sorry, I was wrong :D
 
definitely funding
 
5:30 PM
Frame that! ;D
 
@AnttiHaapala thank you, I will be quoting that forever
 
user559633
funding + no fly list
 
I can contribute funding for you all to come. I'll just go rob a bank.
 
32 secs ago, by Antti Haapala
@davidism sorry, I was wrong :D
I can send you a signed copy if you want
 
> I will be &quot;ing that forever
 
5:31 PM
@Ffisegydd time...
 
user559633
@AnttiHaapala i know you're kidding, but i'd spend money on this
 
"I will be "ing that forever" you kids and your slang.
 
user559633
\"ing
 
could you get 5 days more into September please :?
 
Question: is it possible to ever bypass the finally clause? Like... is there any exception/etc that you can raise (aside from say, segfaulting Python) that will bypass finally?
 
5:34 PM
Nope
 
@WayneWerner if that's a generator I guess you could yield.
 
Wouldn't that beat the purpose?
 
or you could modify bytecode :P
 
Yeah, I mean... I'm not trying to - just making sure that my code will do what I expect ;)
 
there shouldn't be, ordinarily
 
5:35 PM
Sounds like tristan whenever he programs JS.
 
except NoFckingExceptions:
2
 
Speaking of November-long events, I wonder if this is the year I finally participate in NaNoWriMo.
 
wow...pasting that in to google actually came up with something
 
sorry Canada folks, I likely won't be able to make it to pyconCA either, this year
 
5:36 PM
@Kevin I've participated twice. Unfortunately, like every sweepstakes I've entered, I am not a winner
 
@WayneWerner
  2           0 SETUP_FINALLY            4 (to 7)

  3           3 POP_BLOCK
              4 LOAD_CONST               0 (None)

  5     >>    7 LOAD_CONST               1 (42)
             10 PRINT_ITEM
             11 PRINT_NEWLINE
             12 END_FINALLY
             13 LOAD_CONST               0 (None)
             16 RETURN_VALUE
I guess you could write code that changes the bytecode so that it injects RETURN_VALUE at the beginning of the block pointed to by SETUP_FINALLY
 
Sounds just like the single obvious way
 
@AnttiHaapala are you a wizard?
$ echo $?
42
 
Just get your code to find its own pid and kill -9 itself
 
(too much Slack :P)
 
5:39 PM
That's close to the segfault loophole
 
but in general... unless you're really trying, finally won't ever fail.
 
sys.exit or something would cut it too (pun unintended)
 
@WayneWerner I wasn't thinking of submitting anything. I just wanted an excuse to type a lot of words that I could then hoard for myself.
 
though it is a bit hard
 
5:39 PM
has anyone started with the SODocumentation initiative yet?
 
sys.exit actually goes through the finally ;)
 
@AndrasDeak not sys.exit, it just raises an exception
@inspectorG4dget started?
 
@Kevin If you need help with that, just speak to @DSM
 
what does it mean :? :D
we're done with the SOD
 
I mean "started participating in"
 
5:40 PM
apparently @inspectorG4dget has missed a lot ;)
 
@inspectorG4dget it's the Devil.
 
I've missed a lot
 
YAM! Sorry. I didn't know sys.exit is this crappy;)
 
That wouldn't work, nevermind
 
@inspectorG4dget :---------------------------D
 
5:41 PM
only to delete plagarism
a lot of it
 
wait what?! I'm... what? mesoconfused
 
@JGreenwell ^that
 
user559633
@WayneWerner maybe sys exit?
 
user559633
something needs to drastically break the flow of execution
 
5:42 PM
import sys
try:
    print('doing a thing')
    raise RuntimeError('A problem')
except:
    print('catching exception')
    sys.exit('gone')
else:
    print('okay')
finally:
    print('Juuust cleaning up a bit')
 
Raises SystemExit
 
finally always runs
 
@inspectorG4dget not only have we tried it, but we've also been posting like post or two every day on meta... and davidism, zero, poke and many others were even chat-banned for 2 hours for complaining too loud (could be that i remember names wrong, but ... :D)
 
@tristan haaa haaa!
 
user559633
oh, sorry, just saw that was answered. switched networks and chat didn't update.
 
5:42 PM
Aug 5 at 17:39, by PM 2Ring
Aug 2 at 14:09, by PM 2Ring
If Ripley took one look at SOD she'd say "Nuke the entire site from orbit—it's the only way to be sure"
 
user559633
os.system("shutdown -P now") will sidestep finally :)
 
I think my (slight) worry comes from the fact that if you do something like:
 
@WayneWerner #tristanismytester
 
while True:
    try:
        sys.exit(1)
    except SystemExit:
        print('Nice try')
 
5:44 PM
whoa geez! I've missed so much. Does anyone feel like explaining this to me. I've been doing too much reading of late (for comps)
 
@tristan what's the -P flag?
 
user559633
if you point a shotgun at the motherboard between try/finally, you could probably escape it too
 
user559633
@WayneWerner shh baby only dreams now
 
@inspectorG4dget basically documentation sucks.
 
as in "people don't like to document their code"?
 
5:45 PM
@inspectorG4dget short story: "Documentation" is a terrible name for what they wanted, which was "Examples", but they didn't want to name it "Examples". Repeatedly they said, "You guys will define what it is!" only when we said, "It sucks because it's broken and it does all the wrong things" they said, "no no, you guys will define what it is and we know it's great!"
 
user559633
SO isn't giving us plebs the total story, I'm positive of this.
 
@inspectorG4dget 💩💩💩💩💩
 
@inspectorG4dget the attitude of SO/SE staff has been that ~ StackOverflow documentation is good because now those people who don't dare to write questions or or aren't capable of answering anything can now contribute by writing "documentation" instead.
 
user559633
There are almost surely financial and partner relation reasons involved in naming it 'documentation'
 
They also said they'd release regular stats about its usage, and have yet to deliver a month later.
 
5:46 PM
They also said we'd get weekly updates, and it's been 3 weeks.
 
And Tim will recalc rep two weeks ago
 
Of course there was also tons of weird rep pouring from the sky on every Tom, Dick, and Harry that bothered to touch anything
 
Oh, also, teams unshipped.
So the same amount of people who were using teams before, are using now.
 
so if someone writes a code-only post, someone else can come in and write the English around it to "improve post quality"? Was that [SO|SE]'s idea behind this?
 
5:47 PM
I noticed that when I tried to see our pirate team censored team
 
stackoverflow.com/q/39151160 so I can hammer it as that dupe in the comments
 
user559633
Again, partner feature/integration work that wasn't completed, I'm sure.
 
Just don't go to the SOD meta room to complain, lest you get suspended for a day
 
user559633
@AndrasDeak Well duh. If you're running a business that relies on unpaid work, the most prudent thing to do is start discouraging unpaid work.
 
meh. I'll get around to it after I finish my comps
 
5:49 PM
@davidism opened, close as dupe of which?
 
... along with the bunch of other things that I have to do after comps
 
@AnttiHaapala I closed it
 
@davidism :D:D
so I opened it again :D
 
wow
 
you asked :d
 
5:49 PM
> I clozed dis
 
LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL
 
come on, pay attention
 
@inspectorG4dget That might be the idea
 
@davidism I just read "reopen this"
done, what's next:D
 
5:50 PM
@AnttiHaapala hammer with this: stackoverflow.com/questions/4148015/…
> so I can hammer it
and you didn't notice that I had hammered it?
 
done :D
 
lol
 
yay hammertime
 
I did, just as I had hit the open and there was the 20 millisecond window before it refreshed :D
 
5:51 PM
great communication, everyone! haha
 
So I'm re-opening it, right?
 
@davidism this is very much like the joke about the one hunter calling 911 telling that he might have accidentally shot his friend dead.
 
user559633
Yes, re-open it so I can mc hammer it in the comments
 
Really need that neural interface
 
No no, you need close docs as a dupe of it.
 
5:53 PM
@inspectorG4dget Um no. SODocumentation is a different interface to SO Q & A. However rep on SOD is not separate from rep on SO Q&A, and many SO users are not happy about how SOD rep works.
 
uh oh. I'm going to have to take a closer look into this later on...
 
@AndrasDeak now if you even ask about a feature that is a problem you get either "we're working on it wait for the update", "go read the massive meta posts we've scattered everywhere - even though you have", or "just a warning about being nice"
 
@inspectorG4dget see, on stackoverflow when you upvote an answer, one person receives 10 reputation
 
or at least the last time I spoke there that was what I got
 
if you upvote an example on docs, 57 people get 5 reputation points each.
 
5:56 PM
57, because 57 different users edited that post before it was upvoted?
 
exactly.
 
Meanwhile, if you downvote, no one loses anything.
 
They promised to change that, didn't they?
 
they contributed substantial edits: one added an incorrect paragraph that the other later removed.
both get +5
 
No idea. Meta and Chat for documentation has been dead for a week now.
 
5:56 PM
@inspectorG4dget And if the 57th person edits it to the extent that the changes of 56 are removed entirely? 56 still continues to get rep.
 
user559633
Not sure (re if it was meant to be changed), but someone would have gotten silly rep going across different languages editing grammar in the early days
 
I can see this turning into a rep farm by exactly that method
 
Oh it did.
 
@JGreenwell :/
 
there are a few 2k people now - who are almost entirely SOD and minor changes at that
 
5:58 PM
there have been "examples" from people who got score 1 in
 
I know cause I had fun deleting their un-cited, plagiarized posts - literally deleted 90% of sklearn tag
 
Tim Post promised a post soon at the beginning of Aug or something
 
user559633
"thanks suckers, we sold SO to expertsexchange"
 
Hey guys, when I make a python file which I use different modules on and try to open it on another computer that lacks these modules, it won´t execute, right?
Is there an easy way of "bundling" all of them together into a folder?
 
Yup ---v
 
user559633
5:59 PM
it will try! look into virtualenv if you can type commands on that machine or search for "python packaging" if not
 
@tomSurge you'll have to install them again
 
on the other computer, right?
 
Yes
 
"regular (roughly weekly) updates" is becoming 4-6 weeks — rdans yesterday
 

« first day (2140 days earlier)      last day (2802 days later) »