« first day (2390 days earlier)      last day (2559 days later) » 
00:00 - 16:0016:00 - 00:00

12:00 AM
I have a project in PyCharm named "crypto" which uses AES the "Crypto" package.
 
I don't think that has anything to do with windows
I mean, I think python's case sensitive altogether
 
but interacting with a case-insensitive file system might cause issues.
 
that said, I wouldn't call my project "crypto"
 
when package names are related to file names
just a guess, though...
from Crypto.Cipher import AES gives "Unreolved reference 'Crypto'". Quick fix with Alt-Enter has an option to "Install package Crypto", so I press Enter. After a short wait, I get "Packages installed successfully: Installed packages: 'Crypto'", but there is still an error at the from ... import statement
 
perhaps you should ask the interpreter itself
2 days ago, by Andras Deak
I dislike custom errors of editors
anyway, I'm off to sleep
rhubarb
 
12:04 AM
@AndrasDeak do you mean run it from the command line?
 
yes, or even better, from a repl
 
okay, I'll try that
 
try importing Crypto and seeing whether it's the one with a capital C
confusing linter/runtime messages in fancy IDEs make me unreasonably annoyed
 
thanks for the tips
I'll keep digging
 
good luck
as a last resort you can try temporarily renaming/copying your project to something that surely doesn't clash, and see if that makes it start to work
experimental debugging ftw
 
12:09 AM
yah, I was thinking about that, too
but then I just happened to look at the clock and realize it's time to log out. No more coding/debugging for today.
rbrb
 
 
4 hours later…
4:04 AM
Cabbage :-)
 
4:39 AM
Cake
 
Coke
 
4:55 AM
What's the accepted naming convention if a variable has got an acronym as a part of the name? Is the acronym part capitalized? In other words, if I have variable that stores something called, say, VNF Code, should I call it firstVnfCode or firstVNFCode?
 
I prefer full caps
 
5:30 AM
also, PEP8: Note: When using abbreviations in CapWords, capitalize all the letters of the abbreviation. Thus HTTPServerError is better than HttpServerError.
 
5:48 AM
cbg
 
@NickAlexeev python uses snake_case
 
@NickAlexeev but yeah - method, attribute names do not use snake case.
 
 
2 hours later…
7:33 AM
cbg
 
 
1 hour later…
8:43 AM
cbg
guys I have a query on Class Variables
I just need to print a list variable which i declared within Class(class variable)
how could i do it
My Code
https://dpaste.de/Lca0
Now i need to view mycontacts list
 
9:01 AM
:36898547 is keyword returns boolean value it is used to check the condition
example:
>>> x = 10
>>> 5 is x
False
>>> 10 is x
True
 
ah right
thanks
 
no problem
 
@Sundararajan no, wrong, incorrect.
is is used to check if the both sides refer to the same object.
 
@AnttiHaapala Oh thanks for pointing out
could you please clear my query i've posted above
 
9:30 AM
Cabbage
@Sundararajan Why is mycontacts a class attribute? That one list is shared by all instances of Contacts, and also by all instances of AnotherClass. Do you really want that?
Anyway, you can print that list by doing
 
I just want to print that list out. I'm reading about object oriented python and i found this code. so making some stuffs
 
print(Contacts.mycontacts)
 
but it prints the memory location it stored
thats my query
 
Right. It prints each instance using the default __repr__ method that it inherits from object. If you want a more useful output, add this method to Contacts:
def __repr__(self):
    return 'Contact({!r}, {!r})'.format(self.name, self.email)
Now the output looks like
[Contact('parthi', 'parthi@gmail.com'), Contact('sundar', 'sundar@yahoo.com'), Contact('anamika', 'anamika@random.com')]
 
@PM2Ring Melon
I undestood, is it bad way of coding
I am not sure just trying out the sample programs for oops in python
 
9:39 AM
You can also add a __str__ method to get user-friendly output. Eg,
def __str__(self):
    return '{!r}={!r}'.format(self.name, self.email)
 
can anybody change python code to php?
 
Then you can do this:
for u in Contacts.mycontacts:
    print(u)
