New submission from Michael Kesper mkes...@schokokeks.org:
In http://docs.python.org/library/stdtypes.html#mutable-sequence-types
s.pop([i]) is listed. Correct would be:
s.pop(i)
--
assignee: georg.brandl
components: Documentation
messages: 90623
nosy: georg.brandl, mkesper
severity
New submission from Michael Kesper mkes...@schokokeks.org:
http://docs.python.org/library/string.html#format-specification-mini-language
mentions:
Changed in version 2.7: Added the ',' option (see also PEP 378).
PEP 378 tells me:
The ',' option is defined as shown above for types 'd', 'e', 'f
New submission from Michael Kesper mkes...@schokokeks.org:
When upgrading to 2.6.1, an error occurs if the old installer is not
found. I needed to open it several times until I read _what_ was needed.
Finding old installers on python.org requires too much search, too.
--
components
New submission from Michael Kesper:
source_path = Path('../data')
destination_path = Path('//file_server/work/whatever')
for file_name in source_path.glob('xyz-*'):
shutil.copyfile(source_path / file_name, destination_path / file_name)
leads to:
Traceback (most recent call last):
File
New submission from Michael Kesper:
Please look at
http://stackoverflow.com/questions/41932287/how-can-i-create-a-loop-for-these-if-statements/41932494?noredirect=1#41932494
For beginners, it would be good to introduce the concepts of 'pythonic' dealing
with sequences (iterators