[issue35674] Expose os.posix_spawnp()

2019-01-08 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I would go with exposing posix_spawnp() as a separate function to rule out any arguments. I am working on this in this regard unless anyone has a different view. -- nosy: +nanjekyejoannah ___ Python tracker

[issue35673] Loader for namespace packages

2019-01-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: The background for all of this: I'm currently rewriting modulegraph (https://pypi.org/project/modulegraph/) to use importlib instead of its own implementation of the import mechanism. I currently detect PEP420 style namespace packages, but I'm not sure if I

[issue35673] Loader for namespace packages

2019-01-08 Thread Eric V. Smith
Eric V. Smith added the comment: I think exposing _NamespaceLoader as NamespaceLoader and registering the ABC make sense. That would make this in to a feature request for 3.8. -- ___ Python tracker

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-08 Thread Vladimir Perić
Vladimir Perić added the comment: Thank you all for this expeditive help. Sorry for taking your time. I will remove bad certificates from my machine. Thanks again. I will try to close this one. -- stage: -> resolved status: open -> closed ___ Pytho

[issue35568] Expose the C raise() function in the signal module, for use on Windows

2019-01-08 Thread miss-islington
miss-islington added the comment: New changeset c24c6c2c9357da99961bf257078240529181daf3 by Miss Islington (bot) (Vladimir Matveev) in branch 'master': bpo-35568: add 'raise_signal' function (GH-11335) https://github.com/python/cpython/commit/c24c6c2c9357da99961bf257078240529181daf3 ---

[issue35568] Expose the C raise() function in the signal module, for use on Windows

2019-01-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35684] Windows "embedded" Python downloads are malformed

2019-01-08 Thread Nathaniel Smith
New submission from Nathaniel Smith : ~$ unzip -l /tmp/python-3.7.2-embed-amd64.zip Archive: /tmp/python-3.7.2-embed-amd64.zip Length DateTimeName - -- - 99856 2018-12-23 23:10 python.exe 98320 2018-12-23 23:10 pythonw.exe 3780624 201

[issue35684] Windows "embedded" Python downloads are malformed

2019-01-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems this is fixed as part of related issue issue35596 -- nosy: +xtreak ___ Python tracker ___ ___

[issue35684] Windows "embedded" Python downloads are malformed

2019-01-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings' ___

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Steve Dower
Steve Dower added the comment: New changeset 872bd2b57ce8e4ea7a54acb3934222c0e4e7276b by Steve Dower in branch 'master': bpo-35596: Use unchecked PYCs for the embeddable distro to avoid zipimport restrictions (GH-11465) https://github.com/python/cpython/commit/872bd2b57ce8e4ea7a54acb3934222c

[issue35684] Windows "embedded" Python downloads are malformed

2019-01-08 Thread Nathaniel Smith
Nathaniel Smith added the comment: You're right, good catch! -- resolution: duplicate -> fixed stage: resolved -> superseder: Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings' ->

[issue35684] Windows "embedded" Python downloads are malformed

2019-01-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- stage: -> resolved superseder: -> Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings' ___ Python tracker

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread miss-islington
miss-islington added the comment: New changeset 69f64b67e43c65c2178c865fd1be80ed07f02d3c by Miss Islington (bot) in branch '3.7': bpo-35596: Use unchecked PYCs for the embeddable distro to avoid zipimport restrictions (GH-11465) https://github.com/python/cpython/commit/69f64b67e43c65c2178c86

[issue35656] More matchers in unittest.mock

