[issue32745] ctypes string pointer fields should accept embedded null characters

2018-03-28 Thread Ned Deily
Ned Deily added the comment: The change mentioned was made in GH-2462 for Issue13617 and was released in 3.6.3 (and 3.5.4 now in security-fix-only mode). -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge, ned.deily, serhiy.storchaka priority: normal -> critical ___

[issue32726] macOS installer and framework enhancements and changes for 3.7.0 and 3.6.5

2018-03-28 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +6006 stage: backport needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue32726] macOS installer and framework enhancements and changes for 3.7.0 and 3.6.5

2018-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset df532ab752680f6e359672c2cd40bec8ac848628 by Ned Deily in branch 'master': bpo-32726: Do not force IDLE.app to launch in 32-bit mode. (GH-6279) https://github.com/python/cpython/commit/df532ab752680f6e359672c2cd40bec8ac848628 --

[issue32726] macOS installer and framework enhancements and changes for 3.7.0 and 3.6.5

2018-03-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6007 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32726] macOS installer and framework enhancements and changes for 3.7.0 and 3.6.5

2018-03-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6008 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33162] TimedRotatingFileHandler in logging module

2018-03-28 Thread Nikunj jain
New submission from Nikunj jain : Currently the TimedRotatingFileHandler in Python, when rotates the log file, invents a new file extension by adding the new date in the end of the file name. It would be really good if a prefix option could be provided which instead of adding the new date in e

[issue33163] Upgrade pip to 9.0.3 and setuptools to v39.0.1

2018-03-28 Thread Ned Deily
New submission from Ned Deily : pip and setuptools were updated in the following commits: PR 6184 d93b5161af12291f3f98a260c90cc2975ea9e9cd for master (3.8.0) PR 6185 8f46176f0e19d31d8642735e535183a39c5e0bdc for 3.7 (3.7.0rc3) PR 6186 560ea272b01acaa6c531cc7d94331b2ef0854be6 for 3.6 (3.6.5) PR 61

[issue32726] macOS installer and framework enhancements and changes for 3.7.0 and 3.6.5

2018-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset 39c0ef5171e1cdcc2ed59685a81b194e9bfe3809 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-32726: Do not force IDLE.app to launch in 32-bit mode. (GH-6280) https://github.com/python/cpython/commit/39c0ef5171e1cdcc2ed59685a81b194e9bfe3809

[issue33163] Upgrade pip to 9.0.3 and setuptools to v39.0.1

2018-03-28 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +6009 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue32726] macOS installer and framework enhancements and changes for 3.7.0 and 3.6.5

2018-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset fb3d3b7a65d8c0521a88c87e17a7554c5ec439d9 by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-32726: Do not force IDLE.app to launch in 32-bit mode. (GH-6279) (#6281) https://github.com/python/cpython/commit/fb3d3b7a65d8c0521a88c87e17a7554c5ec439d

[issue33163] Upgrade pip to 9.0.3 and setuptools to v39.0.1

2018-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset c0518cde7a8404f310cd3495e77e612820ecad4f by Ned Deily in branch 'master': bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6282) https://github.com/python/cpython/commit/c0518cde7a8404f310cd3495e77e612820ecad4f --

[issue33163] Upgrade pip to 9.0.3 and setuptools to v39.0.1

2018-03-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6010 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33163] Upgrade pip to 9.0.3 and setuptools to v39.0.1

2018-03-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6011 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33163] Upgrade pip to 9.0.3 and setuptools to v39.0.1

2018-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset b9172b9630eeefc6dea1409b5bf4180b27fc359f by Ned Deily (Miss Islington (bot)) in branch '3.7': [3.7] bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6283) https://github.com/python/cpython/commit/b9172b9630eeefc6dea1409b5bf4180b27fc359f

[issue33163] Upgrade pip to 9.0.3 and setuptools to v39.0.1

2018-03-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6012 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33163] Upgrade pip to 9.0.3 and setuptools to v39.0.1

2018-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset 9dad016784848a53d9f2557292025f7a4104c5a5 by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6285) https://github.com/python/cpython/commit/9dad016784848a53d9f2557292025f7a4104c5a5

[issue33163] Upgrade pip to 9.0.3 and setuptools to v39.0.1

2018-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset 7f48a426fc69d144d4242517ef40eff01c1fd483 by Ned Deily (Miss Islington (bot)) in branch '2.7': bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6284) https://github.com/python/cpython/commit/7f48a426fc69d144d4242517ef40eff01c1fd483

