@Downgoat Biggest issue is that you might want to do something like 5 + \input(), or "5" + \input(), and there's a pretty good chance you'll get unexpected behavior somewhere.
>>> class foo:
def __init__(self, L):
self.L = L
def __add__(self, other):
L2 = [a+b for a,b in zip(self.L, other.L)]
return foo(L2)
>>> x = foo([1,2,3])
>>> y = foo([4,5,6])
>>> z = x + y
>>> z.L
[5, 7, 9]
@El'endiaStarman Ah, okay. Well basically PyCharm is a huge, heavy IDE with an incredible number of bells and whistles. Incidentally, I haven't figured out how to run code in it, though I know it's possible...
@Downgoat Python 2.something implements booleans as a subclass of int. In large part because there was already a lot of older code that used them that way.
I have written the following code to brute force 'crack' the passwords stored in a text file and print out the passwords if finds, as well as the amount of time it takes to crack.
import string, time, itertools
text = " " + file('words.txt').read().replace("\n", " ") +" "
t = time.time()
for val...
E -> E O E // infix operator
O E // prefix operator
E O // postfix operator
P E // match properties e.g. `foo.bar()`
L E // match numbers / strings e.g. `"Hello"`
B E // match booleans e.g. `false`
ε // match empty
^ the original thing I wrote (but uses evil left-recursion)
@HelkaHomba Nice. I just confirmed with my girlfriend (the Mac expert) and she says that it's configurable but by default it didn't do it on older Mac versions but it does it by default in the newest.
I dunno why Microsoft chose to have the clock on only one screen. Seems like an odd thing to not have, though it makes sense if all the right-side icons are bundled together in some way.
Maybe there's a reason to have those icons on only one screen.