But… How do you even know you can smell ants? Why did you try it? Or can you smell them from meters away?
But… How do you even know you can smell ants? Why did you try it? Or can you smell them from meters away?
I might be wrong but I assumed it’s perfectly obvious to OP and it’s the kind of joke where something is funny because you stretch the meaning to read it literally. I chuckled actually, despite it making perfect sense.
Of course, but when indentation has a syntactic meaning the formatter often won’t be able to fix it.
It’s probably more prone to mistakes like that, true. But in practice I really never witnessed this actually being a problem. Especially with tests and review.
Yeah, that’s definitely a good point. But it’s a minor thing. Adjusting indentation takes 2 keystrokes in vim, I barely notice it.
So I’m going to say what I always say when people complain about semantic whitespace: Your code should be properly indented anyway. If it’s not, it’s a bad code.
I’m not saying semantic whitespace is superior to brackets or parentheses. It’s clearly not. But it’s not terrible either.
As someone who codes in Python pretty much everyday for years, I NEVER see indentation errors. I didn’t see them back when I started either. Code without indentation is impossible to read for me anyway so it makes zero difference whether the whitespace has semantic meaning or not. It will be there either way.
I absolutely love the videos on this channel, this one being one of the best published yet. I’m literally blown away by the level of detail and clarity. I think I’m going to watch it more one time…
You are only starting to think that NOW?
Hey, I’ve been really careful with my words to NOT say that. I was just wondering and I acknowledge that it might be nonsense.
In case anyone is curious (like I was) what the “gold foil wrap” actually is, here you go:
Multi-layer Insulation, or simply MLI, is a type of high-performance insulator that uses multiple radiation-heat transfer barriers to restrict the flow of (heat) energy. In simple terms, it’s a form of thermal insulation made of multiple layers of thin sheets that is used to cover spacecraft and other space equipment in order to reduce heat loss by way of thermal radiation.
This is really interesting and I would probably never read it if not for this post. Thanks!
US has a huge influence on the entire world. Could it be that it started (or got amplified) in the US due to poor healthcare and then spread out to the rest of the world? I’m not trying to put all the blame on US of course, but it doesn’t sound that unreasonable that it could be partially responsible.
Been there, done that. This post really resonates with me because I felt exactly like he is describing. It really fucked me up when this relationship has ended. Now, years later, I’m happier than ever. But recovering from this took me more than a year and was the hardest experience in my life so far.
You don’t need diffing to find something like that, bisect should handle this easily.
deleted by creator
I’m pretty sure I have aphantasia. My mom, on the other hand, is an artist with very powerful imagination. She would often tell me how she sees something she’s imagining and I never really knew what she meant. I just assumed that it’s kinda a figure of speech. Only when I first read about aphantasia I realized that it probably really works completely differently for her.
I would like to know whether aphantasia has any practical impact on one’s life. For example, I had this suspicion that differences in my “mental image processing pipeline” might be a factor in my terrible driving skills. Quick visual assessment of the traffic situation, at an intersection for instance, is very hard for me. This is just me making stuff up though, no idea if it makes any sense. In fact, I think I’m going to research this topic and look for some papers now!
Man, I’m just chilling and relaxing after a week of SE work and this resonates with me very deeply
I’m exactly the same! Nice to know I’m not the only one.
In all seriousness, once you’re of age the exact number rarely matters and isn’t often used so I’m more surprised people actually remember it.
I was sure I’m getting baited when I clicked the link but it’s one of the rare cases when it actually turned out not to be a clickbait.
This feature literally found and isolated “important files” and now they are deleting those files. Just because it was never available in the US doesn’t mean it’s irrelevant.
Yeah, so basically Google invented a feature that finds your important files and deletes them. The future is here!
Of course I’m exaggerating for humoristic effect but in all seriousness I think the whole action is extremely poorly executed. I would be surprised if there weren’t some cases of people actually losing something important because of this.
Since you have all your
shutil.copytree
s andsys.path
manipulation at the top level of the test modules, they are executed the moment those modules are imported.unittest
likely imports all discovered test modules before actually executing the tests so the set up of both modules is executed in random order before the tests are run. The correct way to perform test setup is usingsetUp
andsetUpClass
methods ofunittest.TestCase
. Their counterpartstearDown
andtearDownClass
are used to clean up after tests. You probably will be able to get this to work somehow using those methods.However, I’m fairly certain that this entire question is an example of the XY problem and you should be approaching this whole thing differently. Copying the modules and their mock dependencies into a temporary directory and manipulating
sys.path
seems like an absolute nightmare and it will be a massive PITA even if you get it to a working state. I don’t know what problem exactly you’re trying to solve but I think you should really read up onunittest.mock
and even more importantly on dependency injection.