2019-01-08 Thread Petter S
Petter S added the comment: Yes, something like this: class APPROXIMATE: """Takes a floating point number and implements approximate equality.""" def __init__(self, value): self.value = value def __eq__(self, other): return abs(self.value -

[issue35656] More matchers in unittest.mock

2019-01-08 Thread Yash Aggarwal
Yash Aggarwal added the comment: I feel it would be better to have tolerance as an argument. -- nosy: +FR4NKESTI3N ___ Python tracker ___ _

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-08 Thread Christian Heimes
Christian Heimes added the comment: I also checked how other implementations deal with invalid DER encoding. NSS 3.41, Firefox, and Chromium accept the certifiate. NSS shows the serial number as "102 (0x66)" Firefox and Chromium display the serial number as "00:00:00:66". $ echo "password" >

[issue35674] Expose os.posix_spawnp()

2019-01-08 Thread STINNER Victor
STINNER Victor added the comment: I'm ok to expose posix_spawnp() as os.posix_spawnp(). Even if we expose posix_spawnp() as os.posix_spawnp(), we can still reconsider to add posix_spawnp() feature into os.posix_spawn() as an optional keyword parameter later :-) Honestly, I have no strong pre

[issue35685] Add samples on patch.dict of the use of decorator and in class

2019-01-08 Thread Emmanuel Arias
New submission from Emmanuel Arias : Hi! I create this PR to add a samples of the use of patch.dict with decorator on method and class. I think that is a good improve because the doc mentions the use of patch.dict with decorator on method and class but don't show any samples. Other, questi

[issue35685] Add samples on patch.dict of the use of decorator and in class

2019-01-08 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +10959 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35685] Add samples on patch.dict of the use of decorator and in class

2019-01-08 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch, patch, patch pull_requests: +10959, 10960, 10961 stage: -> patch review ___ Python tracker ___

[issue35685] Add samples on patch.dict of the use of decorator and in class

2019-01-08 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch, patch pull_requests: +10959, 10960 stage: -> patch review ___ Python tracker ___ __

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10962 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10962, 10963 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10962, 10963, 10964 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-08 Thread STINNER Victor
STINNER Victor added the comment: It took me 1 year, a few sleepless nights, multiple attempts to understand the leak, but I eventually found it! WSASend() doesn't release the memory if it fails immediately. I wrote PR 11469 to fix the memory leak. ReadFile() has the same bug, I also fixed i

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +10965, 10966 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +10965 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset a234e148394c2c7419372ab65b773d53a57f3625 by Victor Stinner in branch 'master': bpo-32710: Fix leak in Overlapped_WSASend() (GH-11469) https://github.com/python/cpython/commit/a234e148394c2c7419372ab65b773d53a57f3625 -- ___

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +10965, 10966, 10967 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-08 Thread STINNER Victor
STINNER Victor added the comment: I ran test_asyncio refleak hunting on Windows, and there is no more leak! vstinner@WIN C:\vstinner\python\master>python -m test test_asyncio -R 3:3 (...) Total duration: 13 min 24 sec Tests result: SUCCESS I will close this PR once the 3.7 backport is merged

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-08 Thread miss-islington
miss-islington added the comment: New changeset 88ad48bc98980a40591cc5521703dbb0ad3a9b17 by Miss Islington (bot) in branch '3.7': bpo-32710: Fix leak in Overlapped_WSASend() (GH-11469) https://github.com/python/cpython/commit/88ad48bc98980a40591cc5521703dbb0ad3a9b17 -- nosy: +miss-i

[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

2019-01-08 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35198] Build issue while compiling cpp files in AIX

2019-01-08 Thread Ayappan
Ayappan added the comment: Not sure what went wrong here. I used gcc & g++ and didn't hit this issue. -- ___ Python tracker ___ ___

[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2019-01-08 Thread Marc Schlaich
Marc Schlaich added the comment: Davin, why isn't just one of the simple one-line patches applied. This would be much more reasonable instead of closing this as won't fix. This is a really ugly bug and it took me hours to find the cause... -- nosy: +schlamar ___

[issue33834] test_asyncio: test_sendfile_close_peer_in_the_middle_of_receiving() of ProactorEventLoop logs InvalidStateError error

2019-01-08 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-35682 and fixed by: commit 80fda712c83f5dd9560d42bf2aa65a72b18b7759 Author: Victor Stinner Date: Tue Jan 8 02:46:59 2019 +0100 bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462) bpo-32622, bpo-35682: Fix async

