325 karma · joined May 18, 2009
My blog: http://blog.erezsh.com/
My github: https://github.com/erezsh
1) Every authority figure is telling the Iranian people to stay inside and wait.
2) Revolutions don't happen overnight, the same way that businesses don't succeed overnight, even though from far away it might seem that way.
3) Official Israeli statements estimate it could take up to a year after the war is over for a successful overthrow, even if everything is going according to plan.
The truth is there's a lot of people who want this war to fail, because it will align with their political convictions and hopes.
It was a genocide because they tried to eliminate a specific ethnic group, for no other reason than its ethnicity.
You should go learn more about the subject, if it interests you so much.
Try reading a history book about the holocaust, or even just WW2, and you'll see just how ridiculous you sound.
There's no comparison at all to the ease with which Israel could just drop a couple of bombs on Gaza, had it decided to do so.
I wrote a very simple function:
def test_whatever():
a = range(10)
b = (10 / x for x in a)
c = list(b)
When I run it with normal Python, this is the exception: Traceback (most recent call last):
File "test_test.py", line 10, in <module>
test_whatever()
File "test_test.py", line 6, in test_whatever
c = list(b)
^^^^^^^
File "test_test.py", line 5, in <genexpr>
b = (10 / x for x in a)
~~~^~~
ZeroDivisionError: division by zero
It's compact and simple to understand. It pinpoints the exact location of the error, and I easily scan the text to find the function call-stack.Now here's the pytest error:
___________________________________ test_whatever ___________________________________
def test_whatever():
a = range(10)
b = (10 / x for x in a)
> c = list(b)
test_test.py:6:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.0 = <range_iterator object at 0x107695e90>
> b = (10 / x for x in a)
E ZeroDivisionError: division by zero
test_test.py:5: ZeroDivisionError
It doesn't pinpoint the error, it adds code lines that might be irrelevant, and extra information I don't care about.I will say using `--tb=short` fixes most of it, at least in this example, and sometimes it's even preferable, because it's shorter. But it still doesn't pinpoint the error like normal Python exceptions do.
- pytest already works with assert. Why brag about something that is already commonplace?
- It could help if your docs explained the alternative to using fixtures. I assume it would be done by re-using givens, but you could make it clearer what is the preferred way to do it, and what is gained, or lost, but doing it that way.
- Can you explain how your diff is better than the pytest diff? (I'm asking as someone who hates the pytest diff)
Supposedly, one people of the Sea Peoples were the Peleset, as the egyptians called them (https://en.wikipedia.org/wiki/Peleset), which are believed to be the same people as the Philistines, for which the Romans gave Palestine its name.
They are wrong, but who cares? As long as Russia and China have nuclear weapons, disarming Europe isn't going to help anyone. Not to mention now North Korea and pretty soon Iran will have them too.
Arguably, if Germany wasn't so reliant on Russian gas, the war in Ukraine wouldn't have started. The "peace" in Greenpeace is more Orwellian than anything.
Also, there is no country in the world that would refrain from doing the same thing to their enemies, if they could pull it off. (big if)
Meanwhile, you can be sure the U.S. and China are putting back-doors in every device they can manage, and have been doing so for decades.
Worth noting it's been said before for each version of GPT, only to be proven wrong.
The rationale is that it's more terse and has less visual clutter than a DSL over Python, which makes it easier to read and write.
SELECT *
FROM employees
LEFT JOIN positions ON employees.id = positions.employee_id
which isn't really that different.