[issue27513] email.utils.getaddresses does not handle Header objects

2019-05-31 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue36548] Make the repr of re flags more readable

2019-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 14a0e16c8805f7ba7c98132ead815dcfdf0e9d33 by Serhiy Storchaka in 
branch 'master':
bpo-36548: Improve the repr of re flags. (GH-12715)
https://github.com/python/cpython/commit/14a0e16c8805f7ba7c98132ead815dcfdf0e9d33


--

___
Python tracker 

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



[issue37106] python re.escape doesn't escape some special characters.

2019-05-31 Thread Eric V. Smith


Eric V. Smith  added the comment:

Could you show a problem caused by the characters that are unescaped? I assume 
you're talking about the ` and ' characters, since that's what your example 
shows. But those aren't listed as "special characters" 
(https://docs.python.org/3.5/library/re.html#regular-expression-syntax), so I'm 
not sure what problem would be caused by them being unescaped.

--
nosy: +eric.smith
stage:  -> test needed

___
Python tracker 

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



[issue26836] Add memfd_create to os module

2019-05-31 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Davin, Pierre, it looks like this could simplify lifetime management of shared 
memory pools, what do you think?

--
nosy: +davin, pierreglaser, pitrou

___
Python tracker 

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



[issue37108] Positional-only arguments break super()

2019-05-31 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

See the example pep570super.py. super() without arguments does not work for 
positional-only arguments.

Traceback (most recent call last):
  File "pep570super.py", line 13, in 
print(C())
  File "pep570super.py", line 10, in __new__
return super().__new__(cls)
RuntimeError: super(): no arguments

--
components: Interpreter Core
files: pep570super.py
messages: 344034
nosy: ncoghlan, pablogsal, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Positional-only arguments break super()
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file48379/pep570super.py

___
Python tracker 

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



[issue31829] Portability issues with pickle

2019-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 38ab7d4721b422547f7b46b9d68968863fa70573 by Serhiy Storchaka in 
branch 'master':
bpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. 
(GH-11859)
https://github.com/python/cpython/commit/38ab7d4721b422547f7b46b9d68968863fa70573


--

___
Python tracker 

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



[issue31829] Portability issues with pickle

2019-05-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13579
pull_request: https://github.com/python/cpython/pull/13693

___
Python tracker 

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



[issue35144] TemporaryDirectory clean-up fails with unsearchable directories

2019-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset e9b51c0ad81da1da11ae65840ac8b50a8521373c by Serhiy Storchaka in 
branch 'master':
bpo-26660, bpo-35144: Fix permission errors in TemporaryDirectory cleanup. 
(GH-10320)
https://github.com/python/cpython/commit/e9b51c0ad81da1da11ae65840ac8b50a8521373c


--

___
Python tracker 

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



[issue26660] tempfile.TemporaryDirectory() cleanup exception if nonwriteable or non-searchable files or directories created

2019-05-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset e9b51c0ad81da1da11ae65840ac8b50a8521373c by Serhiy Storchaka in 
branch 'master':
bpo-26660, bpo-35144: Fix permission errors in TemporaryDirectory cleanup. 
(GH-10320)
https://github.com/python/cpython/commit/e9b51c0ad81da1da11ae65840ac8b50a8521373c


--

___
Python tracker 

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



[issue12178] csv writer doesn't escape escapechar

2019-05-31 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue37106] python re.escape doesn't escape some special characters.

2019-05-31 Thread MANI M


MANI M  added the comment:

I've scripts which insert data into MySQL database. The values may contain 
symbols. Hence in order to escape that I use re.escape(). @erik.smith isn't 
re.escape() supposed to escape all the symbols. If not why is this introduced 
in 3.7 whereas previous versions behave differently.

Example snippet:

import pymysql
from re import escape
def db_connection():
..
..
..

# This throws error.
query = " insert into table(column) 
values('{}'.format(escape("Hello'`~world")))

--

___
Python tracker 

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



[issue37109] Inacurrate documentation regarding return type of math.factorial

2019-05-31 Thread Antony Lee


New submission from Antony Lee :

https://docs.python.org/3/library/math.html says

The following functions are provided by this module. Except when explicitly 
noted otherwise, all return values are floats.

and

math.factorial(x)
Return x factorial. Raises ValueError if x is not integral or is negative.

but math.factorial returns an int (which is perfectly reasonable and just needs 
to be documented):

In [3]: math.factorial(5)   


Out[3]: 120

--
assignee: docs@python
components: Documentation
messages: 344039
nosy: Antony.Lee, docs@python
priority: normal
severity: normal
status: open
title: Inacurrate documentation regarding return type of math.factorial
versions: Python 3.8

___
Python tracker 

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



[issue37106] python re.escape doesn't escape some special characters.

2019-05-31 Thread MANI M


MANI M  added the comment:

sorry my bad 

query = "insert into table(column) values('{}')".format(escape("Hello'`~world"))