[issue33163] Upgrade pip to 9.0.3 and setuptools to v39.0.1

2018-03-28 Thread Ned Deily
Change by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue33131] Upgrade to pip 10 for Python 3.7

2018-03-28 Thread Ned Deily
Ned Deily added the comment: BTW, when updating the bundled wheels, please remember to use an issue (like this one) and include a NEWS entry using blurb; in other words, don't use the "skip news" label on PRs. That way the change will be documented in the Misc/NEWS and docs changelog.html fo

[issue33164] Blake 2 module update

2018-03-28 Thread David Carlier
Change by David Carlier : -- components: Extension Modules nosy: David Carlier priority: normal pull_requests: 6013 severity: normal status: open title: Blake 2 module update versions: Python 3.8 ___ Python tracker

[issue33165] Add stacklevel parameter to logging APIs

2018-03-28 Thread Nick Coghlan
New submission from Nick Coghlan : warnings.warn() offers a stacklevel parameter to make it easier to write helper functions that generate warnings - by passing "stacklevel=2", you can ensure the warning is attributed to the caller of the helper function, rather than to the helper function its

[issue32745] ctypes string pointer fields should accept embedded null characters

2018-03-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a regression. Eryk's solution LGTM. Do you mind to create a PR? But u"foo\0bar" is not terminated by two NULL characters. If this is used in real code, it contains a bug. And the getter of this field will return the string only to the first null cha

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
Change by yanir hainick : -- components: Windows nosy: paul.moore, steve.dower, tim.golden, yanirh, zach.ware priority: normal severity: normal status: open type: behavior ___ Python tracker __

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
yanir hainick added the comment: wrong number of cpu's is reported on some specific platforms. *** first platform: server with X4 Intel Xeon E5-4620 (8 physical, 16 logical), running a 64bit Windows Server 2012 R2 Standard. results: os.cpu_count() reports 64 units psutil.cpu_count(logical=Fal

[issue24132] Direct sub-classing of pathlib.Path

2018-03-28 Thread Christophe BAL
Christophe BAL added the comment: Hello. What about AbstractPath instead of _PurePath ? Le 28/03/2018 à 02:30, qb-cea a écrit : > qb-cea added the comment: > > Hi all, > > I made a pull request proposing a fix for this issue. There is still quite a > lot to be done: > - I exposed some vari

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > os.cpu_count() reports 128 units > psutil.cpu_count(logical=False) reports 20 units > psutil.cpu_count(logical=True) reports 40 units You mean os.cpu_count() reports *more* CPUs than exist on the machine? How can that happen? -- nosy: +giampaolo.rod

[issue33167] RFC Documentation Updates to urllib.parse.rst

2018-03-28 Thread Matt Eaton
New submission from Matt Eaton : A recent patch that I worked on resulted in an agreement that there could be a use case for a new URL API to be added to urllib.parse. See: https://bugs.python.org/issue33034 In my research to develop this new API I have been looking at the documentation for

[issue33167] RFC Documentation Updates to urllib.parse.rst

2018-03-28 Thread Matt Eaton
Change by Matt Eaton : -- keywords: +patch pull_requests: +6014 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue33164] Blake 2 module update

2018-03-28 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
yanir hainick added the comment: Yup. Attaching a screenshot. -- Added file: https://bugs.python.org/file47504/Screenshot.png ___ Python tracker ___ ___

[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-28 Thread Jon Janzen
Jon Janzen added the comment: Ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The difference between os.cpu_count() and psutil.cpu_count() is because one uses GetMaximumProcessorCount() and the other dwNumberOfProcessors. This is tracked as a bug in psutil bug tracker but it's not fixed yet: https://github.com/giampaolo/psutil/issues

[issue29612] TarFile.extract() suffers from hard links inside tarball

2018-03-28 Thread Joachim Trouverie
Joachim Trouverie added the comment: Anyone for a review ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
yanir hainick added the comment: Maybe i'm missing something, and would appreciate clarification. Perhaps psutil is wrong, but it gives an answer that has something to do with the actual situation. On platform 2, i have 2 Intel Xeon Gold 6138, each with 20 physical processors, 40 logicals.

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Oh! So both os.cpu_count() and psutil.cpu_count() are wrong? How do you determine the actual number of logical/physical CPUs on your machine? -- ___ Python tracker __

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
yanir hainick added the comment: Yes. Both are wrong, and os.cpu_count() is completely off. Regarding how to determine the number of physical/logical cores in my machine - well, not sure what you mean by that. I've attached a screenshot of Windows' system information. Also used 'cpu-z'. It se

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Let's not conflate different issues. The parallelization issue is distinct from the os.cpu_count() issue (and I'm skeptical Python is at fault there). -- versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue33168] distutils build/build_ext and --debug

