[issue24078] inspect.getsourcelines ignores context and returns wrong line #

2020-09-18 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks iritkatriel for triaging. I can confirm it's fixed with the linked 
issue. Closing it as duplicate.

./python
Python 3.10.0a0 (heads/master:2b05361bf7, Sep 19 2020, 04:38:05) 
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import inspect, a
>>> inspect.getsourcelines(a.C.B)
(['class B(object):\n', 'pass\n'], 6)

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> inspect.getsource returns incorrect source for classes when 
class definition is part of multiline strings

___
Python tracker 

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



[issue41617] __builtin_bswap16 is used without checking it is supported

2020-09-18 Thread Joshua Root


Joshua Root  added the comment:

> I'm curious. Can I ask you on which platform do you use clang older than 3.2?

Mac OS X 10.7 / Xcode 4.6.3. I'm not using it personally, but we have automated 
builds on that platform.

Unfortunately the patch ultimately committed did not fix the build there. Clang 
reports its version as "Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 
3.2svn)". __clang_major__ is 4 and __clang_minor__ is 2.

Apple's versioning scheme is different to that of LLVM upstream, which is one 
reason why I preferred detecting features directly rather than inserting 
externally-derived knowledge about which versions provide which features.

Apologies for not getting back to you about this sooner; the notifications 
appear to have gotten lost.

--
status: closed -> open

___
Python tracker 

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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-18 Thread Bug Reporter


Bug Reporter  added the comment:

https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tar.xz

...
==
ERROR: test_protocol_tlsv1 (test.test_ssl.ThreadedTests)
Connecting to a TLSv1 server with various client options
--
Traceback (most recent call last):
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/test/test_ssl.py", line 217, in 
wrapper
return func(*args, **kw)
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/test/test_ssl.py", line 3286, 
in test_protocol_tlsv1
try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1')
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/test/test_ssl.py", line 2780, 
in try_protocol_combo
stats = server_params_test(client_context, server_context,
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/test/test_ssl.py", line 2695, 
in server_params_test
s.connect((HOST, server.port))
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/ssl.py", line 1342, in connect
self._real_connect(addr, False)
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/ssl.py", line 1333, in 
_real_connect
self.do_handshake()
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/ssl.py", line 1309, in 
do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL] internal error (_ssl.c:1123)

==
ERROR: test_protocol_tlsv1_1 (test.test_ssl.ThreadedTests)
Connecting to a TLSv1.1 server with various client options.
--
Traceback (most recent call last):
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/test/test_ssl.py", line 217, in 
wrapper
return func(*args, **kw)
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/test/test_ssl.py", line 3302, 
in test_protocol_tlsv1_1
try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLSv1_1, 'TLSv1.1')
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/test/test_ssl.py", line 2780, 
in try_protocol_combo
stats = server_params_test(client_context, server_context,
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/test/test_ssl.py", line 2695, 
in server_params_test
s.connect((HOST, server.port))
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/ssl.py", line 1342, in connect
self._real_connect(addr, False)
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/ssl.py", line 1333, in 
_real_connect
self.do_handshake()
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/ssl.py", line 1309, in 
do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL] internal error (_ssl.c:1123)

==
FAIL: test_min_max_version_mismatch (test.test_ssl.ThreadedTests)
--
Traceback (most recent call last):
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/test/test_ssl.py", line 217, in 
wrapper
return func(*args, **kw)
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/test/test_ssl.py", line 217, in 
wrapper
return func(*args, **kw)
  File "/home/bugrep/Downloads/Python-3.8.5/Lib/test/test_ssl.py", line 3842, 
in test_min_max_version_mismatch
self.assertIn("alert", str(e.exception))
AssertionError: 'alert' not found in '[SSL: NO_PROTOCOLS_AVAILABLE] no 
protocols available (_ssl.c:1123)'

--

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Yury Selivanov


Yury Selivanov  added the comment:

Thanks, Vladimir! Also huge thanks to Mark, Serhiy, and Stefan. If there are 
any nits to fix let's do that in follow up PRs.

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Yury Selivanov


