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 (iter
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 (
New submission from Michael Kesper :
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&
New submission from Michael Kesper :
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: normal
status: open
Michael Kesper added the comment:
Hi,
On Tue, Feb 17, 2009 at 06:22:02PM +, Martin v. Löwis wrote:
>
> Martin v. Löwis added the comment:
>
> How exactly did you install the old installer? It should have been
> cached into your Windows folder, so that it is available on
New submission from Michael Kesper :
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: Installation
files