#output
'parthi'='parthi@gmail.com'
'sundar'='sundar@yahoo.com'
'anamika'='anamika@random.com'
@xtylish No, it's impossible. ;)
 
@PM2Ring That works like a charm got it now
:-)
 
@Sundararajan It's not q bad way. When you do need to share data between all class instances, then a class attributes is the way to do it. It does make sense here; I was just checking that you were aware that Contacts.mycontacts is shared.
 
ok i have python code which is working as a server side will you tell me how can i upload it on server?
 
9:45 AM
ruining a perfectly good piece of code by changing it to php...
brief cbg
 
I was just writing some samples for inheritance
 
@Sundararajan One principle of standard OOP is to only make data available to the entities that really need it, and many OOP languages have various ways to give you tight control over that. Python doesn't have much built into the language to hide data. Instead, we expect coders to know what they're doing. If you want to mess with the "private" data of a class, you can, but you do so at your peril. ;)
 
But while reading an article yesterday even private data within python can be accessible with name mangling
how could we protect it
 
build a wall
make JS pay for it
7 mins ago, by PM 2Ring
@Sundararajan One principle of standard OOP is to only make data available to the entities that really need it, and many OOP languages have various ways to give you tight control over that. Python doesn't have much built into the language to hide data. Instead, we expect coders to know what they're doing. If you want to mess with the "private" data of a class, you can, but you do so at your peril. ;)
> Python doesn't have much built into the language to hide data. Instead, we expect coders to know what they're doing. If you want to mess with the "private" data of a class, you can, but you do so at your peril.
If you don't want the plain string to be accessible, don't store a plain string. Same with any kind of password handling.
the only secure way of storing passwords is not storing passwords
 
10:00 AM
@Sundararajan Exactly. Python itself doesn't enforce privacy. But it's still a good idea to give names a single leading underscore to let users of your code that the attribute or method isn't intended to be used outside the class definition. Double leading underscore is slightly different, see here and some of the linked pages for an explanation.
 
@PM2Ring Sure will have a look at it
melon
@AndrasDeak you mean it must be Hashed (MD5 or something similar to that)
 
yes
if the plain password is present anywhere, it can be exploited in one way or the other (as we see multiple times a year)
We could argue that yet again python's structure forces the programmer to do things properly:P
 
@AndrasDeak That was the secondary option i was thinking but before that i thought there might be a secure way which i might not aware of it thats why asked it
 
instead of relying on a false sense of security by having the plaintext passwords in a private member, just don't store them in the first place
 
@AndrasDeak Got it :)
 
10:04 AM
@Sundararajan I'm not even remotely a security expert, nor a programmer, but I believe once you store the plain text password, you've already lost (and so did your users)
 
@AndrasDeak Ya I'm aware of that, I just thought python might have a secure my private data from accessing.
:)
melon
 
no worries
 
@Sundararajan Something like that. Proper password hashing uses multiple loops to make it slow to compute. See en.wikipedia.org/wiki/PBKDF2
 
plus salting should be important too in case your hash database goes public and everybody uses "passwd1" for password
 
@AndrasDeak yes I'm aware of SALT method will keep these tips in mind guys melon
And I've one more query
Since python is Unithreaded, can't we make big kind of programs
would it affect it speed
 
10:09 AM
my impression about security is that you need to study cryptography and best practices for a month before trying to do anything crypto-ey properly :P
 
comparing to java
 
MD5 isn't as strong as it was once believed to be, but it's still acceptable when used in a HMAC, especially when many loops are performed. But it's generally better to use something stronger, like SHA-256, if you have a choice.
 
@PM2Ring Yes I find lots of MD5 decrypt tools online
@AndrasDeak I just need to be strong in python first Then I also have idea to give it a try on Cryptography :)
FOCUS
Follow
One
Course
Until
Success
 
yup, first learn the basics and the language
 
10:11 AM
crypto is an entire rabbit hole on its own, as I see it
 
You bet it is
 
one set with deadly traps and poison gas
 
:)
Completely Prime factorization
 
