[issue22295] Clarify available commands for package installation

2022-02-12 Thread Ville Skyttä
Change by Ville Skyttä : -- nosy: +scop nosy_count: 4.0 -> 5.0 pull_requests: +29462 pull_request: https://github.com/python/cpython/pull/24003 ___ Python tracker <https://bugs.python.org/issu

[issue40589] Missing path-like versionchanged in shutil.rmtree

2020-05-10 Thread Ville Skyttä
Change by Ville Skyttä : -- keywords: +patch pull_requests: +19341 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20032 ___ Python tracker <https://bugs.python.org/issu

[issue40589] Missing path-like versionchanged in shutil.rmtree

2020-05-10 Thread Ville Skyttä
New submission from Ville Skyttä : shutil.rmtree takes a path-like object starting from 3.6 (due to internal use of os.lstat which does that too). -- assignee: docs@python components: Documentation messages: 368613 nosy: docs@python, scop priority: normal severity: normal status: open

[issue39616] SSLContext.check_hostname description is inaccurate wrt match_hostname

2020-02-12 Thread Ville Skyttä
Change by Ville Skyttä : -- keywords: +patch pull_requests: +17857 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18484 ___ Python tracker <https://bugs.python.org/issu

[issue39616] SSLContext.check_hostname description is inaccurate wrt match_hostname

2020-02-12 Thread Ville Skyttä
New submission from Ville Skyttä : Doc says "Whether to match the peer cert’s hostname with match_hostname() in SSLSocket.do_handshake()." but match_hostname() is no longer used to do that in the first place, OpenSSL is used for that. check_hostname affects the OpenSSL

[issue35631] Improve typing docs wrt abstract/concrete collection types

2018-12-31 Thread Ville Skyttä
Ville Skyttä added the comment: (s/generic collection types/abstract collection types/ in the initial message) -- ___ Python tracker <https://bugs.python.org/issue35

[issue35631] Improve typing docs wrt abstract/concrete collection types

2018-12-31 Thread Ville Skyttä
Change by Ville Skyttä : -- keywords: +patch, patch pull_requests: +10774, 10775 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35631] Improve typing docs wrt abstract/concrete collection types

2018-12-31 Thread Ville Skyttä
Change by Ville Skyttä : -- keywords: +patch, patch, patch pull_requests: +10774, 10775, 10776 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35631] Improve typing docs wrt abstract/concrete collection types

2018-12-31 Thread Ville Skyttä
Change by Ville Skyttä : -- keywords: +patch pull_requests: +10774 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35631> ___ ___ Py

[issue35631] Improve typing docs wrt abstract/concrete collection types

2018-12-31 Thread Ville Skyttä
New submission from Ville Skyttä : The typing docs for List includes a note to use generic collection types, but lists AbstractSet and Mapping which aren't generally replacements for a List. It would be better to remove those types from the List note and add corresponding ones to Dict and Set

[issue34336] Don't promote possibility to omit Optional on optional/defaulted arguments

2018-08-05 Thread Ville Skyttä
Change by Ville Skyttä : -- keywords: +patch pull_requests: +8172 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34336> ___ ___ Py

[issue34336] Don't promote possibility to omit Optional on optional/defaulted arguments

2018-08-05 Thread Ville Skyttä
New submission from Ville Skyttä : The documentation of typing.Optional seems to promote practices for not specifying Optional that are recommended against in PEP 484: https://www.python.org/dev/peps/pep-0484/#union-types -- end of chapter recommends against inferring Optional. https

[issue33585] re.sub calls repl function one time too many for catch-all regex

