Message144523
| Author |
denilsonsa |
| Recipients |
bethard, denilsonsa, zbysz |
| Date |
2011年09月25日.14:18:42 |
| SpamBayes Score |
1.8731207e-05 |
| Marked as misclassified |
No |
| Message-id |
<1316960323.5.0.0470223814517.issue13041@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> #8408 was proposing a new module, which seems a bit overkill
If a module seems overkill, then maybe add this useful function to os module. Don't leave it private to argparse module. Maybe something along these lines:
>>> import os
>>> print(os.get_terminal_size())
(80, 25)
Why do I believe a module could be better? Because I'd also like some way to detect when the terminal size has changed (without probing it all the time). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年09月25日 14:18:43 | denilsonsa | set | recipients:
+ denilsonsa, bethard, zbysz |
| 2011年09月25日 14:18:43 | denilsonsa | set | messageid: <1316960323.5.0.0470223814517.issue13041@psf.upfronthosting.co.za> |
| 2011年09月25日 14:18:42 | denilsonsa | link | issue13041 messages |
| 2011年09月25日 14:18:42 | denilsonsa | create |
|