[issue29710] Incorrect representation caveat on bitwise operation docs

2018-07-14 Thread Nick Coghlan
Nick Coghlan added the comment: The restriction of the footnote to ``x & y``, ``x | y``, and ``x ^ y`` was going to come from the fact that only those rows in the table will reference the new note. However, it likely makes sense to repeat the relevant expressions in the footnote as well,

[issue34118] Fix some class entries in 'Built-in Functions'

2018-07-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: Fix some class entries entries in 'Built-in Functions' -> Fix some class entries in 'Built-in Functions' ___ Python tracker ___

[issue34117] Rename "generator expressions" to "generator comprehensions"

2018-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are also few differences between comprehensions and generator expressions. The author of the patch should not just replace all occurrences of "generator expression" with "generator comprehension", but analyze all occurrences of the sole

[issue29710] Incorrect representation caveat on bitwise operation docs

2018-07-14 Thread Tim Peters
Tim Peters added the comment: Nick, that seems a decent compromise. "Infinite string of sign bits" is how Guido & I both thought of it when the semantics of longs were first defined, and others in this report apparently find it natural enough too. It also applies to all 6 operations in

[issue34117] Rename "generator expressions" to "generator comprehensions"

2018-07-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Guido asked me to try this out on students. I'll report back after next week's class. -- nosy: +rhettinger ___ Python tracker ___

[issue8525] Display exceptions' subclasses in help()

2018-07-14 Thread Rob Cliffe
Rob Cliffe added the comment: On 14/07/2018 13:44, Nick Coghlan wrote: > Nick Coghlan added the comment: > > Reviewing the builtins in 3.7, I get the following results for builtin > objects that have defined subclasses immediately after interpreter startup: > > = for name,

[issue34118] Fix some class entries entries in 'Built-in Functions'

2018-07-14 Thread Terry J. Reedy
New submission from Terry J. Reedy : The Library Reference 'Built-in Functions' chapter includes build-in classes because classes are functions in the sense of being callable with arguments and returning objects. A proposal to change the name to Built-in Functions and Classes was rejected

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-14 Thread Ammar Askar
Ammar Askar added the comment: Opened up a PR with a proof of concept to get feedback on if this approach is reasonable. Giampaolo, on your psutil issue you specifically said, "(possibly without using WMI)" Is there any particular problem with using WMI? --

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-14 Thread Ammar Askar
Ammar Askar added the comment: Thanks a lot for that link Jeremy, it was really helpful. After reading up on it, my take is that winapi is the most appropriate place for this, it is a non public api that's used in the stdlib. I've used Windows APIs in a way that we don't need to manually

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-14 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch pull_requests: +7821 stage: -> patch review ___ Python tracker ___ ___

[issue34114] Build failing: use of undeclared identifier '_Py_END_SUPPRESS_IPH' & '_Py_BEGIN_SUPPRESS_IPH'

2018-07-14 Thread INADA Naoki
INADA Naoki added the comment: Sometime, you need to run `make distclean` or `git clean -fdx` to remove wrong caches. -- nosy: +inada.naoki resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue34117] Rename "generator expressions" to "generator comprehensions"

2018-07-14 Thread Brett Cannon
New submission from Brett Cannon : The idea came up on python-dev to tweak the names of generator expressions to "generator comprehensions" to align more with list|set|dict comprehensions. This would be strictly a doc change (for now). A reference to generator expressions should be left if

[issue34116] Move all bytes/bytearray/int/float/complex documentation to Built-in Types

2018-07-14 Thread Andrés Delfino
Andrés Delfino added the comment: See talk at: https://python.zulipchat.com/#narrow/stream/116633-documentation/subject/Gather.20all.20type.20documentation.20in.20stdtypes -- ___ Python tracker

[issue34116] Move all bytes/bytearray/int/float/complex documentation to Built-in Types

2018-07-14 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7820 stage: -> patch review ___ Python tracker ___ ___

[issue34112] 3.7.0 build error with --enable-optimizations

