[issue17004] Expand zipimport to include other compression methods

2022-04-05 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue35967] Better platform.processor support

2022-03-20 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue32642] add support for path-like objects in sys.path

2022-03-12 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue29240] PEP 540: Add a new UTF-8 mode

2022-02-08 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue40059] Provide a toml module in the standard library

2021-12-11 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-10-30 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue37095] [Feature Request]: Add zstd support in tarfile

2021-10-26 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue40059] Provide a toml module in the standard library

2021-09-30 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Many thanks for the fast and great fix!

--

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



[issue34722] Non-deterministic bytecode generation

2021-09-04 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

issue37596 merged a fix to enable deterministic frozensets. I think this issue 
can be closed?

Regarding my last comment msg347820 - it seems similar to one of 
https://bugs.python.org/issue34033 or https://bugs.python.org/issue34093. I 
followed those tickets instead.

--

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



[issue34093] Reproducible pyc: FLAG_REF is not stable.

2021-09-04 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue44815] asyncio.gather no DeprecationWarning if task are passed

2021-09-03 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

A regression in 3.9.7 (issue45097) seems related to this issue. Could you have 
a look?

--
nosy: +yan12125

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



[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-03 Thread Chih-Hsuan Yen


New submission from Chih-Hsuan Yen :

With Python 3.9.7, "DeprecationWarning: The loop argument is deprecated" may be 
reported when user code does not use it. Here is an example:

import asyncio
import warnings

warnings.filterwarnings('error')

def crash():
raise KeyboardInterrupt

async def main():
asyncio.get_event_loop().call_soon(crash)
await asyncio.sleep(5)

try:
asyncio.run(main())
except KeyboardInterrupt:
pass

On 3.9.6, no warning is reported, while results on 3.9.7 are

Traceback (most recent call last):
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 629, in 
run_until_complete
self.run_forever()
  File "/usr/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
  File "/usr/lib/python3.9/asyncio/base_events.py", line 1890, in _run_once
handle._run()
  File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
  File 
"/home/yen/var/local/Computer/archlinux/community/python-anyio/trunk/cpython-3.9.7-regression.py",
 line 11, in crash
raise KeyboardInterrupt
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"/home/yen/var/local/Computer/archlinux/community/python-anyio/trunk/cpython-3.9.7-regression.py",
 line 18, in 
asyncio.run(main())
  File "/usr/lib/python3.9/asyncio/runners.py", line 47, in run
_cancel_all_tasks(loop)
  File "/usr/lib/python3.9/asyncio/runners.py", line 64, in _cancel_all_tasks
tasks.gather(*to_cancel, loop=loop, return_exceptions=True))
  File "/usr/lib/python3.9/asyncio/tasks.py", line 755, in gather
warnings.warn("The loop argument is deprecated since Python 3.8, "
DeprecationWarning: The loop argument is deprecated since Python 3.8, and 
scheduled for removal in Python 3.10.

As indicated by the traceback, the loop argument is used inside the asyncio 
library, not from user code. It has been an issue for some time, and the issue 
is exposed after changes for issue44815.

Credit: this example code is modified from an anyio test 
https://github.com/agronholm/anyio/blob/3.3.0/tests/test_taskgroups.py#L943. I 
noticed this issue when I was testing anyio against 3.9.7.

--
components: asyncio
messages: 401032
nosy: asvetlov, yan12125, yselivanov
priority: normal
severity: normal
status: open
title: "The loop argument is deprecated" reported when user code does not use it
type: behavior
versions: Python 3.9

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



[issue34602] python3 resource.setrlimit strange behaviour under macOS

2021-07-23 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue41391] Make test_unicodedata pass when running without network

2021-06-06 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Closing in favor of a simpler fix merged from issue43144. Thanks for the fix!

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

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



[issue38692] add a pidfd child process watcher

2021-04-21 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-04-15 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-07 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue33990] CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler

2021-02-04 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue41282] Deprecate and remove distutils

2021-01-30 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue38820] Make Python compatible with OpenSSL 3.0.0

2020-12-15 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue42325] UnicodeDecodeError executing ./setup.py during build

2020-11-13 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I got a similar issue on Arch Linux - see issue42351.

--
nosy: +yan12125

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



