Message369765
> I made the suggested change to just print the os.remove() statements (instead of executing them) and also removed the 'skip news'.
I think you may have misunderstood the suggestion.
Specifically, the key part was "I would suggest adding succinct comments or a note that very briefly explains how one could see a visual demonstration...". This would mean the actual code in the example would be *unchanged*, but with a new code comment or separate note after the example that explains how one could replace ``os.remove(os.path.join(root, name))`` with ``print(f"os.remove({os.path.join(root, name)})")`` for a purely visual demonstration that doesn't affect any local files. |
|
Date |
User |
Action |
Args |
2020-05-24 02:26:37 | aeros | set | recipients:
+ aeros, rhettinger, docs@python, python-dev, serhiy.storchaka, jftuga |
2020-05-24 02:26:37 | aeros | set | messageid: <1590287197.3.0.240155364836.issue40160@roundup.psfhosted.org> |
2020-05-24 02:26:37 | aeros | link | issue40160 messages |
2020-05-24 02:26:37 | aeros | create | |
|