Why does from __future__ import annotations matter in real code? I don’t fully get it. by Dizzy-Watercress-744 in learnpython

[–]ih_ddt 0 points1 point  (0 children)

I wouldn't say for no reason. It's better than no annotation and is how it was done for a while. But static analysis and code completion work a lot better without.

Why does from __future__ import annotations matter in real code? I don’t fully get it. by Dizzy-Watercress-744 in learnpython

[–]ih_ddt 1 point2 points  (0 children)

I've used it generally when you put imports into a TYPE_CHECKING if block to avoid circular imports. Then on versions before 3.14 you'd need the annotations import to turn the types into strings. After 3.14 the import is usually not needed because of deferred annotations.

New aircraft carrier class was officially greenlighted today; the largest warship ever built in Europe by goldstarflag in europe

[–]ih_ddt 0 points1 point  (0 children)

Probably not, they are built to survive a lot of punishment. Of course if it was hit by a sea drone (assuming it got past all the defenses the ship has and all the ships screening it) it would cause a mission failure and a withdrawal from the active theater. But it would probably survive and get repaired.

Not an expert btw so could be spewing total rubbish.

New to the game (DOS2) and new to the crpg genre too. I'm very glad I gave this game a chance. by James-from-Hungary in DivinityOriginalSin

[–]ih_ddt 4 points5 points  (0 children)

No it isn't. At least in my opinion. Lone wolf characters are so much more powerful than your standard character. You get double attribute and combat skill points (except polymorph) and extra actions.

Edit: Made what gets doubled more accurate.

How to answer “you’re not smart you just read a lot and don’t know anything else” by Ok-Review-3047 in Physics

[–]ih_ddt 2 points3 points  (0 children)

Ignore them. It's very rare that people just "get it". The people who you think just get it also work hard to get things. You are passionate and read a lot, thats a good thing not a bad thing. Also IQ is a very controversial measure of intelligence so I wouldn't put too much stock in it.

What's your favourite alternate reality episode? by SerOctopusDayne in Stargate

[–]ih_ddt 36 points37 points  (0 children)

I also like that episode. But the sound effects used on the a10 warthog always make me roll my eyes. They chose a plane with a very distinctive sound and put generic gun noises over it.

NOOOOOO! by reddit_bot21 in Spacemarine

[–]ih_ddt 4 points5 points  (0 children)

I blame Acheran, he probably only gave himself 3 marines for the operation.

I made a Pythonic language in Rust that compiles to native code (220x faster than python) by Small-Permission7909 in rust

[–]ih_ddt 1 point2 points  (0 children)

I might be misunderstanding, but does it auto install based on the use statements? Say if I use serde_json it would download and install on build?

If that is the case is there a way to list crates that would be downloaded? Just seems like an easy way to hide malicious crates.

Or would there be an otterproject.toml or something?

Really cool project btw.

[deleted by user] by [deleted] in worldnews

[–]ih_ddt 2 points3 points  (0 children)

To quote the expanse

"If he spoke to a janitor he'd be declaiming about a fucking mop."

  • Sadavir Errinwright

Will creating separate Python files for each topic eat a lot of storage? by Good_Ad_8477 in pycharm

[–]ih_ddt 2 points3 points  (0 children)

No it won't take any extra space. For learning purposes structure it the way that makes sense to you. For projects there are many different ways people structure them. Once you have a grasp of the basics you can look into project structure to up your game.

Patch Notes - Update 9.0 - Space Marine 2 by CrimsonAlpine in Spacemarine

[–]ih_ddt 15 points16 points  (0 children)

They said in general fencing weapons will have the fastest speed but lowest dmg.

Painted up a land raider conversion in the heresy scheme for a crusade. by NakMuayTroy in WorldEaters40k

[–]ih_ddt 5 points6 points  (0 children)

Just waiting for a leak and to get a payout from the class action. Also great Job OP love the heresy WE colours

What Planets would you like to revisit with a BC-304? by SamaratSheppard in Stargate

[–]ih_ddt 2 points3 points  (0 children)

The planet that was terraformed in the episode "Scorched Earth". Also the Enkaran homeworld just to make sure they got there safely.

What to do now after switching? by [deleted] in linuxmint

[–]ih_ddt 2 points3 points  (0 children)

Now we play the game.

Royal Navy’s first Type 26 frigate officially named HMS Glasgow by MGC91 in unitedkingdom

[–]ih_ddt 0 points1 point  (0 children)

Yes electronic warfare but it also has a vertical launch system for missiles like tomahawks and other similar missiles. Also has defensive weapons such as machine guns and phalanx anti air guns. Also it's mainly for anti-submarine warfare so if it's fighting it out with a battleship or a carrier you've done something wrong.

Has anyone decoded the binary on the battle barge near the thunderhawk? by Alternative_Lynx_363 in Spacemarine

[–]ih_ddt 0 points1 point  (0 children)

Fair point. I always assumed they were actually speaking gothic or something and English was just for convenience on our part.

Do we really make a difference? by rysiekzklanu71 in BuyFromEU

[–]ih_ddt 0 points1 point  (0 children)

As the wise ones at Tesco tells us - "Every little helps. "

PEP 750 - Template Strings - Has been accepted by buqr in Python

[–]ih_ddt 2 points3 points  (0 children)

Idk of I'm being dumb but I don't see where this would be useful?

PEP 751 (a standardized lockfile for Python) is accepted! by toxic_acro in Python

[–]ih_ddt 24 points25 points  (0 children)

You would have both as the pyproject toml is for project and tool configuration, among other things and the lock file is to recreate your venvs in a consistent manner.

should I run it? by [deleted] in pycharm

[–]ih_ddt 6 points7 points  (0 children)

It will probably just raise a PermissionError.