SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
your@sh.itjust.works to Python@sh.itjust.works · 1 year ago

Single and Double Underscores in Python Names – Real Python

realpython.com

external-link
message-square
0
fedilink
  • cross-posted to:
  • learn_programming@programming.dev
  • python@programming.dev
16
external-link

Single and Double Underscores in Python Names – Real Python

realpython.com

your@sh.itjust.works to Python@sh.itjust.works · 1 year ago
message-square
0
fedilink
  • cross-posted to:
  • learn_programming@programming.dev
  • python@programming.dev
In this tutorial, you'll learn a few Python naming conventions involving single and double underscores (_). You'll learn how to use this character to differentiate between public and non-public names in APIs, write safe classes for subclassing purposes, avoid name clashes, and more.
alert-triangle
You must log in or register to comment.

Python@sh.itjust.works

python@sh.itjust.works

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: !python@sh.itjust.works

A community for talking about the Python programming language.

Visibility: Public
globe

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

  • 1 user / day
  • 12 users / week
  • 14 users / month
  • 32 users / 6 months
  • 47 local subscribers
  • 2.06K subscribers
  • 25 Posts
  • 126 Comments
  • Modlog
  • mods:
  • csm10495@sh.itjust.works
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org