2018-05-20 Thread Ville Skyttä
Ville Skyttä <ville.sky...@iki.fi> added the comment: Oh, I see, sorry about the noise, then. (Only looked at the "Improved Modules" -> re section in the what's new, thus missed the doc.) -- ___ Python tracker <rep...@b

[issue33585] re.sub calls repl function one time too many for catch-all regex

2018-05-20 Thread Ville Skyttä
Ville Skyttä <ville.sky...@iki.fi> added the comment: Right, it's not limited to repl functions. Python 3.6.3: $ python -c 'import re;print(re.sub(".*", "X", "foo"))' X Python 3.7.0b4+: $ python -c 'import re;print(re.sub(".*", "X&q

[issue33585] re.sub calls repl function one time too many for catch-all regex

2018-05-20 Thread Ville Skyttä
Change by Ville Skyttä <ville.sky...@iki.fi>: -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33585] re.sub calls repl function one time too many for catch-all regex

2018-05-20 Thread Ville Skyttä
New submission from Ville Skyttä <ville.sky...@iki.fi>: (I'm fairly certain that the title doesn't describe the actual underlying issue all that well, however it is what I'm seeing so going with that for now.) Compared to Python 3.6, 3.7 appears to call the repl function for re.sub one

[issue28393] Update encoding lookup docs wrt #27938

2018-04-04 Thread Ville Skyttä
Change by Ville Skyttä <ville.sky...@iki.fi>: -- pull_requests: +6085 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue28393> ___ _

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2018-04-04 Thread Ville Skyttä
Change by Ville Skyttä <ville.sky...@iki.fi>: -- pull_requests: +6086 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue27938> ___ _

[issue28393] Update encoding lookup docs wrt #27938

2017-12-14 Thread Ville Skyttä
Ville Skyttä <ville.sky...@iki.fi> added the comment: I'm getting a 500 internatl server error trying to update https://bugs.python.org/review/28393/, so noting here that the latest review issue has been addressed in https://github.com/python/cpython/pul

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2017-12-14 Thread Ville Skyttä
Change by Ville Skyttä <ville.sky...@iki.fi>: -- pull_requests: +4763 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue27938> ___ _

[issue28393] Update encoding lookup docs wrt #27938

2017-12-14 Thread Ville Skyttä
Change by Ville Skyttä <ville.sky...@iki.fi>: -- pull_requests: +4762 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue28393> ___ _

[issue28393] Update encoding lookup docs wrt #27938

2016-10-13 Thread Ville Skyttä
Ville Skyttä added the comment: codecs-doc-3 contains a versionadded note about us-ascii. I think that's the only end user visible change in the new implementation. -- Added file: http://bugs.python.org/file45085/codecs-doc-3.patch ___ Python

[issue28393] Update encoding lookup docs wrt #27938

2016-10-11 Thread Ville Skyttä
Ville Skyttä added the comment: I believe (but haven't checked) that additionally, encoding names are case insensitive with respect to the fast-path behavior. But then again I also suppose that's the way it was before #27938 as well, which is why I didn't change that in this patch. But why

[issue28396] Remove *.pyo references from man page

2016-10-09 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: -- assignee: docs@python components: Documentation files: man-pyo.patch keywords: patch nosy: docs@python, scop priority: normal severity: normal status: open title: Remove *.pyo references from man page type: enhancement Added file

[issue28395] Remove unnecessary semicolons

2016-10-09 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: -- components: Tests files: semicolons.patch keywords: patch nosy: scop priority: normal severity: normal status: open title: Remove unnecessary semicolons type: enhancement Added file: http://bugs.python.org/file45032/semicolons

[issue28394] Spelling fixes

2016-10-09 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: -- assignee: docs@python components: Documentation files: spelling.patch keywords: patch nosy: docs@python, scop priority: normal severity: normal status: open title: Spelling fixes type: enhancement Added file: http://bugs.pyth

[issue28393] Update encoding lookup docs wrt #27938

2016-10-09 Thread Ville Skyttä
New submission from Ville Skyttä: The attached patch brings codecs docs up to date with respect to changes in #27938. -- assignee: docs@python components: Documentation files: codecs-doc.patch keywords: patch messages: 278354 nosy: docs@python, haypo, scop priority: normal severity

[issue27916] Use time.monotonic instead of time.time where appropriate

2016-08-31 Thread Ville Skyttä
Ville Skyttä added the comment: Thanks for the explanation, understood. However, I don't think it would be terribly difficult to demonstrate that these changes do address actual pains(*) in the situations they're supposed to address them. And the pains in question might in real world occur

[issue27916] Use time.monotonic instead of time.time where appropriate

2016-08-31 Thread Ville Skyttä
Ville Skyttä added the comment: It is not a wholesale search and replace, I have checked each change. There are a lot of places in the tree where monotonic is not appropriate, and those should not be included in the patch. But there is always the possibility that I've missed something

[issue27916] Use time.monotonic instead of time.time where appropriate

2016-08-31 Thread Ville Skyttä
New submission from Ville Skyttä: For better immunity against system clock changes. -- files: monotonic.patch keywords: patch messages: 274036 nosy: scop priority: normal severity: normal status: open title: Use time.monotonic instead of time.time where appropriate type: enhancement

[issue27915] Use 'ascii' instead of 'us-ascii' to bypass lookup machinery

2016-08-31 Thread Ville Skyttä
New submission from Ville Skyttä: https://docs.python.org/3/library/codecs.html#standard-encodings There are a bunch of other us-ascii occurrences in the tree; this patch covers the ones that are not user visible in a way that could cause problems or changes in behavior. -- files

[issue27904] Let logging format more messages on demand

2016-08-31 Thread Ville Skyttä
Ville Skyttä added the comment: Here's a patch that fixes the tests. -- Added file: http://bugs.python.org/file44298/logging-regressions.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27895] Spelling fixes

2016-08-31 Thread Ville Skyttä
Ville Skyttä added the comment: @rhettinger, the test_asyncio thing I mentioned is now taken care of in #27907. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27907] Misspelled variable in test_asyncio/test_events

2016-08-31 Thread Ville Skyttä
New submission from Ville Skyttä: Simply renaming the variable breaks the test which is why it was left out of #27895, this one keeps the test working. -- files: reponse.patch keywords: patch messages: 274001 nosy: scop priority: normal severity: normal status: open title: Misspelled

[issue27895] Spelling fixes

2016-08-30 Thread Ville Skyttä
Ville Skyttä added the comment: Right, I noticed the asyncio test breakage as well, that was one of the reasons I attached a couple of versions of the patch. spelling3 was not supposed to contain the breaking changes any more, maybe you worked on an earlier one? Anyway, thanks

[issue27904] Let logging format more messages on demand

2016-08-30 Thread Ville Skyttä
New submission from Ville Skyttä: Avoid some string formatting operations on disabled log levels. -- files: logging.patch keywords: patch messages: 273971 nosy: scop priority: normal severity: normal status: open title: Let logging format more messages on demand type: performance Added

[issue27903] Avoid ResourceWarnings from platform._dist_try_harder

2016-08-30 Thread Ville Skyttä
New submission from Ville Skyttä: Use opened files as context managers. -- components: Library (Lib) files: platform-resourcewarning.patch keywords: patch messages: 273969 nosy: scop priority: normal severity: normal status: open title: Avoid ResourceWarnings from platform

[issue27895] Spelling fixes

2016-08-30 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: Added file: http://bugs.python.org/file44274/spelling3.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27895] Spelling fixes

2016-08-30 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: Removed file: http://bugs.python.org/file44273/spelling2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27895] Spelling fixes

2016-08-30 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: Added file: http://bugs.python.org/file44273/spelling2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27895] Spelling fixes

2016-08-30 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: Removed file: http://bugs.python.org/file44272/spelling.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27895] Spelling fixes

2016-08-30 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: -- assignee: docs@python components: Documentation files: spelling.patch keywords: patch nosy: docs@python, scop priority: normal severity: normal status: open title: Spelling fixes type: enhancement Added file: http://bugs.pyth

[issue27894] Fix to_addrs refs in smtplib docs

2016-08-30 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: -- assignee: docs@python components: Documentation files: smtplib-doc.patch keywords: patch nosy: docs@python, scop priority: normal severity: normal status: open title: Fix to_addrs refs in smtplib docs type: enhancement Added file

[issue27893] BytesParser.parsebytes docstring fix

2016-08-30 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: -- assignee: docs@python components: Documentation files: parser.patch keywords: patch nosy: docs@python, scop priority: normal severity: normal status: open title: BytesParser.parsebytes docstring fix type: enhancement Added file

[issue27461] Optimize PNGs

2016-07-26 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: Removed file: http://bugs.python.org/file43653/pngs.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27461] Optimize PNGs

2016-07-26 Thread Ville Skyttä
Ville Skyttä added the comment: Updated patch against tip. Before: 289426 total After: 194638 total -- Added file: http://bugs.python.org/file43896/pngs.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27626] Spelling fixes

2016-07-26 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: -- files: spelling.patch keywords: patch nosy: scop priority: normal severity: normal status: open title: Spelling fixes type: enhancement versions: Python 3.6 Added file: http://bugs.python.org/file43895/spelling

[issue27461] Optimize PNGs

2016-07-07 Thread Ville Skyttä
Ville Skyttä added the comment: Sure, I plan to suggest this to sphinx as well. One corresponding tool for JPEGs is jpegoptim and its --strip-all option, but there is only ./Mac/BuildScript/resources/background.jpg in the cpython source tree (which despite of the .jpg extension appears

[issue27461] Optimize PNGs

2016-07-07 Thread Ville Skyttä
New submission from Ville Skyttä: Running PNGs through zopflipng makes them smaller, with no drawbacks. This patch was done with zopflipng version 1.0.1 with the -m option, and decreases the in-tree total size size of all *.png by almost 100KiB. $ find -name "*.png" | xargs du -bc |

[issue27430] Spelling fixes

2016-07-01 Thread Ville Skyttä
Changes by Ville Skyttä <ville.sky...@iki.fi>: -- files: spelling.patch keywords: patch nosy: scop priority: normal severity: normal status: open title: Spelling fixes type: enhancement Added file: http://bugs.python.org/file43597/spelling

[issue27076] Doc and comment spelling fixes

2016-05-21 Thread Ville Skyttä
New submission from Ville Skyttä: Patch attached. -- assignee: docs@python components: Documentation, Library (Lib) files: docs.patch keywords: patch messages: 265992 nosy: docs@python, scop priority: normal severity: normal status: open title: Doc and comment spelling fixes type

[issue27075] Link to StreamReader/Writer from codecs.getreader/writer

2016-05-21 Thread Ville Skyttä
New submission from Ville Skyttä: Patch attached. -- assignee: docs@python components: Documentation files: codeclinks.patch keywords: patch messages: 265991 nosy: docs@python, scop priority: normal severity: normal status: open title: Link to StreamReader/Writer from codecs.getreader

[issue25176] Link to urllib.parse.parse_qsl, not parse_qs, from cgi.parse_qsl doc

2015-09-19 Thread Ville Skyttä
New submission from Ville Skyttä: The docs for cgi.parse_qsl should link to urllib.parse.parse_qsl instead of urllib.parse.parse_qs, patch attached. -- assignee: docs@python components: Documentation files: cgi.parse_qsl.doc.patch keywords: patch messages: 251072 nosy: docs@python

[issue24232] Speling fixes

2015-05-18 Thread Ville Skyttä
New submission from Ville Skyttä: Various doc spelling fixes in the attached patch. -- assignee: docs@python components: Documentation files: spelling.patch keywords: patch messages: 243536 nosy: docs@python, scop priority: normal severity: normal status: open title: Speling fixes type

[issue24233] Link to getfqdn rather than see above

2015-05-18 Thread Ville Skyttä
New submission from Ville Skyttä: Would be nice to link to getfqdn() instead of saying see above for it in socket.gethostname() docs. -- assignee: docs@python components: Documentation files: getfqdnlink.patch keywords: patch messages: 243537 nosy: docs@python, scop priority: normal

[issue11311] StringIO.readline(0) returns incorrect results

2011-02-24 Thread Ville Skyttä
New submission from Ville Skyttä ville.sky...@iki.fi: Python 2.7 (r27:82500, Sep 16 2010, 18:02:00) [GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2 Type help, copyright, credits or license for more information. import StringIO StringIO.StringIO(foo).readline(0) 'foo' I don't think

[issue11312] Confusing sentence in file.readline() doc

2011-02-24 Thread Ville Skyttä
New submission from Ville Skyttä ville.sky...@iki.fi: http://docs.python.org/library/stdtypes.html#file.readline An empty string is returned only when EOF is encountered immediately. I think this sentence is misleading especially because the word only in it is emphasized, because an empty

[issue8219] Facility and priority values/constants not documented for SysLogHandler

2010-03-24 Thread Ville Skyttä
New submission from Ville Skyttä ville.sky...@iki.fi: http://docs.python.org/dev/py3k/library/logging.html#logging.handlers.SysLogHandler What to use as the value for facility for SysLogHandler's constructor is not documented. There's a reference to LOG_USER, but it's kind of vague because

[issue7921] executemany() link in Connection.executemany should point to Cursor.executemany

2010-02-12 Thread Ville Skyttä
New submission from Ville Skyttä ville.sky...@iki.fi: http://docs.python.org/dev/library/sqlite3.html#sqlite3.Connection.executemany The executemany() link in ... then calls the cursor’s executemany() method ... points to Connection.executemany (itself), it should point to Cursor.executemany

[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2009-09-23 Thread Ville Skyttä
New submission from Ville Skyttä ville.sky...@iki.fi: The default list of locale.getdefaultlocale() is documented to be the one of GNU gettext; in the source docs in Python 2.7 trunk: envvars defaults to the search path used in GNU gettext; it must always contain the variable name

[issue4232] tempfile.gettempdir() availability not documented

2008-10-29 Thread Ville Skyttä
New submission from Ville Skyttä [EMAIL PROTECTED]: The documentation for tempfile.gettempdir() at http://docs.python.org/library/tempfile.html#module-tempfile does not mention in which version the function was added. Based on browsing older docs, looks like New in version 2.3. should be added