[issue36026] Different error message when sys.settrace is used (regressions)

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks this is due to the method calls optimization (issue26110). We now avoid to create a temporary bound method, and an error with different message is raised on this path. >>> set.add(0) Traceback (most recent call last): File "", line 1, in

[issue34757] Placeholder for discussion on Combined patches for AIX - to resolve failig tests

2019-02-18 Thread Michael Felt
Michael Felt added the comment: The PR's have been merged. Many thanks. Closing this issue and looking forward. -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36027] Consider adding modular multiplicative inverse to the math module

2019-02-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: > If it's spelled this way, put the modulus argument last? Yes, that makes sense. > Years ago Guido signed off on spelling this > >pow(value, -1, modulus) +1 ;-) -- ___ Python tracker

[issue36025] Breaking change in PyDate_FromTimeStamp API

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I prefer option 2. Your PR LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> pending ___ Python tracker ___

[issue35957] Indentation explanation is unclear

2019-02-18 Thread Carol Willing
Carol Willing added the comment: Assigning this to @Mariatta, to be worked on the mentored sprint at PyCon US Cleveland. Verify behavior and update documentation. -- assignee: docs@python -> Mariatta nosy: +Mariatta, willingc ___ Python tracker

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e7a4bb554edb72fc6619d23241d59162d06f249a by Serhiy Storchaka in branch 'master': bpo-35798: Add test.support.check_syntax_warning(). (#11895) https://github.com/python/cpython/commit/e7a4bb554edb72fc6619d23241d59162d06f249a --

[issue36022] [Security] logging.config should not use eval()

2019-02-18 Thread Carol Willing
Carol Willing added the comment: Assigning this to @Mariatta, to be worked on the mentored sprint at PyCon US Cleveland. -- assignee: -> Mariatta nosy: +Mariatta, willingc ___ Python tracker

[issue23689] Memory leak in Modules/sre_lib.h

2019-02-18 Thread Ma Lin
Ma Lin added the comment: Try to allocate SRE_REPEAT on state's stack, the performance has not changed significantly. It passes the other tests, except this one (test_stack_overflow): https://github.com/python/cpython/blob/v3.8.0a1/Lib/test/test_re.py#L1225-L1230 I'll try to fix issue35859,

[issue23689] Memory leak in Modules/sre_lib.h

2019-02-18 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +11951 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36027] Consider adding modular multiplicative inverse to the math module

2019-02-18 Thread Tim Peters
Tim Peters added the comment: - Some form of this would be most welcome! - If it's spelled this way, put the modulus argument last? "Everyone expects" the modulus to come last, whether in code: x = (a+b) % m x = a*b % m x = pow(a, b, m) or in math: a^(k*(p-1)) =

[issue35689] IDLE: Docstrings and test for colorizer

2019-02-18 Thread miss-islington
miss-islington added the comment: New changeset 99e9c36b29a194d59ee4b0d8b82a72f5b0d409dd by Miss Islington (bot) in branch '3.7': bpo-35689: IDLE: Add docstrings and unittests for colorizer.py (GH-11472) https://github.com/python/cpython/commit/99e9c36b29a194d59ee4b0d8b82a72f5b0d409dd

[issue35689] IDLE: Docstrings and test for colorizer

2019-02-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for writing this. I was NOT looking forward to tackling tests for this module. I have thought about merging delegator and colorizer into one module, possibly with percolator included, and adding a module docstring that explains how they work

[issue36028] Integer Division discrepancy with float

2019-02-18 Thread Au Vo
Au Vo added the comment: Here is the Python2 screenshot from trinket.io. There are discrepancies with 1,2,4,8,9, with 9 is given in Python2 and 10 is given in Python3. Again, sorry that Trinket.io does not specify which version of Python3 it implements. -- versions: +Python 2.7

[issue36028] Integer Division discrepancy with float

2019-02-18 Thread Au Vo
Au Vo added the comment: Thanks for the quick turnaround. I have done a little bit more thorough investigation and it does indeed the floating point that causes the behavior. The screenshot attached is done via Python3 from trinket.io. I will submit a screenshot of the Python 2 screenshot

[issue35689] IDLE: Docstrings and test for colorizer

2019-02-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11950 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35689] IDLE: Docstrings and test for colorizer

2019-02-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ee0f927bd8dba805a04963dbec1ad49fe830b842 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-35689: IDLE: Add docstrings and unittests for colorizer.py (GH-11472)

[issue36028] Integer Division discrepancy with float

