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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:33:34+00:00 2026-05-17T00:33:34+00:00

I’ve been an avid learner of the Python language for quite some time. Having

  • 0

I’ve been an avid learner of the Python language for quite some time. Having more than 6 years of Java[professional] experience, coupled with a bit of C++ [hobby] experience – it’s fair to say my perspective is deeply entrenched in the idioms brought forth by such statically typed, strongly bound languages. In short – i could say the old school way of thinking has significant influence on my programming style.

My reason to pick up Python, and not say Ruby, was primarily a coincidence since i got some part time work i could help out w/ using Python. it’s been 2 weeks, and things have been nothing short of a revolution! armed w/ IDLE and the Python Essential Reference, it’s been one revelation after another. it’s like how a classical physicist would feel if gravity ceased to exist!

Anyways, i understand that to be effective w/ python it’s going to take some time of real hands-on work. more than the syntax, i feel it’s because of the way my mind thinks. however, prepared as much as i am, there’s one particular thing which bothers me quite a bit –
python offers way too many idioms to perform the same thing. For example, list comprehension and filter(…), apply(…) and eval(…), etc. while these idioms aren’t completely substitutable, but i find that their primary purposes overlap to a great extent.
i understand that there must be underlying performance gains vis-a-vis their usages. however, as a beginner, what’s the best way to get on w/ the education and curb the distraction of ‘n’ ways to solve the same thing?

  • 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-17T00:33:35+00:00Added an answer on May 17, 2026 at 12:33 am

    list comprehension and filter(…),
    apply(…) and eval(…), etc. while
    these idioms aren’t completely
    substitutable, but i find that their
    primary purposes overlap to a great
    extent

    The pythonic way would be: use simple for-loops or list comprehensions. filter and map are remnants of older versions of the language. Guido wanted them removed at one point but it turned out there are some valid use cases and enough people who would like them to stay (also see this thread). Don’t use eval.

    Don’t worry about performance unless it becomes a problem (and in that case the easiest way – trying make to use of the highly optimized functions in the standard library – is the best way most of the time).

    I think in general Python is really straightforward in trying to provide one (obvious) way to do things, although valid (bigger or smaller) variations do occur and opinions on some topics do differ, of course.

    Picking up the Python idioms can be as easy as browsing this site and paying special attention to highly upvoted answers on Python questions (most of the time there’s some kind of consensus on the best way to do things).

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have thousands of HTML files to process using Groovy/Java and I need to
I'm having trouble keeping the paragraph square between the quote marks. In firefox the

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.