--

___
Python tracker 

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



[issue34368] ftplib __init__ function can't handle 120 or 4xy reply when connect to the server

2019-05-31 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue37106] python re.escape doesn't escape some special characters.

2019-05-31 Thread Eric V. Smith


Eric V. Smith  added the comment:

re.escape() is designed to only escape characters that have special meaning in 
regular expressions. It is not a general purpose escaping mechanism, and it is 
especially dangerous to use it for building SQL statements.

You should be using parameterized SQL queries. See 
https://en.wikipedia.org/wiki/SQL_injection and for example 
https://stackoverflow.com/questions/162/how-to-put-parameterized-sql-query-into-variable-and-then-execute-in-python

In any event, it seems that re.escape() is working as designed, so I'm going to 
close this.

--
resolution:  -> not a bug
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

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



[issue37110] Clarify hashability of custom class instances

2019-05-31 Thread Christoph Zwerschke


New submission from Christoph Zwerschke :

The Python documentation says about hashability in the glossary 
(https://docs.python.org/3/glossary.html#term-hashable):

"Objects which are instances of user-defined classes are hashable by default."

This is not quite true. Objects of a user-defined class with an __eq__ method 
are not hashable. Maybe it would be better to make this more explicit:

"Objects which are instances of user_defined classes without custom __eq__ and 
__hash__ methods are hashable by default."

--
assignee: docs@python
components: Documentation
messages: 344042
nosy: cito, docs@python
priority: normal
severity: normal
status: open
title: Clarify hashability of custom class instances
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-31 Thread Michael Felt


Michael Felt  added the comment:

On 30/05/2019 23:11, Andrew Svetlov wrote:
> Andrew Svetlov  added the comment:
>
> Guys, thank you for investigation.
> If there is AIX "idiosyncrasy" -- please feel free to skip failed tests on 
> AIX.
>
> If you have access to AIX box it would be much easier for you. I can only 
> look at Python buildbot statuses.
OK. I'll setup a skip test - but also try to get more info from IBM
and/or discover the root cause myself.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue37104] logging.Logger.disabled is not documented

2019-05-31 Thread Vinay Sajip


Vinay Sajip  added the comment:

Thanks for looking at this, Mario, but I'd rather not document this attribute, 
for the reason stated on the PR when I closed it:

"I'd like to avoid documenting this attribute, as it's really meant for 
internal use by the configuration machinery. I realise that it's named disabled 
rather than _disabled, which might indicate that it's public, but it isn't 
meant to be, and the name can't be changed now for compatibility reasons, in 
case some code somewhere is relying on it! I don't want someone to ask for 
"disabled" to be explicitly supported in configurations, for instance - I can 
currently argue that it's not meant to be public, as it isn't documented."

--
nosy: +vinay.sajip
resolution:  -> not a bug
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue37101] Filterer.filter can be rewritten using built-ins just as efficient much more readable

2019-05-31 Thread Vinay Sajip


Vinay Sajip  added the comment:

I grant that your version is more compact, but I don't find it more readable in 
general (perhaps it is for very experienced Python developers/developers who 
like a functional style, but I persoanlly don't think it improves readability).

Since the rationale proposed for making this change is "efficiency", I would 
like to see some real-world performance numbers to back this up. Can you please 
provide some quantitative data on the amount of speedup achievable in 
real-world scenarios?

--

___
Python tracker 

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



[issue35964] shutil.make_archive (xxx, tar, root_dir) is adding './' entry to archive which is wrong

2019-05-31 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue37109] Inacurrate documentation regarding return type of math.factorial

2019-05-31 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Is this same as issue25735 ?

--
nosy: +xtreak

___
Python tracker 

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



[issue21314] Document '/' in signatures

2019-05-31 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Hooray!  Now that PEP570 is implemented in 3.8:

>>> def f(a, /, *, b): return 3
...
>>> f(0, b=2)
3
# other combinations raise

and somewhat documented, ('/' in grammar of '8.6 Function definitions', though 
not explained, should its status become final and listing moved?

--
nosy: +terry.reedy

___
Python tracker 

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



[issue37109] Inacurrate documentation regarding return type of math.factorial

2019-05-31 Thread Antony Lee


Antony Lee  added the comment:

oops, missed that, thanks for pointing that out.

--
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue26835] Add file-sealing ops to fcntl

2019-05-31 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +13580
pull_request: https://github.com/python/cpython/pull/13694

___
Python tracker 

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