2019-02-18 Thread Tim Peters
Tim Peters added the comment: Thanks, Steven! I'll go on to suggest that the best intro to these issues for Python programmers is in Python's own tutorial: https://docs.python.org/3/tutorial/floatingpoint.html Raymond, `divmod(a, b)[0]` IS the mathematical `floor(a/b)`, where the latter

[issue33935] shutil.copyfile throws incorrect SameFileError on Google Drive File Stream

2019-02-18 Thread Eryk Sun
Eryk Sun added the comment: Here's a WebDAV example: net use Z: \\live.sysinternals.com\tools Both st_dev (volume serial number) and st_ino (file number) are 0 for all files on this drive. _getfinalpathname also fails since WebDAV doesn't support the default FILE_NAME_NORMALIZED flag

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

2019-02-18 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

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

2019-02-18 Thread miss-islington
miss-islington added the comment: New changeset d5409eb6c26c6bca2686762ce0fd5223bb845e8a by Miss Islington (bot) (Tzu-ping Chung) in branch '2.7': [2.7] bpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one character (GH-4517) (GH-11749)

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-18 Thread Windson Yang
Windson Yang added the comment: I think right now we can > Change mode() to return the first tie instead of raising an exception. This > is a behavior change but leaves you with the cleanest API going forward. as well as > Add a Deprecation warning to the current behavior of mode() when

[issue36028] Integer Division discrepancy with float

2019-02-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: The open question in my mind is which is the least surprising definition of a//b. Should it be math.floor(a/b) or divmod(a,b)[0]? The advantage of the former is that floor(a/b) is arguably the definition of floor division. The advantage of the latter is

[issue35904] Add statistics.fmean(seq)

2019-02-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: PR looks good to me, thanks Raymond. Just at the moment I'm having problems with my internet connection leading to technical difficulties with Github. Hopefully I can resolve this soon. -- ___ Python tracker

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: I like this idea! Should the "examples" method be re-named "samples"? That's the word used in the docstring, and it matches the from_samples method. -- ___ Python tracker

[issue36027] Consider adding modular multiplicative inverse to the math module

2019-02-18 Thread Steven D'Aprano
Change by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36026] Different error message when sys.settrace is used (regressions)

2019-02-18 Thread SylvainDe
SylvainDe added the comment: This is mostly true and I agree that error messages are not part of the API. However, I'd like to add the following points: - the error message was more meaningful before - the fact that having system.settrace used or not changes the behaviour makes me think

[issue36028] Integer Division discrepancy with float

2019-02-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: Changing the title from referring to "decimal" to "float", since this has nothing to do with the decimal module or Decimal type. Like Raymond and Tim, I too cannot reproduce the claimed difference in behaviour between Python 2.7 and 3.x. Au Vo, there are

[issue36026] Different error message when sys.settrace is used (regressions)

2019-02-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: Do I correctly understand the reported problem here? set.add(0) correctly raises TypeError in each case, but: (1) the exception message changes between versions; (2) and also changes depending on whether or not sys.trace is active. I don't think the

[issue36028] Integer Division discrepancy with decimal

2019-02-18 Thread Tim Peters
Tim Peters added the comment: "Multiple roundings" in the float code is a red herring - that's just implementation details trying to cheaply get the same effect as computing with infinite precision. Here with actual unbounded precision: >>> from fractions import Fraction >>> y =

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-18 Thread Steve Dower
Steve Dower added the comment: Yeah, I'm okay with it for 3.7.3 and future releases. The only change should need to be for the nuget preset in PC/layout/support/options.py -- ___ Python tracker

[issue36029] Use consistent case for HTTP header fields

2019-02-18 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +11949 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36029] Use consistent case for HTTP header fields

2019-02-18 Thread Géry
New submission from Géry : Use consistent case for HTTP header fields, according to [RFC 7231](https://tools.ietf.org/html/rfc7231). -- components: Library (Lib) messages: 335870 nosy: brett.cannon, eric.araujo, ezio.melotti, maggyero, mdk, ncoghlan, willingc priority: normal severity:

[issue34203] documentation: recommend Python 3 over 2 in faq

2019-02-18 Thread abcdef
abcdef added the comment: Thank you. I understand this is fixed now and I'm marking the ticket as closed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36015] streamhandler cannot represent streams with an integer as name

2019-02-18 Thread Riccardo Magliocchetti
Riccardo Magliocchetti added the comment: Looking at Modules/_io/fileio.c::_io_FileIO___init___impl it seems an int for nameobj is just fine. Not sure I am looking at the right code though :) -- ___ Python tracker

[issue36028] Integer Division discrepancy with decimal

