[issue37479] IntEnum __format__ behavior can't be overridden through __str__

2019-07-01 Thread Jason Curtis
Change by Jason Curtis : -- title: IntEnum f-string behavior can't be overridden -> IntEnum __format__ behavior can't be overridden through __str__ ___ Python tracker ___

[issue37437] update vendorized expat to 2.2.7

2019-07-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 29d6905826d4417426e70f6209ca5e0db7921685 by Benjamin Peterson (Miss Islington (bot)) in branch '3.6': Put pyexpatns.h include back. bpo-37437 (GH-14542) https://github.com/python/cpython/commit/29d6905826d4417426e70f6209ca5e0db7921685

[issue37479] IntEnum f-string behavior can't be overridden

2019-07-01 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +14358 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14545 ___ Python tracker ___

Re: pyodbc -> MS-SQL Server Named Instance ?

2019-07-01 Thread Frank Millman
On 2019-07-01 10:13 PM, Adam Tauno Williams wrote: I am trying to connect to a Named Instance on an MS-SQL server using pyODBC. The ODBC driver works, as I can connection without issue to a non- named-instance SQL-Server used by another application. What is the DSN (connection) string magick

[issue37437] update vendorized expat to 2.2.7

2019-07-01 Thread miss-islington
miss-islington added the comment: New changeset 03b01280825871f6a5bb165fe25d412e33751d45 by Miss Islington (bot) in branch '2.7': Put pyexpatns.h include back. bpo-37437 (GH-14539) https://github.com/python/cpython/commit/03b01280825871f6a5bb165fe25d412e33751d45 --

[issue37437] update vendorized expat to 2.2.7

2019-07-01 Thread miss-islington
miss-islington added the comment: New changeset f3130fab9c5cbc7125695dbd66cdc2fd76e20093 by Miss Islington (bot) in branch '3.7': Put pyexpatns.h include back. bpo-37437 (GH-14539) https://github.com/python/cpython/commit/f3130fab9c5cbc7125695dbd66cdc2fd76e20093 --

[issue37437] update vendorized expat to 2.2.7

2019-07-01 Thread miss-islington
miss-islington added the comment: New changeset 9bd5479f8aba2687f4b8de735b1de50ef1405f19 by Miss Islington (bot) in branch '3.8': Put pyexpatns.h include back. bpo-37437 (GH-14539) https://github.com/python/cpython/commit/9bd5479f8aba2687f4b8de735b1de50ef1405f19 --

[issue37437] update vendorized expat to 2.2.7

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14357 pull_request: https://github.com/python/cpython/pull/14544 ___ Python tracker ___

[issue37437] update vendorized expat to 2.2.7

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14356 pull_request: https://github.com/python/cpython/pull/14543 ___ Python tracker ___

[issue37437] update vendorized expat to 2.2.7

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14355 pull_request: https://github.com/python/cpython/pull/14542 ___ Python tracker ___

[issue37437] update vendorized expat to 2.2.7

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14354 pull_request: https://github.com/python/cpython/pull/14541 ___ Python tracker ___

[issue37437] update vendorized expat to 2.2.7

2019-07-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 2cd07920bb7d2d31394092190f37935dc421 by Benjamin Peterson in branch 'master': Put pyexpatns.h include back. bpo-37437 (GH-14539) https://github.com/python/cpython/commit/2cd07920bb7d2d31394092190f37935dc421 --

[issue37437] update vendorized expat to 2.2.7

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14353 pull_request: https://github.com/python/cpython/pull/14540 ___ Python tracker ___

[issue37437] update vendorized expat to 2.2.7

2019-07-01 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +14352 pull_request: https://github.com/python/cpython/pull/14539 ___ Python tracker ___

[issue37465] Incorrect documentation for `s#` arguments in C API argument parsing