the problem is that if you yam it up, your users will be harmed
(rather than just you)
 
I agree
And I've one more query
Since python is Unithreaded, can't we make big kind of programs
would it affect it speed
comparing to Java
 
10:13 AM
rhubarb
 
@Sundararajan Sure. However, those tools are mostly for cracking commonly-used passwords that just have simple MD5 hashing done on them. They're not going to work well on a strong password.
@Sundararajan Python is often runs slower than Java, but plenty of big companies use Python, eg Facebook, YouTube, Instagram.
 
Hi, i have a package named pack1 with the class ClassOne with static method foo(). I wanna call this method from a class ClassTest in other package "test". Here ClassTest pastebin.com/PxfG6kh4 . When i run my test i get the error AttributeError: 'module' object has no attribute 'foo'
 
Cabbage!
 
melon
 
10:22 AM
Aug 5 '16 at 14:07, by PM 2Ring
Scale has many definitions, but by any definition, YouTube is a web site at scale. More than 1 billion unique visitors per month, over 100 hours of uploaded video per minute, and going on 20 pecent of peak Internet bandwidth, all with Python as a core technology. Dropbox, Disqus, Eventbrite, Reddit, Twilio, Instagram, Yelp, EVE Online, Second Life, and, yes, eBay and PayPal all have Python scaling stories that prove scale is more than just possible: it’s a pattern.
Also see Myth #6: Python is slow
@Neyoh Have you looked at print(dir(ClassOne)) to see that it contains what it's supposed to?
You can filter out the double-underscore names using print([s for s in dir(ClassOne) if not s.startswith('__')])
Hang on. It's saying that ClassOne is a module, not a class.
Is the ClassOne class in a file named "ClassOne.py" ?
 
 
1 hour later…
11:37 AM
With print(dir(ClassOne)), i get ['ClassOne', 'Node', 'builtins', 'doc', 'file', 'name', 'package']
 
@Neyoh How about print(dir(ClassOne.ClassOne)) ?
 
@PM2Ring ['doc', 'module', 'foo']
 
There you go! The missing foo. So call it with ClassOne.ClassOne.foo()
 
Oh thank you it works :)
 
I guess a better solution would be an improved import statement.
 
11:53 AM
recbg
 
how to improved my import statement ?
 
cabbage
Anyone knows the game EVE Online
?
 
It's like the only popular game written in Python so yeah we bring it up every time someone asks whether this is a real language
 
It apparently uses Stackless Python
 
wait, it's real?
 
11:59 AM
what does that mean?
 
@Anarach have you googled "stackless python"?
 
I mean i am a beginner
and i read the wiki article
 
Stackless Python, or Stackless, is a Python programming language interpreter, so named because it avoids depending on the C call stack for its own stack. The most prominent feature of Stackless is microthreads, which avoid much of the overhead associated with usual operating system threads. In addition to Python features, Stackless also adds support for coroutines, communication channels and task serialization. == Design == With Stackless Python, a running program is split into microthreads that are managed by the language interpreter itself, not the operating system kernel—context switching and...
 
yaeh i read it
Come on , guys you know how wikipedia is on technical topics
 
yes, but before answering we need to know how much you know
 
12:00 PM
Short answer: it's a variant of ordinary Python that is 1) faster for some tasks, but 2) does not have all the features ordinary Python has
 
stackless python is a partial implementation of python, the language (I think)
cpython is the de facto standard implementation, but there are others
 
So how different is it from our everyday python 3.5
 
I assume it doesn't have a stack
 
so by stack you mean the interpreter ?
 
I don't actually know anything about it beyond what I've said until 1 message above :)
 
12:01 PM
if it does not have a interpreter how does it run the code?
i mean how does it interprets the code
 
> Stackless Python, or Stackless, is a Python programming language interpreter, so named because it avoids depending on the C call stack for its own stack.
 
> Is Stackless Python compatible with regular Python?

It is possible to use Stackless in place of regular Python. Stackless should be 100% compatible with Python code previously written against regular Python, and also with any extensions previously compiled against regular Python.
There are some exceptions however..

