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

2019-02-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +11895 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue28009] core logic of uuid.getnode() is broken for netstat

2019-02-14 Thread Michael Felt
Michael Felt added the comment: On 14/02/2019 23:57, Indra Talip wrote: > Indra Talip added the comment: > > The current code and proposed changes use 'netstat -ia' to find the node > however if netstat needs to perform a reverse DNS query to resolve some > interfaces this makes using uuid1

[issue31829] Portability issues with pickle

2019-02-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: The proposed PR looks big. Are these actual bug fixes or features? "Portability improvements" sounds like a feature. -- ___ Python tracker

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

2019-02-14 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! -- nosy: +zach.ware -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker

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

2019-02-14 Thread wangjiangqiang
wangjiangqiang <767563...@qq.com> added the comment: Just create a temporary node points to the next node before release the current node. change the loop condition if necessary. -- ___ Python tracker

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

2019-02-14 Thread miss-islington
miss-islington added the comment: New changeset 04a39399ef13197e433757fe13108ad472461094 by Miss Islington (bot) in branch '3.7': bpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not supported (GH-11853)

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

2019-02-14 Thread miss-islington
miss-islington added the comment: New changeset 3e028b2d40370dc986b6f3146a7ae927bc119f97 by Miss Islington (bot) (pxinwr) in branch 'master': bpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not supported (GH-11853)

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

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

[issue35996] Optional modulus argument for new math.prod() function

2019-02-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Put me down for -1. In 40 years of programming, I've needed a modulus on a product exactly zero times. -- ___ Python tracker ___

[issue35996] Optional modulus argument for new math.prod() function

2019-02-14 Thread Josh Rosenberg
Josh Rosenberg added the comment: "One other issue is that the arguments to prod() need not be integers, so a modulus argument wouldn't make sense in those contexts." The arguments to pow don't need to be integers either, yet the optional third argument is only really relevant to integers.

[issue35996] Optional modulus argument for new math.prod() function

2019-02-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: One other issue is that the arguments to prod() need not be integers, so a modulus argument wouldn't make sense in those contexts. -- ___ Python tracker

[issue35996] Optional modulus argument for new math.prod() function

2019-02-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think even Mathematica has found a need for this: https://reference.wolfram.com/language/ref/Product.html -- ___ Python tracker

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

2019-02-14 Thread Eryk Sun
Change by Eryk Sun : Added file: https://bugs.python.org/file48142/winsig.py ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2019-02-14 Thread Eryk Sun
Eryk Sun added the comment: Gregory's last example reminded me that CMD checks for STATUS_CONTROL_C_EXIT for more than simply printing "^C". It also breaks out of a FOR loop when interactive and prompts to continue when executing a batch script. Normally CMD also gets a console control

[issue35078] Allow customization of CSS class name of a month in calendar module

2019-02-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Issue 30095 enhanced the `HTMLCalendar` code to allow easier customization of the CSS classes. This PR extends that to the existing `LocaleHTMLCalendar`. Adding @doerwalter to the nosy list as he merged #30095. -- nosy: +cheryl.sabella, doerwalter