2019-07-01 Thread Inada Naoki
Inada Naoki added the comment: > Oh! Fair enough, I had missed it. Does the note also involve `Py_BuildValue`? > If so, the documentation of `Py_BuildValue` should probably be updated; if > not, I think it would be clearer if the note mentioned that it only applies > to parsing, not

[issue36390] IDLE: Refactor formatting methods from editor

2019-07-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tabwidth for the Text widget is currently fixed at 8 based on claim in editor.py that nothing else works correctly. It would be nice to verify if this is still correct. If it is, then there would seem to be no need to pass it around. --

[issue36390] IDLE: Refactor formatting methods from editor

2019-07-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think get_indent(line) is much clearer than classifyws(s)???. I propose to merge PR 12481 first, after review, with tests, and then include name change with rewrite in PR 14500. Proposed docstring: "Return line indent as # chars and effective # of

[issue37480] add ptpython to list of alternate interpreters

2019-07-01 Thread Zach Valenta
Change by Zach Valenta : -- keywords: +patch pull_requests: +14351 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14538 ___ Python tracker ___

[issue37480] add ptpython to list of alternate interpreters

2019-07-01 Thread Zach Valenta
New submission from Zach Valenta : Referring to the last paragraph of chapter 14 of the tutorial on interactive interpreters: https://docs.python.org/3/tutorial/interactive.html#alternatives-to-the-interactive-interpreter Despite personally using bpython, ptpython seems both mature and

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-07-01 Thread Zufu Liu
Zufu Liu added the comment: Please also consider following pieces of code. They (value of int sub classes) can't be returned by fileno(). Python 3.8.0b1 (tags/v3.8.0b1:3b5deb0116, Jun 4 2019, 19:52:55) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for

[issue37479] IntEnum f-string behavior can't be overridden

2019-07-01 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-07-01 Thread Zufu Liu
Zufu Liu added the comment: Personally I prefer TypeError. Use file descriptor is rare, I never used it in Python script. I encountered this because arguments passed in wrong order in my function, then I passed the wrong argument to isfile() without checking. Make isfile() returns False

[issue37479] IntEnum f-string behavior can't be overridden

2019-07-01 Thread Eric V. Smith
Eric V. Smith added the comment: Note that this isn't really related to f-strings, except that they use the __format__ protocol, as does str.__format__. >>> format(myIntEnum.x) '1' -- nosy: +eric.smith ___ Python tracker

[issue22107] tempfile module misinterprets access denied error on Windows

2019-07-01 Thread Eryk Sun
Eryk Sun added the comment: CanAccessFolder is incomplete for the following reasons: (1) It doesn't account for SeBackupPrivilege (read and execute access) and SeRestorePrivilege (write and delete access). If a create or open call requests backup semantics, these two privileges are checked

[issue37363] Additional PEP578 hooks

2019-07-01 Thread Steve Dower
Steve Dower added the comment: All that's left here right now is some xmlrpc events, unless we can think of any more stdlib modules that should have them? -- ___ Python tracker

[issue37479] IntEnum f-string behavior can't be overridden

2019-07-01 Thread Jason Curtis
Jason Curtis added the comment: related cPython code: https://github.com/python/cpython/blob/19a1e1eb86115db66c1faae5927f87e3a12692fc/Lib/enum.py#L626 If we're in a mixed-in class but the class has overridden __str__(), we should probably use str(self) instead of self._value_. --

[issue37390] Generate table of audit events for docs

