Python Forum
Try Python without dots!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Try Python without dots!
#1
I uploaded a single-file module adddot.py here https://sourceforge.net/projects/adddot/. With it you can code in Python with optional dot operator. For example you would write
# coding: adddot

import xml dom minidom
result = xml dom minidom parse('spam.xml')
To install the file (manually), follow the docstring
""""Module adddot: an encoding to add missing dot operators in python

Usage:
    * put this file adddot.py on the Python path
    * in usercustomize.py add the lines
        import adddot
        adddot.register()
    * in utf8-encoded python programs, use the encoding line
            coding: adddot
    * Enjoy! you can now omit the dot operator in Python files
    
Requires:
    * module 'untokenize' from Pypi (install with pip)
    
Disclaimer:
    As of version 2021.05.24, this has been tested with very very
    few python (3.8) files.
"""
Thanks for comments and feedback!
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,891 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