Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 286383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:37:53+00:00 2026-05-12T05:37:53+00:00

I’ve just started using Python and I was thinking about which notation I should

  • 0

I’ve just started using Python and I was thinking about which notation I should use. I’ve read the PEP 8 guide about notation for Python and I agree with most stuff there except function names (which I prefer in mixedCase style).

In C++ I use a modified version of the Hungarian notation where I don’t include information about type but only about the scope of a variable (for instance lVariable for a local variable and mVariable for a member variable of a class, g for global, s for static, in for a function’s input and out for a function’s output.)

I don’t know if this notation style has a name but I was wondering whether it’s a good idea not to use such a notation style in Python. I am not extremely familiar with Python so you guys/gals might see issues that I can’t imagine yet.

I’m also interested to see what you think of it in general 🙂 Some people might say it makes the code less readable, but I’ve become used to it and code written without these labels is the code that is less readable for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:37:54+00:00Added an answer on May 12, 2026 at 5:37 am

    (Almost every Python programmer will say it makes the code less readable, but I’ve become used to it and code written without these labels is the code that is less readable for me)

    FTFY.

    Seriously though, it will help you but confuse and annoy other Python programmers that try to read your code.

    This also isn’t as necessary because of how Python itself works. For example you would never need your “mVariable” form because it’s obvious in Python:

    class Example(object):
        def__init__(self):
            self.my_member_var = "Hello"
    
        def sample(self):
            print self.my_member_var
    
    e = Example()
    e.sample()
    print e.my_member_var
    

    No matter how you access a member variable (using self.foo or myinstance.foo) it’s always clear that it’s a member.

    The other cases might not be so painfully obvious, but if your code isn’t simple enough that a reader can keep in mind “the ‘names’ variable is a parameter” while reading a function you’re probably doing something wrong.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 221k
  • Answers 221k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think it is w3wp.exe May 13, 2026 at 12:12 am
  • Editorial Team
    Editorial Team added an answer This is undefined behavior: The your class definitions define the… May 13, 2026 at 12:12 am
  • Editorial Team
    Editorial Team added an answer Don't use fgets() to read binary data that needs to… May 13, 2026 at 12:12 am

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into
I have text I am displaying in SIlverlight that is coming from a CMS
I want use html5's new tag to play a wav file (currently only supported

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.