Yury Selivanov  added the comment:


New changeset 2b05361bf7cbbd76035206fd9befe87f37489f1e by Vladimir Matveev in 
branch 'master':
bpo-41756: Introduce PyGen_Send C API (GH-22196)
https://github.com/python/cpython/commit/2b05361bf7cbbd76035206fd9befe87f37489f1e


--

___
Python tracker 

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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-18 Thread Bug Reporter


Bug Reporter  added the comment:

On my system, it still fails.

Here is the content of modified Lib/test/test_ssl.py:

3827 @requires_minimum_version
3828 @requires_tls_version('TLSv1_2')
3829 @requires_tls_version('TLSv1')
3830 def test_min_max_version_mismatch(self):
3831 client_context, server_context, hostname = testing_context()
3832 # client 1.0, server 1.2 (mismatch)
3833 server_context.maximum_version = ssl.TLSVersion.TLSv1_2
3834 server_context.minimum_version = ssl.TLSVersion.TLSv1_2
3835 client_context.maximum_version = ssl.TLSVersion.TLSv1
3836 client_context.minimum_version = ssl.TLSVersion.TLSv1
3837 with ThreadedEchoServer(context=server_context) as server:
3838 with client_context.wrap_socket(socket.socket(),
3839 server_hostname=hostname) as s:
3840 with self.assertRaises(ssl.SSLError) as e:
3841 s.connect((HOST, server.port))
3842 self.assertIn("alert", str(e.exception))
3843
3844 @requires_minimum_version
3845 @requires_tls_version('SSLv3')

--

___
Python tracker 

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



[issue40915] multiple problems with mmap.resize() in Windows

2020-09-18 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

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



[issue41513] High accuracy math.hypot()

2020-09-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +21360
pull_request: https://github.com/python/cpython/pull/22315

___
Python tracker 

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



[issue41810] Consider reintroducing `types.EllipsisType` for the sake of typing

2020-09-18 Thread Josh Bode


Change by Josh Bode :


--
nosy: +joshbode

___
Python tracker 

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



[issue23833] email.header.Header folding modifies headers that include semi-colons

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

David, if this was fixed in Python 3 as you say then this issue can be closed 
now.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue27139] Increased test coverage for statistics.median_grouped

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

This issue can be closed - the added tests have been merged.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41770] Import module doesn't updated

2020-09-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I carefully redid your test, corrected, 3 times, and it works as expected.
Win 10, 3.9.0rc2.  

>>> import a.tem3 as t
>>> t.b
Traceback (most recent call last):
  File "", line 1, in 
t.b
AttributeError: module 'a.tem3' has no attribute 'b'

# Add 'b = 2' to a/tem3.py and save.

>>> import sys
>>> del sys.modules['a.tem3']
>>> import a.tem3 as t
>>> t.b
2

Without seeing exactly what you did and when, I can only guess that you 
imported a version of xxx without the 'b' binding.  I once added it but *forgot 
to save* before re-importing.  Note that dictionary deletion and importing are 
well tested operations, so that bugs in normal imports are very unlikely.  If 
you really get a failure, there must be some relevant details that you have 
omitted, like importing from a remote system that is locally cached, with the 
local cache unchanged by editing the remote original.  Or having an OS bug such 
that saving a file does not update the 'last changed' time. 

If you disagree with a closing, please request re-opening and give us a chance 
to reproduce and discuss first rather than doing so yourself.

--
nosy: +terry.reedy -paul.moore, steve.dower, tim.golden, zach.ware
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue41769] Positional arguments with boolean actions behave differently

2020-09-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

You think the behavior is wrong.  Does it disagree with the doc?  If not, this 
is an design change (enhancement) issue limited to future version.  If so, it 
might be a bug that can be backported.

However, when I run the code on Windows with an argument
f:\dev\3x>py -3.8 f:/python/a/tem3.py a b
usage: tem3.py [-h]
...

I do not get an error, but get the same usage message as without. Adding quotes 
on the command line makes no difference.

--
nosy: +terry.reedy
stage:  -> test needed
title: Positional arguments which use store boolean actions do not behave as 
other actions. -> Positional arguments with boolean actions behave differently

