[issue35993] incorrect use of released memory in Python/pystate.c line 284

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

[issue35991] potential double free in Modules/_randommodule.c line 295 and line 317

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

[issue35991] potential double free in Modules/_randommodule.c line 295 and line 317

2019-02-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset bb3c05d7efca8d23bf39bc2640297ba2598899f3 by Benjamin Peterson (Zackery Spytz) in branch 'master': closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)

[issue35994] In WalkTests of test_os.py, sub2_tree missed the dir "SUB21" if symlink can't be supported.

2019-02-13 Thread Peixing Xin
New submission from Peixing Xin : Looking into the setUp method of WalkTests class in test_os.py, sub2_tree missed "SUB21" in its directory list if support.can_symlink() returns False. -- components: Tests messages: 335505 nosy: pxinwr priority: normal severity: normal status: open

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2019-02-13 Thread Denton Liu
Denton Liu added the comment: Unfortunately, inline markup can't be combined with roles. Using asterisks, it shows up as `**_open()` and using braces, `{}_open`. I'm not sure how this works but it _might_ be possible to change how :meth: role is interpreted but I believe that's outside the

[issue23460] Decimals do not obey ':g' exponential notation formatting rules

2019-02-13 Thread Brennan D Baraban
Brennan D Baraban <3...@holbertonschool.com> added the comment: I submitted a PR just now. I only pushed the change to `string.rst`, as per Stefan Krah's suggestion. -- ___ Python tracker

[issue23460] Decimals do not obey ':g' exponential notation formatting rules

2019-02-13 Thread Brennan D Baraban
Change by Brennan D Baraban <3...@holbertonschool.com>: -- pull_requests: +11881 stage: needs patch -> patch review ___ Python tracker ___

[issue35991] potential double free in Modules/_randommodule.c line 295 and line 317

2019-02-13 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +11880 stage: -> patch review ___ Python tracker ___ ___

[issue35993] incorrect use of released memory in Python/pystate.c line 284

2019-02-13 Thread wangjiangqiang
New submission from wangjiangqiang <767563...@qq.com>: the code is trying to visit a link list in a loop, it tries to visit the next node in line 284 "interp = interp->next" while the current node is freed in line 296 "PyMem_RawFree(interp);" --

