[issue6503] Python Docs: 6.6.4. Mutable Sequence Types

2009-07-17 Thread Michael Kesper
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

[issue13718] Format Specification Mini-Language does not accept comma for percent value

2012-01-06 Thread Michael Kesper
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

[issue5291] Windows upgrade to 2.6.1 requires 2.6 installer to be present

2009-02-17 Thread Michael Kesper
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

[issue23241] shutil should accept pathlib types

2015-01-14 Thread Michael Kesper
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

[issue29390] Python Tutorial should introduce iterators and generators

2017-01-30 Thread Michael Kesper
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