[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-05-31 Thread PEW's Corner


PEW's Corner  added the comment:

Your proposal sounds good to me, Jeffrey.

--

___
Python tracker 

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



[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2019-05-31 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset c7f7069e77c58e83b847c0bfe4d5aadf6add2e68 by Christian Heimes in 
branch 'master':
bpo-34271: Add ssl debugging helpers (GH-10031)
https://github.com/python/cpython/commit/c7f7069e77c58e83b847c0bfe4d5aadf6add2e68


--

___
Python tracker 

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



[issue36379] nb_inplace_pow is always called with an invalid argument

2019-05-31 Thread miss-islington


miss-islington  added the comment:


New changeset c7f803b08ed5211701c75f98ba9ada85d45ac155 by Miss Islington (bot) 
(Zackery Spytz) in branch 'master':
bpo-36379: __ipow__ must be a ternaryfunc, not a binaryfunc (GH-13546)
https://github.com/python/cpython/commit/c7f803b08ed5211701c75f98ba9ada85d45ac155


--
nosy: +miss-islington

___
Python tracker 

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



[issue34368] ftplib __init__ function can't handle 120 or 4xy reply when connect to the server

2019-05-31 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:

>From RFC-959:

  If the server is unable to accept input right away, a
  120 "expected delay" reply should be sent immediately and a 220
  reply when ready.  The user will then know not to hang up if there
  is a delay.

Seems to make sense. Willing to provide a patch?

--

___
Python tracker 

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



[issue37109] Inacurrate documentation regarding return type of math.factorial

2019-05-31 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
resolution:  -> duplicate
superseder:  -> math.factorial doc should mention integer return type

___
Python tracker 

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



[issue37109] Inacurrate documentation regarding return type of math.factorial

2019-05-31 Thread Antony Lee


Change by Antony Lee :


--
nosy:  -Antony.Lee

___
Python tracker 

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



[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-05-31 Thread Jonathan

New submission from Jonathan :

Python is inconsistent in how it handles errors that have some unicode 
characters. It works to screen but fails to log

This works:
```
>>> import logging
>>> logging.error('จุด1')
ERROR:root:จุด1
```

The following breaks:

```
>>> import logging
>>> logging.basicConfig(filename='c:\\my_log.log')
>>> logging.error('จุด1')
```

This raises a unicode error:
UnicodeEncodeError: 'charmap' codec can't encode characters in position 11-13: 
character maps to 

Python 3.6.3

Given that the file created by the logger is utf-8, it's unclear why it doesn't 
work.

I found a workaround by using a Handler, but surely the loggers should all work 
the same way so that people don't get unpleasant surprises that even more 
painful to debug when things only break in certain logging modes?

--
messages: 344053
nosy: jonathan-lp
priority: normal
severity: normal
status: open
title: Logging - Inconsistent behaviour when handling unicode
versions: Python 3.6

___
Python tracker 

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



[issue37104] logging.Logger.disabled is not documented

2019-05-31 Thread Mario Corchero


Mario Corchero  added the comment:

Thanks! I was wondering about it but saw no comment about it, issue or anything 
in the history. At least we have now this issue :).

Would you like that I move this to `_disabled` and have a setter for `disabled` 
that emits a deprecation warning so we can remove this someday or at least make 
it more explicit that it should not be used?

--

___
Python tracker 

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



[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-31 Thread Michael Felt


Michael Felt  added the comment:

FYI: since:
commit 23b4b697e5b6cc897696f9c0288c187d2d24bff2
Author: Andrew Svetlov 
Date:   Mon May 27 22:56:22 2019 +0300

bpo-36889: Merge asyncio streams (GH-13251)



https://bugs.python.org/issue36889

AIX bot 'hangs' during 
test_sendfile (test.test_asyncio.test_streams.StreamTests)

ctrl-c gives this (in case useful)
Warning -- 'test_asyncio' left behind file '@test_7012552_tmp'
Warning -- asyncio.events._event_loop_policy was modified by test_asyncio
  Before: None
  After:  


== Tests result: INTERRUPTED ==
Test suite interrupted by signal SIGINT.

1 test omitted:
test_asyncio

Total duration: 13 min 36 sec
Tests result: INTERRUPTED
/data/prj/python/git/python3-3.8/Lib/asyncio/base_events.py:646: 
ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False 
closed=False debug=False>
  _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Exception ignored in: .test 
at 0x30576ed0>
Traceback (most recent call last):
  File 
"/data/prj/python/git/python3-3.8/Lib/test/test_asyncio/test_streams.py", line 
1643, in test
await do_connect(*srv.sockets[0].getsockname())
  File "/data/prj/python/git/python3-3.8/Lib/asyncio/streams.py", line 314, in 
__aexit__
await self.close()
  File "/data/prj/python/git/python3-3.8/Lib/asyncio/streams.py", line 292, in 
close
await tasks.wait([stream.close() for stream in streams])
  File "/data/prj/python/git/python3-3.8/Lib/asyncio/streams.py", line 292, in 

await tasks.wait([stream.close() for stream in streams])
  File "/data/prj/python/git/python3-3.8/Lib/asyncio/streams.py", line 1382, in 
close
self._transport.close()
  File "/data/prj/python/git/python3-3.8/Lib/asyncio/selector_events.py", line 
680, in close
self._loop.call_soon(self._call_connection_lost, None)
  File "/data/prj/python/git/python3-3.8/Lib/asyncio/base_events.py", line 711, 
in call_soon
self._check_closed()
  File "/data/prj/python/git/python3-3.8/Lib/asyncio/base_events.py", line 504, 
in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
/data/prj/python/git/python3-3.8/Lib/asyncio/streams.py:352: ResourceWarning: 
unclosed stream server 
  _warn(f"unclosed stream server {self!r}",
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/data/prj/python/git/python3-3.8/Lib/asyncio/selector_events.py:684: 
ResourceWarning: unclosed transport <_SelectorSocketTransport fd=7>
  _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/data/prj/python/git/python3-3.8/Lib/asyncio/selector_events.py:684: 
ResourceWarning: unclosed transport <_SelectorSocketTransport closing fd=8>
  _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
ResourceWarning: Enable tracemalloc to get the object allocation traceback

--
nosy: +Michael.Felt

___
Python tracker 

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



[issue37104] logging.Logger.disabled is not documented

2019-05-31 Thread Vinay Sajip


Vinay Sajip  added the comment:

As it's not documented, people would come across it by browsing the source. I'd 
just mention in the source (Logger constructor) that it's for internal use, and 
leave it at that.

--

___
Python tracker 

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



[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-31 Thread Michael Felt


Michael Felt  added the comment:

hmm - i had just synced with master. must have just missed something since 
there is a strike-out through GH-13251. If so, please ignore. BBL.

--

___
Python tracker 

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



[issue37104] logging.Logger.disabled is not documented

2019-05-31 Thread Mario Corchero


Mario Corchero  added the comment:

Note that even if not in the standard library I've seen this attributed used 
and documented quite often.

Example: https://docs.python-guide.org/writing/logging/#or-print

I would really suggest making it private as mentioned before to make sure this 
does not happen, but if you still prefer just a comment (as in source comment, 
not even documentation) I'll go with that.

--

___
Python tracker 

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



[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-05-31 Thread SilentGhost


SilentGhost  added the comment:

> Given that the file created by the logger is utf-8

I don't think this is true. Default file handler created using filename 
argument is opened with encoding None (meaning that it relies on system-default 
encoding, which is on Windows is not utf-8). And it also explains why your 
work-around works, provided you've opened file handler with explicit utf-8 
encoding.

--
nosy: +SilentGhost, vinay.sajip

___
Python tracker 

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



[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-05-31 Thread SilentGhost


Change by SilentGhost :


--
versions: +Python 3.7, Python 3.8 -Python 3.6

___
Python tracker 

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



[issue37108] Positional-only arguments break super()

2019-05-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch
pull_requests: +13581
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/13695

___
Python tracker 

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



[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-05-31 Thread Jonathan


Jonathan  added the comment:

It definitely claims to be "utf-8" in NotePad++. I've attached it if you want 
to double-check.

(Windows 7)

--
Added file: https://bugs.python.org/file48380/my_log.log

___
Python tracker 

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



[issue18911] minidom does not encode correctly when calling Document.writexml

2019-05-31 Thread Stefan Behnel


Stefan Behnel  added the comment:

Asking users unconditionally to use the "xmlcharrefreplace" replacement method 
seems wrong for UTF-8. It should not be necessary.

We should, however, document explicitly that the file will receive text and not 
bytes, i.e. that users are themselves responsible for opening the output file 
with the desired encoding. We should also make it clearer that the "encoding" 
argument to writexml() does not change that.

--

___
Python tracker 

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



[issue37108] Positional-only arguments break super()

2019-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 3a46d5c293d39995dc5218bf46a7d92b16fb2a15 by Pablo Galindo in 
branch 'master':
bpo-37108: Support super with methods that use positional-only arguments 
(GH-13695)
https://github.com/python/cpython/commit/3a46d5c293d39995dc5218bf46a7d92b16fb2a15


--

___
Python tracker 

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



[issue37108] Positional-only arguments break super()

2019-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Thank you very much, Serhiy, for the catch!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-05-31 Thread SilentGhost


Change by SilentGhost :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
type:  -> behavior

___
Python tracker 

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



[issue37112] Error in compilig the AST for functions with optional positional arguments

2019-05-31 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

>>> import ast
>>> sample = 'def f(a=1, /): pass'
>>> compile(sample, '?', 'exec')
 at 0x7f7cacdfd5c0, file "?", line 1>
>>> compile(ast.parse(sample, '?'), '?', 'exec')
Traceback (most recent call last):
  File "", line 1, in 
ValueError: more positional defaults than args on arguments

--
components: Interpreter Core
messages: 344064
nosy: benjamin.peterson, brett.cannon, pablogsal, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: Error in compilig the AST for functions with optional positional 
arguments
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue37113] 'ß'.upper() should return 'ẞ'

2019-05-31 Thread Richard Neumann

New submission from Richard Neumann :

Currently, calling the method .upper() on a string containing 'ß' will replace 
this character by 'SS'. It should, however, be replaced by 'ẞ'.

--
components: Unicode
messages: 344065
nosy: Richard Neumann, ezio.melotti, vstinner
priority: normal
severity: normal
status: open
title: 'ß'.upper() should return 'ẞ'
type: behavior
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue37113] 'ß'.upper() should return 'ẞ'

2019-05-31 Thread Richard Neumann


Richard Neumann  added the comment:

See also: https://en.wikipedia.org/wiki/Capital_%E1%BA%9E

--

___
Python tracker 

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



[issue37113] 'ß'.upper() should return 'ẞ'

2019-05-31 Thread SilentGhost

SilentGhost  added the comment:

Python implements Unicode standard when it comes to capitalisation rules. 
According to the latest standard 'ß' is upper-cased to 'SS'.

--
nosy: +SilentGhost
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue37113] 'ß'.upper() should return 'ẞ'

2019-05-31 Thread Eric V. Smith

Eric V. Smith  added the comment:

See http://unicode.org/faq/casemap_charprop.html, search for "Why does ß 
(U+00DF LATIN SMALL LETTER SHARP S) not uppercase to U+1E9E LATIN CAPITAL 
LETTER SHARP S by default?"

--
nosy: +eric.smith

___
Python tracker 

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



[issue37092] LoggerAdapter doesn't have fatal() like Logger

2019-05-31 Thread SilentGhost


SilentGhost  added the comment:

fatal is an undocumented feature, it's probably better not to use it in the 
first place.

--
nosy: +SilentGhost, vinay.sajip
versions: +Python 3.8

___
Python tracker 

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



[issue37112] Error in compilig the AST for functions with optional positional arguments

2019-05-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
assignee:  -> pablogsal

___
Python tracker 

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



[issue37114] lstrip remove extra characters in the presence of a matching number

2019-05-31 Thread Akilesh K


New submission from Akilesh K :

When the argument to lstrip / strip has a number and it matches the string it 
begins to act different. 

>>> text = "apiv1appliance"
>>> text.strip("apiv1")
'liance'
>>> text.strip("apiv2")
'1appliance'
>>> text.strip("a")
'piv1appliance'
>>> text.strip("ap")
'iv1appliance'
>>> text.strip("api")
'v1appliance'
>>> text.strip("apiv")
'1appliance'
>>> text.strip("apiv1")
'liance'
>>> text.strip("apiv2")
'1appliance'

--
messages: 344070
nosy: Akilesh K
priority: normal
severity: normal
status: open
title: lstrip remove extra characters in the presence of a matching number
type: behavior
versions: Python 2.7, Python 3.5

___
Python tracker 

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



[issue37112] Error in compilig the AST for functions with optional positional arguments

2019-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Thanks again, Serhiy :)

--

___
Python tracker 

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



[issue37112] Error in compilig the AST for functions with optional positional arguments

2019-05-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch
pull_requests: +13582
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/13697

___
Python tracker 

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



[issue37114] lstrip remove extra characters in the presence of a matching number

2019-05-31 Thread Christian Heimes


Christian Heimes  added the comment:

It's not a bug. strip() does not work like you think. Please read the 
documentation 
https://docs.python.org/3/library/stdtypes.html?highlight=strip#str.strip

--
nosy: +christian.heimes
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue37112] Error in compilig the AST for functions with optional positional-only arguments

2019-05-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
title: Error in compilig the AST for functions with optional positional 
arguments -> Error in compilig the AST for functions with optional 
positional-only arguments

___
Python tracker 

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



[issue29447] Add/check os.PathLike support for the tempfile module's 'dir' arguments

2019-05-31 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

The pull request attached to this issue has been closed as the repository was 
marked as unknown.  

This issue is now available for a new pull request.

--
nosy: +cheryl.sabella
stage:  -> needs patch
versions: +Python 3.9

___
Python tracker 

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



[issue37112] Error in compilig the AST for functions with optional positional-only arguments

2019-05-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue37112] Error in compilig the AST for functions with optional positional-only arguments

2019-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 2f58a84104ef64f71deb71d264305bcd73e59c97 by Pablo Galindo in 
branch 'master':
bpo-37112: Allow compile to work on AST with positional only arguments with 
defaults (GH-13697)
https://github.com/python/cpython/commit/2f58a84104ef64f71deb71d264305bcd73e59c97


--

___
Python tracker 

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



[issue37115] Support annotations in positional-only arguments

2019-05-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
components: Interpreter Core
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Support annotations in positional-only arguments
versions: Python 3.8

___
Python tracker 

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



[issue37115] Support annotations in positional-only arguments

2019-05-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch
pull_requests: +13583
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/13698

___
Python tracker 

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



[issue37101] Filterer.filter can be rewritten using built-ins just as efficient much more readable

2019-05-31 Thread Dale Visser


Dale Visser  added the comment:

It is with great surprise and sadness that I report that I found that 
performance measurements don't support merging this change. I'm attaching my 
performance test script. I ran it with/without the logging filters for 100 
iterations, e.g., ./python all 100

The results on my system were as follows, where the numbers may be interpreted 
as milliseconds per 1000 log messages:   

  No Filters3 Filters
master17.9  19.8
CBO-37101 19.6  23.1

I imagine I could put a guard 'if' statement that would restore the 'no 
filters' performance to match 'master', but my use of generators apparently 
causes the use of significantly more cycles than the existing code.

--
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed
Added file: https://bugs.python.org/file48381/test_filter_perf.py

___
Python tracker 

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



[issue37101] Filterer.filter can be rewritten using built-ins just as efficient much more readable

2019-05-31 Thread Dale Visser


Dale Visser  added the comment:

Correction on that example of running the test script:

./python test_filter_perf.py all 100

I simply prepended this with the Linux `time` command for measuring.

--

___
Python tracker 

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



[issue36974] Implement PEP 590

2019-05-31 Thread Petr Viktorin


Petr Viktorin  added the comment:

I found an issue in PEP 590:

When inheriting a heap subclass from a vectorcall class that sets 
.tp_call=PyVectorcall_Call (as recommended), the subclass does not inherit 
_Py_TPFLAGS_HAVE_VECTORCALL, and thus PyVectorcall_Call does not work for it.
Possible solutions come to mind:
- Inherit tp_vectorcall_offset more normally but handle setting __call__ 
specially
- Inherit tp_vectorcall_offset (but not _Py_TPFLAGS_HAVE_VECTORCALL) more 
normally, and make PyVectorcall_Call ignore _Py_TPFLAGS_HAVE_VECTORCALL

I'll send a PR for the latter.

--

___
Python tracker 

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



[issue37115] Support annotations in positional-only arguments

2019-05-31 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :


New changeset a0c01bf1364f2996bb0186ddfc41d74350e01c39 by Pablo Galindo in 
branch 'master':
bpo-37115: Support annotations in positional-only arguments (GH-13698)
https://github.com/python/cpython/commit/a0c01bf1364f2996bb0186ddfc41d74350e01c39


--

___
Python tracker 

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



[issue37115] Support annotations in positional-only arguments

2019-05-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue36974] Implement PEP 590

2019-05-31 Thread Petr Viktorin


Change by Petr Viktorin :


--
pull_requests: +13584
pull_request: https://github.com/python/cpython/pull/13699

___
Python tracker 

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



[issue37116] Use PEP 570 syntax for positional-only parameters

2019-05-31 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

Two PRs apply PEP 570 syntax to the existing code.

PR 13700 contains only compatible changes and can be applied to 3.8.
It removes existing *args or naming tricks and makes self and cls arguments 
positional-only (if needed).

PR 12620 contains breaking changes and can be applied only to 3.9. It converts 
deprecation warnings introduced in 3.8 into errors.

--
components: Library (Lib)
messages: 344079
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Use PEP 570 syntax for positional-only parameters
type: enhancement
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue37116] Use PEP 570 syntax for positional-only parameters

