• Skip to main content
  • Skip to after header navigation
  • Skip to site footer

Free-Mail

  • Events
  • Images
    • Instagram Goodness
  • Music
  • News
  • Software

How I patched Python to include this great Ruby feature

How I patched Python to include this great Ruby feature: Python programming language logo with question marks

Ruby, unlike Python, makes lots of things implicit, and there’s a special kind of if expression that demonstrates this well. It’s often referred to as an “inline-if” or “conditional modifier”, and this special syntax is able to return one value when a condition is true, but another value (nil, specifically) when a condition is false. Here’s an example:

read more: Opensource.com miguendes

Supporting Open Source.

Have you tried: Visiting Port Elizabeth?

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Pinterest (Opens in new window) Pinterest
  • Email a link to a friend (Opens in new window) Email
  • More
  • Share on Tumblr (Opens in new window) Tumblr
  • Print (Opens in new window) Print
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
Published on 16 September 2021 by Alan Category: SoftwareTag: Feature, Great, Include, patched, Python, Ruby, This

How Worried Should We Be About The New U.K. Coronavirus Variant?

South Africa in the news: How Worried Should We Be About The New U.K. Coronavirus Variant?: …

Read moreHow Worried Should We Be About The New U.K. Coronavirus Variant?

The Keats family in Cape Town

A cool Cape Town image: The Keats family in Cape Town Image by Derek Keats The Keats family in Cape …

Read moreThe Keats family in Cape Town

Uptake of children’s COVID vaccines is low in the UK – and their slow, confused approval is to blame

Uptake of children’s COVID vaccines is low in the UK – and their slow, confused approval is to …

Read moreUptake of children’s COVID vaccines is low in the UK – and their slow, confused approval is to blame

About Alan

Previous Post:Nice Nina Betschart photo
Next Post:Trending Now: Hlengiwe Mkhize

Reach Trust

Reach Trust is a holding trust for a number of companies within the Stratlec Group.

Copyright © 2026 · Free-Mail · All Rights Reserved · Powered by Straton Electrical

Back to top