2019-07-01 Thread Steve Dower
Steve Dower added the comment: I can't repro this. It looks like Doc/makefile#L196 passes -Ea which ought to deal with any old files (and it certainly does on my Ubuntu machine), so it's likely not that. The table contents is simply not in the file on docs.p.o, so I guess there's something

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-07-01 Thread Kyle Stanley
Kyle Stanley added the comment: Created a new PR for moving the last two files "test_threaded_import.py" and "threaded_import_hangers.py" to the directory "test_importlib". (https://github.com/python/cpython/pull/14537) There were some issues with automatically merging the changes, was the

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-07-01 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +14350 pull_request: https://github.com/python/cpython/pull/14537 ___ Python tracker ___

[issue37479] IntEnum f-string behavior can't be overridden

2019-07-01 Thread Jason Curtis
Jason Curtis added the comment: I mistyped - __str__ can be overridden effectively, but __format__ has to be overridden instead or overridden also to get the desired f-string behavior. -- ___ Python tracker

[issue37479] IntEnum f-string behavior can't be overridden

2019-07-01 Thread Jason Curtis
New submission from Jason Curtis : Combining int and Enum, as with enum.IntEnum results in a class where __str__ cannot be effectively overridden. For example: from enum import IntEnum class myIntEnum(IntEnum): x = 1 def __str__(self): return 'AAAa'

[issue37363] Additional PEP578 hooks

2019-07-01 Thread miss-islington
miss-islington added the comment: New changeset 746992c1ae4c632220563d3fe54123498f93db1d by Miss Islington (bot) in branch '3.8': bpo-37363: Add audit events on startup for the run commands (GH-14524) https://github.com/python/cpython/commit/746992c1ae4c632220563d3fe54123498f93db1d

[issue19960] zlib skipped when building 2.7 on macOS without /usr/include installed

2019-07-01 Thread Ned Deily
Change by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue19960] zlib skipped when building 2.7 on macOS without /usr/include installed

2019-07-01 Thread Ned Deily
Ned Deily added the comment: New changeset da7f6dbbf52fe7074360a9eae918806da60139c5 by Ned Deily in branch '2.7': bpo-19960: Fix building of zlib on macOS without installed headers (GH-14257) https://github.com/python/cpython/commit/da7f6dbbf52fe7074360a9eae918806da60139c5 --

