Python Forum
Try Python without dots!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Try Python without dots!
#5
Quote:Let me remark that if you write a file without dots, you can use adddot.py to rewrite the file with the dots automatically, so you can safely program this way.
If you never used it in the first place, you would never have to worry about this.

I think cwsize = len(car wheel size) looks awful.
Whereas cwsize = len(car.wheel.size) immediately indicates that size is an element of wheel which is an element of car,
so car.wheel.size should be able to be used without further processing.

Again this is just me, and my habits go back to when I started coding 54 years ago.
Reply


Messages In This Thread
Try Python without dots! - by Gribouillis - May-24-2021, 07:06 PM
RE: Try Python without dots! - by Gribouillis - May-28-2021, 09:09 AM
RE: Try Python without dots! - by Larz60+ - May-28-2021, 11:04 PM
RE: Try Python without dots! - by Gribouillis - May-29-2021, 06:38 AM
RE: Try Python without dots! - by Larz60+ - May-29-2021, 01:44 PM
RE: Try Python without dots! - by Gribouillis - May-30-2021, 02:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to make complex shapes using swarm of dots......like chair,rocket and many more wisewizer 1 1,898 Apr-18-2019, 04:19 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020