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 631941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:01:19+00:00 2026-05-13T20:01:19+00:00

Much of my programming background is in Java, and I’m still doing most of

  • 0

Much of my programming background is in Java, and I’m still doing most of my programming in Java. However, I’m starting to learn Python for some side projects at work, and I’d like to learn it as independent of my Java background as possible – i.e. I don’t want to just program Java in Python. What are some things I should look out for?

A quick example – when looking through the Python tutorial, I came across the fact that defaulted mutable parameters of a function (such as a list) are persisted (remembered from call to call). This was counter-intuitive to me as a Java programmer and hard to get my head around. (See here and here if you don’t understand the example.)

Someone also provided me with this list, which I found helpful, but short. Anyone have any other examples of how a Java programmer might tend to misuse Python…? Or things a Java programmer would falsely assume or have trouble understanding?

Edit: Ok, a brief overview of the reasons addressed by the article I linked to to prevent duplicates in the answers (as suggested by Bill the Lizard). (Please let me know if I make a mistake in phrasing, I’ve only just started with Python so I may not understand all the concepts fully. And a disclaimer – these are going to be very brief, so if you don’t understand what it’s getting at check out the link.)

  • A static method in Java does not translate to a Python classmethod
  • A switch statement in Java translates to a hash table in Python
  • Don’t use XML
  • Getters and setters are evil (hey, I’m just quoting 🙂 )
  • Code duplication is often a necessary evil in Java (e.g. method overloading), but not in Python

(And if you find this question at all interesting, check out the link anyway. 🙂 It’s quite good.)

  • 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-13T20:01:19+00:00Added an answer on May 13, 2026 at 8:01 pm
    • Don’t put everything into classes. Python’s built-in list and dictionaries will take you far.
    • Don’t worry about keeping one class per module. Divide modules by purpose, not by class.
    • Use inheritance for behavior, not interfaces. Don’t create an “Animal” class for “Dog” and “Cat” to inherit from, just so you can have a generic “make_sound” method.

    Just do this:

    class Dog(object):
        def make_sound(self):
            return "woof!"
    
    class Cat(object):
        def make_sound(self):
            return "meow!"
    
    class LolCat(object):
        def make_sound(self):
            return "i can has cheezburger?"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 309k
  • Answers 309k
  • 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 Another method is to alter node.tpl.php to strip the teaser… May 13, 2026 at 9:52 pm
  • Editorial Team
    Editorial Team added an answer The OUTPUT clause should come before VALUES See Example A… May 13, 2026 at 9:52 pm
  • Editorial Team
    Editorial Team added an answer A template function solves your problem: template<class T> __inline bool… May 13, 2026 at 9:52 pm

Related Questions

My question is broader than merely expanding language specific skills. I'm wondering what sort
I am developing a simple platform game using Java using BlueJ as the IDE.
I am eventually wanting to program in Objective-C to write programs for OS X
I want to display and rotate a single 3D model, preferably textured, on the
I am used to structural programming (eg:C), OO programming(eg:Java), Scripting(eg:Javascript), Web (eg:HTML,JSP,Servlets,CSS) etc. Now,

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.