[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-01 Thread Kyle Stanley
Kyle Stanley added the comment: Minor clarifications: This change is referring to the "Files and Directories" section of the "os.rst" page in "cpython/Doc/library/os.rst". Also, I realized that I forgot to add the colon before "exc" in a couple locations. This was just a typo when writing

[issue37363] Additional PEP578 hooks

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14349 pull_request: https://github.com/python/cpython/pull/14536 ___ Python tracker ___

[issue37363] Additional PEP578 hooks

2019-07-01 Thread Steve Dower
Steve Dower added the comment: New changeset e226e83d36dfc7220d836fb7a249ce18e70cb4a6 by Steve Dower in branch 'master': bpo-37363: Add audit events on startup for the run commands (GH-14524) https://github.com/python/cpython/commit/e226e83d36dfc7220d836fb7a249ce18e70cb4a6 --

[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-07-01 Thread Ned Deily
Ned Deily added the comment: Yes, you can still add the backport labels even after the original PR has been merged. It's magic! -- ___ Python tracker ___

Re: Do I need a parser?

2019-07-01 Thread Cameron Simpson
On 01Jul2019 08:23, josé mariano wrote: The new software would use a settings files in one "standard" format. I like INI. It's note very powerful, but is easy to read and enough for the matter at hand. I could then use configparser to parse the settings to the main module. One separate module

[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-07-01 Thread Brian Quinlan
Brian Quinlan added the comment: Can I add "needs backport to 3.8" and "needs backport to 3.7" labels now or do I have to use cherry_picker at this point? On Mon, Jul 1, 2019 at 3:55 PM Ned Deily wrote: > > Ned Deily added the comment: > > > I don't know what the backport policy is. > > It

[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-07-01 Thread Ned Deily
Ned Deily added the comment: > I don't know what the backport policy is. It does seem that the devguide does not give much guidance on this; I've opened an issue about it (https://github.com/python/devguide/issues/503). But, in general, if the fix is potentially beneficial and does not add

[issue37475] What is urllib.request.urlcleanup() function?

2019-07-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Victor and Karthikeyan, Both your analysis are correct. - This is a legacy interface, present purely for satisfying the old code, when urlretrieve was advertised as the first/easy to way to use urllib and download something. - At this moment, I think,

[issue37199] Test suite fails when Ipv6 is unavailable

2019-07-01 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +14348 pull_request: https://github.com/python/cpython/pull/14535 ___ Python tracker ___

[issue37478] Docs: Method os.chdir() does not mention errors that can be raised

2019-07-01 Thread Kyle Stanley
New submission from Kyle Stanley : In the section describing the functionality of os.chdir(), there is no mention of possible errors that can be raised. This differentiates significantly from the sections of other methods, such as os.is_dir(): "This method can raise :exc:`OSError`, such as

[issue37456] FAQ says positional arguments aren't a thing

2019-07-01 Thread SoniEx2
SoniEx2 added the comment: no thanks, I don't like signing CLAs. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-07-01 Thread Brian Quinlan
Brian Quinlan added the comment: I don't know what the backport policy is. The bug is only theoretical AFAIK i.e. someone noticed it through code observation but it has not appeared in the wild. On Mon, Jul 1, 2019 at 3:25 PM Ned Deily wrote: > > Ned Deily added the comment: > > Brian,

[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-07-01 Thread Ned Deily
Ned Deily added the comment: Brian, should this fix be backported to 3.8 and 3.7? As it stands now, it will only be showing up in Python 3.9 unless you add the backport labels to the original PR. Unless it cna be shown to be a security issue, it would not be appropriate to backport to 3.6

[issue37477] NamedTemporaryFile can hang on windows

2019-07-01 Thread Martin Panter
Change by Martin Panter : -- resolution: -> duplicate superseder: -> tempfile module misinterprets access denied error on Windows ___ Python tracker ___

[issue22107] tempfile module misinterprets access denied error on Windows

2019-07-01 Thread Erik Aronesty
Erik Aronesty added the comment: Series of operations needed to answer the questions os.access is not answering on windows: bool CanAccessFolder( LPCTSTR folderName, DWORD genericAccessRights ) { bool bRet = false; DWORD length = 0; if (!::GetFileSecurity( folderName,

[issue37477] NamedTemporaryFile can hang on windows

2019-07-01 Thread Erik Aronesty
Erik Aronesty added the comment: yes, duplicate of https://bugs.python.org/issue22107 ... tried looking first, sry. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue37477] NamedTemporaryFile can hang on windows

2019-07-01 Thread Martin Panter
Martin Panter added the comment: Perhaps a duplicate of Issue 22107? -- nosy: +martin.panter ___ Python tracker ___ ___

Re: Matplotlib import image as float32

2019-07-01 Thread Chris Angelico
On Tue, Jul 2, 2019 at 6:59 AM Markos wrote: > > Hi, > > I observed that matplotlib reads an image file (PNG) as float32: > > Please, how to read this file as int8 to get RGB in range of 0-255? > > Thank you, > > Markos > > >import numpy as np > > >import matplotlib.pyplot as plt > > >import

Matplotlib import image as float32

2019-07-01 Thread Markos
Hi, I observed that matplotlib reads an image file (PNG) as float32: Please, how to read this file as int8 to get RGB in range of 0-255? Thank you, Markos import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg imagem = mpimg.imread('lenna.png') print

pyodbc -> MS-SQL Server Named Instance ?

2019-07-01 Thread Adam Tauno Williams
I am trying to connect to a Named Instance on an MS-SQL server using pyODBC. The ODBC driver works, as I can connection without issue to a non- named-instance SQL-Server used by another application. What is the DSN (connection) string magick to connect to a named instance? I can connect from my

[issue37477] NamedTemporaryFile can hang on windows

2019-07-01 Thread Erik Aronesty
Change by Erik Aronesty : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37477] NamedTemporaryFile can hang on windows

2019-07-01 Thread Erik Aronesty
New submission from Erik Aronesty : Depending on the user's permissions, this code can hang, instead of raising an exception: from tempfile import NamedTemporaryFile NamedTemporaryFile(dir="/") The problamatic code is in tempfile.py: When encountering a "[Errno 13] Permission

[issue37470] Make it explicit what happens when using a bounded queue with QueueHandler

2019-07-01 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37470] Make it explicit what happens when using a bounded queue with QueueHandler

2019-07-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 91f9f098fcdb023dbb89d06c8833e89a11cbae4c by Vinay Sajip (Miss Islington (bot)) in branch '3.8': bpo-37470: Document more clearly the error handling for QueueHandler.emit(). (GH-14532) (GH-14533)

[issue37470] Make it explicit what happens when using a bounded queue with QueueHandler

2019-07-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 844a9d64a4f640d1b20dc6ea54ab375680332d93 by Vinay Sajip (Miss Islington (bot)) in branch '3.7': bpo-37470: Document more clearly the error handling for QueueHandler.emit(). (GH-14532) (GH-14534)

[issue37462] Default starting directory for os.walk()

2019-07-01 Thread Kyle Stanley
Kyle Stanley added the comment: Oh okay thanks taleinat. I wasn't aware of the existence of the ideas mailing list, I'll have to check that out next time. -- ___ Python tracker

[issue36881] isinstance raises TypeError for metaclass with metaclass=ABCMeta

2019-07-01 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37470] Make it explicit what happens when using a bounded queue with QueueHandler

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14346 pull_request: https://github.com/python/cpython/pull/14533 ___ Python tracker ___

[issue37470] Make it explicit what happens when using a bounded queue with QueueHandler

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14347 pull_request: https://github.com/python/cpython/pull/14534 ___ Python tracker ___

[issue37470] Make it explicit what happens when using a bounded queue with QueueHandler

2019-07-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 0f4e8132820947d93eccf31b9e526b81c6ffa53d by Vinay Sajip in branch 'master': bpo-37470: Document more clearly the error handling for QueueHandler.emit(). (GH-14532) https://github.com/python/cpython/commit/0f4e8132820947d93eccf31b9e526b81c6ffa53d

[issue37390] Generate table of audit events for docs

2019-07-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Strange, I bet that I have seen this rendered table while the issue was closed. The docs table renders fine locally on latest master. Given that Audit event, Arguments and References table header are rendered with the table being replaced I guess

[issue37475] What is urllib.request.urlcleanup() function?

2019-07-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I have added Senthil for thoughts. The temporary files is also stored in a module level variable. Looking into the git history there were some changes in e24f96a05973ddbb59d88c03570aef8545c5ef10 . The function is also marked as legacy in __all__

[issue37470] Make it explicit what happens when using a bounded queue with QueueHandler

2019-07-01 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +14345 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14532 ___ Python tracker ___

[issue37439] Add random.binomialvariate()

2019-07-01 Thread Mark Dickinson
Mark Dickinson added the comment: > [...] and then making algorithmic improvements later. Though thinking about it, there is *one* catch: for the random module, it's nice if reproducibility isn't broken more often than necessary in released versions, so it would be best to do any

[issue37450] Generalize Euclidean distance function in the math module to Minkowski distance

2019-07-01 Thread Mark Dickinson
Mark Dickinson added the comment: Agreed. We've moved away from the "Python's math module is just a set of wrappers around the C math library" stage, but it's still important to keep the math module a coherent set of basic building blocks. -- ___

[issue37390] Generate table of audit events for docs

2019-07-01 Thread Steve Dower
Steve Dower added the comment: The page is not generating correctly at https://docs.python.org/dev/library/audit_events.html Adding the documentation team, where hopefully someone will know what needs poking. -- nosy: +eric.araujo, ezio.melotti, mdk, willingc resolution: fixed ->

[issue37469] Make it explicit that logging QueueHandler / QueueListener accepts a SimpleQueue.

2019-07-01 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37469] Make it explicit that logging QueueHandler / QueueListener accepts a SimpleQueue.

2019-07-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 6cde61369e8174c493ca240cb52ebc9c2a2fe667 by Vinay Sajip (Miss Islington (bot)) in branch '3.8': bpo-37469: Document usability of SimpleQueue with QueueHandler and QueueListener. (GH-14521) (GH-14525)

[issue37469] Make it explicit that logging QueueHandler / QueueListener accepts a SimpleQueue.

2019-07-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset b0ab95bbe792b38e952688f8fa1657a78b35410e by Vinay Sajip (Miss Islington (bot)) in branch '3.7': bpo-37469: Document usability of SimpleQueue with QueueHandler and QueueListener. (GH-14521) (GH-14526)

[issue37439] Add random.binomialvariate()

2019-07-01 Thread Mark Dickinson
Mark Dickinson added the comment: @avi That's Raymond's call, but IMO there's absolutely nothing wrong with getting a reference implementation (with tests, documentation, and all the usual trimmings) in first and then making algorithmic improvements later. Thanks for the PR! --

[issue37456] FAQ says positional arguments aren't a thing

2019-07-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hi, Would you like to do a PR updating it? -- ___ Python tracker ___ ___

[issue37476] Adding a unit test of unicode in test_unicode.py

2019-07-01 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +14344 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14531 ___ Python tracker ___

[issue37476] Adding a unit test of unicode in test_unicode.py

2019-07-01 Thread hai shi
New submission from hai shi : As title, Adding a unit test of unicode in test_unicode.py. -- components: Tests messages: 347059 nosy: shihai1991 priority: normal severity: normal status: open title: Adding a unit test of unicode in test_unicode.py

[issue36763] Implementation of the PEP 587

2019-07-01 Thread miss-islington
miss-islington added the comment: New changeset 4c227e6a56a9704fe5b4e4509071796f3359f4bb by Miss Islington (bot) in branch '3.8': bpo-36763: Use PyConfig_Clear() (GH-14445) https://github.com/python/cpython/commit/4c227e6a56a9704fe5b4e4509071796f3359f4bb --

[issue37475] What is urllib.request.urlcleanup() function?

2019-07-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37468] Don't install wininst*.exe on non-Windows platforms

2019-07-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +dstufft, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37439] Add random.binomialvariate()

2019-07-01 Thread Avinash Sajjanshetty
Avinash Sajjanshetty added the comment: @Mark - Newb here and before I could see your reply, I sent a PR cos I thought simple implementation provided by Raymond Hettinger was good enough. Shall I update the PR? I will add the tests soon. -- nosy: +avi

[issue37439] Add random.binomialvariate()

2019-07-01 Thread Avinash Sajjanshetty
Change by Avinash Sajjanshetty : -- keywords: +patch pull_requests: +14343 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14530 ___ Python tracker

[issue37475] What is urllib.request.urlcleanup() function?

2019-07-01 Thread STINNER Victor
New submission from STINNER Victor : While working on bpo-37421 "Some tests leak temporary files", I had to write PR 14529 fix: test_urllib urlretrieve() tests now explicitly call urlcleanup() to remove temporary files. If urlretrieve() caller forgets to remove the temporary file, the

[issue37439] Add random.binomialvariate()

2019-07-01 Thread Mark Dickinson
Mark Dickinson added the comment: If you want to be able to switch to something more efficient for large `n`, Knuth describes a simple O(log(n)) algorithm in TAOCP volume 4 (and attributes it to J. H. Ahrens). It's essentially a bisection search on the value, using the fact that we can use

[issue37221] PyCode_New API change breaks backwards compatibility policy

2019-07-01 Thread Stefan Behnel
Stefan Behnel added the comment: > Is it part of Cython 0.29.11 released yesterday? Yes. -- ___ Python tracker ___ ___

[issue37421] Some tests leak temporary files

2019-07-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14342 pull_request: https://github.com/python/cpython/pull/14529 ___ Python tracker ___

[issue36763] Implementation of the PEP 587

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14341 pull_request: https://github.com/python/cpython/pull/14528 ___ Python tracker ___

[issue36763] Implementation of the PEP 587

2019-07-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 67310023f299b5a2fad71fca449b46d280036690 by Victor Stinner in branch 'master': bpo-36763: Use PyConfig_Clear() (GH-14445) https://github.com/python/cpython/commit/67310023f299b5a2fad71fca449b46d280036690 --

[issue37421] Some tests leak temporary files

2019-07-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14340 pull_request: https://github.com/python/cpython/pull/14527 ___ Python tracker ___

[issue37469] Make it explicit that logging QueueHandler / QueueListener accepts a SimpleQueue.

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14339 pull_request: https://github.com/python/cpython/pull/14526 ___ Python tracker ___

[issue37469] Make it explicit that logging QueueHandler / QueueListener accepts a SimpleQueue.

2019-07-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset e6b64b756f940147728ea7808fb686ffcae89176 by Vinay Sajip in branch 'master': bpo-37469: Document usability of SimpleQueue with QueueHandler and QueueListener. (GH-14521)

[issue37469] Make it explicit that logging QueueHandler / QueueListener accepts a SimpleQueue.

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14338 pull_request: https://github.com/python/cpython/pull/14525 ___ Python tracker ___

[issue36763] Implementation of the PEP 587

2019-07-01 Thread STINNER Victor
STINNER Victor added the comment: Another minor implementation issue: calling _PyCoreConfig_Read() twice calls _Py_SetArgcArgv() twice, the second call override the first _Py_SetArgcArgv() call. IMHO it should only be called once, at the first _PyCoreConfig_Read() call. --

[issue36763] Implementation of the PEP 587

2019-07-01 Thread miss-islington
miss-islington added the comment: New changeset 96f581cf9d2f1d7888d2fd9bb89f19f10c0477bf by Miss Islington (bot) in branch '3.8': bpo-36763: Add PyConfig_SetWideStringList() (GH-1) https://github.com/python/cpython/commit/96f581cf9d2f1d7888d2fd9bb89f19f10c0477bf --

[issue36763] Implementation of the PEP 587

2019-07-01 Thread STINNER Victor
STINNER Victor added the comment: About the documentation: https://docs.python.org/dev/c-api/init.html doesn't link to http://docs.python.org/dev/c-api/init_config.html The first doc should mention somewhere the new doc. -- ___ Python tracker

[issue37474] Should Py_Initialize() control the floating point mode?

2019-07-01 Thread STINNER Victor
New submission from STINNER Victor : Just after calling _PyRuntime_Initialize(), Py_Main() calls: /* 754 requires that FP exceptions run in "no stop" mode by default, * and until C vendors implement C99's ways to control FP exceptions, * Python requires non-stop mode. Alas, some

[issue37363] Additional PEP578 hooks

2019-07-01 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14337 pull_request: https://github.com/python/cpython/pull/14524 ___ Python tracker ___

Re: Looking for tips and gotchas for working with Python 3.5 zipapp feature

2019-07-01 Thread Malcolm Greene
> I am exactly in the "pretty advanced usage": I want to create a zip that > embed numpy. In this case, I have to bundle the C extension. How can I do > that? 1. PyInstaller 2. PyOxide (new technology, may or may not support Numpy) Let us know how you make out. Malcolm --

[issue36763] Implementation of the PEP 587

2019-07-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 36242fd871d0f0977e720d4fae5700774bd8c09a by Victor Stinner in branch 'master': bpo-36763: Add PyConfig_SetWideStringList() (GH-1) https://github.com/python/cpython/commit/36242fd871d0f0977e720d4fae5700774bd8c09a --

[issue36763] Implementation of the PEP 587

2019-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +14336 pull_request: https://github.com/python/cpython/pull/14523 ___ Python tracker ___

  1   2   3   >