Not all extensions are implemented in a friendly manner, and because of this may be unstable or unusable when combined with Stackless Python. This is especially the case with Stackless Versions released before commit 949c518c67c75a1. Since Stackless 2.7.7 most compatibility p
 
first sentence in Kevin's onebox of the wiki page that you claimed to have read
 
@Anarach stacks and interpreters are entirely different things
 
@WayneWerner that's what you get for calling everything a "stack" in programming
 
12:02 PM
the stack is what happens when you call functions
 
@AndrasDeak #FULLSTACK programmer
lol
 
@AndrasDeak I had a professor from Turkey - he pronounced it "steak". Classes sounded so delicious.
 
sounds distracting:D
 
"phillip" was "phlip"
 
@Anarach note that none of the meanings of "stack" should overlap with "interpreter" though
 
12:04 PM
I actually credit that class with really grokking pointers and other fun abstractions
 
@WayneWerner you mean pinters and attractions?
 
@AndrasDeak Noted..
 
I believe python the language (by specs) works by interpreting byte code, so any real python should have an interpreter
 
111
Q: What are the drawbacks of Stackless Python?

Ryszard SzopaI've been reading recently about Stackless Python and it seems to have many advantages compared with vanilla cPython. It has all those cool features like infinite recursion, microthreads, continuations, etc. and at the same time is faster than cPython (around 10%, if the Python wiki is to be beli...

 
12:06 PM
it was discussed here recently whether having a compile step too is part of the specs or not, but that's another matter
 
Yeah, it was in C++ - one assignment we were supposed to use character arrays. I used #include <string.h> and was like, "// Strings are character arrays"
 
also:
 
the next assignment had the following: "Without using the string library..."
 
Jan 15 at 22:21, by Martijn Pieters
@edsheeran: stackless' attraction has been largely made obsolete with coroutines now being part of the core language.
 
also we had to re-implement the string library
 
12:06 PM
Jan 15 at 22:23, by Martijn Pieters
also, the person that drove stackless' development has long since moved to PyPy.
@WayneWerner fair enough
 
TLDR: Although Stackless has some cool technical innovations, GVR et al are unwilling to integrate such large changes into the reference implementation (especially since it relies on features that Jython etc can't replicate).
 
The big reason that stackless was a thing is because it didn't use the underlying c-stack for its stack
 
@WayneWerner So what did it use? instead
 
the current reference implementation relies on C's stack to handle Python's stack.
Basically pointers or a list or whatever
 
@Neyoh You may be able to do from pack1.ClassOne import ClassOne. If that doesn't work try from pack1 import ClassOne.ClassOne as ClassOne. With either import you'll be able to do ClassOne.foo()
 
12:11 PM
@Anarach stackoverflow.com/a/1156048/344286 if you want to play around with the Python stack. You could also python -m pip install pudb and then import pudb; pu.db in your code somewhere, step through the code, and see the stack on the side
 
Ok i do that and it works. ;)
 
Hmm, I just started a thirty day trial of a VPN service so I could torrent... Linux ISOs... without being tracked by my ISP, and yesterday I learned that the popular Linux ISO torrent tracking site I was planning on using kind of imploded.
This may be a cosmic indication that I should not be P2P sharing Linux ISOs.
Alternatively, it was not the cosmos that imploded the tracker, but rather me, through the electromagnetic disruption field I inherited from the technophobic side of the family.
 
oh?
a lot of distros are still up on piratebay
it seems to be down right now (as often), but other times it's on
 
There's always PB, but it gets asymptotically crummier every time the feds demolish whatever shack they're currently hiding in. A reverse Three Little Pigs scenario.
 
yeah, I can see that image
 
12:19 PM
P2P communities are interesting because if you don't have enough traffic, then nobody can get a copy of anything, but if you have too much traffic, the authorities will "how do you do, fellow kids?" their way in and knock out all the support beams
2
 
that's why we have Europe
 