2018-07-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: --enable-optimizations On Sat, Jul 14, 2018, at 12:31, Jayanth Koushik wrote: > > Jayanth Koushik added the comment: > > Hi. Do you mean turning of `--enable-optimizations` or reducing GCC > optimization level (O3 etc)? > > -- > >

[issue34116] Move all bytes/bytearray/int/float/complex documentation to Built-in Types

2018-07-14 Thread Andrés Delfino
New submission from Andrés Delfino : Right now, bytearray, bytes, complex, float and int documentation is splitted into stdtypes.rst and functions.rst. I think stdtypes.rst should be the only source with all documentation, and functions.rst should just point out to stdtypes.rst. This would

[issue34115] code.InteractiveConsole.interact() closes stdin

2018-07-14 Thread Yonatan Zunger
New submission from Yonatan Zunger : code.InteractiveConsole.interact() closes stdin on exit, which can be very surprising to successive code, not least future calls to interact(). A simple repro with a workaround is: import code import io import os import sys def run():

[issue34114] Build failing: use of undeclared identifier '_Py_END_SUPPRESS_IPH' & '_Py_BEGIN_SUPPRESS_IPH'

2018-07-14 Thread Sanyam Khurana
Sanyam Khurana added the comment: This is strange. I cloned the repo again at some other location, and I can build it successfully. In my older clone, however, it shows me this error, despite running a `make clean`. Any idea on what is the problem here? -- nosy: +vstinner

[issue29199] test_regrtest fails if PCBuild directory doesn't exist

2018-07-14 Thread ppperry
ppperry added the comment: To be precise, fixed as part of issue33352 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29199] test_regrtest fails if PCBuild directory doesn't exist

2018-07-14 Thread ppperry
ppperry added the comment: This issue seems to have been fixed in 3.7 -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue34114] Build failing: use of undeclared identifier '_Py_END_SUPPRESS_IPH' & '_Py_BEGIN_SUPPRESS_IPH'