[issue35671] reserved identifier violation

2019-01-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: (changed the type from "security" because this is not a security incident). Both ISO C and C++ define "reserved identifiers" that are reserved for the implementation and where use in programs is undefined behaviour. However, these definitions reserve *all*

[issue33944] Deprecate and remove pth files

2019-01-08 Thread Chris Billington
Chris Billington added the comment: I develop analysis software for physics research, in which the user analyses their data using Python that they write themselves (my application functions as a kind of scheduler for when the analysis scripts should run and with what input). This software ha

[issue35686] memoryview contextmanager causing strange crash

2019-01-08 Thread Thomas Waldmann
New submission from Thomas Waldmann : See there: https://github.com/borgbackup/borg/pull/4247 I did the first changeset after seeing some strange exception popping up which it was handling another exception - which I assumed was related to memoryview.release not being called in the original

[issue35686] memoryview contextmanager causing strange crash

2019-01-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Can you please add a simple reproducer in Python with what the test is trying to do without dependencies from the project? perhaps with a sample of relevant files used by the test in Travis. -- nosy: +xtreak

[issue35686] memoryview contextmanager causing strange crash

2019-01-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue35686] BufferError with memory.release()

2019-01-08 Thread Stefan Krah
Stefan Krah added the comment: We use "crash" for segmentation fault, but this appears to be a regular traceback that includes BufferError. The BufferError message appears to be from mmapmodule.c. -- title: memoryview contextmanager causing strange crash -> BufferError with memory.r

[issue35686] BufferError with memory.release()

2019-01-08 Thread Thomas Waldmann
Thomas Waldmann added the comment: working, but potentially problematic because .release is not always called (e.g. in case of an exception). -- Added file: https://bugs.python.org/file48031/issue35686a.py ___ Python tracker

[issue35686] BufferError with memory.release()

2019-01-08 Thread Stefan Krah
Stefan Krah added the comment: The behavior seems to be correct to me: If there are exports, the memoryview cannot be released. The application needs to ensure that release() is not called when there are exports left. -- ___ Python tracker

[issue35686] BufferError with memory.release()

2019-01-08 Thread Thomas Waldmann
Thomas Waldmann added the comment: with context manager, does not work. -- Added file: https://bugs.python.org/file48032/issue35686b.py ___ Python tracker ___

[issue35686] BufferError with memory.release()

2019-01-08 Thread Thomas Waldmann
Thomas Waldmann added the comment: with try/finally: works. -- Added file: https://bugs.python.org/file48033/issue35686c.py ___ Python tracker ___

[issue35686] BufferError with memory.release()

2019-01-08 Thread Thomas Waldmann
Thomas Waldmann added the comment: hmm, issue tracker does not make it easy to see which file was uploaded for which comment, so: a: original code, works, potentially problematic exception handling (memoryview not always being released) b: using the memoryview context manager, fails with Bu

[issue35686] BufferError with memory.release()

2019-01-08 Thread Thomas Waldmann
Thomas Waldmann added the comment: I see 2 issues here: 1. I would expect that the CM approach (b) behaves equivalent to try/finally (c), but it does not and even causes an exception. 2. The traceback given in the BufferError (in (b)) is misleading, it points to the "print", but should rath

[issue2506] Add mechanism to disable optimizations

2019-01-08 Thread Brett Cannon
Brett Cannon added the comment: If someone can get a PR into a state that is acceptable, then this can be resolved, Arthur. But at this point that hasn't occurred. -- ___ Python tracker _

[issue35676] unittest assert helper methods have incorrect signature in docs

2019-01-08 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +michael.foord, rbcollins ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue35683] Enable manylinux1 builds on Pipelines for CI testing

2019-01-08 Thread Brett Cannon
Change by Brett Cannon : -- title: Enable manylinux1 builds on Pipelines -> Enable manylinux1 builds on Pipelines for CI testing ___ Python tracker ___ ___

[issue35486] subprocess module import hooks breaks back compatibility