[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2019-02-14 Thread miss-islington
miss-islington added the comment: New changeset b8bcec35e01cac018f6ccfc8323d35886340efe0 by Miss Islington (bot) in branch '3.7': bpo-30410: Documentation of sys.stdin/out/err update to reflect change in 3.6 (GH-10264)

[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2019-02-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Fixed in 3.8 and 3.7. Thanks! -- nosy: +Mariatta resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

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

[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2019-02-14 Thread miss-islington
miss-islington added the comment: New changeset 5723263a3a39a05b6a2f567e0e7771792e6e2f5b by Miss Islington (bot) (Lysandros Nikolaou) in branch 'master': bpo-30410: Documentation of sys.stdin/out/err update to reflect change in 3.6 (GH-10264)

[issue12317] inspect.getabsfile() is not documented

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

[issue28009] core logic of uuid.getnode() is broken for netstat

2019-02-14 Thread Indra Talip
Indra Talip added the comment: The current code and proposed changes use 'netstat -ia' to find the node however if netstat needs to perform a reverse DNS query to resolve some interfaces this makes using uuid1 *really* slow especially when reverse DNS queries aren't set up correctly or

[issue35848] readinto is not a method on io.TextIOBase

2019-02-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Steve, Would you be interested in creating a Github pull request with the documentation changes? -- components: +Documentation -IO nosy: +cheryl.sabella ___ Python tracker

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi
Change by muhzi : Added file: https://bugs.python.org/file48140/xcompile-py3.sh ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi
Change by muhzi : Removed file: https://bugs.python.org/file48139/xcompile-py3.sh ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi
muhzi added the comment: OK, I uploaded it. I give the path for NDK then it determines those values for the target architecture, in my case I use it for x86_64. -- Added file: https://bugs.python.org/file48139/xcompile-py3.sh ___ Python tracker

[issue24658] open().write() and .read() fails on 2 GB+ data (OS X)

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @barry normally this issue is fixed for 3.x but I need to finish my PR for 2.7. I think to fix for 2.7 in the next weeks. -- ___ Python tracker

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you, but I think there is missing info with your script. Do you have a shell script to share? What are the values of: ANDROID_TARGET ANDROID_API CC++ BIN_UTILS_PREFIX etc... For example, if I want to use a docker image on my Fedora, how can I compile

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi
muhzi added the comment: Yes, the symbols are there. And here is how I cross compiled Python: export CC="${ANDROID_TARGET}${ANDROID_API}-clang" export CXX="$CC++" # environment variables for binary utils.. export AR="$BIN_UTILS_PREFIX-ar" export LD="$BIN_UTILS_PREFIX-ld" export

[issue24658] open().write() and .read() fails on 2 GB+ data (OS X)

2019-02-14 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- title: open().write() fails on 2 GB+ data (OS X) -> open().write() and .read() fails on 2 GB+ data (OS X) ___ Python tracker ___

[issue24658] open().write() fails on 2 GB+ data (OS X)

2019-02-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Nosying myself since I just landed here based on an internal $work bug report. We're seeing it with reads. I'll try to set aside some work time to review the PRs. -- nosy: +barry ___ Python tracker

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: if you have compiled python with --enable-shared you will get a lib/libpython3.Xdm.so file and you can use nm -D lib/libpython3.Xdm.so | grep PyBool_Type nm --debug-syms lib/libpython3.8dm.so | grep PyBool

[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-02-14 Thread Géry
Géry added the comment: Yes, closed. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Can you see the symbols when you use nm or readelf? -- nosy: +matrixise ___ Python tracker ___

[issue35661] Store the venv prompt in pyvenv.cfg

2019-02-14 Thread Brett Cannon
Brett Cannon added the comment: I think upgrading the scripts to read from pyvenv.cfg is a separate issue per activation script (e.g. an issue for PowerShell, an issue for fish, etc.) as this could be done piecemeal. One benefit to doing this is it would help move towards the activation

[issue35843] importlib.util docs for namespace packages innaccurate

2019-02-14 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +barry, eric.smith, eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-02-14 Thread Brett Cannon
Brett Cannon added the comment: Can this be closed? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12317] inspect.getabsfile() is not documented

2019-02-14 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-02-14 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi
New submission from muhzi : I cross compiled python for android x86_64, and the interpreter works fine, no problems. But when I compiled some other extension and try to import it. I get an import error as such the imported shared library fails to locate the symbol "PyBool_Type".

[issue31829] Portability issues with pickle

2019-02-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +11892 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34433] cancel all other pending child futures

2019-02-14 Thread Yury Selivanov
Yury Selivanov added the comment: This is a backwards incompatible change, unfortunately. Wait for the new TaskGroups API that will resolve this issue. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python

[issue34971] add support for tls/ssl sessions in asyncio

2019-02-14 Thread Yury Selivanov
Yury Selivanov added the comment: Christian, do you think the sessions support shouldn't be added to asyncio in 3.8? -- ___ Python tracker ___

[issue35996] Optional modulus argument for new math.prod() function

2019-02-14 Thread Berry Schoenmakers
New submission from Berry Schoenmakers : It's nice to see the arrival of the prod() function, see PR11359. Just as for the built-in pow(x, y[, z]) function it would be very useful to have an optional argument z for computing integer products modulo z. Typical use case in cryptography would

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

2019-02-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: jwilk: Confirmed. The exit code is not enough, we must trigger the SIG_DFL handler. to reproduce: while true; do ./sig.py ; done with the attached sig.py. pass a parameter to sig.py to have it exit 130 instead of triggering SIG_DFL... --

[issue35810] Object Initialization does not incref Heap-allocated Types

2019-02-14 Thread Eddie Elizondo
Eddie Elizondo added the comment: > Please open a thread on python-dev Done! https://mail.python.org/pipermail/python-dev/2019-February/156322.html > Yes. You should add a new "Changes in the C API" Done as well, I also included examples for the scenarios that will need fixing to avoid

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2019-02-14 Thread miss-islington
miss-islington added the comment: New changeset 7e618f3154404613cd9774fb8ffb5b48e7233a9e by Miss Islington (bot) in branch '3.7': bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX (GH-11424)

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-02-14 Thread miss-islington
miss-islington added the comment: New changeset 7e618f3154404613cd9774fb8ffb5b48e7233a9e by Miss Islington (bot) in branch '3.7': bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX (GH-11424)

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-02-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks all! -- nosy: +Mariatta resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

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

[issue35633] test_eintr fails on AIX since fcntl functions were modified

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

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-02-14 Thread miss-islington
miss-islington added the comment: New changeset b94d4bed67c60834b1a5a0936b8c13934cf3b872 by Miss Islington (bot) (Michael Felt) in branch 'master': bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX (GH-11424)

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2019-02-14 Thread miss-islington
miss-islington added the comment: New changeset b94d4bed67c60834b1a5a0936b8c13934cf3b872 by Miss Islington (bot) (Michael Felt) in branch 'master': bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX (GH-11424)

[issue25737] array is not a Sequence

2019-02-14 Thread Eryk Sun
Eryk Sun added the comment: I had closed this issue because I thought issue 23864 would be resolved by extending the existing behavior. Three years later, still with no resolution, Guido commented on that issue that the current behavior shouldn't be extended and only the documentation

[issue35577] side_effect mocked method lose reference to instance

2019-02-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. I think this is design by choice that self is not passed to the side_effect directly set on the mock [0]. Changing this would break existing tests like [1] . You can use the approach by @remi.lapeyre which directly replaces

[issue34506] Traceback logged when SSL handshake fails

2019-02-14 Thread cdods
cdods added the comment: Any update on this one? Still happening on 3.7.1 -- assignee: -> christian.heimes components: +SSL nosy: +cdods, christian.heimes type: -> behavior versions: +Python 3.7 ___ Python tracker

[issue35874] Clarify that the (...) convertor to PyArg_ParseTuple... accepts any sequence.

2019-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Passing non-tuple can lead to reference counting error. See issue6083. I think that accepting a non-tuple should be deprecated, and finally disallowed. -- nosy: +serhiy.storchaka ___ Python tracker

[issue35976] Enable Windows projects to build with platform ARM32

2019-02-14 Thread Steve Dower
Steve Dower added the comment: Thanks, Paul! Hopefully when you rebase the main change on top of this it will be easier to see the actual impact. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35846] Incomplete documentation for re.sub

2019-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue28450. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Misleading/inaccurate documentation about unknown escape sequences in regular expressions

[issue35145] sqlite3: optionally autoconvert table_info's DATETIME fields

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @jondo, Of course you can submit a PR and we can help you with a review if we have time because we are volunteers and it's in function of our free time. Have a nice day, -- ___ Python tracker

[issue35460] Add PyDict_GetItemStringWithError

2019-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue35459. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Eric requested to run the benchmark suite. Here are results. I do not know how to interpret them. Likely all differences are random. -- Added file: https://bugs.python.org/file48137/pydict-getitem-compare.txt

[issue35889] sqlite3.Row doesn't have useful repr

2019-02-14 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: -11844 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35889] sqlite3.Row doesn't have useful repr