[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-13 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I can also confirm the issue on our Arch Linux server [1]. The problematic file 
is also /usr/include/OMX_Other.h.

Looks like it is a regression from https://github.com/python/cpython/pull/22855 
(https://bugs.python.org/issue41100). Ronald Oussoren, mind to have a look?

[1] 
https://build.archlinuxcn.org/~imlonghao/log/python-git/2020-11-14T01:17:02.html

--
nosy: +ronaldoussoren, yan12125

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



[issue41971] multiple tests in test_tools fail since Python 3.9

2020-10-11 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Looks like those failures in test_tools happen only when test_check_c_globals 
is imported and a test in test_imp is run.

```
$ cat matchfile
test.test_tools.*
test.test_imp.ImportTests.test_load_from_source

$ ./python -m test --matchfile matchfile test_check_c_globals test_imp 
test_tools
0:00:00 load avg: 0.90 Run tests sequentially
0:00:00 load avg: 0.90 [1/3] test_check_c_globals
0:00:00 load avg: 0.90 [2/3] test_imp -- test_check_c_globals run no tests
0:00:00 load avg: 0.90 [3/3] test_tools
test test_tools failed -- multiple errors occurred; run in verbose mode for 
details
test_tools failed

== Tests result: FAILURE ==

1 test OK.

1 test failed:
test_tools

1 test run no tests:
test_check_c_globals

Total duration: 1.9 sec
Tests result: FAILURE
```

If I remove test_check_c_globals from the second command or 
test.test_imp.ImportTests.test_load_from_source from matchfile, test_tools does 
not fail.

--

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



[issue41971] multiple tests in test_tools fail since Python 3.9

2020-10-11 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue39481] Implement PEP 585 (Type Hinting Generics In Standard Collections)

2020-10-09 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue41282] Deprecate and remove distutils

2020-09-04 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I noticed that a new PEP draft [1] about deprecating distutils is uploaded. The 
current version [2] proposes to deprecate distutils in 3.10 and 3.11 and remove 
distutils in 3.12.

[1] https://www.python.org/dev/peps/pep-0632/
[2] 
https://github.com/python/peps/commit/5d5c68517cf9087e104673f7f8322311e31a4e0a

--

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



[issue41391] Make test_unicodedata pass when running without network

2020-07-25 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


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

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



[issue41391] Make test_unicodedata pass when running without network

2020-07-25 Thread Chih-Hsuan Yen


New submission from Chih-Hsuan Yen :

I setup a buildbot worker to test Python 3.x on Android monthly. This month 
network in the Android emulator is broken and I got an additional test failure:

0:05:28 load avg: 1.21 [376/423/11] test_unicodedata failed
test test_unicodedata failed -- Traceback (most recent call last):
  File "/data/local/tmp/lib/python3.10/urllib/request.py", line 1342, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
socket.gaierror: [Errno 7] No address associated with hostname

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/local/tmp/lib/python3.10/test/test_unicodedata.py", line 329, in 
test_normalization
testdata = open_urlresource(TESTDATAURL, encoding="utf-8",
urllib.error.URLError: 

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/local/tmp/lib/python3.10/test/test_unicodedata.py", line 335, in 
test_normalization
self.fail(f"Could not retrieve {TESTDATAURL}")
AssertionError: Could not retrieve 
http://www.pythontest.net/unicode/13.0.0/NormalizationTest.txt

I propose wrapping the test in socket_helper.transient_internet() so that this 
test is skipped if the Internet is not available.

--
components: Tests
messages: 374249
nosy: yan12125
priority: normal
severity: normal
status: open
title: Make test_unicodedata pass when running without network
type: behavior
versions: Python 3.10

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



[issue41282] Deprecate and remove distutils

2020-07-14 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue35967] Better platform.processor support

2020-04-17 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125
nosy_count: 4.0 -> 5.0
pull_requests: +18917
pull_request: https://github.com/python/cpython/pull/19577

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



[issue39481] Implement PEP 585 (Type Hinting Generics In Standard Collections)

2020-04-10 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125
nosy_count: 5.0 -> 6.0
pull_requests: +18824
pull_request: https://github.com/python/cpython/pull/19469

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



[issue34033] distutils is not reproducible

2020-04-10 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2020-04-10 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

issue34722 also talks about frozenset, nondeterministic order and sorting. 
Maybe this ticket and that one are for the same issue?