I see this balancing act manifest in message boards that discuss sites in code. "NS is gone, and TK is gimped because it was mirroring 70% of NS' content, but at least we still have BB"
Admonishing anyone who asks for the meaning of those acronyms to "lurk more". Which is weird because this seems like this would only filter out people who aren't being paid to act as forward scouts and honeypotters by the MPAA.
If I don't find out what BB is, I don't get to watch Game Of Thrones tomorrow. If Sam Sleeper Cell doesn't find out, he can't feed his children next month.
 
I always imagine moles and agents to have good social security
 
James Bond types. License to kill -9.
 
inconspicuously
 
12:31 PM
I actually legitimately have HBO but GoT just seems like the international standard unit of piracy
"Bestselling NES titles? Why, that's only 42 milliGoTs."
 
I'm sure ubuntu 16.04 is also available
well, no
bamboozled again
 
I can't remember the last time I used P2P, but I just ordered a raspberry pi to make a retropie for my brother and I'm not sure where else I'm going to find ROMs.
 
isn't there a huge pi community or something?
or ROM as in NES, not ROM as in something pi
 
You can always buy physical cartridges and dump backups to your PC.
 
They don't support you in using titles that are still owned by companies. Retropie just basically sets you up to use all the emulators but it's up to you to find games. At least from what I gathered.
 
12:36 PM
It's a 6 on the questionable legality scale, 0 being "walking out of a store without buying anything, yet cringing when walking through the theft detection system" and 10 being "putting 'no copyright infringement intended' in your Youtube description of a full LOTR upload"
 
knowing how Nintendo handles this, it's a lesser miracle that they're not suing retropi/rpi co for enabling that :P
 
Emulator distributors seem to be left pretty well alone, I have observed.
 
I feel less guilty if it's a title I previously purchased.
 
having to download something you've also bought is weird
that reminded me how much I like gog.com's model of no-DRM
if you bought it, it's yours
 
1:06 PM
Hmm, I'm trying to memorize some information where each element of category A maps to an element of category B, but not necessarily uniquely. I could make flash cards with one A and B element on each respective side, but I could only quiz myself by looking at the A side and asking which B corresponds to it and not vice versa.
 
I despise such comments:
Thanks @poke... — Nandan 17 mins ago
 
Why @poke...?
 
Consider the example where Y maps to X, and Z also maps to X. I can look at the flash card marked "Y" and say the other side has an X, but if I get a flash card marked "X", I can't say with certainty what the other side has.
 
yes
is that a difficulty?
 
Well if I see X and say "Y", but it turns out to be "Z", should I put that in the "wrong" pile? Or should I say 'but I'm certain I have an X-Y card in the to-review pile later on, so I'll put this in the "right" pile and name "Z" when it shows up'
 
1:09 PM
well, don't try to test a one-directional mapping the other way around:)
if your mapping is asymmetric, there's not much you can do, right?
 
But that imposes additional strain on me that's incidental to the task. If X corresponds to A, B, C, D, E, and F, and every time I see an X card I say "A", and put it into the "right" pile regardless of what the other side says, I may never memorize B through F properly.
I could write a flash card with "X" on one side and "Y, Z" on the other. But if I see "X" and say "Q, Y", I'm only half right. Does that go in the right pile or the wrong pile?
 
but why are you not looking at the sides that say A through F?
why do you want to quiz yourself by looking at side B if your mapping is A->B?
4 mins ago, by Kevin
Hmm, I'm trying to memorize some information where each element of category A maps to an element of category B, but not necessarily uniquely. I could make flash cards with one A and B element on each respective side, but I could only quiz myself by looking at the A side and asking which B corresponds to it and not vice versa.
I don't understand your predicament
 
I can just look at the A side and quiz what the B side is, but ideally I want my A-to-B associations to be as strong as my B-to-A associations.
 
but A-to-B associations don't exist
or only as groups, for which you need separate sets of cards
 
You could say that X associates to the set {Y,Z}.
 
1:12 PM
2 mins ago, by Kevin
I could write a flash card with "X" on one side and "Y, Z" on the other. But if I see "X" and say "Q, Y", I'm only half right. Does that go in the right pile or the wrong pile?
ah ^
 
IOW, each key in a dictionary can have only one value, but that value can be a vector
 