2019-01-08 Thread David Wilson
David Wilson added the comment: Hi Nick, The purpose of ModuleNotFoundError is clear and unrelated to the problem documented here. The problem is that due to the introduction of ModuleNotFoundError, ImportError's semantics have been changed within a minor release in a breaking, backwards-in

[issue35686] BufferError with memory.release()

2019-01-08 Thread Stefan Krah
Stefan Krah added the comment: Well, the problem in b) is that data[:2] creates a new memoryview, so the underlying ManagedBufferObject now has two exports: - One from the context manager. - The second from the slice. So memoryview.__exit__() decrements on export, but the second one is h

[issue35686] BufferError with memory.release()

2019-01-08 Thread Stefan Krah
Stefan Krah added the comment: s/on export/one export/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35686] BufferError with memory.release()

2019-01-08 Thread Stefan Krah
Stefan Krah added the comment: Or, obviously: with open(fn, 'rb') as fd: with mmap.mmap(fd.fileno(), 0, access=mmap.ACCESS_READ) as mm: with memoryview(mm)[:2] as data: print(data) -- ___ Python tracker

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Steve Dower
Steve Dower added the comment: This is now resolved, and only through modifying the build scripts. Which means I can take the existing build and republish a fixed embeddable package without needing a new release. Unless Ned would prefer a complete release? -- __

[issue6143] IDLE - an extension to clear the shell window

2019-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: An SO question today got me to look more at SO questions and discussion, and this appears to be the most requested feature. https://stackoverflow.com/questions/1432480/any-way-to-clear-pythons-idle-window - 2009, 129 upvotes, 32 answers (not all read yet) .

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Ned Deily
Ned Deily added the comment: It seems like this need not trigger a complete new release and, ATM, I'm not aware of any other showstopper problems that would otherwise trigger an early 3.7.3. One question would be how and where to document this change in the build artificat. Suggestions, St

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread STINNER Victor
STINNER Victor added the comment: > This is now resolved, and only through modifying the build scripts. Which > means I can take the existing build and republish a fixed embeddable package > without needing a new release. Since Python itself doesn't make, I'm ok to not change the Python rele

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Ned Deily
Ned Deily added the comment: CDN caching on python.org is not a problem; we know how to clear out the cache. But I also strongly dislike silent updates of released files so I agree that names should be changed if we do end up agreeing to replace one or more files. -- __

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Steve Dower
Steve Dower added the comment: I know how to purge the CDN cache, so that's not an issue. And there's no good reason to leave the old one up. Perhaps we can just add a note to the download page and I'll post on a couple of lists? This is basically a product recall, and those are usually adve

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Steve Dower
Steve Dower added the comment: I can add a .post1 into the version number in the zip file? Still want to take the old one down though, and if anyone is using any sort of script to get this file then it'll be just as annoying for the link to be broken as getting a broken download. --

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Steve Dower
Steve Dower added the comment: I can add ".post1" to the version number in the file name, but I'd still want to take down the broken one. And anyone who's generating the download URL will get a broken link, which IMO is just as bad as a broken download when we could fix it. --

[issue35687] The unittest module diff is missing/forgetting/not putting newline before + and ? for some inputs