--
nosy: +yan12125

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



[issue37095] [Feature Request]: Add zstd support in tarfile

2019-11-24 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue38692] add a pidfd child process watcher

2019-11-22 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Thank you very much for the commit "Skip test_posix.test_pidfd_open() on 
EPERM"! I can confirm it makes test_posix pass inside a systemd-nspawn 
container on Arch Linux. On the other hand, I found that tests were broken as 
both systemd libseccomp on Arch Linux were out-dated. With recently-pushed 
systemd 243.162-2 and locally-updated libseccomp 2.4.2, os.pidfd_open() works 
fine. Apparently [1] and [2] are relevant fixes.

By the way, upgrading systemd and libseccomp also fixes 
test_signal.PidfdSignalTest [3], which is added two days ago [4].

[1] 
https://github.com/systemd/systemd-stable/commit/51ea58a04b1851b31a14dfa7eec76254f5ddef16
[2] 
https://github.com/seccomp/libseccomp/commit/be65b26b67099be2b2b4890d736dbd1ad15adf36
[3] https://github.com/python/cpython/pull/17290#issuecomment-556869679
[4] https://bugs.python.org/issue38712

--

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



[issue38692] add a pidfd child process watcher

2019-11-09 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Benjamin Peterson, Kyle Stanley: Thank you both very much for intensive testing 
and helpful information! Yes on my Arch Linux box tests are also fine without 
systemd-nspawn. However, as I have to use systemd-nspawn for some reasons, and 
investigating how it blocks system calls is beyond my ability, I just add a 
workaround for now: 
https://aur.archlinux.org/cgit/aur.git/tree/python-git-issue38692.diff?h=python-git.

--

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



[issue38692] add a pidfd child process watcher

2019-11-08 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I got a failure in newly added test_pidfd_open:

==
FAIL: test_pidfd_open (test.test_posix.PosixTester)
--
Traceback (most recent call last):
  File "/build/python-git/src/cpython/Lib/test/test_posix.py", line 1479, in 
test_pidfd_open
self.assertEqual(cm.exception.errno, errno.EINVAL)
AssertionError: 1 != 22

--

I'm running kernel 5.3.7-x86_64-linode130 with Arch Linux. At first I suspect 
that it's related to system call filters from systemd as tests are run in a 
systemd-nspawn container. However, there are still failures after patching 
systemd with 
https://github.com/systemd/systemd/commit/9e486265716963439fb0fd7f2a97abf109f24f75.

How about also skipping the test if pidfd_open returns EPERM?

--
nosy: +yan12125

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



[issue36876] Global C variables are a problem.

2019-11-07 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue38014] Python 3.7 does not compile

2019-10-10 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue36953] Remove collections ABCs?

2019-10-07 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Lib/collections/__init__.py on branch 3.7 still states:

> Using or importing the ABCs from 'collections' instead of from 
> 'collections.abc' is deprecated, and in 3.8 it will stop working

I think it should also be updated (hopefully before 3.7.5?) as the actual 
removal turns out to be in 3.9.

--

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



[issue36876] Global C variables are a problem.

2019-09-11 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue28747] Expose SSL_CTX_set_cert_verify_callback

2019-08-13 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue36953] Remove collections ABCs?

2019-07-24 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue37324] collections: remove deprecated aliases to ABC classes

2019-07-24 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

In CPython commit 5380def8269b24a8a3bc46396373a1dc91b1dd1a, bundled pip is 
updated to 19.2.1, and since pip 19.2 an html5lib patch is backported [1] to 
"prefer importing from collections.abc instead of collections" [2]. I believe 
https://github.com/python/cpython/pull/10596 can be revisited now.

[1] https://github.com/pypa/pip/commit/ef7ca1472c1fdd085cffb8183b7ce8abbe9e2800
[2] https://github.com/pypa/pip/commit/3d6bb3a29676f880e84014d98afcb5ac74a9844e

--
nosy: +yan12125

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



[issue33944] Deprecate and remove pth files

2019-07-18 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue34722] Non-deterministic bytecode generation

2019-07-13 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I encounter another case that leads to non-deterministic bytecode. For example, 
with commit e6b46aafad3427463d6264a68824df4797e682f1 + PR 9472, I got:

$ cat foobar.py
_m = None
$ PYTHONHASHSEED=0 ./python -m compileall --invalidation-mode=unchecked-hash 
foobar.py
Compiling 'foobar.py'...
$ sha256sum __pycache__/foobar.cpython-39.pyc
7f84b08d5536390d6ce4ccb2d65e259449c56549ee9cc67560f61771824f20ea  
__pycache__/foobar.cpython-39.pyc
$ rm __pycache__/foobar.cpython-39.pyc
$ PYTHONHASHSEED=1 ./python -m compileall --invalidation-mode=unchecked-hash 
foobar.py
Compiling 'foobar.py'...
$ sha256sum __pycache__/foobar.cpython-39.pyc
46dadbb92ad6e1e5b5f8abe9f107086cd231b2b80c15fe84f86e2081a6b8c428  
__pycache__/foobar.cpython-39.pyc

In this case there are no sets. I guess the cause is different. Should I open a 
new issue?

--

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



[issue34722] Non-deterministic bytecode generation

2019-07-09 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue37053] Tools/parser/unparse.py does not handle u"bar" correctly

2019-05-26 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

After reading Python/ast.c, I think my patch is correct, so I submitted it to 
GitHub as https://github.com/python/cpython/pull/13583 :)

--

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



[issue37053] Tools/parser/unparse.py does not handle u"bar" correctly

2019-05-26 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


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

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



[issue37049] Implement PEP 589: add TypedDict to typing

2019-05-26 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Regarding the round-trip issue in Lib/test/test_typing.py mentioned by 
SilentGhost:

Apparently the following line added in b891c465bb7d38a597c5c2ad547d7b19194f4dad 
triggers an issue in Tools/parser/unparse.py

Literal[b"foo", u"bar"]

As this is more likely an issue in unparse.py instead of test_typing.py, I 
opened another ticket for tracking: #37053.

--

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



[issue37053] Tools/parser/unparse.py does not handle u"bar" correctly

2019-05-26 Thread Chih-Hsuan Yen


New submission from Chih-Hsuan Yen :

Currently (135c6a56e55d2f4f8718b3b9f03ce3c692b15f0f) the following test fails:

./python -m test.regrtest -v test_tools.test_unparse -u cpu

(Note that -u cpu is needed to force test_unparse.DirectoryTestCase to check 
all files under Lib/ and Lib/test/.)

An example error message:

==
FAIL: test_files (test.test_tools.test_unparse.DirectoryTestCase) 
(filename='/home/yen/Projects/cpython/Lib/test/test_typing.py'
)
--
Traceback (most recent call last):
  File "/home/yen/Projects/cpython/Lib/test/test_tools/test_unparse.py", line 
309, in test_files
self.check_roundtrip(source)
  File "/home/yen/Projects/cpython/Lib/test/test_tools/test_unparse.py", line 
132, in check_roundtrip
self.assertASTEqual(ast1, ast2)
  File "/home/yen/Projects/cpython/Lib/test/test_tools/test_unparse.py", line 
124, in assertASTEqual
self.assertEqual(ast.dump(ast1), ast.dump(ast2))
AssertionError: 'Modu[88178 chars]kind=\'u\')], ctx=Load())), ctx=Load()))], 
dec[421987 chars]=[])' != 'Modu[88178 chars]kind=No
ne)], ctx=Load())), ctx=Load()))], deco[421986 chars]=[])'

--

Apparently that's because Tools/parser/unparse.py does not handle strings like 
u"bar" correctly. I managed to "fix" it with the following patch:

diff --git a/Tools/parser/unparse.py b/Tools/parser/unparse.py
index 385902ef4b..a25b5e49df 100644
--- a/Tools/parser/unparse.py
+++ b/Tools/parser/unparse.py
@@ -399,6 +399,8 @@ class Unparser:
 elif value is ...:
 self.write("...")
 else:
+if t.kind == 'u':
+self.write("u")
 self._write_constant(t.value)

 def _List(self, t):

Not sure if this is the correct approach, though.

--
components: Demos and Tools
messages: 343546
nosy: yan12125
priority: normal
severity: normal
status: open
title: Tools/parser/unparse.py does not handle u"bar" correctly
type: behavior
versions: Python 3.8

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



[issue37049] Implement PEP 589: add TypedDict to typing