2019-02-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm thinking this due to having two different algorithms in play, one of which has multiple intermediate roundings. * For starters, 0.4 is not exactly representable. It is stored as the binary fraction 3602879701896397 / 9007199254740992 represented in

[issue36028] Integer Division discrepancy with decimal

2019-02-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36028] Integer Division discrepancy with decimal

2019-02-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: I get the same results in both Python 2 and Python 3. Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 29 2018, 20:59:26) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin Type "copyright", "credits" or "license()" for more information. >>> 4 / 0.4

[issue35949] Move PyThreadState into Include/internal/pycore_pystate.h

2019-02-18 Thread Eric Snow
Eric Snow added the comment: Thanks for clarifying. :) On Mon, Feb 18, 2019 at 1:17 PM Stefan Behnel wrote: > The exception fields are performance critical, and we try hard to make them > visible to the C compiler so that swapping around exception state eats up as > little CPU time as

[issue35949] Move PyThreadState into Include/internal/pycore_pystate.h

2019-02-18 Thread Stefan Behnel
Stefan Behnel added the comment: Well … yes. The exception fields are performance critical, and we try hard to make them visible to the C compiler so that swapping around exception state eats up as little CPU time as possible. You could argue that profiling and tracing are less critical,

[issue36028] Integer Division discrepancy with decimal

2019-02-18 Thread Au Vo
New submission from Au Vo : In Python3, there is a discrepancy of integer division with decimal. Considering these two examples: 4/ .4 ==10.0. But 4//.4== 9.0 Furthermore: 2//.2 == 9.0 3//.3 ==10.0 5//.5 ==10.0 6//.6 ==10.0 All answers should be 10.0? The problem is in Python3 and not in

[issue36027] Consider adding modular multiplicative inverse to the math module

2019-02-18 Thread Raymond Hettinger
New submission from Raymond Hettinger : Having gcd() in the math module has been nice. Here is another number theory basic that I've needed every now and then: def multinv(modulus, value): '''Multiplicative inverse in a given modulus >>> multinv(191, 138)

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread Florian Weimer
Florian Weimer added the comment: Filed as an libffi issue: https://github.com/libffi/libffi/issues/470 -- ___ Python tracker ___

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread Florian Weimer
Florian Weimer added the comment: We believe this is a libffi bug. On certain aarch64 implementations, it is necessary to flush both the writable mapping and the executable mapping. I have a patch which I confirmed to work. -- ___ Python

[issue35949] Move PyThreadState into Include/internal/pycore_pystate.h

2019-02-18 Thread Eric Snow
Eric Snow added the comment: @Stefan, is it a problem for Cython if the relevant fields are exposed via C-API functions rather than directly on PyThreadState? -- ___ Python tracker

[issue35186] distutils.command.upload uses deprecated platform.dist with bdist_rpm

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue35186] distutils.command.upload uses deprecated platform.dist with bdist_rpm

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35186] distutils.command.upload uses deprecated platform.dist with bdist_rpm

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36014] test_help_with_metavar broken

2019-02-18 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36025] Breaking change in PyDate_FromTimeStamp API

2019-02-18 Thread Paul Ganssle
Paul Ganssle added the comment: I've put *a* fix in there by introducing a new wrapper function. Ideally we would just point the C API at the argument clinic-generated function, but because it takes a single positional argument the argument clinic outputs a METH_O function instead of

[issue36026] Different error message when sys.settrace is used (regressions)

2019-02-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36026] Different error message when sys.settrace is used (regressions)

2019-02-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35941] ssl.enum_certificates() regression

2019-02-18 Thread nr
Change by nr : -- keywords: +patch pull_requests: +11948 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36026] Different error message when sys.settrace is used (regressions)

2019-02-18 Thread SylvainDe
New submission from SylvainDe : Context: Follow-up from https://bugs.python.org/issue35965 which was closed when we assumed the issue was on the coverage side. After nedbat investigation, it seems like the issue comes from call to "sys.settrace". Issue: -- A test relying on

[issue35867] NameError is not caught at Task execution

2019-02-18 Thread Emmanuel Arias
Emmanuel Arias added the comment: I test it and this have the same behavior on 3.7 and 3.8... I will work on this -- nosy: +eamanu versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: # gdb -args ./python ../bug2.py GNU gdb (GDB) Red Hat Enterprise Linux 8.2-5.el8 (gdb) run ... Program received signal SIGILL, Illegal instruction. 0xbded0058 in ?? () (gdb) disassemble $pc,$pc+10 Dump of assembler code from 0xbded0058 to

[issue36025] Breaking change in PyDate_FromTimeStamp API