___
Python tracker 

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



[issue41768] unittest.mock spec calls class properties

2020-09-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Without lines numbers, I cannot test which of the two identical asserts failed. 
Either comments or msg arguments will differentiate.  Nor can I run snippets 
from two different files. Here is a minimal reproducible self-contained code 
that demonstrates the claim (which I verified on 3.9 and current master).

import unittest
from unittest.mock import Mock

class SomethingElse(object):
def __init__(self):
self._instance = None

@property
def instance(self):
if not self._instance:
self._instance = 'object'

class Test(unittest.TestCase):

def test_property_not_called_with_spec_mock(self):
obj = SomethingElse()
self.assertIsNone(obj._instance, msg='before') # before
mock = Mock(spec=obj)
self.assertIsNone(obj._instance, msg='after') # after

unittest.main()

--
nosy: +michael.foord, terry.reedy
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue40049] tarfile cannot extract from stdin

2020-09-18 Thread Tal Einat


Tal Einat  added the comment:

GNU tar (v1.30, Ubuntu 20.04) does indeed overwrite files with symlinks upon 
extracting, while both `ln -s` and `os.symlink` do not. Therefore I agree that 
the appropriate behavior would seem to be to overwrite this way, as in the 
attached PR.

--
nosy: +taleinat

___
Python tracker 

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



[issue41809] finding file attributes in Windows seems to fail

2020-09-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I am closing this report because 1) it appears to be a result of a typo; 2) 
os.stat works fine for me (also on Windows); and 3) I am 99.99% sure that IDLE 
does not delete user code object attributes.

If a system has two files with the same name in two different directories and 
one manages to run python twice with the different directories as current 
directory, so that the same name referred to the two different files, then 
os.stat might return different values for particular attributes.

But IDLE is not Python.  It is run by some python.exe and it sends user code to 
the same python.exe for execution (with exec()).  So running code with IDLE 
cannot delete the attributes of objects created by user code.

(musiquegrame), you can still post the result of checking.

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



[issue18319] gettext() cannot find translations with plural forms

2020-09-18 Thread Christoph Zwerschke


Change by Christoph Zwerschke :


--
nosy: +cito

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Vladimir Matveev


Vladimir Matveev  added the comment:

Yes, it should be

--

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Yury Selivanov


Yury Selivanov  added the comment:

> Sounds like a good middleground to start: add ``PySendResult `` and 
> `PySendResult PyGen_Send(PyGenObject*, PyObject* PyObject**)` specific to 
> generators and coroutines. 

Yes, it seems that everybody agreed on that. I can give the PR another review 
-- is it ready?

--

___
Python tracker 

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



[issue29107] traceback module incorrectly formats args-less syntax errors

2020-09-18 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
resolution:  -> out of date
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



[issue41810] Consider reintroducing `types.EllipsisType` for the sake of typing

2020-09-18 Thread Bas van Beek


New submission from Bas van Beek :