2018-03-28 Thread Christoph Reiter
New submission from Christoph Reiter : The distutils "build" and "build_ext" commands provide a "--debug" option to enable building with debug information. But this option doesn't have any affect because the default CFLAGS contain "-g" (python3-config --cflags) so debug information is always i

[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2018-03-28 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, what's wrong with zipimport? -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-l

[issue33169] importlib.invalidate_caches() doesn't clear all caches

2018-03-28 Thread Guido van Rossum
New submission from Guido van Rossum : See https://github.com/python/mypy/pull/4811. To summarize, importlib.invalidate_caches() doesn't clear the negative cache in sys.path_importer_cache. Could be related to https://bugs.python.org/issue30891? -- messages: 314595 nosy: gvanrossum pr

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Just to be sure i'm doing the right thing - this thread will be dedicated to > the os.cpu_count() issue, and i'll open a new issue on the parallelization > problem. Exactly. -- ___ Python tracker

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
yanir hainick added the comment: Ok, no problem. Just to be sure i'm doing the right thing - this thread will be dedicated to the os.cpu_count() issue, and i'll open a new issue on the parallelization problem. makes sense? -- ___ Python tracker <

[issue33144] random._randbelow optimization

2018-03-28 Thread Wolfgang Maier
Change by Wolfgang Maier : -- pull_requests: +6015 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue33170] New type based on int() created with typing.NewType is not consistent

2018-03-28 Thread Maxim Avanov
New submission from Maxim Avanov : >From my understanding of the docs section on new types, >https://docs.python.org/3/library/typing.html#newtype the new type based on int() should just pass the value into the base constructor. However, ``` PercentDiscount = NewType('PercentDiscount', int)

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: By re-reading https://bugs.python.org/issue30581 and https://github.com/giampaolo/psutil/issues/771#issuecomment-264457333 I now remember why I haven't fixed this issue in psutil yet: because the whole thing (MS APIs and doc basically) is confusing. GetMax

[issue33171] multiprocessing won't utilize all of platform resources

2018-03-28 Thread yanir hainick
New submission from yanir hainick : I'm using either multiprocessing package or concurrent.futures for some embarrassingly parallel application. I performed a simple test: basically making n_jobs calls for a simple function - 'sum(list(range(n)))', with n large enough so that the operation is

[issue33144] random._randbelow optimization

2018-03-28 Thread Wolfgang Maier
Wolfgang Maier added the comment: So, the PR implements the behaviour suggested by Serhiy as his cases 1 and 2. Case 2 changes *existing* behaviour because before it was sufficient to have a user-defined getrandbits anywhere in the inheritance tree, while with the PR it has to be more recent (

[issue33144] random._randbelow optimization

2018-03-28 Thread Wolfgang Maier
Wolfgang Maier added the comment: In addition, I took the opportunity to fix a bug in the original _randbelow in that it would only raise the advertised ValueError on n=0 in the getrandbits-dependent branch, but ZeroDivisionError in the pure random branch. --

[issue33106] Deleting a key in a read-only gdbm results in KeyError, not gdbm.error

2018-03-28 Thread Xiang Zhang
Xiang Zhang added the comment: I like this idea. But this is a behavior change so I think it could only be applied to master branch. But there is a problem, except dbm.gnu and dbm.ndbm, we also get dbm.dumb. It already raises a ValueError when deleting a key in readonly mode. Does it need to

[issue33126] Some C buffer protocol APIs not documented

2018-03-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, it seems only PyBuffer_ToContiguous() is worth documenting. -- ___ Python tracker ___ ___ Pyth

[issue33126] Some C buffer protocol APIs not documented

2018-03-28 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +6016 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue33170] New type based on int() created with typing.NewType is not consistent

2018-03-28 Thread Maxim Avanov
Maxim Avanov added the comment: Logically, I would expect it to behave similarly to ``` >>> class PercentDiscount(int): pass >>> PercentDiscount('50') == PercentDiscount(50) True ``` -- ___ Python tracker _

[issue33124] Lazy execution of module bytecode

