Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
macbony
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
macbony
11y ago
The problem is you, like an overweight person, think that you can get by with an economy ticket. I feel bad for your knees, but I'm reclining because I paid for the ability to recline even if it's only a few inches. If you are unc
2.
▲
by
macbony
12y ago
The Super Bowl is the only "Big Game" they refer to in the ads. Sure there are other "big games", but these are Super Bowl ads pure and simple.
3.
▲
by
macbony
12y ago
C-a a is an extra keypress but good enough for me.
4.
▲
by
macbony
12y ago
No, the reason it exists is so you can override functionality of subclasses at run time, otherwise things like monkey patching would be impossible. I guess it COULD do a pass to see if the attr is an immutable or some form of primative type
5.
▲
by
macbony
12y ago
I'm not really sure I understand your point. The value of x is still going to be in memory, but you may not have any references to it and it will be garbage collected. The disconnect is in thinking x is a variable and not an identifier
6.
▲
by
macbony
12y ago
x isn't a variable, it's a tag. Because Python is dynamically typed, x can be an int one minute and a function the next, so every attribute on a class is stored as a pointer to an object, including attributes that are integers (wh
7.
▲
by
macbony
12y ago
If instead of x being an integer, it were a function x(), then it makes more sense. Really, for Python, there is no difference between the two in this example. When you assign a new value to B.x, you're overriding the value that B inhe
8.
▲
by
macbony
13y ago
I prefer print("A {0} can be very cute!".format(pet)) .format() is very versatile. d = {'first': 'Robert', 'last': 'Paulson'} print("His name was {first} {last}!".form
9.
▲
by
macbony
14y ago
That's where this one comes in?
10.
▲
by
macbony
14y ago
:t is the "copy" version of the command. It's shorter than :co[py].