[issue38706] What should the error message in the exception raised by assertTrue and assertFalse be?

2019-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not English expert, but traditionally "true" is used as a synonym of a truthy value everywhere in the Python documentation and code. There are almost 2000 occurrences. If it is a wrong word, it should be fixed in all these cases. -- nosy: +ezi

[issue38706] What should the error message in the exception raised by assertTrue and assertFalse be?

2019-11-06 Thread Ammar Askar
Ammar Askar added the comment: I don't think the word "true" is really the issue here. It's the fact that "is" in this context is ambiguous, is it referring to the English "is" or the python operator `is`? -- ___ Python tracker

[issue38706] What should the error message in the exception raised by assertTrue and assertFalse be?

2019-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are almost 500 occurrences of "is true". -- ___ Python tracker ___ ___ Python-bugs-list m

[issue38715] Regression in compileall ddir parameter when recursing

2019-11-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue38656] mimetypes for python 3.7.5 fails to detect matroska video

2019-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It seems that there is a list of files from which the mime types are also added at https://github.com/python/cpython/blob/5c0c325453a175350e3c18ebb10cc10c37f9595c/Lib/mimetypes.py#L42. "video/x-matroska" is not present in CPython repo's list of suf

[issue38716] logging: rotating handlers set namer and rotator null

2019-11-06 Thread lorb
New submission from lorb : When subclassing the rotating handlers of the logging module and implementing a namer or rotator method they are silently set to None in __init__. This is surprising behaviour and currently the set a specific namer or rotator it is required to create an instance fir

[issue38716] logging: rotating handlers set namer and rotator null

2019-11-06 Thread lorb
Change by lorb : -- keywords: +patch pull_requests: +16581 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17072 ___ Python tracker ___ ___

[issue38698] While parsing email message id: UnboundLocalError

2019-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This was also reported in issue38708 with the original code added in issue35805. Commenting out the except clause also doesn't raise any error in test suite so I assume the code path was not tested. Maybe the script could be added as part of the te

[issue38708] parse_message_id in email module is very buggy / crashy

2019-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be the same as issue38698. -- nosy: +xtreak ___ Python tracker ___ ___ Py

[issue38717] csv DictWriter's internal _dict_to_list raise error unsupported operand

2019-11-06 Thread Patrick Schneeweiß
New submission from Patrick Schneeweiß : I switched over to Python 3.7 and still using my csv DictWriter. No I'm receiving an error when calling the writerow() method. unsupported operand type(s) for -: 'list' and 'list' Digging deeped in the problem I found out, that the internal _dict_to_li

[issue38706] What should the error message in the exception raised by assertTrue and assertFalse be?

2019-11-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +16583 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17073 ___ Python tracker ___

[issue38717] csv DictWriter's internal _dict_to_list raise error unsupported operand

2019-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I guess you try to write not a dict, but an object whose keys() method returns a list. -- nosy: +rhettinger, serhiy.storchaka ___ Python tracker _

[issue38716] logging: rotating handlers set namer and rotator null

