Dendarii
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
whoareu@lemmy.ca to Programming@programming.devEnglish · 11 months ago

which python trick or hack you know that you would want to share?

message-square
message-square
45
fedilink
96
message-square

which python trick or hack you know that you would want to share?

whoareu@lemmy.ca to Programming@programming.devEnglish · 11 months ago
message-square
45
fedilink
  • Gutek8134@lemmy.world
    link
    fedilink
    arrow-up
    22
    ·
    11 months ago

    Walrus operator - := - envious of the C devs being able to simultaneously assign and return a value? Envy no more, we’ve got it.

    • SpeakinTelnet@sh.itjust.works
      link
      fedilink
      arrow-up
      15
      ·
      11 months ago

      For those curious about the drama & lack of wide adoption surrounding the walrus operator

      https://dev.to/renegadecoder94/the-controversy-behind-the-walrus-operator-in-python-4k4e

      It’s a shame because it’s a really nice feature.

      • maegul (he/they)@lemmy.ml
        link
        fedilink
        English
        arrow-up
        7
        ·
        11 months ago

        You need to see it to believe it I think. I was generally on the side of “too complex” but then came across instances perfect for it and used it right away and found it pleasant.

        I’m still generally on the side of “too complex” though, and think there are probably better things for PSF to work on (cough packaging cough).

    • urda@lebowski.social
      link
      fedilink
      English
      arrow-up
      7
      ·
      11 months ago

      I am the Walrus

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 137 users / day
  • 619 users / week
  • 2.86K users / month
  • 6.98K users / 6 months
  • 1 local subscriber
  • 20.1K subscribers
  • 1.47K Posts
  • 19.9K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org