2019-05-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +13585
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/13700

___
Python tracker 

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



[issue37116] Use PEP 570 syntax for positional-only parameters

2019-05-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +13586
pull_request: https://github.com/python/cpython/pull/12620

___
Python tracker 

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



[issue37092] LoggerAdapter doesn't have fatal() like Logger

2019-05-31 Thread Vinay Sajip


Vinay Sajip  added the comment:

FATAL and fatal() are synonyms for CRITICAL and critical(), and they are only 
around because of backward compatibility constraints on the Logger class at the 
time logging was added to Python. Because LoggerAdapter has no backward 
compatibility constraints, fatal() wasn't provided there - but critical() is, 
and can be used equivalently.

Note that FATAL, fatal() are not documented as they are a legacy and not 
intended to be used - use CRITICAL and critical() instead.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-05-31 Thread Vinay Sajip


Vinay Sajip  added the comment:

> Given that the file created by the logger is utf-8, it's unclear why it 
> doesn't work ... I found a workaround by using a Handler

Loggers don't create files - handlers do. The file that you attached seems to 
be just a text file containing ASCII text. Any ASCII is also utf-8, so 
Notepad++'s assertion doesn't mean anything in this situation.

> so that people don't get unpleasant surprises that even more painful to debug 
> when things only break in certain logging modes?