it's wrong as long as the answer you give tests True with ==
as long as you miss some of the set, that means that you're missing A->B mappings either with false positives or with false negatives
 
If I'm looking at the {Y,Z} side and asking myself what they map to, then that's too easy to answer. I can answer the question if I know Y maps to X even if I never remember that Z maps to X.
So I'd have to maintain separate flash card decks for A-to-B quizzing and for B-to-A quizzing.
 
because each B->{subset of A} mapping gives you an a->b mapping
@Kevin yes
s/separate sets/a separate set/
 
mm hmm
 
1:16 PM
but the only case this is not necessary is a bijection
that's quite the point of a bijection
 
I think I'm putting a lot of work into avoiding writing on twenty index cards instead of ten
 
likely:)
especially since you'll be generating them with a computer; won't you?
 
Maybe. This "Anki" thing has a pretty stellar reputation so I might give it a shot.
I need the functionality of a sheet of paper so I'm not going to have patience if its installation requires more than five seconds of independent thought
 
you can combine it with pomodoro and one of those revolutionary todo lists to make it sufficiently overengineered
 
\o cbg
 
1:21 PM
cbg
 
29 minutes remaining... I could probably write my own faster than this.
 
1:38 PM
from Tkinter import *
import random
def submitted(*args):
    if not data: return
    response = entry.get()
    expected = data[-1][1]
    if expected == response:
        data.pop()
        previous_result_label.config(text="Correct!")
        if data:
            current_question_label.config(text=data[-1][0])
        else:
            current_question_label.config(text = "No more questions. You're done!")
    else:
        previous_result_label.config(text="Wrong. Expected answer: {}".format(repr(expected)))
 
@Kevin nice. I made something like that but for command line and specifically for the elements - symbol to name and name to symbol
 
I was going to make it multiple choice but I decided to have fill-in-the-blank and it occurs to me that there's no reason to make this a gui
 
shrugs maybe you just like Tkinter.
 
At least in my original design it's nicer to click buttons than enter numbers
 
Or tkinter likes you :D
 
1:44 PM
Tkinter likes everybody!
Tkinter is a friend
 
Tkinter only speaks Tkinter- Tkinter tkinter Tkinter tkinter tkinter tkinter Tkinter tkinter. :D
 
Hello there!
 
On my last computer I wrote a system for quizzing on the fictional alphabet in the game FEZ, which maps one-to-one onto the regular alphabet
Except they're missing one of the less used letters, I think. Q or similar.
 
@R.Gadeev you fool, I've been trained in the Jedi Arts by count Dooku!
 
Came in handy during a cutscene where the higher-dimensional being sends you like eight screens of text. Ain't nobody got time to translate that by hand.
 
1:55 PM
Why do I have to browse imgur to learn that the bottom button of suit jackets is never to be buttoned?
life is cruel
 
Nobody ever took you seriously until this point. Your life begins now.
With your knowledge of buttons you can finally run with the big dogs
 
I'll try not to forget until my next expected suit event n years from now
 
experimental web features breaks stackoverflow chat :\
 
hi guys and ladies
I'm new in python. (sowhat?)
I don't know where to start, I want to save data to mongodb, what do I use here? (orm)
 
2:10 PM
ok thx
pymongo is the way to go?
everyone accept this? Going once, going twice, going three times,
...
soooooold!
 
unless lmgtfy.com?q=python+mongo+orm tells you anything different
 
@Sui
oops
wrong button...
@Suisse hi
aaa, how to reply?!?!
 
There is no private message function, you can @ <name> without the space to 'ping' them in the chatroom...
 
directed reply is available via the arrow button on the right of a message if you hover over it with the mouse
or through the context menu on the left
 
@AndrasDeak I found, thanks.
 
2:19 PM
@R.Gadeev hi
 
When do you think python-2.x will become obsolete?
 
Of course, this should rarely be a problem for Python, since we don't normally have identifiers that are 60+ chars long.
@R.Gadeev 2015 ;)
 
@PM2Ring :D
 
Python 2 will reach it's official End Of Life in 2020. The exact date hasn't been announced.
 