2019-05-26 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I managed to create a setup similar to the buildbot builder "AMD64 Fedora 
Rawhide Clang Installed 3.x" [1] on Arch Linux. Running test_importlib on an 
installed CPython copy is fine now:

$ /usr/bin/python3.8 -m test.regrtest test_importlib
Run tests sequentially
0:00:00 load avg: 0.14 [1/1] test_importlib

== Tests result: SUCCESS ==

1 test OK.

Total duration: 1 sec 288 ms
Tests result: SUCCESS

I apologize for not checking things carefully and misunderstanding the issue on 
"AMD64 Fedora Rawhide Clang Installed 3.x".

[1] 
https://github.com/python/buildmaster-config/blob/master/master/custom/factories.py

--

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



[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
pull_requests: +13475
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/13565

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



[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

By the way, I think Python.framework is not needed? 
https://github.com/python/cpython/commit/1bbf7b661f0ac8aac12d5531928d9a85c98ec1a9#diff-206dc381e448d5121da9a6040a2b13c1

--

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



[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Oops apparently my fix is incomplete. From the builder "AMD64 Fedora Rawhide 
Clang Installed 3.x" [1]:

ModuleNotFoundError: No module named 'test.test_importlib.data'

[1] https://buildbot.python.org/all/api/v2/logs/824407/raw

--

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



[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I got the same ModuleNotFoundError on Arch Linux and 
https://github.com/python/cpython/pull/13563 fixes it. I believe it can fix the 
issue on Fedora buildbots, too.

--
nosy: +yan12125

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



[issue34632] Port importlib_metadata to Python 3.8

2019-05-25 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
pull_requests: +13474
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/13563

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



[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-23 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-05-21 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Hi Michael Felt,

> And, what it looks like you are trying to do with an updated 'signing" .pem 
> is to remove the 'self-signed' charasteric.

If I understand it correctly, the new certificate is indeed still self-signed. 
It's updated to match the certificate deployed at 
https://self-signed.pythontest.net/. Under the hood load_verify_locations() at 
line 1628 is used to make the test accept any valid certificate signed with the 
given certificate.

As a record, with CPython e7cb23bf2079087068a08502f96fdf20b317d69c and OpenSSL 
1.1.1b on Arch Linux x86_64, the test is green:

test_networked_good_cert (test.test_httplib.HTTPSTest) ... ok

By the way, I believe the "key too weak" workaround can be removed now and then 
this issue can be closed.

--

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



[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-05-08 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-05-08 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Lib/test/selfsigned_pythontestdotnet.pem in the cpython repository needs to be 
updated to match 
https://github.com/python/pythontestdotnet/blob/master/tls/self-signed-cert.pem,
 or the test fails :)

==
ERROR: test_networked_good_cert (test.test_httplib.HTTPSTest)
--
Traceback (most recent call last):
  File "/home/yen/tmp/cpython/Lib/test/test_httplib.py", line 1632, in 
test_networked_good_cert
h.request('GET', '/')
  File "/home/yen/tmp/cpython/Lib/http/client.py", line 1221, in request
self._send_request(method, url, body, headers, encode_chunked)
  File "/home/yen/tmp/cpython/Lib/http/client.py", line 1267, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/yen/tmp/cpython/Lib/http/client.py", line 1216, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/yen/tmp/cpython/Lib/http/client.py", line 1004, in _send_output
self.send(msg)
  File "/home/yen/tmp/cpython/Lib/http/client.py", line 944, in send
self.connect()
  File "/home/yen/tmp/cpython/Lib/http/client.py", line 1383, in connect
self.sock = self._context.wrap_socket(self.sock,
  File "/home/yen/tmp/cpython/Lib/ssl.py", line 405, in wrap_socket
return self.sslsocket_class._create(
  File "/home/yen/tmp/cpython/Lib/ssl.py", line 853, in _create
self.do_handshake()
  File "/home/yen/tmp/cpython/Lib/ssl.py", line 1117, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate 
verify failed: self signed certificate (_ssl.c:1055)

--

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



[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-05-07 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-05-07 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue36630] failure of test_colors_funcs in test_curses with ncurses 6.1

2019-04-15 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I asked on bug-ncurses mailing list and Thomas Dickey suggests "improving the 
python curses binding to handle the newer terminal descriptions". Looks like 
that requires non-trivial efforts. On the other hand, I've also found a 
workaround:

$ TERM=xterm python -m test -u curses -v test_curses

(or anything without -256color suffix for $TERM)

How about setting TERM=xterm in tests and documenting that CPython does not 
support new terminal descriptions for now?

[1] http://lists.gnu.org/archive/html/bug-ncurses/2019-04/msg3.html

--
nosy: +yan12125

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



[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2019-04-08 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I created https://github.com/python/cpython/pull/12587 as a preparation pull 
request to fix the __sgi issue mentioned in msg282782.

--

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



[issue34602] python3 resource.setrlimit strange behaviour under macOS

2019-03-30 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I guess Inada Naoki was to say https://bugs.python.org/issue36432 in the last 
comment.

--
nosy: +yan12125

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



[issue36432] Running python test suite fails on macOS 10.14.4 with resource.RLIMIT_STACK error

2019-03-30 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

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



[issue31341] remove IRIX support code

2019-03-27 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
pull_requests: +12529

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



[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2019-03-26 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

As ncurses-related modules in Python alreadu build fine for Android, I consider 
the issue resolved.

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

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



[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-18 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Oh, I didn't know the bot is not working for now. Thank you for making the test 
more robust!

--

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



[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-18 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

STINNER Victor: Thank you very much for that much better fix! I've tested it on 
Arch Linux. With that patch, test_distutils passes as usual. The pull request 
looks good, too. Just a question: I think it should be backported to 3.7 and 
2.7 branches like https://github.com/python/cpython/pull/12236?

--

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



[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-17 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
pull_requests: +12338

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



[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-15 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

After this patch, test_distutils failed if $CPPFLAGS is not empty when building 
CPython. For example:

$ export CPPFLAGS=-DFOO=BAR
$ ./configure
$ make
$ ./python -m test test_distutils   
Run tests sequentially
0:00:00 load avg: 0.45 [1/1] test_distutils
test test_distutils failed -- Traceback (most recent call last):
  File "/home/yen/Projects/cpython/Lib/distutils/tests/test_sysconfig.py", line 
99, in test_customize_compiler
self.assertEqual(comp.exes['compiler'], 'my_cc --sysconfig-cflags 
--mycflags')
AssertionError: 'my_cc --sysconfig-cflags --mycflags -DFOO=BAR' != 'my_cc 
--sysconfig-cflags --mycflags'
- my_cc --sysconfig-cflags --mycflags -DFOO=BAR
?--
+ my_cc --sysconfig-cflags --mycflags


test_distutils failed

== Tests result: FAILURE ==

1 test failed:
test_distutils

Total duration: 2 sec 192 ms
Tests result: FAILURE

Tested with commit d2fdd1fedf6b9dc785cf5025b548a989faed089a.

This is an issue as Arch Linux uses CPPFLAGS="-D_FORTIFY_SOURCE=2" for creating 
packages [1].

[1] 
https://git.archlinux.org/svntogit/packages.git/tree/trunk/makepkg.conf?h=packages/pacman#n39

--
nosy: +yan12125

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



[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-02 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

CPython requires several changes to build for Android < 21. There was an 
attempt in issue32654 but it's abandoned.

--
nosy: +yan12125

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



[issue29440] _dbm requires -lgdbm if gdbm is built as static libraries

2019-03-02 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I gave up building gdbm as a static library. It brings more headache than 
benefits.

--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

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



[issue27640] add the '--disable-test-suite' option to configure

2019-02-27 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue34095] [2.7] Seg fault on archlinux 32 when run tests with xvfb-run

2019-02-27 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue23794] http package should support HTTP/2

2019-02-27 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue29397] linux/random.h present but cannot be compiled

2019-02-27 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue33618] Support TLS 1.3

2019-02-15 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue32947] Support OpenSSL 1.1.1

2019-02-15 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue16353] add function to os module for getting path to default shell

2019-02-09 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue31710] setup.py: _ctypes won't get built when system ffi is only in $PREFIX

2019-01-27 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue29541] Python3 error while building on Alt-F

2019-01-27 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Found a test_builtin failure in the job for the relevant commit on Travis CI - 
https://travis-ci.org/python/cpython/jobs/479642964#L1491. I guess it's not 
noticed as it's listed in allow_failures in .travis.yml. However, I'm not sure 
if it's the same issue or not as there are no failure details.

--

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Wow that's super fast! I can confirm the patch fixes the issue on my machine. 
Thanks!

--

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Chih-Hsuan Yen


New submission from Chih-Hsuan Yen :

On git-master (32ebd8508d4807a7c85d2ed8e9c3b44ecd6de591) of CPython, 3 tests of 
test_builtin fails:

==
ERROR: test_envar_unimportable (test.test_builtin.TestBreakpoint) (envar='.')
--
Traceback (most recent call last):
  File "/home/yen/Projects/cpython/Lib/test/test_builtin.py", line 1618, in 
test_envar_unimportable
breakpoint()
ValueError: Empty module name

==
ERROR: test_envar_unimportable (test.test_builtin.TestBreakpoint) (envar='.foo')
--
Traceback (most recent call last):
  File "/home/yen/Projects/cpython/Lib/test/test_builtin.py", line 1618, in 
test_envar_unimportable
breakpoint()
ValueError: Empty module name

==
ERROR: test_envar_unimportable (test.test_builtin.TestBreakpoint) (envar='.int')
--
Traceback (most recent call last):
  File "/home/yen/Projects/cpython/Lib/test/test_builtin.py", line 1618, in 
test_envar_unimportable
breakpoint()
ValueError: Empty module name

--

If I revert 6fe9c446f8302553952f63fc6d96be4dfa48ceba, tests pass. This commit 
is from issue34756, so I add the author of that patch to the nosy list.

Environment: Arch Linux x86_64

Steps to reproduce:
$ ./configure
$ make
$ ./python -m test -v test_builtin

--
components: Tests
messages: 333655
nosy: serhiy.storchaka, yan12125
priority: normal
severity: normal
status: open
title: test_builtin fails after merging the fix for bpo-34756
type: behavior
versions: Python 3.8

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



[issue35509] Unable to inherit from logging.Formatter

2018-12-18 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Oh so that's a simple Python question. Yep it works if `self` is removed. Thank 
you very much for the comment and sorry for bothering. I'll fix the code I'm 
using.

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

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



[issue35509] Unable to inherit from logging.Formatter

2018-12-16 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Hi Vinay Sajip, thanks for notifying the patch author. Just a question: is 
there a reason to remove 3.8 from affected versions? My sample program is 
indeed broken on Python 3.8.

--

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



[issue35509] Unable to inherit from logging.Formatter

2018-12-15 Thread Chih-Hsuan Yen


New submission from Chih-Hsuan Yen :

The following script runs fine on Python 3.7.1 but not on master (f5107dfd42).

import logging

class Foo(logging.Formatter):
def __init__(self):
super().__init__(self)

Foo()

The output is:

Traceback (most recent call last):
  File "t.py", line 9, in 
Foo()
  File "t.py", line 6, in __init__
super().__init__(self)
  File "/usr/lib/python3.8/logging/__init__.py", line 589, in __init__
self._style.validate()
  File "/usr/lib/python3.8/logging/__init__.py", line 441, in validate
if not self.validation_pattern.search(self._fmt):
TypeError: expected string or bytes-like object

Most likely there's something wrong in the newly-added validation step 
(issue34844).

/cc the primary reviewer of the aforementioned patch.

--
components: Library (Lib)
messages: 331900
nosy: vinay.sajip, yan12125
priority: normal
severity: normal
status: open
title: Unable to inherit from logging.Formatter
type: behavior
versions: Python 3.8

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



[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-11-27 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Got it. Thanks for the pointer.

--

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



[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-11-27 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Looks like in https://github.com/python/cpython/pull/10327, Serhiy Storchaka 
considers fixing these issues for 3.8 only - "It is easier to skip the test on 
3.7." and then remove the "needs backport to 3.7" label. How about changing the 
target version to 3.8 only and close this issue?

--

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



[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-11-27 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

As https://github.com/python/cpython/pull/10327 has been merged, I think this 
issue can be closed?

--

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



[issue34095] [2.7] test_idle fails with: /usr/bin/xvfb-run: line 181: 3617 Segmentation fault

2018-10-15 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

The new crashing test seems the same as https://bugs.python.org/issue33153. I 
can't reproduce it on 64-bit Arch Linux, so that might be a 32-bit only issue.

--

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



[issue34095] [2.7] test_idle fails with: /usr/bin/xvfb-run: line 181: 3617 Segmentation fault

2018-10-12 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Sorry, after reading the original issue carefully, I realize that my issue is 
slightly different. In my case running test_idle only crashes, and it crashes 
before the first test in test_idle, not in test_writelines.

I copied the Arch Linux packaging script mentioned by Eli [2], modified it so 
that test_idle, test_tk and test_ttk_guionly are not skipped, and added a 
dependency ttf-font. With the modified PKGBUILD, the only failing test is 
test_ssl. I guess the issue has been fixed.

Erich Eckner, could you still reproduce the original crash?

[1] 
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/python2

--

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



[issue34095] [2.7] test_idle fails with: /usr/bin/xvfb-run: line 181: 3617 Segmentation fault

2018-10-11 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Here is partial backtrace from commit 1d26c72e6a9c5b28b27c158f2f196217707dbb0f:

#0  0x76763197 in GetTkFontAttributes 
(faPtr=faPtr@entry=0x55cd91e8, ftFont=)
at /usr/src/debug/tk8.6.8/unix/../unix/tkUnixRFont.c:167
#1  0x767639fa in InitFont (tkwin=tkwin@entry=0x55ee94a0, 
pattern=pattern@entry=0x55cfc690, fontPtr=0x55cd91b0, 
fontPtr@entry=0x0) at /usr/src/debug/tk8.6.8/unix/../unix/tkUnixRFont.c:313
#2  0x76763c4e in TkpGetFontFromAttributes 
(tkFontPtr=tkFontPtr@entry=0x0, tkwin=tkwin@entry=0x55ee94a0, 
faPtr=0x55d1e8b8) at 
/usr/src/debug/tk8.6.8/unix/../unix/tkUnixRFont.c:482
#3  0x766b5ee2 in Tk_AllocFontFromObj (interp=0x55c4b900, 
tkwin=tkwin@entry=0x55ee94a0, objPtr=0x55e39000)
at /usr/src/debug/tk8.6.8/unix/../generic/tkFont.c:1158
#4  0x766ac053 in DoObjConfig (interp=interp@entry=0x55c4b900, 
recordPtr=recordPtr@entry=0x55e53390 "0r\354UUU", 
optionPtr=optionPtr@entry=0x55f4e010, valuePtr=, 
valuePtr@entry=0x55e39000, 
tkwin=tkwin@entry=0x55ee94a0, savedOptionPtr=savedOptionPtr@entry=0x0) 
at /usr/src/debug/tk8.6.8/unix/../generic/tkConfig.c:717
#5  0x766ace92 in Tk_InitOptions (interp=interp@entry=0x55c4b900, 
recordPtr=recordPtr@entry=0x55e53390 "0r\354UUU", 
optionTable=optionTable@entry=0x55f4de10, tkwin=0x55ee94a0) at 
/usr/src/debug/tk8.6.8/unix/../generic/tkConfig.c:496
#6  0x767250b2 in CreateWidget (sharedPtr=0x55ec7230, 
tkwin=, interp=0x55c4b900, 
parent=, objc=, objv=) at 
/usr/src/debug/tk8.6.8/unix/../generic/tkText.c:664
#7  0x762efe16 in TclNRRunCallbacks () from /usr/lib/libtcl8.6.so
#8  0x767eba0c in Tkapp_Call (selfptr=0x740242b0, args=)
at /home/yen/Projects/cpython/Modules/_tkinter.c:1508

Looks more like a Tk issue than a CPython one.

For Arch Linux packagers: adding checkdepends=('ttf-font') to PKGBUILD can fix 
testing errors. Here's an example: 
https://github.com/archlinuxcn/repo/commit/e4de4598bccd44ba38c37854dc5edfb490dbe09a

--

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



[issue34095] [2.7] test_idle fails with: /usr/bin/xvfb-run: line 181: 3617 Segmentation fault

2018-10-11 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I got a similar error and managed to fix it by installing the noto-fonts 
package [1]. ttf-dejavu [2] works, too. I guess at least one font should be 
installed to allow those tests to run.

[1] https://www.archlinux.org/packages/extra/any/noto-fonts/
[2] https://www.archlinux.org/packages/extra/any/ttf-dejavu/

--
nosy: +yan12125

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



[issue28167] remove platform.linux_distribution()

2018-10-08 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy:  -yan12125

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



  1   2   >