2018-03-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: Serhiy: There is a semi-common case where global constants can be quite expensive, specifically, initializing a global full of expensive to compute/serialize data so it will be shared post-fork when doing multiprocessing on a POSIX system. That said, that wou

[issue33170] New type based on int() created with typing.NewType is not consistent

2018-03-28 Thread Maxim Avanov
Maxim Avanov added the comment: Ok, after further reading, I see that NewType creates an identity stub. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker __

[issue33126] Some C buffer protocol APIs not documented

2018-03-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset aa50bf08e64f49d57917ab0b1aadf4308a3168a6 by Antoine Pitrou in branch 'master': bpo-33126: Document PyBuffer_ToContiguous() (#6292) https://github.com/python/cpython/commit/aa50bf08e64f49d57917ab0b1aadf4308a3168a6 -- ___

[issue33126] Some C buffer protocol APIs not documented

2018-03-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6017 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33126] Some C buffer protocol APIs not documented

2018-03-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +6018 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Adding Chris Wilcox who wrote the original patch using GetMaximumProcessorCount. -- ___ Python tracker ___ ___

[issue33172] Update built-in version of SQLite3

2018-03-28 Thread Jonathan
New submission from Jonathan : The current version of SQLite (in Python 3.6) is 3.7.17 which was released almost 5 years ago - https://www.sqlite.org/releaselog/3_7_17.html Given that user updating of the version of SQLite used by Python is something of a pain (and the process is different acr

[issue33126] Some C buffer protocol APIs not documented

2018-03-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 18fdc87207ea65b3906f07cb47c51a609e442f93 by Antoine Pitrou (Miss Islington (bot)) in branch '3.6': bpo-33126: Document PyBuffer_ToContiguous() (GH-6292) (GH-6293) https://github.com/python/cpython/commit/18fdc87207ea65b3906f07cb47c51a609e442f93

[issue33126] Some C buffer protocol APIs not documented

2018-03-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 6124d8ec0d1eb8016e5e54a4d341b8f4f995623c by Antoine Pitrou (Miss Islington (bot)) in branch '3.7': bpo-33126: Document PyBuffer_ToContiguous() (GH-6292) (GH-6294) https://github.com/python/cpython/commit/6124d8ec0d1eb8016e5e54a4d341b8f4f995623c

[issue33126] Some C buffer protocol APIs not documented

2018-03-28 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33106] Deleting a key in a read-only gdbm results in KeyError, not gdbm.error

2018-03-28 Thread Xiang Zhang
Change by Xiang Zhang : -- keywords: +patch pull_requests: +6019 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33173] GzipFile's .seekable() returns True even if underlying buffer is not seekable

2018-03-28 Thread Walt Askew
New submission from Walt Askew : The seekable method on gzip.GzipFile always returns True, even if the underlying buffer is not seekable. However, if seek is called on the GzipFile, the seek will fail unless the underlying buffer is seekable. This can cause consumers of the GzipFile object to

[issue33172] Update built-in version of SQLite3

2018-03-28 Thread Ned Deily
Ned Deily added the comment: Python source releases do not include SQLite: the build process links Python with a system-supplied SQLite library or some local copy supplied by the builder, depending on the platform and the build setters. The pre-built versions of Python for Windows and macOS

[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2018-03-28 Thread Brett Cannon
Brett Cannon added the comment: There's a bunch of things wrong with zipimport, just ask Thomas. ;) -- nosy: +twouters ___ Python tracker ___ __

[issue32872] backport of #32305 causes regressions in various packages

2018-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset 7f554c536cfe2e66a1ff0a36c8896040be1e5aee by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-32872: Avoid regrtest compatibility issue with namespace packages. (GH-6276) (GH-6278) https://github.com/python/cpython/commit/7f554c536cfe2e66a1ff0a36

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset 15b6400d6439aad9859faba91ce297dfeae8d31d by Ned Deily (Christian Heimes) in branch '3.6': bpo-30622: Fix backport of NPN fix (#6102) https://github.com/python/cpython/commit/15b6400d6439aad9859faba91ce297dfeae8d31d -- nosy: +ned.deily _

[issue33163] Upgrade pip to 9.0.3 and setuptools to v39.0.1

2018-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset db65936a40e13144ec5307d16755a954f6a36b7e by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6285) https://github.com/python/cpython/commit/db65936a40e13144ec5307d16755a954f6a36b7e

[issue33174] error building the _sha3 module with Intel 2018 compilers

2018-03-28 Thread William Scullin
New submission from William Scullin : When building Python 3.6.X and later with icc (18.0.0.128 or 18.0.1.163), there's an error building the _sha3 module with any optimization level other than -O0: building '_sha3' extension icc -pthread -fPIC -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -

[issue33174] error building the _sha3 module with Intel 2018 compilers

2018-03-28 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue9584] fnmatch, glob: Allow curly brace expansion

