[issue38345] Add end lines to pyclbr objects

2019-10-01 Thread Robert Kearns
Change by Robert Kearns : -- components: Library (Lib) nosy: RobertKearns priority: normal severity: normal status: open title: Add end lines to pyclbr objects type: enhancement versions: Python 3.9 ___ Python tracker <https://bugs.python.

[issue38345] Add end lines to pyclbr objects

2019-10-01 Thread Robert Kearns
Change by Robert Kearns : -- keywords: +patch pull_requests: +16124 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16534 ___ Python tracker <https://bugs.python.org/issu

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

2021-03-20 Thread Robert Pollak
Change by Robert Pollak : -- nosy: +jondo ___ Python tracker <https://bugs.python.org/issue43547> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45948] Unexpected instantiation behavior for xml.etree.ElementTree.XMLParser(target=None)

2021-12-01 Thread Robert Steed
New submission from Robert Steed : Expected instantiation of xml.etree.ElementTree.XMLParser(target=None) to create a parser using default TreeBuilder -- components: XML files: XMLParserFail.py messages: 407458 nosy: rdsteed priority: normal severity: normal status: open title

[issue39318] NamedTemporaryFile could cause double-close on an fd if _TemporaryFileWrapper throws

2020-01-12 Thread Robert Xiao
New submission from Robert Xiao : tempfile.NamedTemporaryFile creates its wrapper like so: try: file = _io.open(fd, mode, buffering=buffering, newline=newline, encoding=encoding, errors=errors) return _TemporaryFileWrapper(file, name, delete

[issue39318] NamedTemporaryFile could cause double-close on an fd if _TemporaryFileWrapper throws

2020-01-15 Thread Robert Xiao
Robert Xiao added the comment: Could this be solvable if `closefd` were a writable attribute? Then we could do file = None try: file = io.open(fd, ..., closefd=False) file.closefd = True except: if file and not file.closefd: os.close(fd

[issue39535] multiprocessing.Process file descriptor resource leak

2020-02-03 Thread Robert Pierce
New submission from Robert Pierce : multiprocessing.Process opens a FIFO to the child. This FIFO is not documented the the Process class API and it's purpose is not clear from the documentation. It is a minor documentation bug that the class creates non-transparent resource utilization.

[issue39535] multiprocessing.Process file descriptor resource leak

2020-02-03 Thread Robert Pierce
Robert Pierce added the comment: It appears as if the problem is the sentinel FIFO opened by (for example) multiprocessing.popen_fork.Popen._launch(). It registers a finalization class to close the sentinel on garbage collection. Instead, it should be closed in poll() or wait() when the

[issue40322] struct.pack adding unexpected byte in 'B' format

2020-04-18 Thread Robert Bressan
New submission from Robert Bressan : struct.pack() is adding an unexpected null byte. When I've run this code: ___ import struct d = {'c':b'a', 'b':1, 'B':1, '?':False, 'h':2, 'H'

[issue40322] struct.pack adding unexpected byte in 'B' format

2020-04-18 Thread Robert Bressan
Robert Bressan added the comment: After placing a standard size instead of a native one, solved. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-04-27 Thread Robert Rouhani
New submission from Robert Rouhani : It appears as though PyImport_ReloadModule is importing the deprecated "imp" module. I integrated a newer version of Python into Unreal Engine 4, which internally calls this function for some of it's own modules. Normally a stray warning

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-01 Thread Robert Rouhani
Robert Rouhani added the comment: We have a fairly straightforward workaround of using the "warnings" module to redirect to stdout, so we personally don't have a need. Unreal, however, follows the VFX Reference Platform ( https://vfxplatform.com/) which is migrating from 2.

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-05 Thread Robert Rouhani
Change by Robert Rouhani : -- pull_requests: +19249 pull_request: https://github.com/python/cpython/pull/19934 ___ Python tracker <https://bugs.python.org/issue40

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-05 Thread Robert Rouhani
Change by Robert Rouhani : -- pull_requests: +19250 pull_request: https://github.com/python/cpython/pull/19935 ___ Python tracker <https://bugs.python.org/issue40

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-05 Thread Robert Rouhani
Robert Rouhani added the comment: No problem! Happy to contribute where I can :) -- ___ Python tracker <https://bugs.python.org/issue40417> ___ ___ Python-bug

[issue8087] Unupdated source file in traceback

2020-05-28 Thread Robert Reynolds
Robert Reynolds added the comment: I second [what was said by Aigars Mahinovs](https://bugs.python.org/issue8087#msg300990) about long-running processes giving confusing tracebacks that make debugging very difficult. I have a Natural Language Processing pipeline extracting features from a

[issue8087] Unupdated source file in traceback

2020-05-28 Thread Robert Reynolds
Robert Reynolds added the comment: A pure python demonstration of the problem looks like this (`__file__` stores the path to the executed module): ```python with open(__file__) as f: src = f.read() with open(__file__, 'w') as f: f.write('\n\n\n\n\n# Whoops

[issue41878] python3 fails to use custom dict-like object as symbols in eval()

2020-09-28 Thread Robert Haschke
New submission from Robert Haschke : The attached file implements a custom dict-like class (MyDict) as a minimal example of code I am using in a larger codebase. Before you ask, why I reimplemented a dict-like object: The real code base employs a hierarchical dict, referencing recursively to

[issue41878] python3 fails to use custom mapping object as symbols in eval()

2020-09-28 Thread Robert Haschke
Robert Haschke added the comment: Looks like the list generator is considered as a new nested scope, which prohibits access to local variables? This basic expression, passing local symbols only, fails as well: eval('[abc[i]*abc[i] for i in [0, 1, 2]]', {}, dict(abc=[1, 2, 3]))

[issue41878] python3 fails to use custom mapping object as symbols in eval()

2020-09-29 Thread Robert Haschke
Robert Haschke added the comment: Thanks, Josh, for this clarification. What is the suggested mitigation? Obviously, I need to pass all symbols from my hierarchical dictionary in a flattend version as a dict to globals. Or do you see another option

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2020-10-06 Thread Robert Smallshire
Robert Smallshire added the comment: First, I would like to apologise for the confusion I have inadvertently caused. I didn't see Raymond's question and Guido's clear response here about not modifying the numeric tower, as it came _long_ after activity had moved to GitHub, an

[issue26680] Incorporating float.is_integer into Decimal

2020-10-08 Thread Robert Smallshire
Robert Smallshire added the comment: Yes Raymond, I can prepare a new PR as soon as the faulty PR has been rolled back. -- ___ Python tracker <https://bugs.python.org/issue26

[issue42103] DoS (MemError via CPU and RAM exhaustion) when processing malformed Apple Property List files in binary format

2020-10-20 Thread Robert Wessen
New submission from Robert Wessen : In versions of Python from 3.4-3.10, the Python core plistlib library supports Apple's binary plist format. When given malformed input, the implementation can be forced to create an argument to struct.unpack() which consumes all available CPU and m

[issue42189] copy.deepcopy() no longer works on platform.uname_result objects

2020-10-28 Thread Robert O'Callahan
New submission from Robert O'Callahan : Starting from Python 3.9, copy.deepcopy can't copy a platform.uname_result object. ``` Python 3.9.0 (default, Oct 6 2020, 00:00:00) [GCC 10.2.1 20200826 (Red Hat 10.2.1-3)] on linux Type "help", "copyright", "credits

[issue42163] _replace() no longer works on platform.uname_result objects

2020-10-28 Thread Robert O'Callahan
Robert O'Callahan added the comment: I filed issue 42189, which is similar but maybe worse: copy.deepcopy() is broken for platform.uname_result objects. -- nosy: +rocallahan ___ Python tracker <https://bugs.python.org/is

[issue13844] hg.python.org doesn't escape title attributes in annotate view

2012-01-23 Thread Robert Xiao
New submission from Robert Xiao : On hg.python.org, the "annotate" view doesn't properly escape the title attribute of the elements, resulting in breakage on the left column: http://hg.python.org/cpython/annotate/728cfc671d15/Modules/Setup.config.in -- components

[issue13844] hg.python.org doesn't escape title attributes in annotate view

2012-01-23 Thread Robert Xiao
Robert Xiao added the comment: My testing suggests that this issue is already fixed in Mercurial itself, since using "hg serve" on a local copy gives the expected result. Thus, the problem is probably with hg.python.org's loc

[issue14253] print() encodes characters to native system encoding

2012-03-11 Thread Robert Sjöblom
New submission from Robert Sjöblom : I'm on a cp932-encoded system. When I read in a cp1252-file, it's read into memory properly, but when printing it, Python tries to encode the output to cp932. Here's the relevant code: address = "C:/Path/to/file/file.ext" wi

[issue14595] Complete your registration to Python tracker -- key 25rVzaHLDOR5lFuBNkq7ixbyp3WbqQlG

2012-04-16 Thread Robert E.
New submission from Robert E. : Am 16.04.2012 13:49, schrieb Python tracker: > To complete your registration of the user "roberte" with > Python tracker, please do one of the following: > > - send a reply to rep...@bugs.python.org and maintain the subject line as is >

[issue14595] Complete your registration to Python tracker -- key 25rVzaHLDOR5lFuBNkq7ixbyp3WbqQlG

2012-04-16 Thread Robert E.
Robert E. added the comment: Well I did that first but the tracker replied: node with key "roberte" exists Seems the username is alread in use but I still could register but not complete the registration. Am 16.04.2012 13:54, schrieb R. David Murray: > > R. David Murray a

[issue14596] struct.unpack memory leak

2012-04-16 Thread Robert Elsner
New submission from Robert Elsner : When unpacking multiple files with _variable_ length, struct unpack leaks massive amounts of memory. The corresponding functions from numpy (fromfile) or the array (fromfile) standard lib module behave as expected. I prepared a minimal testcase illustrating

[issue14596] struct.unpack memory leak

2012-04-16 Thread Robert Elsner
Robert Elsner added the comment: I would love to test but I am in a production environment atm and can't really spare the time to set up a test box. But maybe somebody with access to 2.7 on linux could test it with the supplied script (just start it and it should happily eat 8GB of m

[issue14596] struct.unpack memory leak

2012-04-16 Thread Robert Elsner
Robert Elsner added the comment: Well seems like 3.1 is in the Debian repos as well. Same memory leak. So it is very unlikely it has been fixed in 2.7. I modified the test case to be compatible to 3.1 and 2.6. -- versions: +Python 3.1 Added file: http://bugs.python.org/file25239

[issue14596] struct.unpack memory leak

2012-04-16 Thread Robert Elsner
Robert Elsner added the comment: Well the problem is, that performance is severely degraded when calling unpack multiple times. I do not know in advance the size of the files and they might vary in size from 1M to 1G. I could use some fixed-size buffer which is inefficient depending on the

[issue14595] Complete your registration to Python tracker -- key 25rVzaHLDOR5lFuBNkq7ixbyp3WbqQlG

2012-04-16 Thread Robert E.
Robert E. added the comment: No I can't (says invalid login). I created a new account using my Google ID which works alright. If you want to debug this problem I am happy to help but otherwise this "bug entry" can be removed. Cheers Am 16.04.2012 14:47, schrieb R. David Murray

[issue14596] struct.unpack memory leak

2012-04-16 Thread Robert Elsner
Robert Elsner added the comment: Well I stumbled across this leak while reading big files. And what is the point of having a fast C-level unpack when it can not be used with big files? I am not adverse to the idea of caching the format string but if the cache grows beyond a reasonable size, it

[issue24653] Mock.assert_has_calls([]) is surprising for users

2019-05-22 Thread Robert Collins
Robert Collins added the comment: I'm reopening this because I don't agree. I opened the bug because we have evidence that users find the current documentation confusing. Saying that its not confusing to us doesn't fix the confusion. Why should we mention the special case

[issue34125] Profiling depends on whether **kwargs is given

2019-05-22 Thread Robert Collins
Robert Collins added the comment: New changeset b892d3ea468101d35e2fb081002fa693bd86eca9 by Robert Collins (Jeroen Demeyer) in branch 'master': bpo-36994: add test for profiling method_descriptor with **kwargs (GH-13461) https://github.com/python/cpyt

[issue36994] Missing tests for CALL_FUNCTION_EX opcode profiling method_descriptor

2019-05-22 Thread Robert Collins
Robert Collins added the comment: New changeset b892d3ea468101d35e2fb081002fa693bd86eca9 by Robert Collins (Jeroen Demeyer) in branch 'master': bpo-36994: add test for profiling method_descriptor with **kwargs (GH-13461) https://github.com/python/cpyt

[issue36656] Please add race-free os.link and os.symlink wrapper / helper

2019-06-03 Thread Robert Collins
Robert Collins added the comment: I'd like to add a few notes; please do consider Windows interactions here - Windows does not have the same model for inode replacement that Posix has. Secondly, I note that the thread model discussed here hasn't been particular well artic

[issue36656] Please add race-free os.link and os.symlink wrapper / helper

2019-06-07 Thread Robert Collins
Robert Collins added the comment: Thank you @Eryk -- ___ Python tracker <https://bugs.python.org/issue36656> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19645] decouple unittest assertions from the TestCase class

2019-06-13 Thread Robert Collins
Robert Collins added the comment: Sorry for the slow reply here; There are API breaks involved in any decoupling that involves the exception raising because of the failureException attribute. Something with signalling that can be adapted by other test suites etc might have merit, but I

[issue37262] Make unittest assertions staticmethods/classmethods

2019-06-13 Thread Robert Collins
Robert Collins added the comment: I think this is strictly redundant with that other ticket and I'm going to close it. That said, they need access to self.failureException. https://docs.python.org/3/library/unittest.html#unittest.TestCase.failureException -- stage: ->

[issue19645] decouple unittest assertions from the TestCase class

2019-06-13 Thread Robert Collins
Robert Collins added the comment: Right now that attribute could be set by each test separately, or even varied within a test. TBH I'm not sure that the attribute really should be supported; perhaps thinking about breaking the API is worth doing. But - what are we solving for here. T

[issue19645] decouple unittest assertions from the TestCase class

2019-07-09 Thread Robert Collins
Robert Collins added the comment: Ok so design wise - there is state on the TestCase that influences assertions; in potentially two ways. The first way is formatting - the amount of detail shown in long list comparisons etc. The second way I don't think we have at the moment

[issue19645] decouple unittest assertions from the TestCase class

2019-07-09 Thread Robert Collins
Change by Robert Collins : -- versions: +Python 3.9 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue19645> ___ ___ Python-bugs-list mailin

[issue19645] decouple unittest assertions from the TestCase class

2019-07-09 Thread Robert Collins
Robert Collins added the comment: Oh, I didn't mean to imply that these are the only options I'd support - just that these are the things I've thought through and that I think will all work well... I'm sure there are mo

[issue35145] sqlite3: optionally autoconvert table_info's DATETIME fields

2019-07-25 Thread Robert Pollak
Robert Pollak added the comment: Sorry for not providing a pull request yet. By the way, the "DB Browser for SQLite" (https://sqlitebrowser.org/) also interprets DATETIME fields correctly. (Could someone please change the "Stage" of this issue to "needs patc

[issue30699] Misleading class names in datetime.tzinfo usage examples

2017-06-18 Thread Robert Tasarz
New submission from Robert Tasarz: https://docs.python.org/3/library/datetime.html#datetime-objects gives in an example two classes named GMT1 and GMT2 subclassing tzinfo, defined with dst(…) methods returning one hour timedelta for summer periods. This is in conflict with naming, as GMT

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-30 Thread Robert Boehne
Robert Boehne added the comment: I'd love to have this fix backported to 3.5 and 3.6. It seems trivial to do, and I'd be happy to do it myself. -- nosy: +Robert Boehne ___ Python tracker <http://bugs.python.o

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-30 Thread Robert Boehne
Robert Boehne added the comment: I am having trouble getting things build still. The problem is that the build is using a naked "ld" to link, and it is picking 32-bit mode by default in my 64-bit acc build. (Itanium) IMO the problem is configure.ac:2467 which should look more li

[issue30819] Linking with 'ld -b' fails with 64-bit using HP compiler

2017-06-30 Thread Robert Boehne
Changes by Robert Boehne : -- components: Build nosy: Robert Boehne priority: normal severity: normal status: open title: Linking with 'ld -b' fails with 64-bit using HP compiler type: compile error versions: Python 3.7 ___ Python trac

[issue30819] Linking with 'ld -b' fails with 64-bit using Itanium HP compiler

2017-06-30 Thread Robert Boehne
New submission from Robert Boehne: Setting compiler flags to +DD64 produces 64-bit objects, but the linker does not understand this flag, so either you'll see an ld failure to recognize +DD64 at link time, or you'll see a failure later mixing 32 and 64-bit objects. I also modi

[issue30819] Linking with 'ld -b' fails with 64-bit using Itanium HP compiler

2017-07-05 Thread Robert Boehne
Changes by Robert Boehne : -- pull_requests: +2661 ___ Python tracker <http://bugs.python.org/issue30819> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30819] Linking with 'ld -b' fails with 64-bit using Itanium HP compiler

2017-07-06 Thread Robert Boehne
Changes by Robert Boehne : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue30819> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-07-06 Thread Robert Boehne
Changes by Robert Boehne : -- pull_requests: +2674 ___ Python tracker <http://bugs.python.org/issue30183> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31040] mimetypes.add_type should complain when you give it an undotted ext

2017-07-25 Thread Robert Jennings
Changes by Robert Jennings : -- nosy: +rcj ___ Python tracker <http://bugs.python.org/issue31040> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31115] Py3.6 threading/reference counting issues with `numexpr`

2017-08-03 Thread Robert McLeod
New submission from Robert McLeod: I'm working on the development branch of the `numexpr` module and I've run into some problems on Python 3.6, where I seem to get a variety of errors relating to threading or reference counting errors. This module is commonly used for accelerating

[issue29427] Option to skip padding for base64 urlsafe encoding/decoding

2017-08-03 Thread Robert Xiao
Robert Xiao added the comment: This sounds reasonable. I ran into a similar issue today trying to decode a JSON Web Key. Although I don't have any real say, I'd say that if you put together a patch it may have a higher chance to get reviewed. I wonder about the following: - What ab

[issue31115] Py3.6 threading/reference counting issues with `numexpr`

2017-08-04 Thread Robert McLeod
Robert McLeod added the comment: After building with Python3.7 I was able to get a useful error message that `PyMem` functions were being called inside GIL release. I will replace these with C-equivalents and try with Python 3.6. Fatal Python error: Python memory allocator called without

[issue31390] pydoc.Helper.keywords missing async and await

2017-09-07 Thread Robert Weiner
New submission from Robert Weiner: Shouldn't async and await be added to the pydoc keywords list? -- assignee: docs@python components: Documentation messages: 301657 nosy: docs@python, rsw priority: normal severity: normal status: open title: pydoc.Helper.keywords missing asyn

[issue31390] pydoc.Helper.keywords missing async and await

2017-09-07 Thread Robert Weiner
Changes by Robert Weiner : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue31390> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue35145] sqlite3: optionally autoconvert table_info's DATETIME fields

2018-11-25 Thread Robert Pollak
Robert Pollak added the comment: So my workaround is of course ``` table = pd.read_sql_query('select * from table', con) column_type = pd.read_sql_query('PRAGMA table_info("table")', con)['type'] datetimes = table.columns[column_type == 'D

[issue35970] no help flag in base64 util

2019-02-11 Thread Robert Kuska
New submission from Robert Kuska : I failed today to print help message for base64 utility without an error: $ python3 -m base64 -help option -h not recognized usage: /usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/base64.py [-d|-e|-u|-t] [file

[issue29907] Unicode encoding failure

2017-03-25 Thread Robert Baker
New submission from Robert Baker: Using Python 2.7 (not IDLE) on Windows 10. I have tried to use a Python 2.7 program to print the name of Czech composer Antonín Dvořák. I remembered to add the "u" before the string, but regardless of whether I encode the caron-r as a literal

[issue29977] re.sub stalls forever on an unmatched non-greedy case

2017-04-04 Thread Robert Lujo
New submission from Robert Lujo: Hello, I assume I have hit some bug/misbehaviour in re module. I will provide you "working" example: import re RE_C_COMMENTS= re.compile(r"/\*(.|\s)*?\*/", re.MULTILINE|re.DOTALL|re.UNICODE) text = "Special section /* valves:\

[issue29984] Improve test coverage for 'heapq' module

2017-04-04 Thread Robert Day
New submission from Robert Day: It's currently at 97%: Name Stmts Miss Cover Missing Lib/heapq.py 262 797% 187, 351-352, 375-376, 606-607 I'm submitting a Github PR to fix it. -- components: Test

[issue29984] Improve test coverage for 'heapq' module

2017-04-04 Thread Robert Day
Changes by Robert Day : -- pull_requests: +1165 ___ Python tracker <http://bugs.python.org/issue29984> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30221] Deprecate assertNotAlmostEqual

2017-05-01 Thread Robert Collins
Robert Collins added the comment: We've now spent more time debating the deprecation that we would have saved if it had been deprecated. Deprecations cost user good will. Whilst I very much want to delete all assertions in favour of matchers, which would allow composed symmetry rather

[issue30421] Relative include of config files

2017-05-21 Thread Robert Schindler
New submission from Robert Schindler: Hi, When one includes an argument file at the command line using argparse and that file contains another include statement, the inner include path is treated as relative to os.getcwd(), what is not the way people expect it to be, I guess. This patch

[issue30421] argparse: relative include of config files

2017-05-21 Thread Robert Schindler
Changes by Robert Schindler : -- title: Relative include of config files -> argparse: relative include of config files ___ Python tracker <http://bugs.python.org/issu

[issue30421] argparse: relative include of config files

2017-05-21 Thread Robert Schindler
Changes by Robert Schindler : Added file: http://bugs.python.org/file46882/argparse_relative_includes2.patch ___ Python tracker <http://bugs.python.org/issue30

[issue30421] argparse: relative include of config files

2017-05-21 Thread Robert Schindler
Robert Schindler added the comment: Hi Louie, oh, I didn't notice that. But that's great news. I'll send a PR soon. Best regards Robert -- ___ Python tracker <http://bugs.pyt

[issue30421] argparse: relative include of config files

2017-05-21 Thread Robert Schindler
Changes by Robert Schindler : -- pull_requests: +1792 ___ Python tracker <http://bugs.python.org/issue30421> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2019-02-27 Thread Robert Marshall
Robert Marshall added the comment: I have rebased this to recent master hash 53b9e1a1c1 and submitted a pull request. It built in my CI environment, so seems to be OK as far as compiling. I'll run the test suite against it later this evening when I have time to stand up a quick

[issue36240] Definitions of time

2019-03-08 Thread Robert Billing
New submission from Robert Billing : https://docs.python.org/3.7/library/time.html contains the text "UTC is Coordinated Universal Time (formerly known as Greenwich Mean Time, or GMT)". This is not strictly true. Referring to https://en.wikipedia.org/wiki/Coordinated_Universa

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2019-04-01 Thread Robert Marshall
Robert Marshall added the comment: The pull request is now ready for a review. Apologies for the delay - took me a bit longer to circle back on this than I would have liked. -- ___ Python tracker <https://bugs.python.org/issue13

[issue26903] ProcessPoolExecutor(max_workers=64) crashes on Windows

2019-04-17 Thread Robert Collins
Robert Collins added the comment: This is now showing up in end user tools like black: https://github.com/ambv/black/issues/564 -- nosy: +rbcollins versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.

[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Robert Boehne
New submission from Robert Boehne : build fails with: ./python -E ../../Python-3.7.3/setup.py build Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python -- components: Build messages: 341821 nosy: Robert Boehne priority: normal severity

[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Robert Boehne
Robert Boehne added the comment: robb@nepal:/raid/checkouts-raid/robb/nepal/build-py37$ gmake xlc_r -c -DNDEBUG -O -q64 -qlanglvl=extc99 -IObjects -IInclude -IPython -I. -I../../Python-3.7.3/Include -I/raid/checkouts-raid/robb/Python-2.7.15/Modules/zlib -DPy_BUILD_CORE -o Modules

[issue36843] AIX build fails with failure to get random numbers

2019-05-08 Thread Robert Boehne
Change by Robert Boehne : Added file: https://bugs.python.org/file48317/config.log.gz ___ Python tracker <https://bugs.python.org/issue36843> ___ ___ Python-bugs-list m

[issue36843] AIX build fails with failure to get random numbers

2019-05-08 Thread Robert Boehne
Robert Boehne added the comment: from pyconfig.h: /* Define to 1 if the getrandom() function is available */ /* #undef HAVE_GETRANDOM */ /* Define to 1 if the Linux getrandom() syscall is available */ /* #undef HAVE_GETRANDOM_SYSCALL */ /* Define to 1 if you have the header file

[issue36843] AIX build fails with failure to get random numbers

2019-05-08 Thread Robert Boehne
Robert Boehne added the comment: Opening /dev/urandom seems to return -1 (dbx) print buffer 0x09001000a5f49380 (dbx) print size 24 (dbx) print raise 0 (dbx) step stopped in dev_urandom at line 311 in file "/raid/checkouts-raid/robb/nepal/build-py37/../../Python-3.7.3/P

[issue36843] AIX build fails with failure to get random numbers

2019-05-08 Thread Robert Boehne
Robert Boehne added the comment: The call to open("/dev/urandom", flags) is returning -1, and errno is set to 22, EINVAL - Invalid argument. could the flags be set incorrectly? -- ___ Python tracker <https://bugs.python.o

[issue36843] AIX build fails with failure to get random numbers

2019-05-08 Thread Robert Boehne
Robert Boehne added the comment: Reading a few bytes from /dev/urandom via dd: robb@nepal:/raid/checkouts-raid/robb/nepal/build-py37$ dd if=/dev/urandom bs=256 count=1 ??S?(#L???~]?B?^??8?f&?_|Vi??@??[joG>St??;?$?1?*??24???RD?"

[issue36843] AIX build fails with failure to get random numbers

2019-05-10 Thread Robert Boehne
Robert Boehne added the comment: It doesn't look good: robb@nepal:/raid/checkouts-raid/robb/nepal$ xlc_r -q64 -O0 -g -qlanglvl=extc1x -o urandom urandom.c robb@nepal:/raid/checkouts-raid/robb/nepal$ ./urandom open O_RDONLY failed open O_RDONLY | O_CLOEXEC failed robb@nepal:/raid/chec

[issue36843] AIX build fails with failure to get random numbers

2019-05-10 Thread Robert Boehne
Robert Boehne added the comment: I wonder if there's anyone with AIX 7 who can attempt to reproduce this. We have another AIX machine, but it is down for the moment. I would like to eliminate a problem on this machine as the

[issue17048] calendar should understand full- vs. half-width characters

2018-01-28 Thread Robert Booth
Robert Booth added the comment: There is similar misaligned output in Japanese and Korean: Korean: 1월2월3월 월 화 수 목 금 토 일 월 화 수 목 금 토 일 월 화 수 목 금 토 일 1 2 3 4 5 6 71 2 3 4

[issue12568] Add functions to get the width in columns of a character

2018-01-29 Thread Robert Booth
Change by Robert Booth : -- nosy: +ishigoya ___ Python tracker <https://bugs.python.org/issue12568> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-10 Thread Robert Smallshire
Robert Smallshire added the comment: I've recently run into this issue impeding duck-typing between int and float again, when used in conjunction the int.__pow__, which may variously return an int or float depending on the value - not the type - of the arguments. This is succi

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Robert Smallshire
Robert Smallshire added the comment: To respond to Raymond's points: 1) Nobody is suggesting that every float method should also be available on int. Clearly some methods on float are not applicable to int. 2) Taken narrowly, you're right that is_integer() does nothing usef

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Robert Smallshire
Robert Smallshire added the comment: Apologies for the email splurge. That's the first and last time I'll use the email interface to bugs.python.org. -- ___ Python tracker <https://bugs.python.o

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-12 Thread Robert Smallshire
Robert Smallshire added the comment: Thank you Raymond. I'll work up a PR shortly. -- ___ Python tracker <https://bugs.python.org/issue26680> ___ ___ Pytho

[issue33074] dbm corrupts index on macOS (_dbm module)

2018-03-13 Thread Robert Xiao
New submission from Robert Xiao : Environment: Python 3.6.4, macOS 10.12.6 Python 3's dbm appears to corrupt the key index on macOS if objects >4KB are inserted. Code: <<<<<<<<<<< import dbm import contextlib with contextlib.closing(dbm.open(&#

[issue33074] dbm corrupts index on macOS (_dbm module)

2018-03-13 Thread Robert Xiao
Robert Xiao added the comment: (Note: the contextlib stuff is just for Python 2 compatibility, it's not necessary on Python 3). -- ___ Python tracker <https://bugs.python.org/is

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-15 Thread Robert Smallshire
Change by Robert Smallshire : -- pull_requests: +5885 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue26680> ___ ___ Python-

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-15 Thread Robert Smallshire
Robert Smallshire added the comment: Python in effect contains an example itself. The math.factorial(x) function contains what is in-effect an is_integer() check as a guard. -- ___ Python tracker <https://bugs.python.org/issue26

[issue26680] Incorporating float.is_integer into the numeric tower and Decimal

2018-03-15 Thread Robert Smallshire
Robert Smallshire added the comment: Serhiy, you asked for use cases, not uses. The former can exist without the latter. Use cases for is_integer() include all existing uses of x == int(x), or other less obvious means of detecting integer values. Folks try to use x.is_integer(), discover it

[issue33090] race condition between send and recv in _ssl with non-zero timeout

2018-03-16 Thread Robert Xiao
New submission from Robert Xiao : Environment: Several versions of Python (see below), macOS 10.12.6 The attached script creates an SSL echo server (fairly standard), connects to the server, and spawns a read and write thread. The write thread repeatedly shovels data into the connection

[issue33021] Some fstat() calls do not release the GIL, possibly hanging all threads

2018-03-19 Thread Robert Collins
Robert Collins added the comment: Re: backporting this. I think backporting to 3.6/3.7 makes a lot of sense - bugfix and prerelease respectively. For 2.7, this bug has been around for ages, the patch is small, and I have no objection - but the RM has already said no, so I guess not happening

<    1   2   3   4   5   6   7   8   9   10   >