[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/issue22295>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue40589>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
title: Missing path-like versionchanged in shutil.rmtree

___
Python tracker 
<https://bugs.python.org/issue40589>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue39616>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
usage, too.

--
assignee: docs@python
components: Documentation
messages: 361892
nosy: docs@python, scop
priority: normal
severity: normal
status: open
title: SSLContext.check_hostname description is inaccurate wrt match_hostname
type: enhancement

___
Python tracker 
<https://bugs.python.org/issue39616>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue35631>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue35631>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue35631>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 which are currently lacking it.

Additionally, some examples in the typing docs are in violation of the above 
stated preference, using Lists and Dicts as parameters.

--
assignee: docs@python
components: Documentation
messages: 332842
nosy: docs@python, scop
priority: normal
severity: normal
status: open
title: Improve typing docs wrt abstract/concrete collection types
type: enhancement

___
Python tracker 
<https://bugs.python.org/issue35631>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://docs.python.org/3.8/library/typing.html#typing.Optional -- second 
paragraph promotes the possibility of leaving out Optional.

I'm not sure how to improve the typing.Optional doc wording, perhaps it would 
be better to just remove the second paragraph altogether.

--
assignee: docs@python
components: Documentation
messages: 323132
nosy: docs@python, scop
priority: normal
severity: normal
status: open
title: Don't promote possibility to omit Optional on optional/defaulted 
arguments
type: enhancement
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue34336>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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...@bugs.python.org>
<https://bugs.python.org/issue33585>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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", "foo"))'
XX

Poking serhiy.storchaka who according to the release notes, seems to have done 
quite a bit of work on re in 3.7.

--
nosy: +serhiy.storchaka

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33585>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue33585>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
time too many, when given a catch-all regex. The extra call is made with a 
match consisting of an empty string. I think this is quite unexpected, and 
think it's a bug that I hope could be fixed before 3.7 is out.

Demonstration code:

import re
def repl(match):
print(f"Called with match '{match.group(0)}'")
re.sub(".*", repl, "foo")

3.6.3 produces the expected output:

Called with match 'foo'

3.7.0b4+ (current git) demonstrates the extra call:

Called with match 'foo'
Called with match ''

--
messages: 317166
nosy: scop
priority: normal
severity: normal
status: open
title: re.sub calls repl function one time too many for catch-all regex
type: behavior
versions: Python 3.7

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33585>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/pull/4871

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue28393>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28393>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 not add it while at it, if I'm correct. 
Something like this revised patch?

--
Added file: http://bugs.python.org/file45061/codecs-doc-2.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28393>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: http://bugs.python.org/file45033/man-pyo.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28396>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28395>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/file45031/spelling.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
status: open
title: Update encoding lookup docs wrt #27938
type: enhancement
Added file: http://bugs.python.org/file45030/codecs-doc.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28393>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 quite rarely, unexpectedly, and take some time/cost 
to debug and reproduce, which is why it would be good to be able to 
preemptively address them.

(*) For some values of "pain" -- many of the changes here are just for 
outputting nice-to-know timing information.

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27916>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, and it's good that there are reviewers.

Granted, some of the changes in this patch might not make a big difference, but 
they should not hurt either. To me, using monotonic is the right thing to use 
when dealing with time differences/delays, unless one needs an actual 
predictable time value anchored at the epoch at the same time for some other 
purposes. I don't of course insist on that point of view, and would be 
interested to hear other opinions and if someone can point out flaws/dangers in 
mine.

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27916>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Added file: http://bugs.python.org/file44304/monotonic.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27916>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: ascii.patch
keywords: patch
messages: 274028
nosy: scop
priority: normal
severity: normal
status: open
title: Use 'ascii' instead of 'us-ascii' to bypass lookup machinery
type: performance
Added file: http://bugs.python.org/file44300/ascii.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27915>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue27904>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue27895>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 variable in test_asyncio/test_events
type: enhancement
Added file: http://bugs.python.org/file44291/reponse.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27907>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27895>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 file: http://bugs.python.org/file44284/logging.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27904>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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._dist_try_harder
type: enhancement
Added file: http://bugs.python.org/file44283/platform-resourcewarning.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27903>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue27895>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue27895>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue27895>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue27895>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/file44272/spelling.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27895>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: http://bugs.python.org/file44271/smtplib-doc.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27894>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: http://bugs.python.org/file44270/parser.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27893>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue27461>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue27461>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27626>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to be a PNG file so I don't 
want to touch that stuff), plus ./Lib/test/imghdrdata/python.jpg which isn't 
worth a patch alone :)

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27461>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 | tail -n 1  # before
291101  total

