Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Feedback on my first Python module
Post: RE: Feedback on my first Python module

(Jun-16-2018, 05:37 PM)snippsat Wrote: Some use of string formatting but could be more,not so nice + ' ' +. f-string makes it a lot nicer,that will of course make it 3.6 only. if that's no problem t...
CodeRaker Code sharing 11 6,666 Jun-20-2018, 08:55 PM
    Thread: Feedback on my first Python module
Post: RE: Feedback on my first Python module

(Jun-16-2018, 03:43 PM)buran Wrote: could be just run_command('systemctl {} {}'.format(action, service), systemctl_verbose) if verbose: print('[V] {} service: {}'.format(action.capitalize() + servic...
CodeRaker Code sharing 11 6,666 Jun-16-2018, 04:14 PM
    Thread: Feedback on my first Python module
Post: RE: Feedback on my first Python module

(Jun-16-2018, 02:36 PM)ichabod801 Wrote: Why not just use: return bool(result) ? In order for it to work I would have to write return not bool(result) So I chose the shorter version by Lars60+. Both...
CodeRaker Code sharing 11 6,666 Jun-16-2018, 03:30 PM
    Thread: Feedback on my first Python module
Post: RE: Feedback on my first Python module

(Jun-16-2018, 12:55 PM)Larz60+ Wrote: There is a trick you can use to change any value to True or false: λ python Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]...
CodeRaker Code sharing 11 6,666 Jun-16-2018, 03:21 PM
    Thread: Feedback on my first Python module
Post: Feedback on my first Python module

Hi there Pyople **shy** , I'm developing my first python module intended to assist with writing (for now) Ubuntu server administration scripts. I'm not trying to invent the new Ansible - rather just ...
CodeRaker Code sharing 11 6,666 Jun-16-2018, 12:07 PM

User Panel Messages

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