---
title: "Juan Francisco Roco (@jfroco) | Hashnode"
description: "Innovating since the 70s... Read the latest articles by Juan Francisco Roco on Hashnode."
url: "https://hashnode.com/@jfroco"
---

@jfroco

# Juan Francisco Roco

@jfroco · Joined September 2021

Innovating since the 70s...

## Comments

[Hello Miguel Brito Yes, of course I understand that it is an experiment and 99% of your article is about adding your own syntax to Python which is super interesting and worth reading, but I believe it adds value to mention that it could be done already in pure Python. Best regards! Note: As you probably know in Python you can use False, 0, None, \[\], {} and '' as "not True" in "if" clauses, so in all cases: "if a:" should work later in your code, so the multiplication operator does work with str's: >>> a = 'hello' \* True >>> a 'hello' >>> a = 'hello' \* False >>> a '' >>> if a: ... print "True" ... >>>](https://hashnode.com/posts/what-if-python-had-this-ruby-feature/61178ef6e9f08a51fd85f74c/comment/614c8b04544e242e0c93eec1#reply-614cbed5544e242e0c93f5bf)

Reply · Article · Sep 23, 2021 · [How I Patched Python to Include This Ruby Feature](https://hashnode.com/posts/what-if-python-had-this-ruby-feature/61178ef6e9f08a51fd85f74c)

[Congratulations... I read about this on PyCoder's Weekly Isn't this enough for your use case (pure and simple Python)? >>> 42 \* True 42 >>> 21 \* False 0 >>> a = 42 >>> a += 1 \* False >>> a 42 >>> a += 1 \* True >>> a 43](https://hashnode.com/posts/what-if-python-had-this-ruby-feature/61178ef6e9f08a51fd85f74c/comment/614c8b04544e242e0c93eec1)

Comment · Article · Sep 23, 2021 · [How I Patched Python to Include This Ruby Feature](https://hashnode.com/posts/what-if-python-had-this-ruby-feature/61178ef6e9f08a51fd85f74c)
