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

Single and Double Underscores in Python Names – Real Python

realpython.com

external-link
message-square
0
link
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
16
external-link

Single and Double Underscores in Python Names – Real Python

realpython.com

your to Python · 1 year ago
message-square
0
link
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
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

python

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]

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.

  • 11 users / day
  • 11 users / week
  • 13 users / month
  • 31 users / 6 months
  • 741 local subscribers
  • 2.06K subscribers
  • 25 Posts
  • 126 Comments
  • Modlog
  • mods:
  • csm10495
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org