2019-02-18 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +11947 stage: -> patch review ___ Python tracker ___ ___

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread Florian Weimer
Change by Florian Weimer : -- nosy: +fweimer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36025] Breaking change in PyDate_FromTimeStamp API

2019-02-18 Thread Paul Ganssle
New submission from Paul Ganssle : The PyO3 test suite has been breaking since the alpha release of Python 3.8 because PyDateTimeAPI->Date_FromTimeStamp has had a breaking change in its API: https://github.com/PyO3/pyo3/issues/352 I believe this happened when `datetime.date.fromtimestamp`

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: Sadly, even with debug symbols on RHEL8 and gcc -g -O0 -fno-omit-frame-pointer, gdb is unable to retrieve the backtrace when the crash occurs :-( Program received signal SIGILL, Illegal instruction. 0xbe7a0058 in ?? () (gdb) where #0

[issue35954] Incoherent type conversion in configparser

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Other methods do not convert key to string too. What is a use case for having a non-string section name? -- nosy: +serhiy.storchaka ___ Python tracker

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: bug2.py: example simplified a little bit more. Changes: * unittest is no longer used * move local variables to globals, to make sure that memory is not released in any way during function calls -- Added file:

[issue36011] ssl - tls verify on Windows fails

2019-02-18 Thread Christian Korneck
Christian Korneck added the comment: quick addition: It looks like all recent Windows versions (Win8/Server 2012, Win8.1/Server 2012R2, Win10 (older versions)/Server 2016, Win10-1809/Server 2019 behave the same (= only very few RootCAs are pre-installed out of the box, additional ones are

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-18 Thread Jeremy Kloth
Jeremy Kloth added the comment: Thank you for your testing of the venv and pip workflows. At this point, I believe that all that remains would be for Steve Dower to incorporate the `IncludeVEnv=true` parameter into the nupkg build process. I personally do not see a problem with including

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: > I can reproduce the crash on Python 2.7.16rc compiled manually: > ./configure --enable-unicode=ucs4 --with-system-ffi && make I can also reproduce the crash on Python 3.7.2 compiled manually with: ./configure --with-pydebug && make (_ctypes uses system

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread STINNER Victor
New submission from STINNER Victor : Attached bug.py does crash *randomly* on AArch64. The code is extract from ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase.test_callbacks test. Example with Python 2.7.15 and Python 3.6.8 on RHEL8: # python2 bug.py Illegal instruction (core

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-02-18 Thread jt
jt added the comment: Just to add this, I now tested the proper pip upgrade approach, and it worked fine, like everything else I tried before (installing & using Cython, any other packages, ...). If there's anything else I should test, let me know! NuGet with venv/ensurepip would be awesome

[issue36021] [Security][Windows] webbrowser: WindowsDefault uses os.startfile() and so can be abused to run arbitrary commands

2019-02-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- assignee: -> matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34572] C unpickling bypasses import thread safety

2019-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is pushed to 3.7 and master now. Thank you Tim for the report and the fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6 ___ Python tracker

[issue34572] C unpickling bypasses import thread safety

2019-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 3129432845948fdcab1e05042e99a19e9e2c3c71 by Antoine Pitrou (Miss Islington (bot)) in branch '3.7': bpo-34572: change _pickle unpickling to use import rather than retrieving from sys.modules (GH-9047) (GH-11921)

[issue36015] streamhandler cannot represent streams with an integer as name

2019-02-18 Thread Vinay Sajip
Change by Vinay Sajip : -- title: streamhandler canont represent streams with an integer as name -> streamhandler cannot represent streams with an integer as name ___ Python tracker

[issue36015] streamhandler canont represent streams with an integer as name

2019-02-18 Thread Vinay Sajip
Vinay Sajip added the comment: > That is, when opening a file descriptor the name is set to the value of that > file descriptor as an integer. I see. But I wonder if there is anything that relies on the name being an integer? It seems pretty counter-intuitive for a 'name' attribute to be

[issue34572] C unpickling bypasses import thread safety

2019-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 4371c0a9c0848f7a0947d43f26f234842b41efdf by Antoine Pitrou (tjb900) in branch 'master': bpo-34572: change _pickle unpickling to use import rather than retrieving from sys.modules (GH-9047)

[issue34572] C unpickling bypasses import thread safety

2019-02-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11946 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28450] Misleading/inaccurate documentation about unknown escape sequences in regular expressions

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +11945 stage: needs patch -> patch review ___ Python tracker ___

[issue4356] Add "key" argument to "bisect" module functions

2019-02-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi everybody, I opened PR 11781 to add a key argument to functions in the bisect module. I agree with @dmtr's points that this addition is not a bad design. As far as I can tell, the key function is at called at most once per item as this example where an

[issue23689] Memory leak in Modules/sre_lib.h

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +Ma Lin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34315] Regex not evalauated correctly

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The regular expression engine is not platform depended. Please check that you run the same code. -- status: open -> pending ___ Python tracker

[issue36023] Improve configparser.ConfigParser repr

2019-02-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Why only sections? ConfigParser contains a lot of other information. Indeed, the defaults might be useful too. Other things like options can be sessions specific and could clutter the repr if added. Would defaults() and sections() be the right behavior

[issue35072] re.sub does not play nice with chr(92)

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: chr(92) is a single backspace character ('\\'). Since backspace has special meaning in the replacement string, it should be escaped. re.sub(r'', r'\\', stringy_thingy) -- nosy: +serhiy.storchaka stage: test needed -> resolved status: open

[issue9134] sre bug: lastmark_save/restore

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +Ma Lin versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35915] re.search extreme slowness (looks like hang/livelock), searching for patterns containing .* in a large string