`Ellipsis` is one of the few builtin objects whose type is not exposed via the 
`types` module. 
This is not really an issue during runtime, as you can always call 
`type(Ellipsis)`, but for the purpose of typing it is detrimental; the lack of 
suitable type means that it is impossible to properly annotate a function which 
takes or returns `Ellipsis` (unless one is willing to resort to the use of 
non-public types: https://github.com/python/typeshed/issues/3556).

In order to resolve this issue I propose to reintroduce `types.EllipsisType`. 
This should be a fairly simple process, so if there are no objections I'd be 
willing to give it a shot.

--
components: Library (Lib)
messages: 377135
nosy: BvB93
priority: normal
severity: normal
status: open
title: Consider reintroducing `types.EllipsisType` for the sake of typing
type: enhancement
versions: Python 3.10

___
Python tracker 

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



[issue29107] traceback module incorrectly formats args-less syntax errors

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

Since this is a python 2-only issue, I think this issue can be closed.

--

___
Python tracker 

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



[issue29107] traceback module incorrectly formats args-less syntax errors

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

As stated above, this has been fixed in python 3:

**
C:\Users\User\src\cpython>type x.py
def f(x):
global x

C:\Users\User\src\cpython>python.bat
Running Release|Win32 interpreter...
Python 3.10.0a0 (heads/bpo11414-dirty:6595cb0af4, Sep 18 2020, 19:01:13) [MSC 
v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import traceback
>>> import x
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Users\User\src\cpython\x.py", line 2
global x
^
SyntaxError: name 'x' is parameter and global
>>> try:
... import x
... except:
... traceback.print_exc()
...
Traceback (most recent call last):
  File "", line 2, in 
  File "C:\Users\User\src\cpython\x.py", line 2
global x
^
SyntaxError: name 'x' is parameter and global
>>>


**
>>> e = SyntaxError("some message", ("myfile.py", None, None, None))
>>> raise e
Traceback (most recent call last):
  File "", line 1, in 
SyntaxError: some message (myfile.py)
>>> try:
... raise e
... except:
... traceback.print_exc()
...
Traceback (most recent call last):
  File "", line 2, in 
  File "", line 2, in 
  File "", line 1, in 
  File "myfile.py", line None
SyntaxError: some message
**

>>> e = SyntaxError("some message", ("myfile.py", 3, 10, "hello"))
>>> raise r
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'r' is not defined
>>> raise e
Traceback (most recent call last):
  File "", line 1, in 
  File "myfile.py", line 3
hello
 ^
SyntaxError: some message
>>> try:
... raise e
... except:
... traceback.print_exc()
...
Traceback (most recent call last):
  File "", line 2, in 
  File "", line 1, in 
  File "myfile.py", line 3
hello
 ^
SyntaxError: some message

--
nosy: +iritkatriel

___
Python tracker 

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



[issue11414] Add import fix for email.Message

2020-09-18 Thread Irit Katriel


Change by Irit Katriel :


--
type:  -> behavior
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue11414] Add import fix for email.Message

2020-09-18 Thread Irit Katriel


Change by Irit Katriel :


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

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Vladimir Matveev


Vladimir Matveev  added the comment:

Sounds like a good middleground to start: add ``PySendResult `` and 
`PySendResult PyGen_Send(PyGenObject*, PyObject* PyObject**)` specific to 
generators and coroutines. Subsequent changes could introduce `PySendResult 
PyIter_Send(PyObject*, PyObject*, PyObject**)` that would be more generic (call 
tp_next, invoke "send" or maybe in the future use dedicated slot for "send" 
operator so i.e. asyncio.Future or Cython coroutines could benefit from the 
same optimization)

--

___
Python tracker 

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



[issue11414] Add import fix for email.Message

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

Ah sorry this is about adding a 2to3 fixer. I thought the request was to put 
Message back in __all__. 

A fixer may still be relevant.

--

___
Python tracker 

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



[issue11414] Add import fix for email.Message

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

It this still relevant? Presumably anyone who was going to be broken has been 
broken by now and moved to lower case message.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue15128] inspect raises exception when frames are misleading about source line numbers

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

I think this was fixed by now:

I changed the script to print the result:

**
import inspect, sys

# /etc/hostname is one line, but our source has multiple lines
code = compile('\n\n\n1/0', '/etc/hostname', 'exec')

try:
exec(code, {})
except Exception:
tb = sys.exc_info()[2]
else:
assert False, "unreachable, exec should always raise exception"

# this fails with an IndexError
print(inspect.getinnerframes(tb))


**

and I got this output:

C:\Users\User\src\cpython>python.bat x.py
Running Release|Win32 interpreter...
[FrameInfo(frame=>, 
filename='C:\\Users\\User\\src\\cpython\\x.py', lineno=7, function='', 
code_context=['exec(code, {})\n'], index=0), FrameInfo(frame=>, 
filename='/etc/hostname', lineno=4, function='', code_context=None, 
index=None)]

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Yury Selivanov


Yury Selivanov  added the comment:

> I would also have preferred a more type specific function, but yeah, as long 
> as the types for which the function would normally be used are special cased 
> early enough in the implementation, it makes no big difference.

Maybe add two API funcs: PyGen_Send (specific to generators & coroutines) and 
PyIter_Send?

--

___
Python tracker 

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



[issue29108] Documentation: Clarify role of callback with map_async

2020-09-18 Thread Irit Katriel


Change by Irit Katriel :


--
assignee:  -> docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python
title: Python 3.6.0 multiprocessing map_async callback -> Documentation: 
Clarify role of callback with map_async

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread STINNER Victor


STINNER Victor  added the comment:

Building the documentation of Python 3.8, 3.9 and 3.10 don't produce warnings 
anymore, I close the issue.

I created https://github.com/python/docsbuild-scripts/issues/95 "Update Sphinx 
to 2.4.4".

--
components: +Documentation
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, 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



[issue37575] Python Documentation on strings (tutorial section 3.1.2.)

2020-09-18 Thread Zachary Ware


Change by Zachary Ware :


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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3acc403f21642f1e916f035abf24c3fb81495b3c by Victor Stinner in 
branch '3.8':
bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309) 
(GH-22310)
https://github.com/python/cpython/commit/3acc403f21642f1e916f035abf24c3fb81495b3c


--

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2020-09-18 Thread jeanotlapin

jeanotlapin  added the comment:

Bonjour,

j'ai rencontré le même soucis. J'ai essayé de le faire fonctionner en vain. 
J'ai tenté de faire crawler par les robots la page de notre agence de 
communication à Montpellier 
https://www.monagencedecommunication.com/agence/montpellier/ mais cela n'a pas 
visiblement pas marché...

--
nosy: +jeanotlapin

___
Python tracker 

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



[issue24078] inspect.getsourcelines ignores context and returns wrong line #

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

I think this was fixed under issue35113.

--
nosy: +iritkatriel, xtreak

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread Guido van Rossum


Change by Guido van Rossum :


--
nosy:  -gvanrossum

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +21358
pull_request: https://github.com/python/cpython/pull/22310

___
Python tracker 

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



[issue41809] finding file attributes in Windows seems to fail

2020-09-18 Thread E. Paine


E. Paine  added the comment:

Thank you for reporting this. Please could you double check what you ran 
because your code says 'st_file_attributes' but the error says 
'st_file_atributes' (missing a t in attributes).

--
nosy: +epaine

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 9e73cac173e5e9010bd18c8334fffeee1cade3a4 by Victor Stinner in 
branch '3.9':
bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309)
https://github.com/python/cpython/commit/9e73cac173e5e9010bd18c8334fffeee1cade3a4


--

___
Python tracker 

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



[issue41809] finding file attributes in Windows seems to fail

2020-09-18 Thread musiquegraeme


musiquegraeme  added the comment:

I got 
'3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]'

--

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +21357
pull_request: https://github.com/python/cpython/pull/22309

___
Python tracker 

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



[issue41809] finding file attributes in Windows seems to fail

2020-09-18 Thread STINNER Victor


STINNER Victor  added the comment:

What is the Python version of IDLE? Try:

>>> import sys; sys.version
'3.8.5 (default, Aug 12 2020, 00:00:00) \n[GCC 10.2.1 20200723 (Red Hat 
10.2.1-1)]'

--
nosy: +vstinner

___
Python tracker 

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



[issue41809] finding file attributes in Windows seems to fail

2020-09-18 Thread musiquegraeme


New submission from musiquegraeme :

When I try this in shell 
 os.stat('MyFile2.iso').st_file_attributes
I get a value - 32

When I try this in IDLE 
 print (os.stat('MyFile2.iso').st_file_attributes)

I get the error message.

AttributeError: 'os.stat_result' object has no attribute 'st_file_atributes'

--
assignee: terry.reedy
components: IDLE
messages: 377119
nosy: musiquegraeme, terry.reedy
priority: normal
severity: normal
status: open
title: finding file attributes in Windows seems to fail
type: behavior
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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 8394500cca56490cc347604d39ca40abcdce46c3 by Victor Stinner in 
branch 'master':
bpo-35293: Travis CI uses "make venv" for the doc (GH-22307)
https://github.com/python/cpython/commit/8394500cca56490cc347604d39ca40abcdce46c3


