[issue39134] can't construct dataclass as ABC (or runtime check as data protocol)

2020-01-18 Thread Alexander Hirner


Alexander Hirner  added the comment:

In that case, what should the getter return? It doesn't know about the 
implementation of x.
Maybe I'm not getting the idea behind adding getters/setters.

--

___
Python tracker 

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



[issue39386] getting invalid data from async iterator

2020-01-18 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
components: +asyncio
nosy: +asvetlov, yselivanov

___
Python tracker 

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



[issue19770] NNTP: add post_message wrapper to post Email Message objects

2020-01-18 Thread Dong-hee Na


Change by Dong-hee Na :


--
keywords: +patch
pull_requests: +17455
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/18061

___
Python tracker 

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



[issue35561] Valgrind reports Syscall param epoll_ctl(event) points to uninitialised byte(s)

2020-01-18 Thread Zackery Spytz


Change by Zackery Spytz :


--
pull_requests: +17454
pull_request: https://github.com/python/cpython/pull/18060

___
Python tracker 

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



[issue39386] getting invalid data from async iterator

2020-01-18 Thread John-Mark Gurney


New submission from John-Mark Gurney :

If I create a coro from an async iterator, then wait_for it w/ a timeout, but 
shielded, so it won't get canceled, and then await upon it, it returns invalid 
data.

See the attached test case.

The reason I do the following is to make sure that an async iterator that I 
have written doesn't return data early, and needs to wait till later.  If I 
didn't shield it, then the async iterator would get cancelled, and I don't want 
this.

I'd expect either correct results to be returned, or an exception to be raised, 
but in this case, and the docs for wait_for ( 
https://docs.python.org/3/library/asyncio-task.html#asyncio.wait_for ), I'd 
expect the correct results to be returned.


In the attached case, this is the results that I get:
$python3.7 asyncitertc.py 
3.7.5 (default, Oct 18 2019, 23:59:39) 
[Clang 7.0.2 (clang-700.1.81)]
timed out
yielding 1
results: None
getting 2: 2

I do not have python 3.8 to test with.

--
files: asyncitertc.py
messages: 360254
nosy: jmg
priority: normal
severity: normal
status: open
title: getting invalid data from async iterator
Added file: https://bugs.python.org/file48852/asyncitertc.py

___
Python tracker 

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



[issue32330] Email parser creates a message object that can't be flattened

2020-01-18 Thread Mark Sapiro


Change by Mark Sapiro :


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

___
Python tracker 

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



[issue32330] Email parser creates a message object that can't be flattened

2020-01-18 Thread Mark Sapiro


Change by Mark Sapiro :


--
versions: +Python 3.7, 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



[issue39384] Email parser creates a message object that can't be flattened as bytes.

2020-01-18 Thread Mark Sapiro


Change by Mark Sapiro :


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



[issue37224] test__xxsubinterpreters fails randomly

2020-01-18 Thread Kyle Stanley


Change by Kyle Stanley :


--
pull_requests: +17452
pull_request: https://github.com/python/cpython/pull/18058

___
Python tracker 

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



[issue39349] Add "cancel_futures" parameter to concurrent.futures.Executor.shutdown()

2020-01-18 Thread Kyle Stanley


Change by Kyle Stanley :


--
keywords: +patch
pull_requests: +17451
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/18057

___
Python tracker 

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



[issue39349] Add "cancel_futures" parameter to concurrent.futures.Executor.shutdown()

2020-01-18 Thread Kyle Stanley


Kyle Stanley  added the comment:

I now have a working implementation, for both ThreadPoolExecutor and 
ProcessPoolExecutor. I've also ensured that the tests I added are not 
vulnerable to race conditions with the following:

```
[aeros:~/repos/aeros-cpython]$ ./python -m test test_concurrent_futures --match 
test_cancel_futures -j200 -v -F

[snip]
Ran 4 tests in 2.865s

OK
0:03:24 load avg: 143.25 [1018] test_concurrent_futures passed -- running: 
test_concurrent_futures (2 min 36 sec), test_concurrent_futures (35.8 sec)
test_cancel_futures 
(test.test_concurrent_futures.ProcessPoolForkProcessPoolShutdownTest) ... 0.57s 
ok
test_cancel_futures 
(test.test_concurrent_futures.ProcessPoolForkserverProcessPoolShutdownTest) ... 
0.80s ok
test_cancel_futures 
(test.test_concurrent_futures.ProcessPoolSpawnProcessPoolShutdownTest) ... 
0.53s ok
test_cancel_futures (test.test_concurrent_futures.ThreadPoolShutdownTest) ... 
0.20s ok
```

I'll attach a PR to the issue once I finish writing the documentation and 
"What's New" entry.

Note: I was originally going to do this in two separate PRs, one for each 
executor, but it seemed to make more sense to just have it as a single cohesive 
PR since Executor.shutdown() shares the same documentation for both executors.

--

___
Python tracker 

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



[issue39384] Email parser creates a message object that can't be flattened as bytes.

2020-01-18 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue29270] super call in ctypes sub-class fails in 3.6