2018-07-14 Thread Sanyam Khurana
New submission from Sanyam Khurana : The step for configuration works correctly and gives a makefile. On running `./make` the following traceback is produced: ``` $ make

[issue34113] LLTRACE segv

2018-07-14 Thread Andrew Valencia
New submission from Andrew Valencia : Build with -DLLTRACE, then: >>> __lltrace__ = 1 >>> a = [1, 2, 3] 0: 100, 0 push 1 3: 100, 1 push 2 6: 100, 2 push 3 9: 103, 3 pop 3 pop 2 pop 1 push [1, 2, 3] 12: 90, 0 pop [1, 2, 3] 15: 100, 3 push None 18: 83 pop None >>> a[0] = 1 0: 100, 0 push 1 3:

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-14 Thread Jeremy Kloth
Jeremy Kloth added the comment: Also prior conversation: https://bugs.python.org/issue30263#msg296311 -- nosy: +jkloth ___ Python tracker ___

[issue30618] readlink for pathlib paths

2018-07-14 Thread girts
Change by girts : -- keywords: +patch pull_requests: +7819 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34112] 3.7.0 build error with --enable-optimizations

2018-07-14 Thread Jayanth Koushik
Jayanth Koushik added the comment: Hi. Do you mean turning of `--enable-optimizations` or reducing GCC optimization level (O3 etc)? -- ___ Python tracker ___

[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

2018-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: #33111 claims that importing tkinter is enough to hang multiprocessing on MacOS up through 3.6. -- components: +macOS nosy: +ronaldoussoren, terry.reedy ___ Python tracker

[issue34112] 3.7.0 build error with --enable-optimizations

2018-07-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: It's look you're using a fairly old toolchain. I wouldn't reccomend using fancy modern compiler optimizations with GCC 4. -- nosy: +benjamin.peterson ___ Python tracker

[issue33111] Merely importing tkinter breaks parallel code (multiprocessing, sharedmem)

2018-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: On MacOS, 3.7.0 is compiled for and the installer loads tcl/tk 8.6.8. The same is true for the 3.6.6 64-bit installer. Do tkinter and multiprocessing work together better with these installations? I want to consider using multiprocessing and pipes instead

[issue34112] 3.7.0 build error with --enable-optimizations

2018-07-14 Thread Jayanth Koushik
New submission from Jayanth Koushik : I'm trying to build 3.7.0 locally (not as superuser) on a server. I am able to successfully build without `--enable-optimizations` enabled, but the build fails with it enabled. I have dependencies installed in custom locations as well, and this is my

[issue33668] Wrong behavior of help function on module

2018-07-14 Thread Dong-hee Na
Dong-hee Na added the comment: I've checked both cases are now working on my patch. -- ___ Python tracker ___ ___ Python-bugs-list

[issue33668] Wrong behavior of help function on module

2018-07-14 Thread Dong-hee Na
Dong-hee Na added the comment: This script works well on Python2 but not on Python3. I've submitted a PR. Please take a look. -- nosy: +corona10 ___ Python tracker ___

[issue33668] Wrong behavior of help function on module

2018-07-14 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +7818 stage: -> patch review ___ Python tracker ___ ___

[issue29710] Incorrect representation caveat on bitwise operation docs

2018-07-14 Thread Nick Coghlan
Nick Coghlan added the comment: I think we have a fairly different notion of what clarity means here - I have no mental concept whatsoever of how to do two's complement arithmetic with an infinite number of sign bits (I learned most of what I know about two's complement by working with

[issue8525] Display exceptions' subclasses in help()

2018-07-14 Thread Nick Coghlan
Nick Coghlan added the comment: Reviewing the builtins in 3.7, I get the following results for builtin objects that have defined subclasses immediately after interpreter startup: = >>> for name, obj in vars(builtins).items(): ... if isinstance(obj, type) and name in str(obj):

[issue34111] python-config breaks when symlinked to another location

2018-07-14 Thread tobik
New submission from tobik : When symlinking python3.6-config to another location, it starts outputting bogus paths. It's convenient to symlink the system python3.6-config to somewhere else in PATH to make sure the build of an application with a hardcoded use of python3-config is using the

[issue24618] Invalid read in PyCode_New

2018-07-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +7817 stage: -> patch review ___ Python tracker ___ ___

[issue30400] Race condition in shutil.copyfile(): source file replaced file during copy

2018-07-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > For example, os.stat() accepts both a filename (string) or a file descriptor > (integer). Interesting. I never realized that. Other functions involved in file copy are: os.lchmod os.chmod os.listxattr os.getxattr I checked and it appears they all

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: There is an old ticket for this in psutil with some (possible useful) references in it: https://github.com/giampaolo/psutil/issues/604 -- ___ Python tracker

[issue34068] traceback.clear_frames(): Objects/typeobject.c:3086: _PyType_Lookup: Assertion `!PyErr_Occurred()' failed.

2018-07-14 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-14 Thread Ammar Askar
Ammar Askar added the comment: Taking a shot at this, should take a day or so. -- ___ Python tracker ___ ___ Python-bugs-list

[issue34068] traceback.clear_frames(): Objects/typeobject.c:3086: _PyType_Lookup: Assertion `!PyErr_Occurred()' failed.

2018-07-14 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +7816 stage: -> patch review ___ Python tracker ___ ___

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-14 Thread Ammar Askar
Ammar Askar added the comment: Annoyingly, it looks like Windows does not provide an API that gives an average value. There is a counter exposed called "System \ Processor Queue Length" which does what the equivalent of unix's load

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-14 Thread INADA Naoki
INADA Naoki added the comment: New changeset b2f8aa0c998d331ab2b4c701756a6427c0e91d48 by INADA Naoki in branch '3.6': bpo-34087: Backport tests for int/float/complex (GH-8274) https://github.com/python/cpython/commit/b2f8aa0c998d331ab2b4c701756a6427c0e91d48 --

[issue18295] Possible integer overflow in PyCode_New()

2018-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since 3.7 the number of arguments no longer limited by 255 (see issue12844 and issue18896). -- versions: +Python 2.7, Python 3.6 -Python 3.4, Python 3.5 ___ Python tracker

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-14 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: