[issue1529353] Squeezer - squeeze large output in the interpreter

2018-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3. It is idlelib's TextView, not tkTextView. If it is not 'good enough', we might improve it. 5. Look at former extensions, like codecontext.py, corresponding parts of editor.py. The key thing for immediate effect is the class reload method, called when

[issue1529353] Squeezer - squeeze large output in the interpreter

2018-06-13 Thread Tal Einat
Tal Einat added the comment: Additional feature discussion: > 10. The button for 'a'*1 says '(nn lines)'. It should say '(1 > chars)' or '(1 line, 1 chars)'. IMO that's too much, it leads to "information overload". Since the number of lines shown is the number of "wrapped"

[issue1529353] Squeezer - squeeze large output in the interpreter

2018-06-13 Thread Tal Einat
Tal Einat added the comment: Once the ToolTip is ready, I'll begin working on this. Summarizing what appear to be agreed-upon changes to be made (keeping original numbering for reference): 1. Avoid expanding large output accidentally / too easily. Current suggestions are expanding part of

[issue33854] doc Add PEP title in seealso of Built-in Types

2018-06-13 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7302 stage: -> patch review ___ Python tracker ___ ___

[issue33854] doc Add PEP title in seealso of Built-in Types

2018-06-13 Thread Andrés Delfino
New submission from Andrés Delfino : Add PEP 461 title to Built-in Types seealso. -- assignee: docs@python components: Documentation messages: 319493 nosy: adelfino, docs@python priority: normal severity: normal status: open title: doc Add PEP title in seealso of Built-in Types type:

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-13 Thread Damon Atkins
Damon Atkins added the comment: >From https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425.aspx Note Python is using CreateProcess(), consider using CreateProcessW() The Unicode version of this function, CreateProcessW, can modify the contents of this string. Therefore, this

[issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ

2018-06-13 Thread Noah Haasis
Change by Noah Haasis : -- keywords: +patch pull_requests: +7300 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33726] Add short descriptions to PEP references in seealso

2018-06-13 Thread Andrés Delfino
Andrés Delfino added the comment: Yeah, I think you are right. The motivation for this PR was to not have two PEPs references in the same line, because, IMHO, it looks somewhat weird. Now, they look like: "See also: PEP 3115 - Metaclasses in Python 3 PEP 3129 - Class Decorators" Would a

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7299 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33726] Add short descriptions to PEP references in seealso

2018-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: My personal opinion is that the PEP title should suffice and that a person can click the link for more detail. -- nosy: +rhettinger ___ Python tracker

[issue27575] dict viewkeys intersection slow for large dicts

2018-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Is there anything helpful I can do to help close this issue? > Maybe convert it into a github PR? Yes, that would be nice. Also, please verify that the test cases cover all the code paths. -- ___ Python

[issue33462] reversible dict

2018-06-13 Thread Eric Snow
Eric Snow added the comment: Would it be possible to re-use the __reverse__() support that exists for OrderedDict? Doing so could help avoid adding a bunch of duplicated code. -- nosy: +eric.snow ___ Python tracker

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: > Thanks Gianpaolo for pushing for this. Great job. I concur: great job! Cool optimization. -- ___ Python tracker ___

[issue27575] dict viewkeys intersection slow for large dicts

2018-06-13 Thread Mali Akmanalp
Change by Mali Akmanalp : -- nosy: +Mali Akmanalp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, as I wrote on GitHub. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-06-13 Thread Marcos Dione
Marcos Dione added the comment: Thanks Gianpaolo for pushing for this. Great job. -- ___ Python tracker ___ ___ Python-bugs-list

[issue33853] test_multiprocessing_spawn is leaking memory

2018-06-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33839] IDLE tooltips.py: refactor and add docstrings and tests

2018-06-13 Thread Tal Einat
Tal Einat added the comment: Attaching coverage report for tooltip.py. The uncovered lines are required to avoid exceptions when closing a windows with a tooltip shown. These are not currently reproduced by test_tooltip.py because my attempts to exercise them in automated tests have all

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2018-06-13 Thread Ethan Smith
Ethan Smith added the comment: When working on clang-cl support, I was advised here https://reviews.llvm.org/D47672#1131325 that we may be using hardware lock elision incorrectly. Copying from there: > I also spoke to Andi Kleen here at Intel to make sure I got these inline > assembly

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Serhiy commented in the PR: >__GLIBC__ and __GLIBC_MINOR__ give you the version of glibc used at >compile >time. But can not the different version be dynamically linked at >run time? Should we use the list approach always to avoid problems with this?

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +7298 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-13 Thread Berker Peksag
Berker Peksag added the comment: That's even better! :) Please submit your work as a pull request. Did you take a look at https://github.com/Pylons/webob/pull/300 as well? Can we use the test in the PR? Is it possible to adapt it solve both this and WebOb issues? --

[issue26544] platform.libc_ver() returns incorrect version number

2018-06-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue26544] platform.libc_ver() returns incorrect version number

2018-06-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +7297 stage: -> patch review ___ Python tracker ___ ___

[issue26544] platform.libc_ver() returns incorrect version number

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that the strategy used for platform.libc_ver() is not perfect. But the implementation has bugs that make it useless. The following PR fixes two bugs in the implementation: 1) Version numbers compared as strings. 2) Versions that are located on the

[issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-06-13 Thread Ned Deily
Ned Deily added the comment: > For a recent example of change releasing the GIL, see bpo-32186 which has > been backported up to 2.7. Playing Devil's Advocate here: yes, but that was a far simpler and less extensive change. bpo-32186 did not change configure.ac and pyconfig.h.in and I

[issue23869] Initialization is being done in PyType_GenericAlloc

2018-06-13 Thread Eric Snow
Eric Snow added the comment: As to the docs, the entry for tp_alloc in Doc/c-api/typeobj.rst does not mention initialization. The tp_new entry does say that it should call tp_alloc and then do the minimum initialization possible. That implies (weakly) that tp_alloc should do the minimum

[issue23869] Initialization is being done in PyType_GenericAlloc

2018-06-13 Thread Eric Snow
Eric Snow added the comment: Thanks for bringing this up, Hristo! "Initialization" (in this context, and hopefully everywhere in the C-API docs) is referring specifically to setting fields on a custom instance, much as you would expect in __init__ (or sometimes even __new__). In that

[issue17045] Improve C-API doc for PyTypeObject

2018-06-13 Thread Eric Snow
Eric Snow added the comment: @Cheryl, thanks for pointing that out. I'll take a look. -- ___ Python tracker ___ ___

[issue31181] Segfault in gcmodule.c:360 visit_decref (PyObject_IS_GC(op))

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: I am sorry, but without further information, we cannot fix your issue. Usually, a crash in visit_decref() means that a C extension corrupted a random Python object. Try to run your test on Python 3 using PYTHONMALLOC=debug. -- nosy: +vstinner

[issue33735] test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: bpo-33853 has been marked as a duplicate this bug. -- ___ Python tracker ___ ___

[issue33853] test_multiprocessing_spawn is leaking memory

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-33735. -- nosy: +vstinner resolution: -> duplicate superseder: -> test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7 ___ Python tracker

[issue33853] test_multiprocessing_spawn is leaking memory

2018-06-13 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : The test `test_multiprocessing_spawn` is leaking memory according to the x86 Gentoo Refleaks 3.x buildbot: x86 Gentoo Refleaks 3.x http://buildbot.python.org/all/#/builders/1/builds/253 test_multiprocessing_spawn leaked [1, 2, 1] memory blocks,

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-06-13 Thread Eric Snow
Eric Snow added the comment: I've re-enabled the subinterpreter tests, but left the one problem test (ChannelTests.test_run_string_arg_resolved) disabled. I also changed all uses of %lld to use PRId64 instead. (Thanks, Victor, for the suggestion.) The buildbots look good. I'll keep an

[issue27575] dict viewkeys intersection slow for large dicts

2018-06-13 Thread Forest
Forest added the comment: Is there anything helpful I can do to help close this issue? Maybe convert it into a github PR? Since Raymond asked for cases where this issue is a problem, I'll add the case that brought me here. I have an application where I need to do thousands of intersections

[issue33839] IDLE tooltips.py: refactor and add docstrings and tests

2018-06-13 Thread Tal Einat
Tal Einat added the comment: The refactoring is done, manual testing with the htests works, and I've added automated tests with ~92% code coverage. Terry, I'd be happy for your review! -- ___ Python tracker

[issue33839] IDLE tooltips.py: refactor and add docstrings and tests

2018-06-13 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +7296 stage: test needed -> patch review ___ Python tracker ___ ___

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-13 Thread Jan Lachnitt
Jan Lachnitt added the comment: @eryksun: Sorry for my late reply, apparently I did not have time to reply in 2017. I see your point, but still I think that Python is conceptually multi-platform, so its behavior on Linux and Windows should be as much consistent as possible. I am not the

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-06-13 Thread Eric Snow
Eric Snow added the comment: New changeset ab4a1988fd4347484a7928394b94e2cdf5f8f2a7 by Eric Snow in branch 'master': bpo-33615: Re-enable subinterpreter tests. (#7552) https://github.com/python/cpython/commit/ab4a1988fd4347484a7928394b94e2cdf5f8f2a7 --

[issue33852] doc Remove parentheses from sequence subscription description

2018-06-13 Thread Andrés Delfino
Andrés Delfino added the comment: Thanks, Serhiy! Didn't know I should trace the LaTeX version. Guido, I'm adding you because it seems you authored or at least agreed on the current wording. Do you believe this proposal for improvement makes sense? -- nosy: +gvanrossum

[issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ

2018-06-13 Thread Zachary Ware
Zachary Ware added the comment: Certainly! Have a look at the devguide to get started. -- ___ Python tracker ___ ___

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have updated the PR with a workaround. -- ___ Python tracker ___ ___ Python-bugs-list

[issue33852] doc Remove parentheses from sequence subscription description

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This wording was introduced in 3a0ad6089bccf0b167fe8ebd2457fedec8f851a3. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue33852] doc Remove parentheses from sequence subscription description

2018-06-13 Thread Andrés Delfino
Change by Andrés Delfino : -- title: doc Remove parentheses from -> doc Remove parentheses from sequence subscription description ___ Python tracker ___

[issue33850] Json.dump() bug when using generator

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue27613. -- nosy: +serhiy.storchaka resolution: -> duplicate status: open -> closed superseder: -> Empty iterator with fake __len__ is rendered as a single bracket ] when using json's iterencode

[issue33852] doc Remove parentheses from

2018-06-13 Thread Andrés Delfino
New submission from Andrés Delfino : I think the idea of having "list" inside parentheses is to document that in case of sequences, only "one-expression" expression lists are legal. That being said, IMHO, explaining that in actual prose would be better, but removing the parentheses (taking

[issue33850] Json.dump() bug when using generator

2018-06-13 Thread Walter Dörwald
Walter Dörwald added the comment: The problem here is that StreamArray lies about the length of the iterator. This confuses json.encoder._make_iterencode._iterencode_list(), (which is called by json.dump()), because it first does a check for "if not lst" and then assumes in the loop that it

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: > If we want to support older versions of glibc a temporary (and somewhat > inelegant) workaround is storing the temporaries in a list that the caller > passes and destroy the list after calling `posix_spawn`. Creating a copy seems to be a reasonable

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: If we want to support older versions of glibc a temporary (and somewhat inelegant) workaround is storing the temporaries in a list that the caller passes and destroy the list after calling `posix_spawn`. --

[issue26544] platform.libc_ver() returns incorrect version number

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I need the glibc version for skipping a test if run with glibc containing a bug (see issue31630 and issue33630). platform.libc_ver() is not usable, it always returns '2.9' (the version that has bugs), while the actual version on my computer is '2.25' (the

[issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring

2018-06-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this fix is worth cherry-picking in 3.7.0. -- nosy: +ned.deily, serhiy.storchaka priority: normal -> release blocker versions: +Python 3.8 ___ Python tracker

[issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring

2018-06-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +7294 stage: -> patch review ___ Python tracker ___ ___

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: The latest stable Fedora's have glibc >= 2.26 Maybe the buildbot needs to be updated? -- nosy: +cstratak ___ Python tracker ___

[issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring

2018-06-13 Thread Marius Gedminas
New submission from Marius Gedminas : Python 3.7 removes an isinstance(node.body[0], Expr) check ast.get_docstring() that makes it crash when you pass in AST nodes of modules or functions that do not have docstrings. Steps to reproduce: - git clone https://github.com/mgedmin/findimports -

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-06-13 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- pull_requests: +7293 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in the interpreter

2018-06-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: 6. Sorry about being so vague. I was referring to the configuration page having an option to hide/show the tooltip. I wasn't sure if that was a necessary config option. -- ___ Python tracker

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-13 Thread Chris Eykamp
Chris Eykamp added the comment: I've already got a PR based on the patch listed under the Files section (it's prepared, not yet submitted), but if you want to do something more, I'll step back and let you do it. -- ___ Python tracker

[issue33351] Support compiling with clang-cl on Windows

2018-06-13 Thread Ethan Smith
Change by Ethan Smith : -- pull_requests: +7292 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 142e3c08a40c75b5788474b0defe7d5c0671f675 by Victor Stinner in branch '3.6': [3.6] bpo-32356: idempotent pause_/resume_reading (GH-4914) (GH-7629) https://github.com/python/cpython/commit/142e3c08a40c75b5788474b0defe7d5c0671f675 --

[issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: For a recent example of change releasing the GIL, see bpo-32186 which has been backported up to 2.7. -- ___ Python tracker ___

[issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this change is too large for bugfix. It is a performance enhancement, but doing it right needs non-trivial rewriting of the code. -- ___ Python tracker

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-13 Thread Damon Atkins
Damon Atkins added the comment: See also https://bugs.python.org/msg262399 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-13 Thread Damon Atkins
Damon Atkins added the comment: I see from this. That this is still an issue https://github.com/python/cpython/blob/master/Lib/subprocess.py#L1146 Is it not a solution to save current directory location chdir(cwd) before calling _winapi.CreateProcess() restore the original directory. This

[issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: Note: Python 2.7 doesn't have the test_discovery_from_dotted_namespace_packages() test, so no backport to 2.7 is needed. -- nosy: +vstinner ___ Python tracker

[issue32356] asyncio: Make transport.pause_reading()/resume_reading() idempotent; add transport.is_reading()

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 142e3c08a40c75b5788474b0defe7d5c0671f675 by Victor Stinner in branch '3.6': [3.6] bpo-32356: idempotent pause_/resume_reading (GH-4914) (GH-7629) https://github.com/python/cpython/commit/142e3c08a40c75b5788474b0defe7d5c0671f675 --

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-13 Thread Berker Peksag
Berker Peksag added the comment: Thank you for the ping, Chris. I will try to combine Bert's and Julien's patches and prepare a PR this weekend. -- versions: +Python 3.8 -Python 3.5 ___ Python tracker

[issue33850] Json.dump() bug when using generator

2018-06-13 Thread Eric V. Smith
Eric V. Smith added the comment: You should ask your question on this mailing list: https://mail.python.org/mailman/listinfo/python-list The bug tracker is not a place for asking how to use Python. If you actually find a bug in Python, you can re-open this issue. I do not believe that what

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-13 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33844] Writing capital letters with csvwriter.writerow changes the csv file format

2018-06-13 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: works for me -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31378] Missing documentation for sqlite3.OperationalError

2018-06-13 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31378] Missing documentation for sqlite3.OperationalError

2018-06-13 Thread miss-islington
miss-islington added the comment: New changeset eea4f149717cc83038641ca53f6f74be785de6f1 by Miss Islington (bot) in branch '3.7': bpo-31378: Document sqlite3.OperationalError exception (GH-7677) https://github.com/python/cpython/commit/eea4f149717cc83038641ca53f6f74be785de6f1 --

[issue31378] Missing documentation for sqlite3.OperationalError

2018-06-13 Thread miss-islington
miss-islington added the comment: New changeset 961332dfd3dbff4c63ed4d9f8b5de937aa63475b by Miss Islington (bot) in branch '3.6': bpo-31378: Document sqlite3.OperationalError exception (GH-7677) https://github.com/python/cpython/commit/961332dfd3dbff4c63ed4d9f8b5de937aa63475b --

[issue31378] Missing documentation for sqlite3.OperationalError

2018-06-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +7291 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31378] Missing documentation for sqlite3.OperationalError

2018-06-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +7290 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31378] Missing documentation for sqlite3.OperationalError

2018-06-13 Thread Berker Peksag
Berker Peksag added the comment: New changeset 71ede00f140fa6b67a8ac17df68b80079efa8dc2 by Berker Peksag (Zackery Spytz) in branch 'master': bpo-31378: Document sqlite3.OperationalError exception (GH-7677) https://github.com/python/cpython/commit/71ede00f140fa6b67a8ac17df68b80079efa8dc2

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-13 Thread Chris Eykamp
Chris Eykamp added the comment: This also manifests itself when using web.py: if the underlying code throws an exception, this is emitted: File "/usr/local/lib/python3.5/dist-packages/web/webapi.py", line 364, in input out = rawinput(_method) File

[issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ

2018-06-13 Thread Jason
Jason added the comment: Hey Zach, Can I get this one? I haven't contributed anything yet. Cheers, Jason -- nosy: +codecamelot ___ Python tracker ___

[issue33850] Json.dump() bug when using generator

2018-06-13 Thread Clément Boyer
New submission from Clément Boyer : I use a class to write easily json when having generator. ```python class StreamArray(list): def __init__(self, generator): super().__init__() self.generator = generator def __iter__(self): return self.generator def

[issue33844] Writing capital letters with csvwriter.writerow changes the csv file format

2018-06-13 Thread Stefan Vasilev
Stefan Vasilev added the comment: Ah, I see now. What a coincidence :) Thank you for explaining that! -- resolution: not a bug -> works for me ___ Python tracker ___

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Xiang! Thus this is a bug in old glibc. It was fixed in glibc 2.20: https://sourceware.org/bugzilla/show_bug.cgi?id=17048 . What should we do with this? Add a workaround for the bug (this will complicate the code)? Or skip the test on glibc

[issue33462] reversible dict

2018-06-13 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Thanks INADA, I made the necessary changes to _collections_abc. Is there anything that I should change? -- ___ Python tracker ___

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Xiang Zhang
Xiang Zhang added the comment: Serhiy, you need to check an early version, for example 2.17: https://github.com/bminor/glibc/blob/glibc-2.17/posix/spawn_faction_addopen.c -- ___ Python tracker

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm puzzled. It is not just documented that posix_spawn_file_actions_addopen() should make a copy, but the glibc implementation actually makes it: see for example

[issue1529353] Squeezer - squeeze large output in the interpreter

2018-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: 11. Right click should bring up a custom context menu. It can have 'cut' (delete), 'copy' (to clipboard, eliminating middle click need), 'edit' (IDLE editor if it seems ok), 'view' (ditto for TextView). Is there a standard for simulating left and right

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Xiang Zhang
Xiang Zhang added the comment: I checked glibc changelog and the copy behaviour is not implemented until 2014, glic 2.20. There is a CVE-2014-4043. My environment has glic 2.17 which seems still suffer the problem. -- ___ Python tracker

[issue1529353] Squeezer - squeeze large output in the interpreter

2018-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks, Cheryl, very helpful. I have since played around with the patch. Some context first. I want to make improving Shell a major focus for a while. Part of that is handling problematic output. One solution is to remove it. For instance, if I enter a

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Xiang Zhang
Xiang Zhang added the comment: I encounter the same failure when running test_posix suite with a debug build Python. [root@SZX1000328166 cpython]# ./python -m test test_posix Run tests sequentially 0:00:00 load avg: 0.91 [1/1] test_posix Warning -- files was modified by test_posix Before:

[issue31378] Missing documentation for sqlite3.OperationalError

2018-06-13 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list