People have been using logging, on Windows, without problems, for years, often 
using utf-8 to encode their log files. Perhaps you need to read the 
documentation and look at examples more carefully - I'm not intending to be 
rude, but say that because using a handler isn't some kind of workaround, and 
you thinking that it was indicates that you're not sufficiently familiar with 
the documentation.

I'd suggest posting questions on Stack Overflow or the python-list mailing 
list, to establish whether there really seems to be a Python bug, before 
actually logging a Python issue. I appreciate that you're trying to improve 
Python.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue37029] PyObject_Free is O(N) where N = # of arenas

2019-05-31 Thread Inada Naoki


Inada Naoki  added the comment:

master:

build time 0:48:53.664428
teardown time 4:58:20.132930

patched:

build time 0:48:08.485639
teardown time 0:01:10.466707

About 250x speedup!

--
Added file: https://bugs.python.org/file48382/result.txt

___
Python tracker 

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



[issue37029] PyObject_Free is O(N) where N = # of arenas

2019-05-31 Thread Tim Peters


Tim Peters  added the comment:

Thank you so much, Inada!  That's very good to hear :-)

--

___
Python tracker 

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



[issue36896] clarify in types.rst that FunctionTypes & co constructors don't have stable signature

2019-05-31 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

In msg342227 Pablo Galindo Salgado said "I am +1 to such a sentence, but I 
think this is a decision that more core devs should agree on."

