[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD and NetBSD

2017-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you consider the recent stable releases of OpenBSD 6.1 (April 11, 2017) and NetBSD 7.1 (March 11, 2017) out-of-date platforms? The develop version of NetBSD 8 has the same failure. -- ___ Python tracker

[issue32042] Option for comparing values instead of reprs in doctest

2017-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Although that functionality is already easily handled; for example, here's the OP's first example rewritten to be independent of the dict's representation ordering: > >>> dict_fun() == {'foo': 1, 'bar': 2} > > True Oh, right. I remember the headache caus

[issue31834] BLAKE2: the (pure) SSE2 impl forced on x86_64 is slower than reference

2017-11-19 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue32080] Error Installing Python 3.6.3 on ubuntu 16.04

2017-11-19 Thread Sachin Pathave
New submission from Sachin Pathave : test failed when I run command $make test FAILED (failures=1, skipped=1) test test_re failed 2 tests failed again: test_re test_venv -- components: 2to3 (2.x to 3.x conversion tool) files: test.Screenshot from 2017-11-20 11-12-41.png messages: 306

[issue32078] string result of str(bytes()) in Python3

2017-11-19 Thread Arno-Can Uestuensoez
Arno-Can Uestuensoez added the comment: Sorry for the typo. -- Added file: https://bugs.python.org/file47276/howto_bytes_005typo.py ___ Python tracker ___ _

[issue32078] string result of str(bytes()) in Python3

2017-11-19 Thread Arno-Can Uestuensoez
Arno-Can Uestuensoez added the comment: Hello, the following reduced example probably shows the issue a little better. I have currently not yet the 3.7+ environment, but guess the same behavior. Regards Arno -- versions: +Python 3.7, Python 3.8 Added file: https://bugs.python.org/fil

[issue32079] version install 3.6.3 hangs in test_socket

2017-11-19 Thread Raúl Alvarez
New submission from Raúl Alvarez : I'm trying to install python 3.6.3 from sources in Fedora 3.19.8-100.fc20.x86_64+debug x86_64 GNU/Linux, I did ./configure, then run make as normal user and then as root, in these two cases the installation hangs over more than 6 hours with no progress in ste

[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD and NetBSD

2017-11-19 Thread Tim Peters
Tim Peters added the comment: Best I can tell, the fdlibm 5.3 on netlib was released in 2002, and essentially stopped existing as a maintained project then. Everyone else copied the source code, and made their own changes independently ever since :-( At least the folks behind the Julia lang

[issue32075] Expose ZipImporter Type Object in the include header files.

2017-11-19 Thread Decorater
Change by Decorater : -- assignee: -> docs@python components: +Build, Documentation nosy: +docs@python ___ Python tracker ___ ___ Py

[issue32075] Expose ZipImporter Type Object in the include header files.

2017-11-19 Thread Decorater
Decorater added the comment: After looking in the smelly tool it seems that now I got to rename the _Type to ZipImporter to have the ``Py`` prefix. Since this will be a probable breaking change this might not be a good idea on backporting to 3.6. -- __

[issue32075] Expose ZipImporter Type Object in the include header files.

2017-11-19 Thread Decorater
Change by Decorater : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue32075] Expose ZipImporter Type Object in the include header files.

2017-11-19 Thread Decorater
Decorater added the comment: Seems that now this is detected as an smelly symbol: ./python Tools/scripts/smelly.py + nm -p libpython3.7dm.a Ignored symbol types: b, d, r, t Smelly symbol: ZipImporter_Type (type: D) ERROR: Found 1 smelly symbols! make: *** [smelly] Error 1 I think I need to fin

[issue32042] Option for comparing values instead of reprs in doctest

2017-11-19 Thread Tim Peters
Tim Peters added the comment: Tomáš, of course you can combine testing methods any way you like. Don't oversell this - there's nothing actually magical about comparing objects instead of strings ;-) I'm only -0 on this. It grates a bit against doctest's original intents, but I appreciate i

[issue32078] string result of str(bytes()) in Python3

2017-11-19 Thread Arno-Can Uestuensoez
New submission from Arno-Can Uestuensoez : Hello, I am currently writing some dual-version libraries and have to deal with str/unicode. The attached code example contains the str/unicode handling. The Python3.6.2 release behaves as I did not expected for all of the following the conversions:

[issue32042] Option for comparing values instead of reprs in doctest

2017-11-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Tomáš, thank you for the suggestion, but we're going to decline for the reasons mentioned elsewhere in this thread. That said, it would be perfectly reasonable to post your own variant or extension on PyPI ( http://pypi.python.org ) to test the waters, to