--

___
Python tracker 

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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-18 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +21356
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22308

___
Python tracker 

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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-18 Thread Skip Montanaro


Skip Montanaro  added the comment:

> Could you please modify the test case to check for TLS 1.0 and run it Ubuntu?
>
> @requires_minimum_version
> @requires_tls_version('TLSv1_2')
> @requires_tls_version('TLSv1')
> def test_min_max_version_mismatch(self):

Confirmed. test_min_max_version_mismatch passes with those three decorators.

--

___
Python tracker 

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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-18 Thread Christian Heimes


Christian Heimes  added the comment:

Could you please modify the test case to check for TLS 1.0 and run it Ubuntu?

@requires_minimum_version
@requires_tls_version('TLSv1_2')
@requires_tls_version('TLSv1')
def test_min_max_version_mismatch(self):

For Python 3.10 I'm planning to drop support for TLS 1.1 and earlier.

--

___
Python tracker 

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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-18 Thread Bug Reporter


Bug Reporter  added the comment:

I think it is not a real solution, just a workaround. What do you think the 
solution should be?

--

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +21355
pull_request: https://github.com/python/cpython/pull/22307

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +21354
pull_request: https://github.com/python/cpython/pull/22306

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +21353
pull_request: https://github.com/python/cpython/pull/22305

___
Python tracker 

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



