python -m http.server came in handy so many times!
𝕨𝕒𝕤𝕒𝕓𝕚
- 13 Posts
- 62 Comments
Lmao, chinese tea ceremony includes like 500 steps.
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Music Piracy Is Back in a Big WayEnglish
1·2 年前Honestly the most complete source of high res music is private trackers like redacted. You can download all the stuff from qobuz and bandcamp, every CD rip you can think of in bit perfect quality of and even very good vinyl rips. You basically can download any version ever released from any album.
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deOPto
Python@programming.dev•Generic Typing with `Iterable[str]` or `Collection[str]`: Should you use it?
1·2 年前Yes, that’s a good alternative for
Collection[str]but not so much forIterable[str]as you lose the lazyness of Generators.
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deOPto
Python@programming.dev•Generic Typing with `Iterable[str]` or `Collection[str]`: Should you use it?
3·2 年前Maybe something like passing in a list of patterns which should match some data, or a list of files/urls to download would be examples of where I would like to be generic, but taking in a string would be bad.
But the real solution be to convert it to
foo(*args: str). But maybe if you take 2Container[str]as input so you can’t use. But no real world example comes to mind.
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deOPto
Python@programming.dev•Generic Typing with `Iterable[str]` or `Collection[str]`: Should you use it?
1·2 年前Yes, you’re right. It also a lot of benefits.
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deOPto
Python@programming.dev•Generic Typing with `Iterable[str]` or `Collection[str]`: Should you use it?
2·2 年前This + an assert seems like the way to go. I think that
strshould never have fulfilled these contracts in the first place and should have a.charsproperty that returns a list of one-character-strings. But this change would break existing code, so it is not going to happen.
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deOPto
Python@programming.dev•Generic Typing with `Iterable[str]` or `Collection[str]`: Should you use it?
2·2 年前strmatches most of these contracts, though, requiring additional checks if astrwas passed or one of these collections containing strings.
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deOPto
Python@programming.dev•Generic Typing with `Iterable[str]` or `Collection[str]`: Should you use it?English
3·2 年前But what if you actually don’t want
strto be valid?
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deOPto
Python@programming.dev•Generic Typing with `Iterable[str]` or `Collection[str]`: Should you use it?English
3·2 年前I know that
IterableandCollectionaren’t the same. My point is, that if you useIterable[str]orCollection[str]as a more flexible alternative tolist[str]you no longer have any type-hinting support protecting against passing in a plain string and you could end up with a subtle bug by unexpectedly looping over['f', 'o', 'o']instead of['foo'].
Basiert oder kringelig? https://listenbrainz.org/user/Popkornium18/
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deto
Apple@lemmy.world•Apple cuts off Beeper Mini’s access after launch of service that brought iMessage to Android
7·2 年前Re- not reverse-engineer.
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deto
Technology@lemmy.world•Will Microsoft drop the TPM requirement for Win 11 once Win 12 rolls around?English
6·2 年前Don’t do this. Running unpatched software is a recipe for disaster.
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deto
PC Gaming@lemmy.ca•Steam Deck gets a new competitor — Ayaneo Slide RGB keyboard handheld gaming PC launches on IndieGogo from $699
5·2 年前It’s a rather standard feature. Hardware and software have to be built/configured right for it to work well. That’s what Valve did. I don’t think there is any special sauce involved software wise.
𝕨𝕒𝕤𝕒𝕓𝕚@feddit.deto
DACH - Deutschsprachige Community für Deutschland, Österreich, Schweiz@feddit.de•Selbst Augustiner ist von Glyphosat betroffen. Das macht betroffen.Deutsch
30·2 年前Was ist das für ne Visualisierung? Es sieht so aus als hätte Hasseröder 4x so viel wie Augustiner aber es sind eher ~60x…
Wenn man sich keine Contributions von anderen wünscht ist Mercurial neben SVN und CVS immer noch eine gute Wahl.










Steam integrates with your package manager?