[issue32077] Documentation: Some Unicode object functions don't indicate whether they return a new reference

2017-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, you have changed just refcounts.dat! This is good. -- ___ Python tracker ___ ___ Python-bugs

[issue32077] Documentation: Some Unicode object functions don't indicate whether they return a new reference

2017-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: C API functions return new references by default. It needs to be explicitly documented only when the function returns a borrowed reference. -- nosy: +serhiy.storchaka ___ Python tracker

[issue32077] Documentation: Some Unicode object functions don't indicate whether they return a new reference

2017-11-19 Thread Mathew M.
Change by Mathew M. : -- keywords: +patch pull_requests: +4407 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue25054] Capturing start of line '^'

2017-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 4471 fixes this issue, issue1647489, and a couple of similar issues. The most visible change is the change in re.split(). This is compatibility breaking change, and it affects third-party code. But ValueError or FutureWarning were raised for patterns tha

[issue32077] Documentation: Some Unicode object functions don't indicate whether they return a new reference

2017-11-19 Thread Mathew M.
New submission from Mathew M. : This is just something I've noticed when browsing the C API documentation for Unicode objects. For example, the documentation entry for PyUnicode_DecodeMBCSStateful lacks the "Return value: New reference", etc. -- assignee: docs@python components: Docum

[issue32075] Expose ZipImporter Type Object in the include header files.

2017-11-19 Thread Decorater
Change by Decorater : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue3262] re.split doesn't split with zero-width regex

2017-11-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4406 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue852532] ^$ won't split on empty line

2017-11-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4405 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue1647489] zero-length match confuses re.finditer()

2017-11-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4404 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue25054] Capturing start of line '^'

2017-11-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4403 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue30989] Sort only when needed in TimedRotatingFileHandler's getFilesToDelete

2017-11-19 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue30904] Python 3 logging HTTPHandler sends duplicate Host header

2017-11-19 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue32075] Expose ZipImporter Type Object in the include header files.

2017-11-19 Thread Decorater
Change by Decorater : -- keywords: +patch pull_requests: +4402 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue32042] Option for comparing values instead of reprs in doctest

2017-11-19 Thread Tomáš Petříček
Tomáš Petříček added the comment: I find the idea of combining documentation with examples and unit testing appealing. I see that this was not the original purpose of doctest but it seems to me as a reasonable use case for doctest. >>> dict_fun() == {'foo': 1, 'bar': 2} True Testing equality

[issue32076] Expose LockFile on Windows

2017-11-19 Thread Antoine Pitrou
New submission from Antoine Pitrou : msvcrt.locking() is sometimes practically useless since its so-called "non-blocking" mode will still block for 1 second. Instead, the Windows API LockFile() function (and its companion UnlockFile()) allows real non-blocking locking. Right now you have to

[issue32075] Expose ZipImporter Type Object in the include header files.

2017-11-19 Thread Decorater
New submission from Decorater : I would like to make an C extension module which basically would have the ZipImporter type defined in the ``zipimport.c`` which defines most things related to ZipImporter to be public so that way one can set it to ``.tp_base`` on their C extension. That should

[issue6156] Error compiling valid regex

2017-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue was fixed in issue9179. The issue with 65535 repeats was fixed in issue13169. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue30904] Python 3 logging HTTPHandler sends duplicate Host header

2017-11-19 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset b071a5e838a0e84c4e8a60448fbd40e8a7e5c882 by Vinay Sajip (Miss Islington (bot)) in branch '3.6': bpo-30904: Removed duplicated Host: header. (GH-4465) (#4468) https://github.com/python/cpython/commit/b071a5e838a0e84c4e8a60448fbd40e8a7e5c882 ---

[issue32042] Option for comparing values instead of reprs in doctest

2017-11-19 Thread Tim Peters
Tim Peters added the comment: `doctest` is intended to be anal - there are few things more pointlessly confusing for a user than to see docs that don't match what they actually see when they run the doc's examples. "Is it a bug? Did I do it wrong? Why can't they document what it actually d

[issue32051] Possible issue in multiprocessing doc

2017-11-19 Thread Jason
Jason added the comment: Hi Berker, I didn't update "following examples with ``('', 5)`` too." because this is different than the previous one, this is client connecting to server, so hostname cannot be empty string. -- ___ Python tracker

[issue32051] Possible issue in multiprocessing doc

2017-11-19 Thread Jason
Change by Jason : -- keywords: +patch pull_requests: +4401 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue30989] Sort only when needed in TimedRotatingFileHandler's getFilesToDelete