2019-01-08 Thread Addons Zz
New submission from Addons Zz : Create this program and run with `Python 3.6.3`: ```python import unittest class StdErrUnitTests(unittest.TestCase): def test_function_name(self): expected = "testing.main_unit_tests.test_dictionaryBasicLogging:416 - dictionary\n" \

[issue2517] Error when printing an exception containing a Unicode string

2019-01-08 Thread Piotr Dobrogost
Change by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Ned Deily
Ned Deily added the comment: I think we should change the name (post1 is fine), delete the original file, update the file name link in the release page (https://www.python.org/downloads/release/python-372/) to use the new name, and add a sentence or two to the release page describing the cha

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be weird if building from sources will not give the same distribution as downloaded from official site. It would be not fair to alternate distributors. I think this is a time to release 3.7.2.1. This would be not the first time of using the fourt

[issue35687] The unittest module diff is missing/forgetting/not putting newline before + and ? for some inputs

2019-01-08 Thread Steve Dower
Steve Dower added the comment: This doesn't appear to be Windows-specific or related to our test suite, so I updated the tags and added the unittest experts. -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker

[issue35687] The unittest module diff is missing/forgetting/not putting newline before + and ? for some inputs

2019-01-08 Thread Steve Dower
Change by Steve Dower : -- nosy: -steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue35688] "pip install --user numpy" fails on Python from the Windos Store

2019-01-08 Thread mattip
New submission from mattip : After enabling Insider and installing Python3.7 from the Windows Store, I open a cmd window and do `pip install --user numpy` which runs to completion. But I cannot `import numpy`. The NumPy `mutiarray` c-extension module in the `numpy/core` directory depends on

[issue35689] IDLE: Docstrings and test for colorizer

2019-01-08 Thread Cheryl Sabella
New submission from Cheryl Sabella : Add docstrings and unittests for colorizer.py. -- assignee: terry.reedy components: IDLE messages: 333263 nosy: cheryl.sabella, terry.reedy priority: normal severity: normal status: open title: IDLE: Docstrings and test for colorizer type: enhancemen

[issue35689] IDLE: Docstrings and test for colorizer

2019-01-08 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +10968 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35689] IDLE: Docstrings and test for colorizer

2019-01-08 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch, patch pull_requests: +10968, 10969 stage: -> patch review ___ Python tracker ___ __

[issue35689] IDLE: Docstrings and test for colorizer

2019-01-08 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch, patch, patch pull_requests: +10968, 10969, 10970 stage: -> patch review ___ Python tracker ___

[issue35689] IDLE: Docstrings and test for colorizer

2019-01-08 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: -10969 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35689] IDLE: Docstrings and test for colorizer

2019-01-08 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: -10970 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Ned Deily
Ned Deily added the comment: > It would be weird if building from sources will not give the same > distribution as downloaded from official site. It would be not fair to > alternate distributors. Yes, I agree with that in general but, as I understand it, the change here affects only how the

[issue35687] The unittest module diff is missing/forgetting/not putting newline before + and ? for some inputs

2019-01-08 Thread Ned Deily
Ned Deily added the comment: Also, if you can, please verify that you can reproduce the problem with a current version of Python 3. 3.7.2 is the current maintenance release and 3.6.8 was the final maintenance release of 3.6.x. -- nosy: +ned.deily ___

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Steve Dower
Steve Dower added the comment: Agreed. My plan is to just replace the precompiled ZIP file of the standard library in the embeddable package with one with PYCs missing the "check source" bit that the old zipimport rejects. It's as simple as a 1 line change in a supporting script in PC/layout

[issue35690] IDLE: Fix and test debugger.

2019-01-08 Thread Terry J. Reedy
New submission from Terry J. Reedy : Move PR 11451 from #35668. * Remove use of blank comments to make blank lines. * Greatly expand test_debugger. * Fix a couple of issues discovered while writing tests. (It is possible that one of these caused one of the reported debugger bugs, but we don't

[issue35690] IDLE: Fix and test debugger.

2019-01-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue35690] IDLE: Fix and test debugger.

2019-01-08 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +10971 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue35668] Improve test coverage for idlelib

2019-01-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10913 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35686] BufferError with memory.release()

2019-01-08 Thread Eryk Sun
Eryk Sun added the comment: > Or, obviously: > > with open(fn, 'rb') as fd: > with mmap.mmap(fd.fileno(), 0, access=mmap.ACCESS_READ) as mm: > with memoryview(mm)[:2] as data: > print(data) Doesn't this rely on the immediate finalization of the unreferenced memoryview

[issue35668] Improve test coverage for idlelib

2019-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I moved the debugger tests to #35690. I want to keep this issue for general discussion of testing IDLE, and possibly related PRs improving the documentation thereof. Serhiy Storchaka, the current tkinter maintainer, and I, have decided that IDLE should run

[issue35687] The unittest module diff is missing/forgetting/not putting newline before + and ? for some inputs

2019-01-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-01-08 Thread STINNER Victor
STINNER Victor added the comment: Łukasz Stelmach: > It is currently impossible to format floating point numbers with an arbitrary > number of decimal digits AND the decimal point matching locale settings. I would like to warn you that handling properly locales can be very tricky. I just wrot

[issue35668] Improve test coverage for idlelib

2019-01-08 Thread anthony shaw
Change by anthony shaw : -- pull_requests: +10972 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue35668] Improve test coverage for idlelib

2019-01-08 Thread anthony shaw
Change by anthony shaw : -- pull_requests: +10972, 10973 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue35691] cpython3.7.2 make test failed

2019-01-08 Thread Wencan Deng
New submission from Wencan Deng : os: Linux skynet 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux gcc: gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 FAIL: test_startup_imports (test.test_site.StartupImportTests) --

[issue35687] The unittest module diff is missing/forgetting/not putting newline before + and ? for some inputs

2019-01-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to exist on master. Since they are multilines assertMultiLineEqual is used and is there something incorrect during the diff calculation using ndiff due to absence of '\n'? The current diff is calculated as below with difflib.ndiff and se

[issue35687] The unittest module diff is missing/forgetting/not putting newline before + and ? for some inputs

2019-01-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Searching further this seems to be reported earlier with issue24780 with caret displayed wrongly which was also due to newline missing. But the sample case reported here is also listed at one of the examples in https://bugs.python.org/issue24780#ms

[issue24780] difflib.ndiff produces unreadable output when input missing trailing newline

2019-01-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker ___ _

[issue35691] cpython3.7.2 make test failed

2019-01-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Searching for the error message I reported a very similar one in the past issue34177 that is caused due to installed python causing some problem being imported in the test -- nosy: +xtreak ___ Python tra

[issue35692] pathlib.Path.exists() on non-existent drive raises WinError instead of returning False

2019-01-08 Thread Jordan Hueckstaedt
New submission from Jordan Hueckstaedt : Tested in 3.7.0 on windows 10. This looks related to https://bugs.python.org/issue22759 >>> import pathlib >>> pathlib.Path(r"E:\Whatever\blah.txt").exists() # This drive doesn't exist Traceback (most recent call last): File "", line 1, in File "

[issue35692] pathlib.Path.exists() on non-existent drive raises WinError instead of returning False

2019-01-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Steve Dower
Steve Dower added the comment: I've updated the files and sent Ned the info needed to confirm and update the download page. -- ___ Python tracker ___

[issue24780] difflib.ndiff produces unreadable output when input missing trailing newline

2019-01-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Looking at the patch and the relevant function this doesn't seem to be a problem with difflib.ndiff but with unittest's display algorithm. This causes confusion about the issue and I propose changing the subject to reflect this unless difflib maint

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2019-01-08 Thread Ned Deily
Ned Deily added the comment: Thanks, Steve. The download page for 3.7.2 has now been updated with the URLs for the modified embeddable files, the CDN caches updated, and the original embeddable download files and their GPG signature files are no longer accessible so references to the origin

[issue35688] "pip install --user numpy" fails on Python from the Windows Store

2019-01-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- title: "pip install --user numpy" fails on Python from the Windos Store -> "pip install --user numpy" fails on Python from the Windows Store ___ Python tracker ___

[issue35693] test_httpservers fails

2019-01-08 Thread Jorge Ramos
New submission from Jorge Ramos : when running test_httpservers fails: 0:04:53 [171/407] test_httpservers E:\RepoGiT\3.6\lib\socket.py:144: ResourceWarning: unclosed _socket.socket.__init__(self, family, type, proto, fileno) E:\RepoGiT\3.6\lib\test\support\__init__.py:1542: ResourceWarning

  1   2   >