> "These types are not supposed to be instantiated outside of CPython internals"

At least Petr Vidtorin and I disagree with this part.  As Petr wrote on pydev 
thread "Expected stability of PyCode_New() and types.CodeType() signatures", 
there are multiple tools that instantiate code objects, in particular Cython, 
which is far from being a rogue project.  Python is a 'consenting adults' 
languages, and we generally do not officially tell people what they are 
'supposed' to do or not do.

--
nosy: +petr.viktorin, terry.reedy

___
Python tracker 

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



[issue37094] Provide an example for TestCase.skipTest in unittest doc

2019-05-31 Thread miss-islington


miss-islington  added the comment:


New changeset ffed76b6fc4d7dd0244b662d6e5738eb496d9def by Miss Islington (bot) 
(Makdon) in branch 'master':
bpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645)
https://github.com/python/cpython/commit/ffed76b6fc4d7dd0244b662d6e5738eb496d9def


--
nosy: +miss-islington

___
Python tracker 

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



[issue37094] Provide an example for TestCase.skipTest in unittest doc

2019-05-31 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
pull_requests: +13587
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/13701

___
Python tracker 

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



[issue37094] Provide an example for TestCase.skipTest in unittest doc

2019-05-31 Thread miss-islington


miss-islington  added the comment:


New changeset 8135455c840b9e169a6cd527cb1ee922cafb9109 by Miss Islington (bot) 
in branch '3.7':
bpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645)
https://github.com/python/cpython/commit/8135455c840b9e169a6cd527cb1ee922cafb9109


--

___
Python tracker 

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



[issue26835] Add file-sealing ops to fcntl

2019-05-31 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 8cbb5b6625268400d6e9092b75b06d6f90398dc9 by Christian Heimes in 
branch 'master':
bpo-26835: Add file sealing constants to fcntl (GH-13694)
https://github.com/python/cpython/commit/8cbb5b6625268400d6e9092b75b06d6f90398dc9


--

___
Python tracker 

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



[issue25735] math.factorial doc should mention integer return type

2019-05-31 Thread Cheryl Sabella


Cheryl Sabella  added the comment:


New changeset 4612671df2742eade8ecf8003a6ce1247973c135 by Cheryl Sabella 
(Akshay Sharma) in branch 'master':
bpo-25735: math.factorial doc should mention integer return type (GH-6420)
https://github.com/python/cpython/commit/4612671df2742eade8ecf8003a6ce1247973c135


--

___
Python tracker 

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



[issue25735] math.factorial doc should mention integer return type

2019-05-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13588
pull_request: https://github.com/python/cpython/pull/13702

___
Python tracker 

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



[issue12639] msilib Directory.start_component() fails if keyfile is not None

2019-05-31 Thread Steve Dower


Steve Dower  added the comment:


New changeset c8d5bf6c3fa09b43f6a5ee779d493d251dbcc53c by Steve Dower (Zackery 
Spytz) in branch 'master':
bpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None 
(GH-13688)
https://github.com/python/cpython/commit/c8d5bf6c3fa09b43f6a5ee779d493d251dbcc53c


--

___
Python tracker 

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



[issue12639] msilib Directory.start_component() fails if keyfile is not None

2019-05-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13591
pull_request: https://github.com/python/cpython/pull/13705

___
Python tracker 

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



[issue25735] math.factorial doc should mention integer return type

2019-05-31 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

@John.Yeung, thank you for the report.  @mine0901, thanks for the initial patch 
and @akshaysharma, thank you for the PR.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue12639] msilib Directory.start_component() fails if keyfile is not None

2019-05-31 Thread Steve Dower


Steve Dower  added the comment:

Thanks, Zackery!

The backports are running CI now and should merge if everything passes.

--
stage: patch review -> backport needed

___
Python tracker 

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



[issue12639] msilib Directory.start_component() fails if keyfile is not None

