Re: Current thinking on required options

2021-04-19 Thread Bill Campbell
Usage: grocli check|add|delete [-u USERS ...] Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestial.com/ 6641 E. Mercer Way Mobile: (206) 947-5591 PO Box 820 Fax:(206) 232-9186 Mercer Island, WA 98040-0820 Force alwa

Re: How to remove "" from starting of a string if provided by the user

2020-08-11 Thread Bill Campbell
27;' import re pat = re.compile(r'^([\'"])(.*)(\1)$') slast = None while slast != s: slast = s s = pat.cub(r'\2', s) return s # end stripquotes(s) Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Soft

Re: Missing python curses functions?

2020-05-19 Thread Bill Campbell
equivalent is attr_get() which gets the current >attributes. I haven't looked for it. ... >Is anyone other than me still even using Python curses? :-) Raises hand. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestial.com/ 6641 E.

Re: OT: ALGOL 60 at 60

2020-05-16 Thread Bill Campbell
ng methods I use today have their roots in doing a lot of scientific programming in ALGOL on the B-5500, then in BPL (Burroughs Programming Language) on Burroughs Medium Systems, B-2500->B-4500. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestia

Re: Vim settings for Python (was: tab replace to space 4)

2019-12-07 Thread Bill Campbell
INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestial.com/ 6641 E. Mercer Way Mobile: (206) 947-5591 PO Box 820 Fax:(206) 232-9186 Mercer Island, WA 98040-0820 Political language... is designed to make lies sound truthful and murder resp

Re: Convert Windows paths to Linux style paths

2019-03-12 Thread Bill Campbell
arators plus some other platform specific logic? See os.path.join Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestial.com/ 6641 E. Mercer Way Mobile: (206) 947-5591 PO Box 820 Fax:(206) 232-9186 Mercer Island, WA 98040-0820

Re: preferences file

2019-01-27 Thread Bill Campbell
nicely with the ConfigParser libraries. >3. File location? I'm using Ubuntu and I believe that the correct location >would be home/.config/ . What about Mac and Windows? See above. Same for Mac. I don't do Windows. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Softw

Re: [Tutor] Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread Bill Campbell
27;" I don't have a freebsd system available to test this, but I think this pattern should work: re.compile(r'^(default|0\.0\.0\.0)\s+(\S+)') Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestial.com/ PO Box 820; 6641 E. M

Re: [Tutor] Spaces and tabs messing up code

2008-01-08 Thread Bill Campbell
to 4 spaces? Do that, and in his ~/.vimrc file, add a line ``set expandtab'' (Friends don't let friends use emacs :-). Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX:(206) 232-91