Skip Navigation
Spiralling deer population 'devastating' UK nature - prompting calls to reintroduce wolves and lynx
  • Am I being stupid but would this not be a good reason to eat more of them? Be the wolves and Lynxes you want to see in the world.

  • Typed Python: Choose Sequence over List
  • yeah it's an interesting case that an int can be treated as a float. I should probably update my post to mention that it's not strictly a supertype but a special exception mentioned in python's typehinting pep: https://peps.python.org/pep-0484/#the-numeric-tower

  • Typed Python: Choose Sequence over List
  • That was definitely a nice feature (I forget exactly when list over List was added). That said I've never really been bothered about having imports. Especially when I know the import is side effect free like the typing module. But I definitely use import free list for script files without many lines of code.

  • Typed Python: Choose Sequence over List
  • Yeah there's definitely a lot of room for improvement here

  • Typed Python: Choose Sequence over List
    blog.meadsteve.dev Typed Python: Choose Sequence over List

    Why I would default to choosing sequence over list when adding types to a function

    Typed Python: Choose Sequence over List

    A blog post on choosing more specific types rather than general ones like list and dict.

    8
    Is there a title (Mr/Ms/Mrs) that is gender neutral?
  • Slightly off topic but I really like the approach where the honorific is just dropped entirely. So just [Name]. No Mr/Ms/Mrs. It mostly doesn't serve any purpose anyway.

  • meadsteve MeadSteve @reddthat.com
    Posts 1
    Comments 5