2019-11-06 Thread Vinay Sajip
Vinay Sajip added the comment: The namer and rotator attributes are callables, not methods to be overridden. You can certainly do this with methods and set them accordingly: class MyHandler(BaseRotatingHandler): def __init__(self, *args, **kwargs): super(MyHandler, self).__init__(

[issue38717] csv DictWriter's internal _dict_to_list raise error unsupported operand

2019-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please attach a sample script to reproduce the behavior difference? With below script a dictionary is passed then dict.keys() supports subtraction over a list to return the difference. I am not sure how you have received a list with dict.ke

[issue38706] What should the error message in the exception raised by assertTrue and assertFalse be?

2019-11-06 Thread Vinay Sajip
Vinay Sajip added the comment: I also feel that lower case true and false are synonymous with any truthy and falsey values, as I'm sure many others do, so things in this area should in general stay as they are. Certainly -1 for a search-and-replace approach! -- nosy: +vinay.sajip __

[issue38717] csv DictWriter's internal _dict_to_list raise error unsupported operand

2019-11-06 Thread Patrick Schneeweiß
Patrick Schneeweiß added the comment: Hello all, This is my dict: {'rule': 'WAN-2-Web|unknown (Barracuda Networks CloudGen Firewall)', 'April (2018)': '', 'May (2018)': '', 'June (2018)': '', 'July (2018)': '', 'August (2018)': '', 'April (2019)': '', 'May (2019)': '14', 'June (2019)': '', 'J

[issue38717] csv DictWriter's internal _dict_to_list raise error unsupported operand

2019-11-06 Thread Patrick Schneeweiß
Patrick Schneeweiß added the comment: Ok in a new sample Script it is working. As I used my normal script in a software called Splunk, I saw they are using a custom class OrderedDict. I will take a look on this first. -- ___ Python tracker

[issue38716] logging: rotating handlers set namer and rotator null

2019-11-06 Thread lorb
lorb added the comment: Thanks for the review and response. I don't understand yet why not to allow the following while keeping the existing functionality. This could also be achieved by turning the namer and rotator into class attributes. I recently created a subclass of the timed rotating han

[issue38706] What should the error message in the exception raised by assertTrue and assertFalse be?

2019-11-06 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue38717] csv DictWriter's internal _dict_to_list raise error unsupported operand

2019-11-06 Thread Patrick Schneeweiß
Patrick Schneeweiß added the comment: Sorry guys, it was an issue with the cusotm Splunk Library. They treated the keys Method a little different. Thanks all for the hints. Will close this -- resolution: -> third party stage: -> resolved status: open -> closed

[issue38716] logging: rotating handlers set namer and rotator null

2019-11-06 Thread Vinay Sajip
Vinay Sajip added the comment: They can be methods, but don't need to be. In my example, I showed how you can set the namer and rotator attributes to methods which do have access to self. I don't want to encourage the idea that namer and rotator *have* to be methods that have to be overridde

[issue38706] What should the error message in the exception raised by assertTrue and assertFalse be?

2019-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I pretty strongly dislike 'truthy' and 'falsey'. They look slangy and https://en.wiktionary.org/wiki/truthy gives the main meaning as (US, colloquial) Only superficially true; ... The computer language usage is credited to Javascript here and some other s

[issue38716] logging: rotating handlers set namer and rotator null

2019-11-06 Thread lorb
lorb added the comment: This PR certainly does not turn them into methods. I believe it also doesn't encourage the idea that they would have to be. All it does is preventing __init__ from setting them to None in the case they are defined as methods. Would you consider it more acceptable to just

[issue38718] query of global options delivers error messages even when successful

2019-11-06 Thread Arno-Can Uestuensoez
New submission from Arno-Can Uestuensoez : The 'setup.py' interface offers some global options, which could be queried. For example among numerous others the 'classifiers'. The current implementation displays for example for the following call:: python setup.py --description The result::

[issue38718] query of global metadata options delivers error messages even when successful

2019-11-06 Thread Arno-Can Uestuensoez
Change by Arno-Can Uestuensoez : -- title: query of global options delivers error messages even when successful -> query of global metadata options delivers error messages even when successful ___ Python tracker

[issue38708] parse_message_id in email module is very buggy / crashy

2019-11-06 Thread Dimitri John Ledkov
Dimitri John Ledkov added the comment: Yes, issue38698 covers the UnboundLocalError, but doesn't cover inside get_msg_id there is also this gem: def get_msg_id(value): msg_id = MsgID() if value[0] in CFWS_LEADER: It should test value before accessing value[0] like it is d

[issue38706] What should the error message in the exception raised by assertTrue and assertFalse be?

2019-11-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: I have tried sending this message by email twice, and both times it seems to have disappeared. So I'm commenting via the web, and my apologies in advance if the message shows up later. * > There are almost 500 occurrences of "is true". We can worry ab

[issue38708] parse_message_id in email module is very buggy / crashy

2019-11-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +email nosy: +barry, maxking, r.david.murray type: -> behavior ___ Python tracker ___ _

[issue38719] Surprising and possibly incorrect passing of InitVar to __post_init__ method of data classes

2019-11-06 Thread Aaron Ecay
New submission from Aaron Ecay : I have discovered that InitVar's are passed in a surprising way to the __post_init__ method of python dataclasses. The following program illustrates the problem: = from dataclasses import InitVar, dataclass @dataclass class Foo: bar: InitVar[str]

[issue38706] What should the error message in the exception raised by assertTrue and assertFalse be?

2019-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there is anything wrong with terms "true" and "false" (I don't know), we should fix this not only in one particular place, but everywhere. If there is nothing wrong with them, there is nothing to "improve". If this depends of the context, we should cons

[issue38719] Surprising and possibly incorrect passing of InitVar to __post_init__ method of data classes

2019-11-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue38703] should we expect round(0.95, 1) to be 1.0, instead of 0.9?

2019-11-06 Thread Mark Dickinson
Mark Dickinson added the comment: [Steven] py> '%.17f' % 0.95 '0.94996' That's tricky to use correctly: it's not a priori clear how many digits after the point are needed to give you a faithful representation (the "17" in "%.17f" isn't going to be the right thing for most values

[issue38719] Surprising and possibly incorrect passing of InitVar to __post_init__ method of data classes

2019-11-06 Thread Eric V. Smith
Eric V. Smith added the comment: I think using named parameters in the call to __post_init__ is reasonable. It's currently positional. -- assignee: -> eric.smith ___ Python tracker

[issue38719] Surprising and possibly incorrect passing of InitVar to __post_init__ method of data classes

2019-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Should we also be checking for __post_init__ to have positional only arguments / syntax in the signature. I tried a simple fix of f.name + "=" + f.name to pass them as keyword always where current tests and reported example passes but with position

[issue38719] Surprising and possibly incorrect passing of InitVar to __post_init__ method of data classes

2019-11-06 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think that's necessary. We should just document that parameters are passed by name to __post_init__. This would have to be a 3.9 feature, since it's not strictly backward compatible. -- versions: +Python 3.9 -Python 3.7 __

[issue38704] Prevent installation on unsupported Windows versions

2019-11-06 Thread Steve Dower
Steve Dower added the comment: We can, and we probably should, but it's not a high priority. Technically the download page is correct, but updating it to specify Windows Vista as the 3.8 cutoff (and for 3.9, Windows 8.1) won't hurt. -- stage: -> needs patch title: No `GetActiveProce

[issue38683] Installation failed - no privileges to access directory

2019-11-06 Thread Steve Dower
Steve Dower added the comment: To change the install location to Program Files, you should select the "Install for All Users" option at the top of the page where you modified the install location. This will cause the installer to elevate. Generic access errors should not trigger elevation -

[issue35381] posixmodule: convert statically allocated types (DirEntryType & ScandirIteratorType) to heap-allocated types

2019-11-06 Thread Petr Viktorin
Petr Viktorin added the comment: The module still uses tp_new directly, so it's not limited to only stable ABI, but that's for another issue. Thanks for the contribution! -- nosy: +petr.viktorin resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue38159] PyState_AddModule docs should say that it's not necessary to call it.

2019-11-06 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37645] Replace PyEval_GetFuncName/PyEval_GetFuncDesc

2019-11-06 Thread Petr Viktorin
Petr Viktorin added the comment: With this change, CPython no longer uses PyEval_GetFuncName/PyEval_GetFuncDesc internally. Shall we deprecate/discourage them? Shall we expose PyObject_FunctionStr publicly? -- ___ Python tracker

[issue38696] HTTP modules documentation error

2019-11-06 Thread miss-islington
miss-islington added the comment: New changeset 30da387df193b9f05c2891ae601ae5a1d669a5c1 by Miss Islington (bot) in branch '3.8': bpo-38696: Fix usage example of HTTPStatus (GH-17066) https://github.com/python/cpython/commit/30da387df193b9f05c2891ae601ae5a1d669a5c1 -- nosy: +miss-is

[issue38696] HTTP modules documentation error

2019-11-06 Thread miss-islington
miss-islington added the comment: New changeset 91f4b9282fe7cdc51c6612002d033da654f422c1 by Miss Islington (bot) in branch '3.7': bpo-38696: Fix usage example of HTTPStatus (GH-17066) https://github.com/python/cpython/commit/91f4b9282fe7cdc51c6612002d033da654f422c1 -- _

[issue38696] HTTP modules documentation error

2019-11-06 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report, Stojan, and for the patch, Ammar! -- nosy: +ammar2 resolution: -> fixed stage: patch review -> resolved status: open -> closed type: resource usage -> behavior versions: +Python 3.7, Python 3.9 ___

[issue38720] Logging failure with timestamp messages

2019-11-06 Thread xtobes
New submission from xtobes : This only happings on Windows, the scripts runs some seconds and then stops and exit with: Process finished with exit code -1073740940 (0xC374). This happens when the format variable of a logging config object contains the identifier '%(asctime)s'. --

[issue38696] HTTP modules documentation error

2019-11-06 Thread Stojan Jovic
Stojan Jovic added the comment: Thank you, guys, for really quick fix! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38716] logging: rotating handlers set namer and rotator null

2019-11-06 Thread Vinay Sajip
Vinay Sajip added the comment: > Would you consider it more acceptable to just turn them into class level attributes of BaseRotatingHandler instead of setting them in init? Yes, that would be better. -- ___ Python tracker

[issue16575] ctypes: unions as arguments

2019-11-06 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 484edbf9bf1a9e6bae0fcb10a0c165b89ea79295 by Vinay Sajip (Ammar Askar) in branch '3.7': bpo-16575: Fix refleak on passing unions in ctypes (GH-17064) https://github.com/python/cpython/commit/484edbf9bf1a9e6bae0fcb10a0c165b89ea79295 -- ___

[issue38716] logging: rotating handlers set namer and rotator null

2019-11-06 Thread lorb
lorb added the comment: I have changed the PR accordingly. Am Mi., 6. Nov. 2019 um 16:36 Uhr schrieb Vinay Sajip : > > > Vinay Sajip added the comment: > > > Would you consider it more acceptable to just turn > them into class level attributes of BaseRotatingHandler instead of > setting them

[issue38721] modulefinder should use io.open_code() instead of open()

2019-11-06 Thread Dominic Littlewood
New submission from Dominic Littlewood <11dlittlew...@gmail.com>: modulefinder currently will detect modules imported by a script dynamically by running the script, and to do this it has to open the script as a file. This would also fix what appears to be a bug where modulefinder failed to ope

[issue38723] Pdb._runscript should use io.open_code() instead of open()

2019-11-06 Thread Dominic Littlewood
Change by Dominic Littlewood <11dlittlew...@gmail.com>: -- components: +Library (Lib) type: -> security versions: +Python 3.9 ___ Python tracker ___ __

[issue38722] runpy should use io.open_code() instead of open()

2019-11-06 Thread Dominic Littlewood
New submission from Dominic Littlewood <11dlittlew...@gmail.com>: Fairly obviously, if you're using something called runpy you're probably trying to run some code. To do this it has to open the script as a file. This is similar to two other issues I'm posting, but they're in different modules

[issue38723] Pdb._runscript should use io.open_code() instead of open()

2019-11-06 Thread Dominic Littlewood
New submission from Dominic Littlewood <11dlittlew...@gmail.com>: Fairly obviously, if you're using something called _runscript you're probably trying to run some code. To do this it has to open the script as a file. This is similar to two other issues I'm posting, but they're in different mo

[issue38583] The activate script in Windows is not correct for venvs created in git-bash

2019-11-06 Thread Mo
Mo added the comment: I had also tested with pathlib and posixpath and come to the same conclusion. As suggested by you, I looked into `activate` determining path when run. I believe this should do the trick (My bashfoo isn't strong, this is mostly from https://stackoverflow.com/a/179231):

[issue16575] ctypes: unions as arguments

2019-11-06 Thread Ammar Askar
Ammar Askar added the comment: Will close after https://buildbot.python.org/all/#/builders?tags=%2Brefleak&tags=%2B3.7 go back to green. -- ___ Python tracker ___ __

[issue33450] unexpected EPROTOTYPE returned by sendto on MAC OSX

2019-11-06 Thread Daniel King
Change by Daniel King : -- nosy: +Daniel King ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue38692] add a pidfd child process watcher

2019-11-06 Thread STINNER Victor
STINNER Victor added the comment: Would it be useful to use a pidfd in subprocess.Popen to fix bpo-38630 root issue, when pidfd is available? -- ___ Python tracker ___ __

[issue38724] Implement subprocess.Popen.__repr__

2019-11-06 Thread Ram Rachum
New submission from Ram Rachum : I was working with a Popen object recently in the shell and it was annoying to see the `` display. It would be nice to get some kind of minimal detail about the Popen, for example its args and return code, if finished. -- components: Library (Lib) mes

[issue38724] Implement subprocess.Popen.__repr__

2019-11-06 Thread Ram Rachum
Change by Ram Rachum : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue38724] Implement subprocess.Popen.__repr__

2019-11-06 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue38725] Documented equivalent of `gzip -n` (omit timestamp and original file name) in gzip module

2019-11-06 Thread Zack Weinberg
New submission from Zack Weinberg : Recent versions of the gzip command-line utility have an option `-n` which causes it to omit the FNAME field of the gzip file header, and write out the MTIME field as zero. Both of these properties are desirable when constructing reproducible build artifac

[issue38726] Add equivalent of `gzip -n` (omit timestamp and original file name) to tarfile module's auto-compression support

2019-11-06 Thread Zack Weinberg
New submission from Zack Weinberg : Recent versions of the gzip command-line utility have an option `-n` which causes it to omit the FNAME field of the gzip file header, and write out the MTIME field as zero. Both of these properties are desirable when constructing reproducible build artifac

[issue38727] setup.py sdist --format=gztar should use (equivalent of) `gzip -n`

2019-11-06 Thread Zack Weinberg
New submission from Zack Weinberg : Recent versions of the gzip command-line utility have an option `-n` which causes it to omit the FNAME field of the gzip file header, and write out the MTIME field as zero. Both of these properties are desirable when constructing reproducible build artifac

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-11-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Another option not using a new letter: A triple-backtick token. def foo(): value = ```this is a long multi line string i don't want indented. ``` A discuss thread was started so I reconnected it with this issue. See https://discuss.python.o

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it would be better to use use backtick quotes for f-strings instead of the f prefix. This would stress the special nature of f-strings (they are not literals, but expressions). But there was strong opposition to using backticks anywhere in Python s

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-11-06 Thread Marco Sulla
Marco Sulla added the comment: If I can say my two cents: 1. I preferred that the default behaviour of multi-line was to dedent. But breaking old code, even if for a little percentage of code, IMHO is never a good idea. Py2->Py3 should have proved it. 2. ``` remembers me too much the Markdo

[issue38716] logging: rotating handlers set namer and rotator null

2019-11-06 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 519cb8772a9745b1c7d8218cabcd2f96ceda4d62 by Vinay Sajip (l0rb) in branch 'master': bpo-38716: stop rotating handlers from setting inherited namer and rotator to None (GH-17072) https://github.com/python/cpython/commit/519cb8772a9745b1c7d8218cabcd2

[issue38599] Deprecate creation of asyncio object when the loop is not running

2019-11-06 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38599] Deprecate creation of asyncio object when the loop is not running

2019-11-06 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hi, @asvetlov are you thinking something like the patch attached? -- keywords: +patch Added file: https://bugs.python.org/file48697/0001-Add-a-deprectation-warning-for-queue-w-o-event-runni.patch ___ Python track

[issue38728] Update PC/pyconfig.h to support disabling auto linking

2019-11-06 Thread Jean-Christophe Fillion-Robin
New submission from Jean-Christophe Fillion-Robin : When configuring project using build-system generator like CMake, the linking is explicitly handled and does not to be implicitly hard-coded in pyconfig.h Having the "pythonXY.lib" library hard-coded in pyconfig.h currently requires to expli

[issue38729] mock.create_autospec generates incorrect signature for some decorated methods

2019-11-06 Thread Ben Reilly
New submission from Ben Reilly : mock.create_autospec is meant to create a mock that will ensure, among other things, that method calls on the mock correspond to real methods on the original object and that the arguments match the signature of the original method. However, if the original met

[issue38729] mock.create_autospec generates incorrect signature for some decorated methods

2019-11-06 Thread Ben Reilly
Change by Ben Reilly : -- components: +Tests ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-11-06 Thread Josh Rosenberg
Josh Rosenberg added the comment: Is there a reason folks are supporting a textwrap.dedent-like behavior over the generally cleaner inspect.cleandoc behavior? The main advantage to the latter being that it handles: '''First Second Third ''' just fine (removing the common ind

[issue38710] unsynchronized write pointer in io.TextIOWrapper in 'r+' mode

2019-11-06 Thread Josh Rosenberg
Change by Josh Rosenberg : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue38710] unsynchronized write pointer in io.TextIOWrapper in 'r+' mode

2019-11-06 Thread Josh Rosenberg
Change by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue13214] Cmd: list available completions from the cmd.Cmd subclass and filter out EOF handler(s)

2019-11-06 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +16584 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17074 ___ Python tracker ___ ___

[issue38440] Possible new issues with IDLE

2019-11-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: A new intermittent problem has arisen on macOS since I updated to Catalina. It occurs on both 10.15.0 and 10.15.1. I'm using the 3.8.0 mac 64-bit install taken directly from python.org. In a long-running session of IDLE, the process freezes-up during Fi

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-11-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: .cleandoc is _probably_ more of what people want than .dedent? I hadn't bothered to even try to pick between the two yet. -- ___ Python tracker _

[issue38440] Possible new issues with IDLE

2019-11-06 Thread Ned Deily
Ned Deily added the comment: That's quite a stack trace, bouncing back and forth between Python and Tk and macOS. I don't really have any experience with the flow of control there with call outs to file save dialogs. CCing Kevin Walzer on the off chance that this might be familiar and hope

[issue38729] mock.create_autospec generates incorrect signature for some decorated methods

2019-11-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Library (Lib) -Tests nosy: +cjw296, lisroach, mariocj89, michael.foord, xtreak ___ Python tracker ___ _

[issue11588] Add "necessarily inclusive" groups to argparse

2019-11-06 Thread Jack Wong
Change by Jack Wong : -- nosy: +iforapsy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue16575] ctypes: unions as arguments

2019-11-06 Thread Ammar Askar
Change by Ammar Askar : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue38692] add a pidfd child process watcher

2019-11-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Wed, Nov 6, 2019, at 09:57, STINNER Victor wrote: > > STINNER Victor added the comment: > > Would it be useful to use a pidfd in subprocess.Popen to fix bpo-38630 > root issue, when pidfd is available? Probably, but as noted above, we need to figure

[issue38440] Possible new issues with IDLE

2019-11-06 Thread Kevin Walzer
Kevin Walzer added the comment: On macOS, Tk 8.6.8 is considered ancient, even obsolete, on 10.14 or later. Tk has required huge re-work to accommodate changes in the Mac's drawing API's on 10.14, mostly done by Marc Culler; these issues are not observable with the current tip of 8.6 develop

[issue38730] 2.7 modern compiler warnings

2019-11-06 Thread Benjamin Peterson
New submission from Benjamin Peterson : GCC 9's -Wstringop-truncation warnings trigger several times in 2.7. Some of these instances are all actual bugs. In all cases, we should clarify the code to make the compiler happy. -- components: Build messages: 356166 nosy: benjamin.peterson

[issue38730] 2.7 modern compiler warnings

2019-11-06 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +16585 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17075 ___ Python tracker __

[issue37731] Possible redifinition of _POSIX_C_SOURCE in ./pyconfig.h

2019-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +16586 pull_request: https://github.com/python/cpython/pull/17076 ___ Python tracker ___ __

[issue37731] Possible redifinition of _POSIX_C_SOURCE in ./pyconfig.h

2019-11-06 Thread miss-islington
miss-islington added the comment: New changeset 30114c7119a9ae0e610d6974f57f22d8d05ed50d by Miss Islington (bot) in branch '2.7': bpo-37731: Reorder includes in xmltok.c to avoid redefinition of _POSIX_C_SOURCE (GH-16733) https://github.com/python/cpython/commit/30114c7119a9ae0e610d6974f57f2

[issue37731] Possible redifinition of _POSIX_C_SOURCE in ./pyconfig.h

2019-11-06 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +16587 pull_request: https://github.com/python/cpython/pull/17077 ___ Python tracker ___ ___

[issue37731] Possible redifinition of _POSIX_C_SOURCE in ./pyconfig.h

2019-11-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 089e5f52a34377193a9e6c03088114b14c8507af by Benjamin Peterson in branch '2.7': bpo-37731: Squish another _POSIX_C_SOURCE redefinition problem in expat. (GH-17077) https://github.com/python/cpython/commit/089e5f52a34377193a9e6c03088114b14c850

[issue36406] doctest.testmod(empty_package) raises TypeError in 3.7 (and no errors in 3.6)

2019-11-06 Thread larabrian
larabrian added the comment: A subscriptable object is any object that implements the __getitem__ special method (think lists, dictionaries). It is an object that records the operations done to it and it can store them as a "script" which can be replayed. You are trying to subscript an object

[issue38382] statistics.harmonic_mean fails to raise error with negative input that follows a 0

2019-11-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 7f460494d2309ace004a400bae8fc59134dc325c by Raymond Hettinger in branch 'master': bpo-38382: Document the early-out behavior for a zero (GH-17037) https://github.com/python/cpython/commit/7f460494d2309ace004a400bae8fc59134dc325c --

[issue38382] statistics.harmonic_mean fails to raise error with negative input that follows a 0

2019-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +16588 pull_request: https://github.com/python/cpython/pull/17078 ___ Python tracker ___ __

[issue38382] statistics.harmonic_mean fails to raise error with negative input that follows a 0

2019-11-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 6b66dc387935df432cdbc01397ddef534a84ade9 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-38382: Document the early-out behavior for a zero (GH-17037) (GH-17078) https://github.com/python/cpython/commit/6b66dc387935df432cdbc01

[issue38382] statistics.harmonic_mean fails to raise error with negative input that follows a 0

2019-11-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38440] Possible new issues with IDLE

2019-11-06 Thread Tal Einat
Tal Einat added the comment: Thanks for the report on the freezes, Raymond! My mac was recently fixed and I've upgraded to the latest OS version, so I'll take a look at this as well. Thanks for the update on the Tk side, Kevin. It's very unfortunate that we've found 3.6.9 unusable with Pytho

[issue38731] bad input crashes py_compile library

2019-11-06 Thread Kaoru Esashika
New submission from Kaoru Esashika : How to reproduction: Step 1: make bad source code Step 2: run "python -m py_compile bad_source_code.py" Step 3: errors printed It seems that this problem is introduced at issue 22640 (commit https://github.com/python/cpython/commit/2e33ecd7c9b0cac3efc6fcbdd

[issue38440] Possible new issues with IDLE

2019-11-06 Thread Ned Deily
Ned Deily added the comment: Thanks, Kevin. I do see that 8.6.10rc1 is now available. Yay! Tal: > How can we work with the Tk developers to ensure it works with Python across > platforms? We have the first 3.9.0 alpha scheduled in about 10 days. I will try to build 8.6.10rc1 (or later rel

[issue38440] Possible new issues with IDLE

2019-11-06 Thread Tal Einat
Tal Einat added the comment: Ned: - I could also try to make a 3.8.0 and/or 3.7.5 with 8.6.10rc1 installer available informally. That would be very helpful! If you do so I'd be happy to test on Windows, macOS. I'm also able to test on Ubuntu if that would help. I suggest we somehow collect

[issue38440] Possible new issues with IDLE

2019-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Quick summary and opinions so far: * Jump to top: general IDLE bug, fixed. * Repeated quit message: never seen by me, likely IDLE bug. I need to check code where message emitted. * Arrow keys emit ? replacement char: never seen by me, likely tcl bug. IDLE

[issue38440] Possible new issues with IDLE

2019-11-06 Thread Ned Deily
Ned Deily added the comment: > That would be very helpful! If you do so I'd be happy to test on Windows, > macOS. Sorry, I meant for macOS only. I'm not getting into the business of building Windows installers, too. :) As for Ubuntu, you should be able to build that yourself. But I think

  1   2   >