Aug-27-2021, 09:35 PM
I don't think the comprehension is necessary. You can iterate directly over os.uname().
self.info = "\n\n".join(os.uname()) + "\n\n"
Is there a better way of formatting os.uname() output?
|
|
Messages In This Thread |
Is there a better way of formatting os.uname() output? - by CodeWolf - Aug-27-2021, 02:56 PM
RE: Is there a better way of formatting os.uname() output? - by Larz60+ - Aug-27-2021, 03:26 PM
RE: Is there a better way of formatting os.uname() output? - by snippsat - Aug-27-2021, 05:56 PM
RE: Is there a better way of formatting os.uname() output? - by CodeWolf - Aug-27-2021, 08:55 PM
RE: Is there a better way of formatting os.uname() output? - by Yoriz - Aug-27-2021, 09:23 PM
RE: Is there a better way of formatting os.uname() output? - by bowlofred - Aug-27-2021, 09:35 PM
RE: Is there a better way of formatting os.uname() output? - by CodeWolf - Aug-27-2021, 11:41 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Formatting float number output | barryjo | 2 | 1,014 |
May-04-2023, 02:04 PM Last Post: barryjo |
|
Formatting to output file | Mark17 | 2 | 1,388 |
Jan-13-2022, 09:06 PM Last Post: BashBedlam |
|
Is there a better way to print uname information? | EkaCaesium | 4 | 3,908 |
Apr-26-2021, 12:51 PM Last Post: EkaCaesium |
|
Output formatting | Steffenwolt | 0 | 2,232 |
Jan-18-2018, 03:47 PM Last Post: Steffenwolt |