2018-03-28 Thread Matúš Valo
Change by Matúš Valo : -- pull_requests: +6020 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I created a psutil branch using GetLogicalProcessorInformation() to determine both logical and physical CPUs: https://github.com/giampaolo/psutil/pull/1257 According to https://stackoverflow.com/questions/31209256 basically all Windows APIs are unreliable a

[issue32234] Add context management to mailbox.Mailbox

2018-03-28 Thread Stéphane Blondon
Stéphane Blondon added the comment: The availability of context manager does not make it mandatory if it does not fit some needs. > In the last example on https://docs.python.org/3/ > library/mailbox.html#examples inbox is locked and unlocked multiple > times. The with statement couldn't be use

[issue33131] Upgrade to pip 10 for Python 3.7

2018-03-28 Thread Donald Stufft
Donald Stufft added the comment: Oh, I had never written NEWS entries for upgrading pip/setuptools, with the idea that the specific version being installed is considered an implementation detail. However if folks want it, I can. -- ___ Python track

[issue33173] GzipFile's .seekable() returns True even if underlying buffer is not seekable

2018-03-28 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +6021 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2018-03-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The difference between __complex__ and __bytes__ on one side, and __int__ and __float__ on other side is that the latter have dedicated type slots while the former are just entries in the type's dict. Thus testing and calling __int__ and __float__ is much f

[issue33055] bytes does not implement __bytes__()

2018-03-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In any case this is a duplicate of 24234 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Should we define complex.__complex__ and bytes.__bytes__? ___ Python tracker

[issue24132] Direct sub-classing of pathlib.Path

2018-03-28 Thread qb-cea
qb-cea added the comment: > What about AbstractPath instead of _PurePath ? I will use this, thanks. -- ___ Python tracker ___ ___ P

[issue32798] mmap.flush() on Linux does not accept the "offset" and "size" args

2018-03-28 Thread Berker Peksag
Berker Peksag added the comment: By the way, there is a note in the "Change History" section of the msync() documentation at http://pubs.opengroup.org/onlinepubs/9699919799/ The second [EINVAL] error condition is made mandatory. The second EINVAL error condition they mention is: [EIN

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2018-03-28 Thread Nick Coghlan
Nick Coghlan added the comment: Given that issue 32002 and issue 30672 track the known challenges in testing the expected locale coercion behaviour reliably, I'm going to go ahead and close this overall implementation issue (the feature is there, and works in a way we're happy with, we're jus

[issue33128] PathFinder is twice on sys.meta_path

2018-03-28 Thread Nick Coghlan
Nick Coghlan added the comment: Calling initexternalimports InitalizeMainInterpreter and from new_interpreter is right, since we only want these importers on the metapath after we know sys.path has been configured appropriately. It's the call from InitializeCore that's questionable, since we

[issue33131] Upgrade to pip 10 for Python 3.7

2018-03-28 Thread Nick Coghlan
Nick Coghlan added the comment: It's a useful data point for folks trying to diagnose post-maintenance-update failures when we upgrade pip on their behalf, rather than them explicitly doing it themselves. -- ___ Python tracker

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2018-03-28 Thread Guido van Rossum
Guido van Rossum added the comment: It's not necessary for complex() and bytes() to call the special methods if the argument's type is exactly complex or bytes (respectively) -- these cases are already taken care of by the current code. But adding these special methods enables other code to

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread Eryk Sun
Eryk Sun added the comment: > if not available fallback on > GetActiveProcessorCount(ALL_PROCESSOR_GROUPS) The fallback for older versions of Windows is dwNumberOfProcessors from GetSystemInfo. This can be removed from 3.7 and 3.8, which no longer support Windows versions prior to Windows 7.

[issue9584] fnmatch, glob: Allow curly brace expansion

2018-03-28 Thread Matúš Valo
Matúš Valo added the comment: Hi All, I have created new patch for handling curly brace expansion. The patch is available on Github PR #6299 -- nosy: +Matúš Valo ___ Python tracker __