2019-02-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___

[issue36023] Improve configparser.ConfigParser repr

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why only sections? ConfigParser contains a lot of other information. Section names you can get by calling the sections() method. >>> config.sections() ['sec'] -- nosy: +serhiy.storchaka ___ Python tracker

[issue34294] re module: wrong capturing groups

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your PR Ma Lin! -- keywords: +3.7regression resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31829] Portability issues with pickle

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This can help with migrating to Python 3. Python 2 programs often open files in text (default) mode for pickling and unpickling. With these changes you will get a warning when run the interpreter with the -3 option. You can also make the producer opening

[issue31829] Portability issues with pickle

2019-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I am not particularly interested in making Python 2 or ancient pickle protocols easier to use, sorry ;-) -- ___ Python tracker ___

[issue34294] re module: wrong capturing groups

2019-02-18 Thread miss-islington
miss-islington added the comment: New changeset 0e379d43acc25277f02262212932d3c589a2031b by Miss Islington (bot) in branch '3.7': bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546) https://github.com/python/cpython/commit/0e379d43acc25277f02262212932d3c589a2031b

[issue36023] Improve configparser.ConfigParser repr

2019-02-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- title: Import configparser.ConfigParser repr -> Improve configparser.ConfigParser repr ___ Python tracker ___

[issue36023] Import configparser.ConfigParser repr

2019-02-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34294] re module: wrong capturing groups

2019-02-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +11944 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34294] re module: wrong capturing groups

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4a7f44a2ed49ff1e87db062e7177a56c6e4bbdb0 by Serhiy Storchaka (animalize) in branch 'master': bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)

[issue36023] Import configparser.ConfigParser repr

2019-02-18 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : This is the current repr of the configparser.ConfigParser instances: >>> import configparser >>> config = configparser.ConfigParser() >>> config['sec'] = {} >>> config I think this could be improved to read: -- components: Library (Lib) messages:

[issue35954] Incoherent type conversion in configparser

2019-02-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Btw: The name "read_dict" [1] as well as its docstring say exactly the > opposite of what it does. It acts as a "save_dict". Maybe that can be fixed > on the go ... The name `read_dict` is correct, it reads from the dict given as parameter and changing the

[issue35954] Incoherent type conversion in configparser

2019-02-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11943 stage: -> patch review ___ Python tracker ___ ___

[issue35945] Cannot distinguish between subtask cancellation and running task cancellation

2019-02-18 Thread twisteroid ambassador
twisteroid ambassador added the comment: There is a way to distinguish whether a task is being cancelled from the "inside" or "outside", like this: async def task1func(): task2 = asyncio.create_task(task2func()) try: await asyncio.wait((task2,)) except

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: > could we mock the http requests? No, the tests are functional tests which use deliberate HTTP request to public servers. I suggest to use a server that we control rather multiple "third-party" servers. I'm trying to keep a list of external services used

[issue35537] use os.posix_spawn in subprocess

2019-02-18 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +11942 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36021] [Security][Windows] webbrowser: WindowsDefault uses os.startfile() and so can be abused to run arbitrary commands

2019-02-18 Thread STINNER Victor
STINNER Victor added the comment: > just to know if we need to fix os.startfile or WindowsDefault. webbrowser shouldn't call os.startfile with a path to a program on the local hard drive. -- ___ Python tracker

[issue36022] [Security] logging.config should not use eval()

2019-02-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Some discussion in issue15452 about using ast.literal_eval instead of eval which I think is the similar to this report. -- nosy: +xtreak ___ Python tracker

  1   2   >