2019-05-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13590
pull_request: https://github.com/python/cpython/pull/13704

___
Python tracker 

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



[issue12639] msilib Directory.start_component() fails if keyfile is not None

2019-05-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13589
pull_request: https://github.com/python/cpython/pull/13703

___
Python tracker 

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



[issue37109] Inacurrate documentation regarding return type of math.factorial

2019-05-31 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

Thanks for pointing out the other issue.  I've now merged it.

--
nosy: +cheryl.sabella

___
Python tracker 

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



[issue37116] Use PEP 570 syntax for positional-only parameters

2019-05-31 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +pablogsal

___
Python tracker 

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



[issue25735] math.factorial doc should mention integer return type

2019-05-31 Thread miss-islington


miss-islington  added the comment:


New changeset fc3b8437c86167983cc75e5a9a3ed1dc542a1b79 by Miss Islington (bot) 
in branch '3.7':
bpo-25735: math.factorial doc should mention integer return type (GH-6420)
https://github.com/python/cpython/commit/fc3b8437c86167983cc75e5a9a3ed1dc542a1b79


--
nosy: +miss-islington

___
Python tracker 

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



[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2019-05-31 Thread Ned Deily


Change by Ned Deily :


--
nosy: +vstinner

___
Python tracker 

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



[issue36721] Add pkg-config python-3.8-embed and --embed to python3.8-config

2019-05-31 Thread Michael Haubenwallner


Change by Michael Haubenwallner :


--
pull_requests: +13592
pull_request: https://github.com/python/cpython/pull/737

___
Python tracker 

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



[issue12639] msilib Directory.start_component() fails if keyfile is not None

2019-05-31 Thread miss-islington


miss-islington  added the comment:


New changeset 49fc57abf5fcf60129e460046d78c9bf20a19931 by Miss Islington (bot) 
in branch '3.7':
bpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None 
(GH-13688)
https://github.com/python/cpython/commit/49fc57abf5fcf60129e460046d78c9bf20a19931


--
nosy: +miss-islington

___
Python tracker 

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



[issue37094] Provide an example for TestCase.skipTest in unittest doc

2019-05-31 Thread Zachary Ware


Zachary Ware  added the comment:

Thanks for the patch!

--
nosy: +zach.ware
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.7

___
Python tracker 

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



[issue36896] clarify in types.rst that FunctionTypes & co constructors don't have stable signature

2019-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Although I completely agree with the decision of figuring out an explicit 
consensus regarding these APIs, I will explain a bit my +1:

My +1 is not about the usage of PyCode_New, is about the usage of 
`types.CodeType`. The constructor for the later has never been documented on 
the Python side, so one could argue that is not a supported feature to manually 
construct code objects.

The more we expose and call "stable" regarding internals, the less freedom we 
will have to apply optimizations and add additional data members to internal 
structures.

With this, I am not saying that we should say that whoever uses this is a 
"roge" project but marking these APIs as stable will greatly restrict future 
changes.

--
nosy: +pablogsal

___
Python tracker 

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



[issue36839] Support the buffer protocol in code objects

2019-05-31 Thread Brett Cannon


Brett Cannon  added the comment:

RE: "I think it needs significant benefits for typical users, not only for 
Instagram. If only Instagram get benefit from this, keep it as Instagram's 
internal patch."

But who's typical in this case? You? Me? We're talking code objects, something 
that the typical Python user doesn't even know exists if you take "typical" to 
mean "common" or "majority". I suspect if we asked Python developers if they 
knew what lnotab was an abbreviation of they wouldn't know, let alone how it 
worked.

And just because Instagram did this work and is making it public doesn't mean 
(a) others wouldn't use it or (b) others are already doing it privately. There 
are plenty of other companies with massive server installs of Python beyond 
Instagram.

My point is we have to be very careful when we start to claim we know what is 
typical or useful to the wider community considering how huge and diverse the 
Python community is.

--

___
Python tracker 

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



[issue36540] PEP 570: Python Positional-Only Parameters

2019-05-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +13593
pull_request: https://github.com/python/cpython/pull/13706

___
Python tracker 

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



[issue37101] Filterer.filter can be rewritten using built-ins just as efficient much more readable

2019-05-31 Thread Dale Visser


Dale Visser  added the comment:

Adding the patch file associated with GitHub pull request #13683, as well as 
the performance test I just reported.

--
Added file: https://bugs.python.org/file48383/pr13683.diff

___
Python tracker 

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



[issue36842] Implement PEP 578

2019-05-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +13594
pull_request: https://github.com/python/cpython/pull/13707

___
Python tracker 

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



[issue36896] clarify in types.rst that FunctionTypes & co constructors don't have stable signature

2019-05-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Being said that, I am very happy with the current changes on the PR :)

 Thank you @Terry and @Petr for helping with this!

--

___
Python tracker 

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



  1   2   >