2020-01-18 Thread Clement Rouault


Clement Rouault  added the comment:

Hello,

As this issue may never be fixed for python3.6. I wanted to post a solution to 
bypass the bug. It may be useful for the next person stumbling on this as I 
have.

The __class__ closure is only created if a function use the word super(). This 
closure allow to call super() without argument.

By using another name than super() the closure is not created and your code can 
work. Only downside is that you need to call super in its explicit form 
super(Cls, self). But it is better that not working at all (and it is 
compatible python2).

Here is a sample:


super_bypass_issue29270 = super

class Something(ctypes.c_ulong):
  def __repr__(self):
return "BYPASS: " + super_bypass_issue29270(Something, self).__repr__()

s = Something(42)
print(s)

BYPASS: 

--

___
Python tracker 

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



[issue38799] race condition in multiprocessing.Pool with maxtasksperchild=1

2020-01-18 Thread Jacopo Tediosi


Jacopo Tediosi  added the comment:

Happening to me on Python3.9 too
Also when calling pool.terminate(), causing my script to hang

--
nosy: +Jacopo Tediosi
versions: +Python 3.9 -Python 3.6

___
Python tracker 

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



[issue39385] Add an assertNoLogs context manager to unittest TestCase

2020-01-18 Thread Kit Yan Choi


New submission from Kit Yan Choi :

assertLogs is really useful (issue18937). Unfortunately it does not cover the 
use cases where one wants to ensure no logs are emitted.

Similar to assertLogs, we can have a context manager for asserting no logs, 
something like this?:

with assertNoLogs(logger, level):
...


If logs are unexpected found, the test would fail with the logs captured 
included in the error message.

Happy to submit a PR if there is interest.

--
components: Library (Lib)
messages: 360250
nosy: Kit Yan Choi
priority: normal
severity: normal
status: open
title: Add an assertNoLogs context manager to unittest TestCase
type: enhancement

___
Python tracker 

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



[issue39384] Email parser creates a message object that can't be flattened as bytes.

2020-01-18 Thread Mark Sapiro

New submission from Mark Sapiro :

This is similar to https://bugs.python.org/issue32330 but is the opposite 
behavior. In that issue, the message couldn't be flattened as a string but 
could be flattened as bytes. Here, the message can be flattened as a string but 
can't be flattened as bytes.

The original message was created by an arguably defective email client that 
quoted a message containing a utf8 encoded RIGHT SINGLE QUOTATION MARK and 
utf-8 encoded separately the three bytes resulting in `â**` instead of `’`. 
That's not really relevant but is just to show how such a message can be 
generated.

The following interactive python session shows the issue.

```
>>> import email
>>> msg = email.message_from_string("""From u...@example.com Sat Jan 18 
>>> 04:09:40 2020
... From: u...@example.com
... To: re...@example.com
... Subject: Century Dates for Insurance purposes
... Date: Fri, 17 Jan 2020 20:09:26 -0800
... Message-ID: <75ccdd72-d71c-407c-96bd-0ca95abcf...@email.android.com>
... MIME-Version: 1.0
... Content-Type: text/plain; charset="utf-8"
... Content-Transfer-Encoding: 8bit
... 
...Thursday-Monday will cover both days of staging and then storing 
goods
...post-century. I think thatâ**s the way to go.
... 
... """)
>>> msg.as_bytes()
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/local/lib/python3.7/email/message.py", line 178, in as_bytes
g.flatten(self, unixfrom=unixfrom)
  File "/usr/local/lib/python3.7/email/generator.py", line 116, in flatten
self._write(msg)
  File "/usr/local/lib/python3.7/email/generator.py", line 181, in _write
self._dispatch(msg)
  File "/usr/local/lib/python3.7/email/generator.py", line 214, in _dispatch
meth(msg)
  File "/usr/local/lib/python3.7/email/generator.py", line 432, in _handle_text
super(BytesGenerator,self)._handle_text(msg)
  File "/usr/local/lib/python3.7/email/generator.py", line 249, in _handle_text
self._write_lines(payload)
  File "/usr/local/lib/python3.7/email/generator.py", line 155, in _write_lines
self.write(line)
  File "/usr/local/lib/python3.7/email/generator.py", line 406, in write
self._fp.write(s.encode('ascii', 'surrogateescape'))
UnicodeEncodeError: 'ascii' codec can't encode character '\xe2' in position 33: 
ordinal not in range(128)
>>> 
```