2017-11-19 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 65dffe58dd062385024eacbe75a0fa59ec12a993 by Vinay Sajip (Miss Islington (bot)) in branch '3.6': bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812) (GH-4466) https://github.com/python/cpython/commit/65dffe58dd062385024eacbe75a0f

[issue30904] Python 3 logging HTTPHandler sends duplicate Host header

2017-11-19 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4400 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26606] logging.baseConfig is missing the encoding parameter

2017-11-19 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue30904] Python 3 logging HTTPHandler sends duplicate Host header

2017-11-19 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset e96ba183c43ad6633b5d014b3dc57433e2802faf by Vinay Sajip in branch 'master': bpo-30904: Removed duplicated Host: header. (#4465) https://github.com/python/cpython/commit/e96ba183c43ad6633b5d014b3dc57433e2802faf -- _

[issue32042] Option for comparing values instead of reprs in doctest

2017-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Raymond. Doctest should test the representation, not value. But I think it would be nice to support insignificant variations of the representation. Tracebacks already are treated specially, and different doctest options allow to ignore particu

[issue30989] Sort only when needed in TimedRotatingFileHandler's getFilesToDelete

2017-11-19 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4399 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue30904] Python 3 logging HTTPHandler sends duplicate Host header

2017-11-19 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +4398 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue10049] Add a "no-op" (null) context manager to contextlib

2017-11-19 Thread Jesse Bakker
Change by Jesse Bakker : -- nosy: +Jesse Bakker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue10049] Add a "no-op" (null) context manager to contextlib

2017-11-19 Thread Jesse Bakker
Change by Jesse Bakker : -- pull_requests: +4397 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list maili

[issue32070] Clarify the behavior of the staticmethod builtin

2017-11-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM the current wording is correct and aims to describe how staticmethods differ from regular methods. With a regular methods we have "c.m(*a) -> type(c).m(c, *a)" and "C.m(*a) -> C.m(*s)". With a class method, only the first of those changes to "c.m(*

[issue32042] Option for comparing values instead of reprs in doctest

2017-11-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I recommend not going down this path. The intended purpose of doctest is to test examples in documentation. In particular, those examples should match what a user would *see* when running the examples. In essence, the proposal is to allow tests to pass

[issue10049] Add a "no-op" (null) context manager to contextlib

2017-11-19 Thread Jesse Bakker
Change by Jesse Bakker : -- versions: +Python 3.8 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32042] Option for comparing values instead of reprs in doctest

2017-11-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32042] Option for comparing values instead of reprs in doctest

2017-11-19 Thread Jesse Bakker
Jesse Bakker added the comment: I think this would allow for inconsistency in docs (if implemented as suggested), as when actually running the code in the docs, one would get different results than suggested by the docs. Maybe there is some other way (with different docs syntax) that would wo

[issue32022] Python crashes with mutually recursive code

2017-11-19 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue1104] msilib.SummaryInfo.GetProperty() truncates the string by one character

2017-11-19 Thread Eric V. Smith
Eric V. Smith added the comment: Despite the fact that as of now (or 6+ years ago!) the only way to trigger the malloc() is via VT_LPSTR, I still think the way the free() call is written is bad. What if another type is added? If that were fixed, I still think the basic idea of this patch in i

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

2017-11-19 Thread Jim Jewett
Jim Jewett added the comment: Ideally, use .startswith('.') Instead if find, but this is a clear UI fix. First pull request fixes doc, second fixes code. OK to apply both. -- nosy: +Jim.Jewett stage: -> commit review ___ Python tracker

[issue12202] Check status returns in msilib.SummaryInformation.GetProperty()

2017-11-19 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2017-11-19 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue10761] tarfile.extractall fails to overwrite symlinks

2017-11-19 Thread Chris Albright
Change by Chris Albright : -- components: +Unicode nosy: +ezio.melotti, vstinner type: behavior -> performance versions: +Python 3.8 ___ Python tracker ___ _

[issue31808] tarfile.extractall fails to overwrite symlinks

2017-11-19 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -4364 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue32074] Might be a wrong implementation

2017-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The implementation in the documentation is correct. Did you tested your implementation? The indentation of the "else" is correct. See https://docs.python.org/3/reference/compound_stmts.html#the-for-statement -- nosy: +serhiy.storchaka resolution:

[issue32074] Might be a wrong implementation

2017-11-19 Thread Sai Bhargava Ramu
New submission from Sai Bhargava Ramu : https://docs.python.org/2/library/itertools.html#itertools.combinations #The behaviour of combinations function in documentation is different and I think identation is missing with `else` #I didn't get the logic right is point out anything further. This m