2:26 PM
Kevin'd
 
@Kevin This site doesn't want to load :C
 
You're not missing much. It's a countdown to April 12 2020.
> What's all this, then?

Python 2.7 will not be maintained past 2020. No official date has been given, so this clock counts down until April 12th, 2020, which will be roughly the time of the 2020 PyCon. I am hereby suggesting we make PyCon 2020 the official end-of-life date, and we throw a massive party to celebrate all that Python 2 has done for us. (If this sounds interesting to you, email pythonclockorg@gmail.com).

Python 2, thank you for your years of faithful service.

Python 3, your time is now.
 
Python 4 in 2040 :D ?
 
=)
@MooingRawr How do you think, what will be new in python 4? What will be removed?
Just interesting
 
I don't know, maybe to keep Pandas from being lonely we will have Penguins. Who knows.
 
2:43 PM
I know I've infected this room with my food-classification-banter, but it's come to a whole new level now
 
Ice cream sandwiches are sandwiches because "sandwich" is in the name.
I don't know what a chip butty is but it doesn't look like a sandwich to me.
 
@KevinMGranger It says: "Image not found"
 
@Kevin en.wikipedia.org/wiki/Chip_butty more or less fries between bread with some condiments :D
 
@R.Gadeev I can see it just fine. Between this and the python clock you couldn't see, I'm beginning to suspect your Internet is being filtered.
 
2:49 PM
Words aren't real. Things mean what we want them to mean. Come watch TV.
 
> Radical sandwich anarchy
The end of the world is upon us!
 
 
@Kevin I am sure my Internet is OK.
 
@PM2Ring That MSO link is super broken for me. Anyone else seeing this?
 
@MorganThrapp Yes, it's broken by the very bug that's being discussed.
 
3:00 PM
I think that's the point. They were messing with invisible characters so wrapping was messed up :D
 
Ahhh, gotcha.
That makes sense.
 
also long time no see, what have you been up too?
 
I wasn't convinced, until this, which is not un-amusing. — Jason C 21 hours ago
 
Ah, I missed that.
Nothing super exciting, lots of C# and data conversion mostly. We finally hired a new person, so hopefully things slow down a little.
 
Air
3:25 PM
I don't think pop tarts fit the rebel/rebel bin. It says "any food products"
I also take issue with that chart conflating "savoury ingredients" with "classic sandwich toppings" as though jam doesn't exist
 
Ah, of course, the PB&J exception of '60
 
Air
@Kevin The best thing about that thread was that it introduced a bunch of redditors to Dead Like Me
 
DSM
Cabbage for all.
 
cbg \o Getting ready for the rain storm tomorrow and Friday?
 
Air
3:34 PM
something is very wrong with my life when I find myself staring at a bulleted list of "Best PHP Books 2012" and realize I was just about to read it for comprehension
 
Anyone up for a gc question? It's out of my league. stackoverflow.com/questions/43740881/…
 
Python doesn't optimize out inner declarations that don't need to be closures? I guess its semantics technically guarantee that they're different instances...
 
Strange, I'd expect B to get cleaned up pretty promptly since nothing references it
 
cbg
 
@KevinMGranger Yep. Each new a instance gets its very own B class object. OTOH, you'd think those a objects would get cleaned up in the loop. But maybe they don't because their B is referencing them. Hmmm...
 
DSM
3:53 PM
I seem to remember there being some quirks about the cleanup of class objects because of self-references or something. But those fall into the levels of details about things that aren't promised to happen in the first place and so I tend not to care much about. :-)
 
Playing around with weakref, it looks like only one A and one B are ever alive at a time.
Curiously, the B class of the only living A instance continues existing past __init__ despite not being used
 
Then how / why does gc.collect() clean up 599-600 objects?
Oh wow, i just realized that instead of having my search keyword for the docs be python, which messes up all of my searches, it should be import
 
Here is my test. On my machine it produces two steadily growing rows of many zeroes followed by one 1 apiece.
 
00:00 - 16:0016:00 - 00:00

« first day (2390 days earlier)      last day (2559 days later) »