We've come a long way. Python isn't even the fastest of languages
$ time python3.6 -c "import random; l = random.choices(range(1_000_000), k=2_000); l.sort()"
real 0m0.033s
... and this also takes into account creating the 2k random ints.883 karma · joined June 12, 2014
We've come a long way. Python isn't even the fastest of languages
$ time python3.6 -c "import random; l = random.choices(range(1_000_000), k=2_000); l.sort()"
real 0m0.033s
... and this also takes into account creating the 2k random ints.Two things missing from them in my opinion 1) a Linux client and 2) a second location
I guess I could get away without a Linux client if there was an unRAID plugin for B2.
https://www.youtube.com/watch?v=RA_2qdipVng
... looks awesome, and something that seems only possible with dynamic code... or at least code that can introspect it's own AST.
EDIT: the cool part about it, I think, is that you don't have to shoehorn your algorithm into any particular model like map reduce or something else. You just write idiomatic Python code and... magic
cp .git/refs/heads/master .git/refs/heads/WTFFF
... no SHA-1 involved at all, no parent, history, etc.... I think I'm in favor of this. I think of the things that those services provide on top of Git should actually be ported or mapped to Git itself. Branches, pull requests, comments, etc... should all be Git objects of some sort.
Every step of the way you need to balance the effort of doing something with a script vs doing it manually.
How long would it take to manually make the change in all 100+ repos... vs. how long would it take to write a script to do it. Would the script be robust enough to properly make the change in like 90% of them... etc.
These are things you need to ask yourself in your endeavor.
You'd want to do all this work on a new similarly named branch (or branches depending on your workflow) for every repo.
Perhaps write a script to validate changes to all 100+ repos on that branch. Then when all the work is done... do a massive merge.
Separation of concerns went right out the window didn't it? I'd like to see Hacker News Clone Using 300 lines of server-side Python code that works on browsers without JavaScript
I think GameCube and Wii are probably too new to be considered retro.
Also, the games are a lot bigger... they wouldn't be able to cheaply make a device powerful enough and with enough storage to make a huge profit.
Even if this happened at an NRA rally or gun show they'd come up with some other excuse.
Until you can run Sublime Text, and bash (with perl, python, sed, awk, etc, or any other arbitrary piece of software I don't see developers moving to this device.
You are correct though. A .py file which uses non-ascii and doesn't declare the encoding should be considered an error though. Hopefully everybody's dev tools will pick this up (even on 3.7 where they wouldn't need to)
>>> class MyClass(namedtuple('_MyClass', ['x', 'y', 'z'])):
... def foo(self):
... return self.x * self.y + self.z
...
>>> x = MyClass(4, 5, 6)
>>> x.foo()
26
... or an attrs decorated class with frozen=True? >>> import attr
>>> @attr.s(frozen=True)
... class MyClass:
... x = attr.ib()
... y = attr.ib()
... z = attr.ib()
... def foo(self):
... return self.x * self.y + self.z
...
>>> x = MyClass(4, 5, 6)
>>> x.foo()
26In PyCharm if you return from within a contextlib.suppress context it'll think any code following it is unreachable code.
https://youtrack.jetbrains.com/issue/PY-25809 https://youtrack.jetbrains.com/issue/PY-16419
>>> s1 = {'a', 'b', 'c'}
>>> s2 = {1, 2, 3}
>>> {*s1, *s2}
{'b', 1, 2, 3, 'c', 'a'}
>>> l1 = ['a', 'b', 'c']
>>> l2 = [1, 2, 3]
>>> [*l1, *l2]
['a', 'b', 'c', 1, 2, 3] >>> {**{'a': 'first'}, **{'a': 'second'}}
{'a': 'second'}I hope all of these NES ROMs were coded well. Seems like you could do something like...
if False:
jump_to_data_address
... then he'd be interpreting data as code.