--
components: email
messages: 360249
nosy: barry, msapiro, r.david.murray
priority: normal
severity: normal
status: open
title: Email parser creates a message object that can't be flattened as bytes.
versions: Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue39383] Mention Darwin as a potential value for platform.system()

2020-01-18 Thread Peter Bittner


New submission from Peter Bittner :

The platform module's documentation mentions 'Linux', 'Windows' and 'Java' 
explicitly as values for `platform.system()`.

https://docs.python.org/3/library/platform.html#platform.system

Given the popularity of macOS among developers, this gives the impression that 
the module won't detect 'Darwin' as a separate system type; developers may 
suspect this will be identified also as a "Linux-y" system (or so).

Hence, 'Darwin' should be mentioned explicitly as one of the possible values.

--
assignee: docs@python
components: Documentation
messages: 360248
nosy: bittner, docs@python
priority: normal
pull_requests: 17448
severity: normal
status: open
title: Mention Darwin as a potential value for platform.system()
type: enhancement
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



[issue39382] abstract_issubclass() doesn't take bases tuple item ref

2020-01-18 Thread Yonatan Goldschmidt


New submission from Yonatan Goldschmidt :

I encountered a crash using rpyc. Since rpyc is pure-Python, I guessed the 
problem is with Python itself.

Originally tested on v3.7, the rest of this issue is based on v3.9.0a2 
(compiling on an Ubuntu 18.04 docker).

I narrowed down the rpyc-based snippet to this:

# server side
class X: pass
x_instance = X()

from rpyc.core import SlaveService
from rpyc.utils.classic import DEFAULT_SERVER_PORT
from rpyc.utils.server import ThreadedServer
t = ThreadedServer(SlaveService, port=DEFAULT_SERVER_PORT, reuse_addr=True)
t.start()

# client side
import rpyc
conn = rpyc.classic.connect("localhost")
x = conn.modules.__main__.x_instance
y = x.__class__
issubclass(y, int)

Client side gets a SIGSEGV in `_PyObject_LookupAttr`, dereferencing an invalid 
`tp` pointer read from a posioned `v` object.

After some reference count debugging, I found that for the rpyc `y` object (in 
the client code), accessing `__bases__` returns a tuple with refcount=1, and it 
has a single item whose refcount is 1 as well.

abstract_issubclass() calls abstract_get_bases() to get this refcount=1 tuple, 
and in the fastpath for single inheritance (tuple size = 1) it loads the single 
item from the tuple (`derived = PyTuple_GET_ITEM(bases, 0)`) and then 
decrements the refcount on the tuple, effectively deallocating the tuple and 
the `derived` object (whose only reference was from the tuple).

I tried to mimic the Python magic rpyc does to get the same crash without rpyc, 
and reached the following snippet (which doesn't exhibit the problem):

class Meta(type):
def __getattribute__(self, attr):
if attr == "__bases__":
class Base: pass
return (Base, )
return type.__getattribute__(self, attr)

class X(metaclass=Meta):
pass

issubclass(X().__class__, int)

In this case, the refcount is decremented from 4 to 3 as abstract_issubclass() 
gets rid of the tuple (instead of from 1 to 0 as happens in the rpyc case). I 
don't know how rpyc does it.

Attached is a patch that solves the problem (takes a ref of the tuple item 
before releasing the ref of the tuple itself).
I'm not sure this change is worth the cost because, well, I don't fully 
understand the severity of it since I couldn't reproduce it without using rpyc. 
I assume dynamically-created, unreferenced `__bases__` tuples as I have here 
are not so common.

Anyway, if you do decide it's worth it, I'd be happy to improve the patch (it's 
quite messy the way this function is structured) and post it to GitHub :)

Yonatan

--
components: Interpreter Core
files: abstract_issubclass_refcount_fix.diff
keywords: patch
messages: 360247
nosy: Yonatan Goldschmidt
priority: normal
severity: normal
status: open
title: abstract_issubclass() doesn't take bases tuple item ref
type: crash
versions: Python 3.9
Added file: 
https://bugs.python.org/file48851/abstract_issubclass_refcount_fix.diff

___
Python tracker 

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



[issue39372] The header files in Include/ have many declarations with no definition

2020-01-18 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> Maybe backport this change (except PyNoArgsFunction)?

I didn't think of backporting to reduce the possibilities of something going 
wrong, but is true that a backport without PyNoArgsFunction should be harmless.

Reopening the issue meanwhile I do on the backports.

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue39375] Document os.environ[x] = y and os.putenv() as thread unsafe

2020-01-18 Thread Eryk Sun


Eryk Sun  added the comment:

The warning would not apply to Windows. The environment block is part of the 
Process Environment Block (PEB) record, which is protected by a 
critical-section lock. The runtime library acquires the PEB lock before 
accessing mutable PEB values. For example:

Getting an environment variable:

>>> win32api.GetEnvironmentVariable('foo')

Breakpoint 0 hit
ntdll!RtlQueryEnvironmentVariable:
7ffc`d737a2f0 48895c2408  mov qword ptr [rsp+8],rbx
ss:0094`ec9ef470=

RtlQueryEnvironmentVariable acquires the PEB lock (i.e. ntdll!FastPebLock) 
before getting the value. The lock is passed to RtlEnterCriticalSection in 
register rcx:

0:000> be 2; g

Breakpoint 2 hit
ntdll!RtlEnterCriticalSection:
7ffc`d737b400 4883ec28sub rsp,28h

0:000> kc 3
Call Site
ntdll!RtlEnterCriticalSection
ntdll!RtlQueryEnvironmentVariable
KERNELBASE!GetEnvironmentVariableW

0:000> ?? @rcx == (_RTL_CRITICAL_SECTION *)@@(ntdll!FastPebLock)
bool true

Setting an environment variable:

>>> win32api.SetEnvironmentVariable('foo', 'eggs')

Breakpoint 1 hit
ntdll!RtlSetEnvironmentVar:
7ffc`d73bc7d0 4c894c2420  mov qword ptr [rsp+20h],r9 
ss:0094`ec9ef488=

RtlSetEnvironmentVar acquires the PEB lock before setting the environment 
variable:

0:000> be 2; g

Breakpoint 2 hit
ntdll!RtlEnterCriticalSection:
7ffc`d737b400 4883ec28sub rsp,28h

0:000> kc 3
Call Site
ntdll!RtlEnterCriticalSection
ntdll!RtlSetEnvironmentVar
KERNELBASE!SetEnvironmentVariableW

0:000> ?? @rcx == (_RTL_CRITICAL_SECTION *)@@(ntdll!FastPebLock)
bool true

--
nosy: +eryksun

___
Python tracker 

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



[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2020-01-18 Thread Nick Coghlan


Change by Nick Coghlan :


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

___
Python tracker 

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



[issue39381] Fix get_event_loop documentation

2020-01-18 Thread Andrew Svetlov


Change by Andrew Svetlov :


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

___
Python tracker 

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



[issue39381] Fix get_event_loop documentation

2020-01-18 Thread Andrew Svetlov


New submission from Andrew Svetlov :

The current documentation says: "If there is no current event loop set in the 
current OS thread and set_event_loop() has not yet been called, asyncio will 
create a new event loop and set it as the current one."

https://docs.python.org/3.7/library/asyncio-eventloop.html#asyncio.get_event_loop

This is not correct, a new loop is created implicitly only for the main thread, 
all other threads require set_event_loop() call

--
components: asyncio
messages: 360244
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Fix get_event_loop documentation
versions: Python 3.7, 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



[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread SilentGhost


Change by SilentGhost :


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

___
Python tracker 

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



[issue39316] settrace skips lines when chaining methods without arguments

2020-01-18 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions:  -Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

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



[issue39309] Please delete my account

2020-01-18 Thread Terry J. Reedy


New submission from Terry J. Reedy :

David, do you know about bpo account deletion?

--
nosy: +r.david.murray, terry.reedy

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-01-18 Thread hai shi


Change by hai shi :


--
pull_requests: +17445
pull_request: https://github.com/python/cpython/pull/18050

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-01-18 Thread hai shi


Change by hai shi :


--
pull_requests: +17444
pull_request: https://github.com/python/cpython/pull/18049

___
Python tracker 

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



[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Sebastian G Pedersen


Change by Sebastian G Pedersen :


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

___
Python tracker 

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



[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Sebastian G Pedersen


Change by Sebastian G Pedersen :


--
components: Library (Lib)
nosy: SebastianGPedersen
priority: normal
severity: normal
status: open
title: ftplib uses latin-1 as default encoding
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, 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



[issue18091] Remove PyNoArgsFunction

2020-01-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I cannot report a bug in Blender, because get an exception on link 
https://developer.blender.org/maniphest/project/2/type/Bug/ .

--

___
Python tracker 

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



[issue18091] Remove PyNoArgsFunction

2020-01-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Removed in issue39372 together with other unused declarations.

PyNoArgsFunction was the only one that breaks a user code. But using 
PyNoArgsFunction is likely a sign of error.

--
nosy: +serhiy.storchaka
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder:  -> The header files in Include/ have many declarations with no 
definition

___
Python tracker 

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



[issue39372] The header files in Include/ have many declarations with no definition

2020-01-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Maybe backport this change (except PyNoArgsFunction)?

--

___
Python tracker 

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



[issue39379] sys.path[0] is already absolute path

2020-01-18 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +vstinner

___
Python tracker 

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