$ find -name "*.png" | xargs du -bc | tail -n 1  # after
194639  total

--
assignee: docs@python
components: Documentation
files: pngs.patch
keywords: patch
messages: 269929
nosy: docs@python, scop
priority: normal
severity: normal
status: open
title: Optimize PNGs
type: enhancement
Added file: http://bugs.python.org/file43653/pngs.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27461>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27430>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: enhancement
Added file: http://bugs.python.org/file42924/docs.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27076>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/writer
type: enhancement
Added file: http://bugs.python.org/file42923/codeclinks.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27075>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, scop
priority: normal
severity: normal
status: open
title: Link to urllib.parse.parse_qsl, not parse_qs, from cgi.parse_qsl doc
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file40514/cgi.parse_qsl.doc.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25176>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: enhancement
Added file: http://bugs.python.org/file39423/spelling.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24232
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
severity: normal
status: open
title: Link to getfqdn rather than see above
type: enhancement
Added file: http://bugs.python.org/file39424/getfqdnlink.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24233
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 this is the correct behavior, or at least it is not consistent 
with other file objects' readline() which return an empty string with 
.readline(0).

For example:

 import cStringIO
 cStringIO.StringIO(foo).readline(0)
''

...or:

 file(/usr/bin/python).readline(0)
''

--
components: Library (Lib)
messages: 129314
nosy: scop
priority: normal
severity: normal
status: open
title: StringIO.readline(0) returns incorrect results
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11311
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 string is also returned when the size argument is 
0 (except for StringIO but I think that's a bug, see #11311).  I suggest 
rephrasing it as:

An empty string is returned only when EOF is encountered immediately or the 
size argument is zero.

...or just removing the sentence altogether.  Text before it already covers the 
size=0 case.

--
assignee: docs@python
components: Documentation
messages: 129316
nosy: docs@python, scop
priority: normal
severity: normal
status: open
title: Confusing sentence in file.readline() doc
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11312
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 it 
doesn't specify what LOG_USER it refers to - there's no mention that 
SysLogHandler itself has these constants.  And the corresponding documented 
values from the syslog module are not compatible with the ones SysLogHandler 
works with.

Similarly, the values for facility and priority for 
SysLogHandler.encodePriority() are not documented, it just talks about integers 
and strings without saying what they are.

I suggest documenting all the SysLogHandler.LOG_* constants and the priority 
and facility mapping strings in SysLogHandler's priority_names and 
facility_names dicts.

--
assignee: georg.brandl
components: Documentation
messages: 101629
nosy: georg.brandl, scop
severity: normal
status: open
title: Facility and priority values/constants not documented for SysLogHandler
type: feature request

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8219
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 instead.

--
assignee: georg.brandl
components: Documentation
messages: 99293
nosy: georg.brandl, scop
severity: normal
status: open
title: executemany() link in Connection.executemany should point to 
Cursor.executemany
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7921
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 'LANG'.

...and at http://docs.python.org/dev/library/locale.html in addition to
that:

The GNU gettext search path contains 'LANGUAGE', 'LC_ALL',
 'LC_CTYPE', and 'LANG', in that order.

This is correct, cf.
http://www.gnu.org/software/gettext/manual/gettext.html#Locale-Environment-Variables

However, the code in locale.py does not match the documentation; the
patch in issue #1166948 (svn r39572) moved LANGUAGE to the end of the
list.  I suggest putting it back at the beginning as documented (the
other change in r39572 is ok).

The py3k branch appears to have the same problem.

--
components: Library (Lib)
messages: 93048
nosy: scop
severity: normal
status: open
title: locale.getdefaultlocale() envvars default code and documentation mismatch
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6981
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to its docs.

--
assignee: georg.brandl
components: Documentation
messages: 75327
nosy: georg.brandl, scop
severity: normal
status: open
title: tempfile.gettempdir() availability not documented
versions: Python 2.6

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4232
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com