[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2020-09-18 Thread STINNER Victor


STINNER Victor  added the comment:

> Committed in r85695.  Leaving open to discuss whether anything can/should be 
> done for the case when reindent acts as an stdin to stdout filter.  Also, 
> what is the policy on backporting Tools' bug fixes?

This is the commit:

commit 4a98e3b6d06e5477e5d62f18e85056cbb7253f98
Author: Alexander Belopolsky 
Date:   Mon Oct 18 14:43:38 2010 +

Issue #10117: Tools/scripts/reindent.py now accepts source files that
use encoding other than ASCII or UTF-8.  Source encoding is preserved
when reindented code is written to a file.


> Since there won't be a python 2.7 backport, should this issue be closed?

Right, 2.7 branch is closed. I close the issue.

--
resolution:  -> fixed
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



[issue41791] mimetypes module does not recognize jp2 type

2020-09-18 Thread Andrés Delfino

Andrés Delfino  added the comment:

Nice debugging!

--

___
Python tracker 

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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-18 Thread Skip Montanaro


Skip Montanaro  added the comment:

>
> I confirm that Tal Einat's workaround also works.
>

Should workarounds be required to successfully run the test suite? I
routinely unset PYTHONSTARTUP, but that's because I can and sometimes do
weird things to support interactive use. It concerns me a bit that any
system settings need to be overridden. That suggests to me that it will
eventually bite users at runtime.

>

--

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread Dong-hee Na


Change by Dong-hee Na :


--
assignee:  -> corona10

___
Python tracker 

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



[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

Since there won't be a python 2.7 backport, should this issue be closed?

--
nosy: +iritkatriel
status: pending -> open

___
Python tracker 

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



[issue28964] AST literal_eval exceptions provide no information about line number

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

Steve, are you planning to work on porting this patch to github?

Note: it would need a unit test, and also node is not guaranteed to have a 
lineno field.

--
nosy: +iritkatriel
status: pending -> open

___
Python tracker 

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



[issue1690840] xmlrpclib methods submit call on __str__, __repr__

2020-09-18 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution: fixed -> out of date
status: open -> closed

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

We introduced _PyObject_LookupAttr() and _PyObject_GetMethod() for similar 
purposes. And they have similar signatures. Although they all are private.

--

___
Python tracker 

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



[issue1690840] xmlrpclib methods submit call on __str__, __repr__

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

Since this was fixed in python 3, and the backport to python 2 is no longer 
relevant, I think this issue can now be closed.

--

___
Python tracker 

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



[issue1690840] xmlrpclib methods submit call on __str__, __repr__

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

Python 3.10.0a0 (heads/master:6595cb0af4, Sep 18 2020, 12:33:44) [MSC v.1916 32 
bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import xmlrpc.client
>>> s = xmlrpc.client.ServerProxy("http://google.com";)
>>> print(s.somecall)

>>>

--
nosy: +iritkatriel
status: pending -> open

___
Python tracker 

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



[issue41784] Promote PyUnicode_AsUTF8AndSize to be available with the limited API (PEP 384)

2020-09-18 Thread Alex Gaynor


Alex Gaynor  added the comment:

It's a big project I think :-) Py_Buffer is allocated on the stack, so either 
we'd have to agree to never change it's ABI (size, alignment, etc.) or we'd 
need to completely change the interface.

--

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread Dong-hee Na


Dong-hee Na  added the comment:

/home/travis/virtualenv/python3.6.10/lib/python3.6/site-packages/sphinx/util/nodes.py:151:
 FutureWarning: 

   The iterable returned by Node.traverse()

https://travis-ci.com/github/python/cpython/jobs/386971271

The issue is still left, I am going to investigate this issue.

--

___
Python tracker 

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



[issue30083] Asyncio: GeneratorExit + strange exception

2020-09-18 Thread Guilherme Salgado


Guilherme Salgado  added the comment:

I've also been affected by this and found that if you use asyncio.run() the 
coroutine is interrupted with a CancelledError as you'd expect. The following 
script shows that

===
import asyncio

async def handle_connection(reader, writer):
try:
await reader.readexactly(42)
except BaseException as err:
print('Interesting: %r.' % err)
raise
finally:
writer.close()

async def main():
listener = await asyncio.start_server(handle_connection, '127.0.0.1', )
try:
async with listener:
await listener.serve_forever()
except KeyboardInterrupt:
print('KeyboardInterrupt')

asyncio.run(main())
=

--
nosy: +salgado

___
Python tracker 

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



[issue23510] multiprocessing bug SyncManager and 'with'

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

I don't see this problem in python 3.10. Is it a python 2-only issue, and if so 
then can this issue be closed?


Running Release|Win32 interpreter...
Python 3.10.0a0 (heads/bpo-24792-dirty:1e183f4de5, Sep 14 2020, 15:53:51) [MSC 
v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing.managers
>>> with multiprocessing.managers.SyncManager() as s:
... print("here")
...
here
>>>

--
nosy: +iritkatriel

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread miss-islington


miss-islington  added the comment:


New changeset f3e0eceff6207d5072befeef0e1ec195c3e2b0ab by Miss Islington (bot) 
in branch '3.9':
bpo-35293: Remove RemovedInSphinx40Warning (GH-22198)
https://github.com/python/cpython/commit/f3e0eceff6207d5072befeef0e1ec195c3e2b0ab


--

___
Python tracker 

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



[issue37575] Python Documentation on strings (tutorial section 3.1.2.)

2020-09-18 Thread Irit Katriel


Irit Katriel  added the comment:

I think this issue can be closed (not a bug).

--
nosy: +iritkatriel
status: pending -> open

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread miss-islington


miss-islington  added the comment:


New changeset b7cdea8f087699aaa6486ce5a4f6e5a143dc355e by Miss Islington (bot) 
in branch '3.8':
bpo-35293: Remove RemovedInSphinx40Warning (GH-22198)
https://github.com/python/cpython/commit/b7cdea8f087699aaa6486ce5a4f6e5a143dc355e


--

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21352
pull_request: https://github.com/python/cpython/pull/22303

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +21351
pull_request: https://github.com/python/cpython/pull/22302

___
Python tracker 

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



[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-18 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 6595cb0af4c51c0381c233b97884fe916a4ddd35 by Dong-hee Na in branch 
'master':
bpo-35293: Remove RemovedInSphinx40Warning (GH-22198)
https://github.com/python/cpython/commit/6595cb0af4c51c0381c233b97884fe916a4ddd35


--

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Stefan Behnel


Stefan Behnel  added the comment:

BTW, just to give this a house number, I remember having measured a performance 
improvement of up to 70% at some point when switching from "generators always 
raise a StopIteration at the end" to "generators just return NULL" in Cython. 
For short-running generators and coroutines, this can make a big difference.

--

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Stefan Behnel


Stefan Behnel  added the comment:

I would also have preferred a more type specific function, but yeah, as long as 
the types for which the function would normally be used are special cased early 
enough in the implementation, it makes no big difference.

Fine with me, too.

--

___
Python tracker 

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



[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-18 Thread STINNER Victor


STINNER Victor  added the comment:

I fixed the issue.

See bpo-35293 for deprecation warnings.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c5cddc17b5c046bb22072c1cf58b898c7ab92e07 by Miss Islington (bot) 
in branch '3.8':
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) (GH-22300)
https://github.com/python/cpython/commit/c5cddc17b5c046bb22072c1cf58b898c7ab92e07


--

___
Python tracker 

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



[issue41808] Synchronize What's New in 3.9 master and 3.9 copies

2020-09-18 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> fixed
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



[issue41783] Standard Color class

2020-09-18 Thread Mertcan


Change by Mertcan :


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



[issue41784] Promote PyUnicode_AsUTF8AndSize to be available with the limited API (PEP 384)

2020-09-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Oh, would not be worth to add Py_buffer to the limited API?

--
nosy: +skrah

___
Python tracker 

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



[issue40754] Test installers before releasing (ModuleNotFoundErrors)

2020-09-18 Thread honglei jiang


honglei jiang  added the comment:

Still missing _testinternalcapi module for Python3.9rc2
like https://bugs.python.org/issue36635

C:\Users\Admin>c:\python39\python.exe -m test test_deque
0:00:00 Run tests sequentially
0:00:00 [1/1] test_deque
test test_deque failed -- Traceback (most recent call last):
  File "c:\python39\lib\test\test_deque.py", line 781, in test_sizeof
check(deque(), basesize + blocksize)
  File "c:\python39\lib\test\support\__init__.py", line 1484, in check_sizeof
import _testinternalcapi
ModuleNotFoundError: No module named '_testinternalcapi'

test_deque failed

== Tests result: FAILURE ==

1 test failed:
test_deque

Total duration: 1.1 sec
Tests result: FAILURE

--

___
Python tracker 

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



[issue38981] better name for re.error Exception class.

2020-09-18 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
type: security -> enhancement

___
Python tracker 

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



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I would be fine even with a generator-specific API as a first step, for 
simplicity. But the end goal is to support all generator-like objects. It is 
much more useful for end users and does not have drawbacks.

Enum for result seems not necessary (other functions with three-state result 
just return -1, 0 or 1), but if other core developers want it -- OK.

--

___
Python tracker 

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



[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-18 Thread miss-islington


miss-islington  added the comment:


New changeset c053402927d36f9f26160ded24999bf5109ea5eb by Miss Islington (bot) 
in branch '3.9':
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
https://github.com/python/cpython/commit/c053402927d36f9f26160ded24999bf5109ea5eb


--

___
Python tracker 

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



[issue29099] sqlite3 timestamp converter cannot handle timezone

2020-09-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Xiang Zhang, was there a discussion on Python-Dev?

--

___
Python tracker 

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



[issue33561] Add .tostring() method to xml.etree.ElementTree.Element

2020-09-18 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +serhiy.storchaka
resolution:  -> rejected
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



[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21350
pull_request: https://github.com/python/cpython/pull/22301

___
Python tracker 

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



[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 8af239eacfcf52e4e0e2b0223e7cea4672309483 by Victor Stinner in 
branch 'master':
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
https://github.com/python/cpython/commit/8af239eacfcf52e4e0e2b0223e7cea4672309483


--

___
Python tracker 

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



[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 7.0 -> 8.0
pull_requests: +21349
pull_request: https://github.com/python/cpython/pull/22300

___
Python tracker 

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



[issue41808] Synchronize What's New in 3.9 master and 3.9 copies

2020-09-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I have backported and merged deduplication changes manually.

--
nosy: +serhiy.storchaka

___
Python tracker 

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