2019-02-14 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: -11845 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35889] sqlite3.Row doesn't have useful repr

2019-02-14 Thread Berker Peksag
Berker Peksag added the comment: While the proposed formats look nice for artificial inputs, the Row object can have more than two fields and the value of a field can be much longer than that. So, in practice the new repr can make the situation worse than the current repr. I think wrapping

[issue35889] sqlite3.Row doesn't have useful repr

2019-02-14 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: -11846 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25737] array is not a Sequence

2019-02-14 Thread Josh Rosenberg
Josh Rosenberg added the comment: Correction: It should actually be registered as a subclass of MutableSequence (which should make it a virtual subclass of Sequence too; list is only registered on MutableSequence as well). -- ___ Python tracker

[issue35976] Enable Windows projects to build with platform ARM32

2019-02-14 Thread Steve Dower
Steve Dower added the comment: New changeset 8a1657b93469580ef345c7c91738587f3d76e87d by Steve Dower (Paul Monson) in branch 'master': bpo-35976: Enable Windows projects to build with platform ARM32 (GH-11825) https://github.com/python/cpython/commit/8a1657b93469580ef345c7c91738587f3d76e87d

[issue35364] Datetime “fromtimestamp()” ignores inheritance if timezone is not None

2019-02-14 Thread Paul Ganssle
Change by Paul Ganssle : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue25737] array is not a Sequence

2019-02-14 Thread Josh Rosenberg
Change by Josh Rosenberg : -- versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25737] array is not a Sequence

2019-02-14 Thread Josh Rosenberg
Josh Rosenberg added the comment: This should not be closed as a duplicate. Yes, array.array isn't automatically a Sequence, but since it isn't, the array module should be modified to explicitly do the equivalent of: import _collections_abc _collections_abc.Sequence.register(array) so

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue)

2019-02-14 Thread Josh Rosenberg
Josh Rosenberg added the comment: Wait, why should #25737 be closed? This bug is a docs issue; collections.abc shouldn't claim that all the ABCs do duck-typing checks since Sequence doesn't. But #25737 is specific: array.array *should* be registered as a Sequence, but isn't; that requires a

[issue32417] fromutc does not respect datetime subclasses

2019-02-14 Thread Paul Ganssle
Change by Paul Ganssle : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35934] Add socket.create_server() utility function

2019-02-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Correct. Sorry for the typo. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35934] Add socket.create_server() utility function

2019-02-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: The previous comment is a self-reference. I believe the intention was to mark this as a duplicate of #17561. -- ___ Python tracker ___

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue)

2019-02-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: The previous comment is a self-reference. I believe the intention was to mark this as a duplicate of #17561. -- nosy: +cheryl.sabella ___ Python tracker

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue)

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

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

2019-02-14 Thread SilentGhost
Change by SilentGhost : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-02-14 Thread SilentGhost
SilentGhost added the comment: I don't think that's what the sentence say at all. It says, that a backslash can be used to escape a newline character (not "n"). This refers only to triple-quoted literals and is described in the first row of the table of escape sequences below. --

[issue35934] Add socket.create_server() utility function

2019-02-14 Thread STINNER Victor
Change by STINNER Victor : -- title: Add socket.bind_socket() utility function -> Add socket.create_server() utility function ___ Python tracker ___

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Julien Palard
Julien Palard added the comment: lidayan (Ignore my latest comment I was reading your implementation, not the actual one...). -- ___ Python tracker ___

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

2019-02-14 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-02-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: You will find the line you want to change in `Doc/reference/lexical_analysis.rst` -- ___ Python tracker ___

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

2019-02-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Magnien, if you have already used Git, everything should be familiar. You have to clone the whole project, but the documentation leaves in the `Doc` folder. There is a lot of information that you can get at https://devguide.python.org/documenting/ If you

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Julien Palard
Julien Palard added the comment: @lidayan, if you're trying implicit TLS, have you tried giving a username an an empty tuple to the secure parameter? It looks like the empty tuple means "implicit TLS", see the docstring

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Julien Palard
Julien Palard added the comment: lidayan If I understand correctly, you're trying to connect to an SMTP server that does *not* support STARTTLS, only implicit TLS on port 465? -- nosy: +mdk ___ Python tracker

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

2019-02-14 Thread Magnien Sebastien
Magnien Sebastien added the comment: I'm all up for it; however I only ever worked on small solo projects. I don't really know where to start. Must I clone the whole python repo, or is there maybe a doc repo? -- ___ Python tracker

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I propose to create a SMTPSSLHandler class and submit a PR. -- ___ Python tracker ___ ___

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Here is my suggestion class SMTPSSLHander(SMTPHandler): def emit(self, record): """ Emit a record. Format the record and send it to the specified addressees. """ try: import smtplib from

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @lidayan I have checked the code of your PR, and I think there is an issue with your code. 1. When you specify the secure flag to the SMTPHandler, it's because you will start the TLS connection if the SMTP server supports the STARTTLS. Firstly in

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I re-open this issue because after the change of the subject, maybe there is an issue with the code of logging.handler.SMTPHandler + TLS. -- resolution: rejected -> status: closed -> open ___ Python tracker

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-14 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Yes, I think this is a bug. Created a PR with a possible simple fix. -- nosy: +gvanrossum ___ Python tracker ___

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-14 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +11889 stage: -> patch review ___ Python tracker ___ ___

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

2019-02-14 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Emmanuel Arias
Emmanuel Arias added the comment: hmmm do you have some code to reproduce it? -- nosy: +eamanu ___ Python tracker ___ ___

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

2019-02-14 Thread STINNER Victor
STINNER Victor added the comment: Python 3.6 no longer accept bugfixes, only security fixes: http://devguide.python.org/#status-of-python-branches You can try faulthandler has a workaround. For example, install faulthandler signal handler using faulthandler.register(signal.SIGUSR1) and then

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

2019-02-14 Thread STINNER Victor
STINNER Victor added the comment: > Distro: Linux Mint 18.2 Sonya Hum, Dylan: what is your gdb version? On Fedora 29 with gdb 8.2-6.fc29, it seems like .target() is useless: $ gdb ./python GNU gdb (GDB) Fedora 8.2-6.fc29 ... (gdb) python print([field.name for field in

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread lidayan
Change by lidayan <840286...@qq.com>: -- pull_requests: +11888 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2019-02-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm assuming the calling shell uses waitpid() and then WIFSIGNALED()? -- ___ Python tracker ___

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

2019-02-14 Thread Jakub Wilk
Jakub Wilk added the comment: This issue was reported because with the current behavior, "the script will not properly exit on C-c". Exiting with code 128+SIGINT will not fix this. Please re-raise the signal. -- ___ Python tracker

  1   2   >