[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified crashes

2021-12-14 Thread Felix Fontein
Change by Felix Fontein : -- type: -> crash ___ Python tracker <https://bugs.python.org/issue46080> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified crashes

2021-12-14 Thread Felix Fontein
Change by Felix Fontein : -- keywords: +patch pull_requests: +28333 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30111 ___ Python tracker <https://bugs.python.org/issu

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified crashes

2021-12-14 Thread Felix Fontein
New submission from Felix Fontein : When argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS and help is specified, trying to display --help results in a crash. Reproducer: import argparse parser = argparse.ArgumentParser() parser.add_argument('--test

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

2021-07-30 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- nosy: +obfusk ___ Python tracker <https://bugs.python.org/issue37596> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-06-22 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: https://github.com/obfusk/apksigcopier currently produces reproducible ZIP files identical to those produced by apksigner using this code: DATETIMEZERO = (1980, 0, 0, 0, 0, 0) class ReproducibleZipInfo(zipfile.ZipInfo): """Repro

[issue29708] support reproducible Python builds

2021-04-22 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: Hi! I've been working on reproducible builds for python-for-android [1,2,3]. Current issues with .pyc files are: * .pyc files differ depending on whether Python was compiled w/ liblzma-dev installed or not; * many .pyc files include build paths; *

[issue29708] support reproducible Python builds

2021-04-22 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- nosy: +obfusk ___ Python tracker <https://bugs.python.org/issue29708> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2824] zipfile to handle duplicate files in archive

2021-04-13 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- nosy: +obfusk ___ Python tracker <https://bugs.python.org/issue2824> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-23 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: > The __getattr__ hack is not needed. You can reset the flags in a different, > more straight forward way As mentioned, ZipFile._open_to_write() will modify the ZipInfo's .external_attr when it is set to 0. > I just found another speci

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: > external_attr == 0 may cause issues with permissions. That may be true in some scenarios, but not being able to set it to 0 means you can't create identical files to those produced by other tools -- like those used to generate APKs -- which do

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue43547> ___ ___ Python-bugs-list mailing list Un

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue43547> ___ ___ Python-bugs-list mailing list Unsub

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- components: -IO, Library (Lib) versions: -Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue43

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: I've closed the PR for now. Using a carefully crafted ZipInfo object doesn't work because ZipFile modifies its .external_attr when set to 0. Using something like this quickly hacked together ZipInfo subclass does work: class Zer

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: I've created a draft PR; RFC :) Also: * setting the date to (1980,0,0,0,0,0) already works; * the main issue seems to be that external_attr cannot be 0 atm. -- ___ Python tracker <https://bugs.py

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- keywords: +patch pull_requests: +23737 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24979 ___ Python tracker <https://bugs.python.org/issu

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-20 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- nosy: +obfusk ___ Python tracker <https://bugs.python.org/issue43547> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43139] test_ttk test_compound and test_tk test_type fails with Tk 8.6.11.1

2021-02-12 Thread Felix Yan
Felix Yan added the comment: It's Arch Linux x86_64 with system tcl/tk. It's build in a clean chroot for packaging and always reproducible. -- ___ Python tracker <https://bugs.python.o

[issue43139] test_ttk test_compound and test_tk test_type fails with Tk 8.6.11.1

2021-02-05 Thread Felix Yan
New submission from Felix Yan : == FAIL: test_compound (tkinter.test.test_ttk.test_widgets.ButtonTest) -- Traceback (most recent call last): File "/

[issue42151] Pure Python xml.etree.ElementTree is missing default attribute values

2020-10-27 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: > specified_attributes = True is also set in xml.dom.expatbuilder. That's good to know and should perhaps be addressed as well. > Should not it be set to true in the C implementation of ElementTree? That would break existing code. Includi

[issue42151] Pure Python xml.etree.ElementTree is missing default attribute values

2020-10-26 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- keywords: +patch pull_requests: +21901 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22987 ___ Python tracker <https://bugs.python.org/issu

[issue42151] Pure Python xml.etree.ElementTree is missing default attribute values

2020-10-25 Thread Felix C. Stegerman
New submission from Felix C. Stegerman : I originally reported this as a bug in PyPy, but it turns out that CPython's C implementation (_elementtree) behaves differently than the pure Python version (b/c it sets specified_attributes = 1). PyPy issue with example code:

[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Felix Yan
Felix Yan added the comment: I use this in Arch's packaging: LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" -a -n "$servernum" \ "${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_tk (test_t

[issue41971] multiple tests in test_tools fail since Python 3.9

2020-10-07 Thread Felix Yan
New submission from Felix Yan : I am packaging Python for Arch and the test suite of Python 3.8.6 passes here without these: == FAIL: test_multiple_roots (test.test_tools.test_c_analyzer.test_common.test_files.IterFilesTests

[issue41970] test_lib2to3 fails since Python 3.9

2020-10-07 Thread Felix Yan
New submission from Felix Yan : I am packaging Python for Arch and the tests suite of Python 3.8.6 pass here without this: ``` 0:09:06 load avg: 0.87 [205/424] test_lib2to3

[issue41346] test_thousand and compileall hangs on riscv64

2020-07-20 Thread Felix Yan
New submission from Felix Yan : In my riscv64 build, test_thousand (test.test_multiprocessing_forkserver.WithProcessesTestBarrier) always hangs on some locking thing, and the compileall part during installation hangs the same way. I am not sure if it's toolchain related or something

[issue41306] test_tk failure on Arch Linux

2020-07-16 Thread Felix Yan
Felix Yan added the comment: tkinter.TCL_VERSION: 8.6 tkinter.TK_VERSION: 8.6 tkinter.info_patchlevel: 8.6.10 It's always reproducible in either a real desktop or Xvfb with arbitrary resolution etc as far as I have tested. -- ___ Python tr

[issue41306] test_tk failure on Arch Linux

2020-07-15 Thread Felix Yan
New submission from Felix Yan : test_from (tkinter.test.test_tkinter.test_widgets.ScaleTest) is currently failing on Arch Linux, and at least another place: https://python-build-standalone.readthedocs.io/en/latest/status.html The error looks like

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Felix Yan
Change by Felix Yan : -- pull_requests: +20631 status: pending -> open pull_request: https://github.com/python/cpython/pull/21488 ___ Python tracker <https://bugs.python.org/issu

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Felix Yan
Felix Yan added the comment: Yes, I am currently defining it manually as a workaround for building 3.8.4 in Arch. Also opened GH-21481 for this :) -- ___ Python tracker <https://bugs.python.org/issue41

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Felix Yan
Change by Felix Yan : -- keywords: +patch pull_requests: +20624 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21481 ___ Python tracker <https://bugs.python.org/issu

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Felix Yan
New submission from Felix Yan : In bpo-40874, mpdecimal.h in the vendored libmpdec has defines of UNUSED while the standalone released version of mpdecimal 2.5.0 doesn't. This breaks _decimal module build with system libmpdec due to UNUSED is undefined. Errors are like: cpython/Mo

[issue34144] venv activate.bat reset codepage fails on windows 10

2018-07-19 Thread Felix Vollmer
Change by Felix Vollmer : -- nosy: +Felix Vollmer ___ Python tracker <https://bugs.python.org/issue34144> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32979] dict get() function equivalent for lists.

2018-03-01 Thread Felix
Felix added the comment: Thanks for the link! Interesting read. I have to disagree with the statement that this is something that happens very rarely. Just have a look at the mess on stackoverflow alone (these are only the top results I got after a minute of googling): https

[issue32979] dict get() function equivalent for lists.

2018-03-01 Thread Felix
New submission from Felix : Hi there! I hope this wasn't suggested before. I couldn't find any issues related to it. The `get()` function on the dictionary object is such a convenient way for retrieving items from a dict that might not exists. I always wondered why the list objec

[issue27650] Implement `__repr__` methods for logging.Logger and others

2016-12-27 Thread Felix Yan
Changes by Felix Yan : -- nosy: +felixonmars ___ Python tracker <http://bugs.python.org/issue27650> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25195] mock.ANY doesn't match mock.MagicMock() object

2015-09-20 Thread Felix Yan
Changes by Felix Yan : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue25195> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue25195] mock.ANY doesn't match mock.MagicMock() object

2015-09-20 Thread Felix Yan
New submission from Felix Yan: Since Python 3.5.0 mock.MagicMock() object seems not matched by mock.ANY. This behavior looks weird and breaks tests of boto. Minimized example: In Python 3.4.3: >>> from unittest import mock >>> m = mock.MagicMock() &g

[issue25096] test_gdb failed to read version for gdb >= 7.10

2015-09-13 Thread Felix Yan
New submission from Felix Yan: The regex in test_gdb reads only one digit of gdb's minor version, which would fail for gdb >= 7.10, and skip the test as 7.1 < 7.4. Original commit: https://hg.python.org/cpython/rev/b71cda2f48c6#l1.9 Patch attached. -- components:

[issue24902] http.server: on startup, show host/port as URL

2015-09-06 Thread Felix Kaiser
Felix Kaiser added the comment: So do I, but I can live with either way. Can one of you merge one of these patches? -- ___ Python tracker <http://bugs.python.org/issue24

[issue24950] FAIL: test_expanduser when $HOME=/

2015-08-27 Thread Felix Yan
Felix Yan added the comment: btw, there seems to be a relevant failure in test_pathlib as well: test test_pathlib failed -- Traceback (most recent call last): File "/build/python/src/Python-3.5.0rc2/Lib/test/test_pathlib.py", line 2015, in test_expanduser self.assertEqual(p1.

[issue24950] FAIL: test_expanduser when $HOME=/

2015-08-27 Thread Felix Yan
Changes by Felix Yan : -- title: FAIL: test_posixpath when $HOME=/ -> FAIL: test_expanduser when $HOME=/ ___ Python tracker <http://bugs.python.org/issu

[issue24950] FAIL: test_posixpath when $HOME=/

2015-08-27 Thread Felix Yan
Changes by Felix Yan : -- title: FAIL: test_expanduser when $HOME=/ -> FAIL: test_posixpath when $HOME=/ ___ Python tracker <http://bugs.python.org/issu

[issue24950] FAIL: test_expanduser when $HOME=/

2015-08-27 Thread Felix Yan
New submission from Felix Yan: test_expanduser in test.test_posixpath.PosixPathTest fails when the users $HOME being exactly "/", after the patch in issue17809 was introduced. test test_posixpath failed -- Traceback (most recent call last): File "/build/python/src/Python-3.

[issue24902] http.server: on startup, show host/port as URL

2015-08-20 Thread Felix Kaiser
Felix Kaiser added the comment: I'm not sure - that'd be redundant, and I find it harder to read. It also breaks for badly configured terminals where "("/")" are part of the select-by-word character set (but thats a very minor issue -- users with parentheses in

[issue24902] http.server: on startup, show host/port as URL

2015-08-20 Thread Felix Kaiser
New submission from Felix Kaiser: http.server: on startup, show host/port as URL Old: % python3 -m http.server Serving HTTP on 0.0.0.0 port 8000 ... New: % ./python -m http.server Serving http://0.0.0.0:8000/ ... This is useful because (modern) terminals will auto-detect URLs and make

[issue20700] Docs sidebar scrolls strangely in 3.4 docs

2014-02-20 Thread David Felix
New submission from David Felix: On longer documentation pages, the sidebar is scrolling out of view and in an unexpected manner when the main page is scrolled. Seems to only affect 3.4 docs, but I'm not positive. http://docs.python.org/3.4/whatsnew/3.4.html is a good example. Using Fi

[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-12 Thread Felix Crux
Felix Crux added the comment: Working with wolever on the process, generated the attached patch. -- keywords: +patch nosy: +felixc, wolever Added file: http://bugs.python.org/file31263/18680.patch ___ Python tracker <http://bugs.python.

[issue17455] ImportError (xml.dom.minidom) in /usr/lib/python2.7/dist-packages/apport/report.py

2013-03-18 Thread Felix Matenaar
New submission from Felix Matenaar: We're getting the following exception in a custom testing framework using sqlalchemy. Our process is running several days and the exception seems to occurs unproducably during runtime, sometimes after a day and sometimes after a couple of hours. The

[issue13422] Subprocess: children hang due to open pipes

2011-11-23 Thread Felix Steffenhagen
Felix Steffenhagen added the comment: The problem I have with the solution that is currently implemented is that subprocess is waiting for the spawned child although the child is not running anymore. In my case this issue occured when invoking samba or the small sample daemon (see attached

[issue13422] Subprocess: children hang due to open pipes

2011-11-17 Thread Felix Steffenhagen
Felix Steffenhagen added the comment: The behavior that the daemon is not closing stderr is intentional to reproduce the issue. This problem occured to me when I was invoking the samba init script on a Gentoo system. Invoked from a bash, the initscript was terminating fine. But when I invoked

[issue13422] Subprocess: children hang due to open pipes

2011-11-17 Thread Felix Steffenhagen
Changes by Felix Steffenhagen : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue13422> ___ ___ Python-bugs-list mailing list Unsubscri

[issue13422] Subprocess: children hang due to open pipes

2011-11-17 Thread Felix Steffenhagen
New submission from Felix Steffenhagen : subprocess.Popen.communicate() hangs for daemonized subprocesses that leave a pipe open. The python caller, invoking the daemon subprocess, runs as long as the daemon process. This happens on POSIX platforms with python 2.7 as well as 3.2. Please

[issue11671] Security hole in wsgiref.headers.Headers

2011-03-28 Thread Felix Gröbert
Felix Gröbert added the comment: If the spec forbids control characters in headers, the module should enforce that. The most frequent example of header injection is the redirect-case: an application is forwarding using the Location header to a user-supplied URL. http://google.com/codesearch

[issue11671] Potential misuse of wsgiref.headers.Headers

2011-03-25 Thread Felix Gröbert
New submission from Felix Gröbert : As noted by secur...@python.org's response I'm filing this bug here. In wsgiref.headers.Headers it is possible to include headers which contain a newline (i.e. \n or \r) either through add_header or __init__. It is not uncommon that developers p

[issue2504] Add gettext.pgettext() and variants support

2010-12-26 Thread Felix Schwarz
Changes by Felix Schwarz : -- nosy: +Felix Schwarz ___ Python tracker <http://bugs.python.org/issue2504> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach added the comment: Ok, so I understand the issue, but why doesn't the set method simply convert to a string? >>> from ConfigParser import RawConfigParser >>> from StringIO import StringIO >>> parser = RawConfigParser() >&g

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach added the comment: Perhaps I don't understand fully, but I am reading, for example, "option = True" from a config file. When doing this getboolean raises: AttributeError: 'bool' object has no attribute 'lower' Is it intended that

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach added the comment: Oops, that was the broken first version. Let's try again: class MyConfigParser(ConfigParser.RawConfigParser): def getboolean(self, section, option): result = self.get(section, option) try: trues = ["1"

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
New submission from Felix Laurie von Massenbach : If the config file has a boolean formatted as either True or False, python raises an attribute error when doing str.lower() on it. In my code I've worked around this in the following way: class MyConfigParser(ConfigParser.RawConfigP

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2009-02-15 Thread Felix Schwarz
Changes by Felix Schwarz : -- versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.0 ___ Python tracker <http://bugs.python.org/issue4142> ___ ___ Python-bug

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2009-02-15 Thread Felix Schwarz
Changes by Felix Schwarz : -- keywords: +patch Added file: http://bugs.python.org/file13100/helo.patch ___ Python tracker <http://bugs.python.org/issue4

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2009-02-15 Thread Felix Schwarz
Felix Schwarz added the comment: I can confirm that this issue is still present in Python 2.5.2, 2.6.1 and 3.0.1. The current behavior of smtplib is a clear violation of the SMTP specification. The problem can be reproduced with code like that (stub, pseudo code-like): smtp = smtplib.SMTP

[issue4522] Module wsgiref is not python3000 ready (unicode issues)

2008-12-05 Thread Felix Benner
Felix Benner <[EMAIL PROTECTED]> added the comment: The test uses StringIO. I don't understand the test enough to change that. If I understand the WSGI spec correctly then it would be the test that's wrong. ___ Python tracker <[EMAI

[issue4522] Module wsgiref is not python3000 ready (unicode issues)

2008-12-04 Thread Felix Benner
New submission from Felix Benner <[EMAIL PROTECTED]>: wsgiref.handlers.py tries to send strings where bytes is necessary in accordance with PEP333 the attached patch encodes everything with ISO-8859-1. Additionally the patch from Issue 3348 has to be applied. -- components: L

[issue770280] PyMarshal_ReadLastObjectFromFile

2008-01-04 Thread Paul Felix
Paul Felix added the comment: Maybe not. With the addition of thread.stack_size([size]), it's fairly easy to get around the problem by bumping up the stack size. It would be nice if PyMarshal_ReadLastObjectFromFile didn't allocate a small file buffer on the stack (think of the i