[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-13 Thread Brennan D Baraban
Brennan D Baraban <3...@holbertonschool.com> added the comment: Thank you, Stéphane. I submitted a change request to your PR just now. -- ___ Python tracker ___

[issue35991] potential double free in Modules/_randommodule.c line 295 and line 317

2019-02-13 Thread wangjiangqiang
wangjiangqiang <767563...@qq.com> added the comment: line 295 calls PyMem_Free(key),then "key" was freed again in line 317 which causes the bug. -- ___ Python tracker ___

[issue35992] Metaclasses interfere with __class_getitem__

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

[issue35993] incorrect use of released memory in Python/pystate.c line 284

2019-02-13 Thread wangjiangqiang
Change by wangjiangqiang <767563...@qq.com>: -- nosy: wjq-security priority: normal severity: normal status: open title: incorrect use of released memory in Python/pystate.c line 284 type: security ___ Python tracker

[issue35991] potential double free in Modules/_randommodule.c line 295 and line 317

2019-02-13 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Though random module doesn't receive frequent changes can you please add the relevant lines in the description or the relevant commit with the corresponding line number in the report with a description. On master with commit [0] line 295 calls

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-13 Thread Caleb Donovick
New submission from Caleb Donovick : OS: Debian testing python3 -VV: Python 3.7.2+ (default, Feb 2 2019, 14:31:48) [gcc 8.2.0] The following: ``` class Meta(type): pass class X(metaclass=Meta): def __class_getitem__(cls, key): return key X[10] ``` Results in ``` TypeError:

[issue35991] potential double free in Modules/_randommodule.c line 295 and line 317

2019-02-13 Thread wangjiangqiang
Change by wangjiangqiang <767563...@qq.com>: -- nosy: wjq-security priority: normal severity: normal status: open title: potential double free in Modules/_randommodule.c line 295 and line 317 type: security ___ Python tracker

[issue21150] Add quick links table to argparse docs

2019-02-13 Thread Susan Su
Susan Su added the comment: I'm available to start working on this bug. Please let me know if any suggestions, concerns or comments come up! Thank you. -- nosy: +suhearsawho ___ Python tracker

[issue33043] Add a 'Contributing to Docs' link at the bottom of docs.python.org

2019-02-13 Thread Susan Su
Susan Su added the comment: I am available to start working on this bug. Please let me know if any issues, concerns, or suggestions come up! Thank you. -- nosy: +suhearsawho ___ Python tracker

[issue29466] pickle does not serialize Exception __cause__ field

2019-02-13 Thread Tim Burgess
Change by Tim Burgess : -- nosy: +tjb900 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2019-02-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: For file names, the result is in italics. Looking at https://devguide.python.org/exploring/, that seems to work well. Can we just use **? -- ___ Python tracker

[issue35132] python-gdb error: Python Exception Type does not have a target

2019-02-13 Thread Lisa Roach
Change by Lisa Roach : -- keywords: +patch pull_requests: +11879 stage: -> patch review ___ Python tracker ___ ___

[issue35962] Slight error in words in [ 2.4.1. String and Bytes literals ]

2019-02-13 Thread Lisa Roach
Lisa Roach added the comment: The updated line sounds good to me, please make a PR. -- nosy: +lisroach ___ Python tracker ___ ___

[issue21150] Add quick links table to argparse docs

2019-02-13 Thread Lisa Roach
Lisa Roach added the comment: It looks like @louielu might not be around anymore to finish this PR? If there are no objections I'd like to give a new contributor @suhearsawho a shot at this. -- nosy: +lisroach ___ Python tracker

[issue35500] Align expected and actual calls on mock.assert_called_with error message

2019-02-13 Thread Lisa Roach
Lisa Roach added the comment: New changeset 2bdd5858e3f89555c8de73a0f307d63536129dbd by Lisa Roach (Susan Su) in branch 'master': bpo-35500: align expected and actual calls on mock.assert_called_with error message. (GH-11804)

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2019-02-13 Thread Denton Liu
Denton Liu added the comment: I gave that a try but it seems like it just outputs the {} literally in the case of the method role. -- ___ Python tracker ___

[issue35920] Windows 10 ARM32 platform support

2019-02-13 Thread Steve Dower
Steve Dower added the comment: Issue35976 was broken out for the more mechanical changes. -- ___ Python tracker ___ ___

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-13 Thread Eryk Sun
Eryk Sun added the comment: For Windows, the default console control handler calls ExitProcess(STATUS_CONTROL_C_EXIT). If CMD is waiting on an application that exits with STATUS_CONTROL_C_EXIT, it prints "^C" to indicate the process was killed by Ctrl+C. For example: >>>

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2019-02-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: I found this issue that Serhiy did on the devguide where he added {} around the placeholder: https://github.com/python/devguide/pull/444 I think that might be the correct way to do it. -- ___ Python tracker

[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-13 Thread Cheryl Sabella
Change by Cheryl Sabella : -- Removed message: https://bugs.python.org/msg335483 ___ Python tracker ___ ___ Python-bugs-list

[issue35927] Intra-package References Documentation Incomplete

2019-02-13 Thread ADataGman
ADataGman added the comment: Terry, thank you for the detailed list of alternatives on how to approach this, that's helpful in how to tackle this issue in my current development. Nick, for the relative imports of relative imports I think the error message is fine. It makes sense. It doesn't

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: I expect that'll work as desired and avoids the re-raising of the signal. Unless told otherwise I assume this should be a POSIX specific platform behavior. ie: no return value alteration due to an uncaught KeyboardInterrupt on the Windows API build.

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-02-13 Thread Steve Dower
Steve Dower added the comment: Thanks, Victor, that's great information. > Memory allocator, context, different structures for configuration... it's > really not an easy topic :-( There are so many constraints put into a single > API! This is why I'm keen to design the ideal *user* API

[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: I found this issue that Serhiy did on the devguide where he added {} around the placeholder: https://github.com/python/devguide/pull/444 I think that might be the correct way to do it. -- ___ Python tracker

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: > A question that leads to is what _is_ the correct value. What do you think of using a short test program (ex: uses raise(SIGINT)) in ./configure to get the "default exit code" to define a constant, and then use the constant for exit() in Python? I

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: Taking a renewed look at this 8 years later... I agree, re-triggering the signal with the SIG_DFL handler would prevent us from doing the existing interpreter shutdown cleanup if we did it too early which would be a behavior change other than the exit

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35887] Doc string for updating the frozen version of importlib in _bootstrap.py incorrect

2019-02-13 Thread Brett Cannon
Brett Cannon added the comment: New changeset 1dc5cb9cb3447211069a7788208254b1cfa8ec98 by Brett Cannon (Nina Zakharenko) in branch 'master': bpo-35887: Add make regen-importlib step to importlib._bootstrap docstring (GH-11777)

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: > It seems that the disagreement about the design is fundamentally a > disagreement between a "quick, painful but complete fix" and "slow, careful > improvements with a transition period". Both are valid approaches, and since > Victor is putting actual

[issue20523] global .pdbrc on windows 7 not reachable out of the box

2019-02-13 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11878 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20523] global .pdbrc on windows 7 not reachable out of the box

2019-02-13 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +11877 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17703] Trashcan mechanism segfault during interpreter finalization in Python 2.7.4

2019-02-13 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: See also https://bugs.python.org/issue35983 for another trashcan-related issue. -- nosy: +jdemeyer ___ Python tracker ___

[issue35984] test__xxsubinterpreters leaked [3, 4, 3] memory blocks, sum=1

2019-02-13 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Thank you for your introduction about _xxsubinterpreters, Eric. This particular leak is easy: it's right in _channel_send(). I've submitted a PR. I've also done a quick scan of neighboring code, and it seems there are other leaks as well, e.g.: *

[issue35984] test__xxsubinterpreters leaked [3, 4, 3] memory blocks, sum=1

2019-02-13 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +11876 stage: test needed -> patch review ___ Python tracker ___ ___

[issue35983] tp_dealloc trashcan shouldn't be called for subclasses

2019-02-13 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: NOTE: also OrderedDict currently uses trashcan hacking to work around this problem: /* Call the base tp_dealloc(). Since it too uses the trashcan mechanism, * temporarily decrement trash_delete_nesting to prevent triggering it * and putting

[issue35989] ipaddress.IPv4Network allows prefix > 32

2019-02-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I proposed my PR but I prefer a review because in the code of ipaddress, there is a function for the validation of an address with the netmask. Maybe we could use this function and try to refactor/improve the current code. -- nosy: +matrixise

[issue35989] ipaddress.IPv4Network allows prefix > 32

2019-02-13 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +11875 stage: test needed -> patch review ___ Python tracker ___ ___

[issue35990] ipaddress.IPv4Interface won't accept 2-tuple (address, mask)

2019-02-13 Thread John Florian
New submission from John Florian : The docs say """The meaning of address is as in the constructor of IPv4Network, except that arbitrary host addresses are always accepted.""" However, that doesn't seem to be entirely true: >>> tup1 = ('192.168.123.234', 24) >>> tup2 = ('192.168.123.234',

[issue15753] No-argument super in method with variable arguments raises SystemError

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

[issue15753] No-argument super in method with variable arguments raises SystemError

2019-02-13 Thread Josh Rosenberg
Josh Rosenberg added the comment: Moving from pending back to open (not sure what was "pending" about it?). The workaround is viable (and used by Python implemented dict subclasses in the standard library since they must accept **kwargs with arbitrary strings, including self), but it does

[issue5038] urrlib2/httplib doesn't reset file position between requests

2019-02-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +11873 stage: test needed -> patch review ___ Python tracker ___ ___

[issue35988] Python interpreter segfault

2019-02-13 Thread Josh Rosenberg
Josh Rosenberg added the comment: "your application is using more memory than what is available in the system." Well, it alone may not be using more memory, but the cumulative usage on the system is "too high" by whatever metric the OOM killer is using (IIRC the default rule is that actual

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-02-13 Thread Steve Dower
Steve Dower added the comment: I just closed 35706 as a duplicate of this one (the titles are basically identical, which feels like a good hint ;) ) It seems that the disagreement about the design is fundamentally a disagreement between a "quick, painful but complete fix" and "slow, careful

[issue35706] Make it easier to use a venv with an embedded Python interpreter

2019-02-13 Thread Steve Dower
Steve Dower added the comment: That's not a "see also" - it's just a duplicate :) I'll close this one as the other one has been around longer. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Make pyvenv style virtual environments easier to

[issue35706] Make it easier to use a venv with an embedded Python interpreter

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: PEP 432 will allow to give with fine control on parameters used to initialize Python. Sadly, I failed to agree with Nick Coghlan and Eric Snow on the API. The current implementation (_PyCoreConfig and _PyMainInterpreterConfig) has some flaw (don't separate

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: PEP 432 will allow to give with fine control on parameters used to initialize Python. Sadly, I failed to agree with Nick Coghlan and Eric Snow on the API. The current implementation (_PyCoreConfig and _PyMainInterpreterConfig) has some flaw (don't separate

[issue35706] Make it easier to use a venv with an embedded Python interpreter

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-22213. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35907] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-02-13 Thread Sihoon Lee
Change by Sihoon Lee : -- keywords: +patch pull_requests: +11872 stage: needs patch -> patch review ___ Python tracker ___ ___

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

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: Same ratione than for PyInterpreterState: https://bugs.python.org/issue35886#msg335464 Except that I expect that a few more projects rely on PyThreadState fields. Maybe not. It's hard to guess :-( I mean that I'm ok-ish with the change but it should be

[issue35989] ipaddress.IPv4Network allows prefix > 32

2019-02-13 Thread SilentGhost
Change by SilentGhost : -- components: +Library (Lib) nosy: +pitrou stage: -> test needed type: -> behavior ___ Python tracker ___

[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: > @Victor, do you see any problems with doing this? It will help simplify > other changes I'm working on. I'm quite sure that they are users of the PyInterpreterState structure outside CPython internals and stdlib, but I expect that the number is quite

[issue35983] tp_dealloc trashcan shouldn't be called for subclasses

2019-02-13 Thread Eric Snow
Eric Snow added the comment: On Wed, Feb 13, 2019 at 8:42 AM Antoine Pitrou wrote: > Antoine Pitrou added the comment: > > By "relatively new thing", you mean less than 20 years old? :-) Yeah, looks like it was in the 2.2 release (Dec 2001) for PEP 253. Anyway, I know of several core devs

[issue35984] test__xxsubinterpreters leaked [3, 4, 3] memory blocks, sum=1

2019-02-13 Thread Eric Snow
Eric Snow added the comment: FYI, the _xxsubinterpreters module serves several purposes. First, it allows us to more thoroughly test the subinterpreter functionality of CPython (doing so via _testembed and _testcapi is messy), effectively in test__xxsubinterpreters. Second, it is the

[issue35984] test__xxsubinterpreters leaked [3, 4, 3] memory blocks, sum=1

2019-02-13 Thread Eric Snow
Eric Snow added the comment: Alexey, even though the refleak does not appear to be related to your earlier PR, you are welcome to keep working on this issue. :) If you do then please add me as a reviewer on whatever PR you make. Also, I'd be glad to answer any questions you have about the

[issue35989] ipaddress.IPv4Network allows prefix > 32

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

[issue35989] ipaddress.IPv4Network allows prefix > 32

2019-02-13 Thread John Florian
New submission from John Florian : I wanted a simple is_valid_ipv4_network() function, so I wrote one and a bunch of unit tests where I discovered that I can legally: >>> n = IPv4Network(('192.168.123.234', 12345678)) >>> n IPv4Network('192.168.123.234/12345678') >>> n.prefixlen 12345678 >>>

[issue35983] tp_dealloc trashcan shouldn't be called for subclasses

2019-02-13 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +11871 stage: test needed -> patch review ___ Python tracker ___ ___

[issue35972] _xxsubinterpreters: channel_send() may truncate ints on 32-bit platforms

2019-02-13 Thread Eric Snow
Eric Snow added the comment: ack -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35988] Python interpreter segfault

2019-02-13 Thread Hinko Kocevar
Hinko Kocevar added the comment: Using python3.6 now. I've also used the 'handle SIGPIPE nostop noprint' to skip SIGPIPE. Now the interpreter is killed instead: INF 2019-02-13 15:42:19,131 web:2162 log_request - 200 GET /NPM.html (10.0.6.209) 1.10ms [Thread 0x7fffe76eb700 (LWP 8411)

[issue35224] PEP 572: Assignment Expressions

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: > If anyone has another area they think the documentation should be updated, > please let me know! If we forget something, it's not an issue: it can be added later! -- ___ Python tracker

[issue35988] Python interpreter segfault

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: > [26194250.314042] Out of memory: Kill process 8399 (python3.6) score 574 or > sacrifice child That's not a bug in Python: your application is using more memory than what is available in the system. -- ___

[issue35983] tp_dealloc trashcan shouldn't be called for subclasses

2019-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: By "relatively new thing", you mean less than 20 years old? :-) -- ___ Python tracker ___ ___

[issue35988] Python interpreter segfault

2019-02-13 Thread Hinko Kocevar
Hinko Kocevar added the comment: > Are you able to reproduce the crash on Python 3.6 or 3.7? I'm running it under python3.6 as we speak. -- ___ Python tracker ___

[issue35983] tp_dealloc trashcan shouldn't be called for subclasses

2019-02-13 Thread Eric Snow
Eric Snow added the comment: FWIW, subclassing builtin types is a relatively new thing. There are still a number of lingering (older) implementation details throughout CPython that were written assuming no subclassing. I'd guess that this is one of them. -- nosy: +eric.snow stage:

[issue35224] PEP 572: Assignment Expressions

2019-02-13 Thread Emily Morehouse
Emily Morehouse added the comment: I have a work-in-progress (WIP) documentation branch I've been working on that I'll push up this week to address the following: - Add summary to What's New in Doc/whatsnew/3.8.rst - Add to list of delimiters in Doc/reference/lexical_analysis.rst - Add usage

[issue35988] Python interpreter segfault

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: > Every now and then the python3.5 crashes, seg faults. Sorry but Python 3.5 no longer accepts bugfixes and has known bugs. http://devguide.python.org/#status-of-python-branches It's time to upgrade your Python! Are you able to reproduce the crash on Python

[issue35988] Python interpreter segfault

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: You can enable faulthandler to get a traceback of your Python theads when a crash occurs: https://pythondev.readthedocs.io/debug_tools.html#get-a-traceback-on-a-crash -- ___ Python tracker

[issue35988] Python interpreter segfault

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: > Program received signal SIGPIPE, Broken pipe. SIGPIPE is not a bug, it's a deliberate signal to notice something to your application. You have to ignore SIGPIPE in gdb: (gdb) handle SIGPIPE nostop noprint SignalStop Print Pass to program

[issue35982] Create unit-tests for os.renames()

2019-02-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Assigning this to me. FWIW I created a post on python-dev in order to add a test.support.rmpath() utility function and hopefully cover other os.* functions which may also be untested or not properly tested:

[issue33376] [pysqlite] Duplicate rows can be returned after rolling back a transaction

2019-02-13 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35988] Python interpreter segfault

2019-02-13 Thread Hinko Kocevar
New submission from Hinko Kocevar : I'm running a tornado server with websockets client. Every now and then the python3.5 crashes, seg faults. I added code tracking (https://stackoverflow.com/questions/2663841/python-tracing-a-segmentation-fault) and this is what I see: line,

[issue35981] shutil make_archive create wrong file when base name contains dots at end

2019-02-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: On windows os.path.abspath("foo...bar..") returns "foo...bar" which is used in shutil.make_archive [0] returning foo...bar.zip. @matrixise , I am reopening this and adding Windows so that this can be confirmed as known behavior and closed.

[issue35987] Mypy and Asyncio import cannot be skipped

2019-02-13 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: This is not a Python issue, this should be reported on typeshed tracker (but likely a duplicate of the issue mentioned by Karthikeyan). -- resolution: -> third party stage: -> resolved status: open -> closed

[issue35987] Mypy and Asyncio import cannot be skipped

2019-02-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. mypy is not part of stdlib and it seems that typeshed doesn't have BaseEventLoop defined in asyncio.__init__.pyi [0] . Adding it to the import removes the error . I guess this needs to be filed in typeshed. There is an issue

[issue35986] print() documentation typo?

2019-02-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @steven I have a solution with a css selector if we update the python-docs theme for Sphinx. You can check my screenshot -- nosy: +matrixise Added file: https://bugs.python.org/file48136/print_screenshot.png

[issue12374] Execution model should explain compile vs definition vs execution time

2019-02-13 Thread Nick Coghlan
Nick Coghlan added the comment: Cheryl has started the conversion process for the old user reference manuscript [1], so I think it makes sense to mark this as "postponed" for now, until we see how far we can get with this more usage-centric level of explanation as a separate project from

[issue35987] Mypy and Asyncio import cannot be skipped

2019-02-13 Thread Samuel GIFFARD
Samuel GIFFARD added the comment: I've created a similar ticket on mypy side: https://github.com/python/mypy/issues/6383 as I'm not sure where this belongs to. -- ___ Python tracker

[issue35983] tp_dealloc trashcan shouldn't be called for subclasses

2019-02-13 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: The problem is easily reproduced with Cython: cdef class List(list): cdef int deallocated def __dealloc__(self): if self.deallocated: print("Deallocated twice!") self.deallocated = 1 L = None for i in

[issue35987] Mypy and Asyncio import cannot be skipped

2019-02-13 Thread Samuel GIFFARD
New submission from Samuel GIFFARD : Some modules cannot be found with mypy. And cannot be silenced/skipped by mypy. Have the following 3 files: ## # example1.py from asyncio import BaseEventLoop # Module 'asyncio' has no attribute 'BaseEventLoop' from asyncio

[issue35224] PEP 572: Assignment Expressions

2019-02-13 Thread Miro Hrončok
Miro Hrončok added the comment: (I've somehow missed the previous comments about the same, sorry about that.) -- ___ Python tracker ___

[issue35224] PEP 572: Assignment Expressions

2019-02-13 Thread Miro Hrončok
Miro Hrončok added the comment: PEP 572 is nowhere to be found in https://docs.python.org/3.8/whatsnew/3.8.html Should I open a separate issue for that? -- nosy: +hroncok ___ Python tracker

[issue35985] Folding tries to slice from 0 to float("+inf") when maxlength is 0

2019-02-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- superseder: -> non-ascii characters in headers causes TypeError on email.policy.Policy.fold ___ Python tracker ___

[issue33524] non-ascii characters in headers causes TypeError on email.policy.Policy.fold

2019-02-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: See this issue as a duplicata of this one: https://bugs.python.org/issue35985 -- nosy: +matrixise ___ Python tracker ___

[issue35985] Folding tries to slice from 0 to float("+inf") when maxlength is 0

2019-02-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Just add the link to the other issue: https://bugs.python.org/issue33524 -- ___ Python tracker ___

[issue35986] print() documentation typo?

2019-02-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: Which documentation are you referring to? The docstring says: print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) which is clearly a space. The docs here: https://docs.python.org/3/library/functions.html#print say something very similar:

[issue35985] Folding tries to slice from 0 to float("+inf") when maxlength is 0

2019-02-13 Thread Lukas J
Lukas J added the comment: Ok thank you! -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___

[issue35985] Folding tries to slice from 0 to float("+inf") when maxlength is 0

2019-02-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the confirmation. I would propose closing this as a duplicate. The PR on the other issue might fix your issue and is just waiting on a NEWS entry. -- ___ Python tracker

[issue35985] Folding tries to slice from 0 to float("+inf") when maxlength is 0

2019-02-13 Thread Lukas J
Lukas J added the comment: Minimal example: import email.policy import email.mime.text responsehtml = "somehtmlbody" msg = email.mime.text.MIMEText(responsehtml, "html", policy=email.policy.EmailPolicy()) msg["to"] = "t...@example.com" msg["cc"] = "äöü " msg["From"] = "f...@bar.com"

[issue35985] Folding tries to slice from 0 to float("+inf") when maxlength is 0

2019-02-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Could you share your example? Thank you -- nosy: +matrixise ___ Python tracker ___ ___

[issue35986] print() documentation typo?

2019-02-13 Thread 李笑来
李笑来 added the comment: sep argument default value should be ' '(a space), rather than ''(an empty string). -- resolution: -> remind ___ Python tracker ___

  1   2   >