[issue33023] Unable to copy ssl.SSLContext

2018-06-06 Thread Ned Deily
Ned Deily added the comment: We have a languishing PR here. What should be done with it? If I understand correctly, Serhiy is proposing a more general cleanup in Issue33138 PR 6239. If that is merged, can PR 6099 here be simplified? What branches should it apply to? (retargeting for 3.8

[issue21196] Name mangling example in Python tutorial

2018-06-06 Thread Tim Peters
Tim Peters added the comment: Berker Peksag's change (PR 5667) is very simple and, I think, helpful. -- nosy: +tim.peters ___ Python tracker ___

[issue33790] Decorated (inner/wrapped) function kwarg defaults dont pass through decorator.

2018-06-06 Thread Salomon
New submission from Salomon : I am seeing an issue when attempting to use default kwargs in decorated functions. I would post reproduction steps, but instead I have written a snippet which should showcase the issue. Snippet: ```python def decorator(): def inner(f): def

[issue21196] Name mangling example in Python tutorial

2018-06-06 Thread Ned Deily
Ned Deily added the comment: What should we do with this issue? Raymond, it sounds like you think the proposed PR should not be merged, is that right? If so, should the issue and PR be closed? Other opinions? I would like to resolve this so we can either merge or close PR 5667. Thanks!

[issue30773] async generator receives wrong value when shared between coroutines

2018-06-06 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +7091 stage: -> patch review ___ Python tracker ___ ___

[issue33351] Support compiling with clang-cl on Windows

2018-06-06 Thread Ethan Smith
Ethan Smith added the comment: I sent my patches to clang-cl upstream [1]. It seems they want to implement Hardware Lock Elision (which is used by some MSVC compiler intrinsics in pyatomic.h) before implementing the needed intrinsics. I have found temporary replacements that do not elide

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: New changeset 5bfa058e65897567889354d7eb34af2b93a20f18 by Fred Drake (arikrupnik) in branch 'master': bpo-33274: Compliance with DOM L1: return removed attribute (#7465) https://github.com/python/cpython/commit/5bfa058e65897567889354d7eb34af2b93a20f18

Re: Sorting NaNs

2018-06-06 Thread Steven D'Aprano
On Sat, 02 Jun 2018 21:02:14 +1000, Chris Angelico wrote: > Point of curiosity: Why "> 0.5"? No particular reason, I just happened to hit that key and then copied and pasted the line into the next one. > Normally when I want a fractional > chance, I write the comparison the other way:

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: I should stop relying on wetware memory; it's not working out. Sorry for the mis-information. -- ___ Python tracker ___

Re: Why exception from os.path.exists()?

2018-06-06 Thread Steven D'Aprano
On Tue, 05 Jun 2018 23:27:16 +1000, Chris Angelico wrote: > And an ASCIIZ string cannot contain a byte value of zero. The parallel > is exact. Why should we, as Python programmers, care one whit about ASCIIZ strings? They're not relevant. You might as well say that file names cannot contain

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Ned Deily
Ned Deily added the comment: Fred: > Python 2.7 is in security-fix-only mode That's not quite the case yet. We are still accepting bug-fixes for 2.7 although its end-of-life *is* approaching! https://devguide.python.org/#status-of-python-branches -- nosy: +ned.deily

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Python 2.7 is in security-fix-only mode, and this doesn't fit that. While I wouldn't object to a note in the documentation, see my comments in my patch review (there's just no place for it to go). -- ___

[issue31202] Windows pathlib.Path.glob(pattern) fixed part of the pattern changed to lowercase whereas it should be unchanged.

2018-06-06 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Ari Krupnik
Ari Krupnik added the comment: My bad. This issue looks like a simple omission to me--albeit one that's been in the code a long time. My patch simply brings the code into compliance with what the documentation (including in 2.7) already says it does. --

[issue33786] @asynccontextmanager doesn't work well with async generators

2018-06-06 Thread Yury Selivanov
Yury Selivanov added the comment: Would be nice to fix this in 3.7.0 -- components: +Interpreter Core -asyncio nosy: +ned.deily priority: normal -> release blocker type: -> behavior versions: +Python 3.6, Python 3.8 ___ Python tracker

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 does not get enhancements. When a core dev removes a version, don't re-add without discussion. -- versions: -Python 2.7 ___ Python tracker

[issue33786] @asynccontextmanager doesn't work well with async generators

2018-06-06 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +7089 stage: -> patch review ___ Python tracker ___ ___

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Ari Krupnik
Change by Ari Krupnik : -- pull_requests: +7088 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I unlinked bad PR 6462 (against 3.6). PR 7465 is properly formed and should be reviewed. -- ___ Python tracker ___

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -6157 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Ari Krupnik
Change by Ari Krupnik : -- pull_requests: -7086 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33778] update Unicode database to 11.0

2018-06-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Sure, where do you think such documentation belongs? On Wed, Jun 6, 2018, at 01:46, STINNER Victor wrote: > > STINNER Victor added the comment: > > Benjamin: would you mind to explain how to update Unicode in Python? I > would like to document it, if

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Ari Krupnik
Ari Krupnik added the comment: I added a test case and a News entry per serhiy.storchaka's request. https://github.com/python/cpython/pull/7465 I agree with fdrake's concerns about DOM's usefulness. DOM is not very Pythonic. I note that as long as Python has a DOM implementation, it follows

[issue33778] update Unicode database to 11.0

2018-06-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58 by Benjamin Peterson in branch 'master': update to Unicode 11.0.0 (closes bpo-33778) (GH-7439) https://github.com/python/cpython/commit/7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58 --

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Ari Krupnik
Change by Ari Krupnik : -- pull_requests: +7087 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33779] Error while installing python 3.6.5 on windows 10

2018-06-06 Thread Siddhartha Bose
Siddhartha Bose added the comment: @steve, I tried to install which gave me access denied error and when i checked it was there in program and features. Let's check on that when I successfully uninstall the two instances already there (3.7.0b5 and 3.6.5) --

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Something else. The bug occurs when CancelIoEx() (on the current overlapped WSARecv()) fails internally with ERROR_NOT_FOUND. According to overlapped.c, it means: /* CancelIoEx returns ERROR_NOT_FOUND if the I/O completed in-between */

[issue33274] minidom removeAttributeNode returns None

2018-06-06 Thread Ari Krupnik
Change by Ari Krupnik : -- keywords: +patch pull_requests: +7086 stage: test needed -> patch review ___ Python tracker ___ ___

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: _ProactorReadPipeTransport.set_transport(): if self.is_reading(): # reset reading callback / buffers / self._read_fut self.pause_reading() self.resume_reading() This method cancelled the pending overlapped

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Sorry, the patch to reproduce the issue on Linux is wrong: it introduces a bug in the test. Ignore this comment. -- It seems like I found the root cause: pause_reading() / resume_reading() on the transport is not safe. Sometimes, we loose data. See the

Re: Names and identifiers

2018-06-06 Thread Steven D'Aprano
Disclaimer: Ido not see Stefan's original post. I recall that he has set some sort of header on his posts which means they are not processed by Gmane, but unfortunately I no longer have any of his posts in my cache where I can check. If anyone else is getting Stefan's posts, can you inspect

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: The issue occurs when the server calls start_tls() because the client calls start_tls(). In that case, ServerProto.data_received() is called with the server TLS handshake and so the client SSLProtocol never this this handshake from server... --

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Call stack when the asyncio client connects to the server when the bug occurs: SSLProtocol.connection_made() -> SSLProtocol._start_handshake() -> SSLProtocol._process_write_backlog() -> SSLPipe.do_handshake() -> SSLPipe.feed_ssldata(b'', only_handshake=True)

[issue33783] Use proper class markup for random.Random docs

2018-06-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks, I'll add a separate entry for the random.Random() class. -- components: +Documentation priority: normal -> low ___ Python tracker

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: The bug can be reproduced on Linux using this patch: diff --git a/Lib/test/test_asyncio/test_sslproto.py b/Lib/test/test_asyncio/test_sslproto.py index 78ab1eb822..735313152c 100644 --- a/Lib/test/test_asyncio/test_sslproto.py +++

[issue33780] [subprocess] Better Unicode support for shell=True on Windows

2018-06-06 Thread Eryk Sun
Eryk Sun added the comment: > By default, the output of cmd is encoded with the "active" > codepage. In Python 3.6, you can decode this using > encoding='oem'. FYI, the actual encoding is not necessarily "oem". The console codepage may have been changed from the initial value by a

[issue33780] [subprocess] Better Unicode support for shell=True on Windows

2018-06-06 Thread Eryk Sun
Eryk Sun added the comment: > To get the correct output, cmd has a "/u" switch (this switch has > probably existed forever - at least since Windows NT 4.0, by my > internet search). The output can then be decoded using > encoding='utf-16-le', like any native Windows string. However, the /u

Re: Problem finding my folder via terminal

2018-06-06 Thread Steven D'Aprano
Hi Tamara, and welcome! My response is written below. Please ensure your reply is to the group, not just to me personally, thank you. On Wed, 06 Jun 2018 09:19:17 -0700, T Berger wrote: > I’m learning Python on my own and have been stuck for two days trying to > get modules I created into

[issue32676] test_asyncio emits many warnings when run in debug mode

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9f04f0df6fdb27190690bda949d213893d14e807 by Victor Stinner in branch 'master': bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462) https://github.com/python/cpython/commit/9f04f0df6fdb27190690bda949d213893d14e807

[issue33789] test_asyncio emits ResourceWarning warnings

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7ed61e9431ee2c191aeeeb26f86a71bb90ab99fd by Victor Stinner in branch 'master': bpo-33789, test_asyncio: Hide PendingDeprecationWarning (GH-7461) https://github.com/python/cpython/commit/7ed61e9431ee2c191aeeeb26f86a71bb90ab99fd --

[issue33789] test_asyncio emits ResourceWarning warnings

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0eba7c39132614a5730cda6b340e18dfb2d30d14 by Victor Stinner in branch 'master': bpo-33789: test_asyncio: Fix ResourceWarning (GH-7460) https://github.com/python/cpython/commit/0eba7c39132614a5730cda6b340e18dfb2d30d14 --

[issue32676] test_asyncio emits many warnings when run in debug mode

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +7085 stage: -> patch review ___ Python tracker ___ ___

[issue33789] test_asyncio emits ResourceWarning warnings

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7084 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33789] test_asyncio emits ResourceWarning warnings

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +7083 stage: -> patch review ___ Python tracker ___ ___

[issue33789] test_asyncio emits ResourceWarning warnings

2018-06-06 Thread STINNER Victor
New submission from STINNER Victor : vstinner@apu$ ./python -X dev -u -m test test_asyncio -v 2>&1 (...) test_create_connection_ssl_failed_certificate (test.test_asyncio.test_sslproto.SelectorStartTLSTests) ... Exception in thread test-server: Traceback (most recent call last): File

[issue13153] IDLE 3.x on Windows crashes when pasting non-BMP unicode

2018-06-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -JBernardo, Ramchandra Apte, Rosuav, THRlWiTi, William.Schwartz, asvetlov, loewis, python-dev, roger.serwy ___ Python tracker ___

[issue13153] IDLE 3.x on Windows crashes when pasting non-BMP unicode

2018-06-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg318863 ___ Python tracker ___ ___ Python-bugs-list

[issue33785] Crash caused by pasting ̖̈ into IDLE on Windows

2018-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a duplicate of the remaining part of #13153. The error message displayed in a console used to start IDLE is the same, ending with "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 0: invalid continuation byte" In the previous

[issue32493] UUID Module - FreeBSD build failure

2018-06-06 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +7082 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: test_io hangs often on Gentoo Refleaks 2.7 buildbot: Zachary Ware, who owns the builder, has to interrupt the test regularly. So I disabled test_io in regrtest when --huntrleaks is used, since at least one bug has been identified in test_io in

[issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 02b4d67a38b0c17d87749eeefc51e91baef10857 by Victor Stinner in branch '2.7': bpo-31731: test_io hangs with --huntrleaks: exclude it (GH-7459) https://github.com/python/cpython/commit/02b4d67a38b0c17d87749eeefc51e91baef10857 --

[issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +7081 stage: -> patch review ___ Python tracker ___ ___

Re: Names and identifiers

2018-06-06 Thread Marko Rauhamaa
r...@zedat.fu-berlin.de (Stefan Ram): > I was asked about the difference between a name and an > identifier. I was not sure. Ah, a delicious terminology debate ahead! Traditionally, an "identifier" refers to a syntactic (lexical, to be exact) unit. It is a sequence of Unicode code points

[issue33788] Argument clinic: use path_t in _winapi.c

2018-06-06 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : There currently are different functions in Modules/_winapi.c that deals with paths: CreateFile, CreateJunction, CreateNamedPipe and I'm currently working on a patch which will add 3 more. For those functions it would be convenient to be able to use

[issue33787] Argument clinic and Windows line endings

2018-06-06 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : If I use "Tools\clinic\clinic.py Modules\somemodule.c" on Windows argument clinic will modify the whole file and use Windows line endings ( "\r\n"). It would be good to use "\n" instead. -- assignee: larry components: Argument Clinic messages:

[issue33777] dummy_threading: .is_alive method returns True after execution has completed

2018-06-06 Thread Brett Cannon
Change by Brett Cannon : -- components: +Library (Lib) -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33780] [subprocess] Better Unicode support for shell=True on Windows

2018-06-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Windows nosy: +giampaolo.rodola, paul.moore, steve.dower, tim.golden, vstinner, zach.ware ___ Python tracker ___

[issue24622] tokenize.py: missing EXACT_TOKEN_TYPES

2018-06-06 Thread Stefan Krah
Stefan Krah added the comment: I would not mind backporting this. Let's think about it for a while. -- assignee: skrah -> resolution: fixed -> stage: resolved -> backport needed status: closed -> open versions: +Python 3.6 -Python 3.7 ___ Python

[issue33783] Use proper class markup for random.Random docs

2018-06-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> rhettinger nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___

[issue33786] @asynccontextmanager doesn't work well with async generators

2018-06-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24622] tokenize.py: missing EXACT_TOKEN_TYPES

2018-06-06 Thread Aaron Meurer
Aaron Meurer added the comment: I would suggest adding this to the what's new document https://docs.python.org/3.7/whatsnew/3.7.html. The change affects user-facing code (the exact_type attribute of TokenInfo is OP for ... and -> tokens prior to this patch). I would also point out that

[issue33786] @asynccontextmanager doesn't work well with async generators

2018-06-06 Thread Valentin Lavrinenko
Valentin Lavrinenko added the comment: Sorry, `async with ctx()` in main() is not needed. -- ___ Python tracker ___ ___

[issue33786] @asynccontextmanager doesn't work well with async generators

2018-06-06 Thread Valentin Lavrinenko
New submission from Valentin Lavrinenko : ``` @asynccontextmanager async def ctx(): yield async def gen(): async with ctx(): yield 'hello' yield 'world' async def main(): async with ctx(): async for value in gen(): print(value)

[issue33785] Crash caused by pasting ̖̈ into IDLE on Windows

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- title: Crash caused by pasting ̖̈ into python -> Crash caused by pasting ̖̈ into IDLE on Windows ___ Python tracker ___

[issue33785] Crash caused by pasting ̖̈ into python

2018-06-06 Thread Romaji Milton Amulo
Romaji Milton Amulo added the comment: It doesn't crash in Powershell, only shows up as the ? in a box character The issue must be with IDLE, most likely the BMP lack of support -- ___ Python tracker

[issue28240] Enhance the timeit module: display average +- std dev instead of minimum

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: I updated the documentation in 3.7 and master branches. -- ___ Python tracker ___ ___

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28240] Enhance the timeit module: display average +- std dev instead of minimum

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset cebd4b009adca6611e92eb337747f59818e941a6 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-28240: timeit: Update repeat() doc (GH-7419) (GH-7457) https://github.com/python/cpython/commit/cebd4b009adca6611e92eb337747f59818e941a6

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 67b7158d53f33ed644cc11ef394470a859ea8bad by Victor Stinner in branch '2.7': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) (GH-7456) https://github.com/python/cpython/commit/67b7158d53f33ed644cc11ef394470a859ea8bad

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Ok, fbound() is now better in all branches. I also fixed all compiler warnings in 2.7. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33785] Crash caused by pasting ̖̈ into python

2018-06-06 Thread Zachary Ware
Zachary Ware added the comment: Depending on PowerShell's support for Unicode (I'm not familiar with it :)), yes; running python from PowerShell would probably be fine in this case. The BMP: https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane -- nosy: -mrabarnett

[issue33785] Crash caused by pasting ̖̈ into python

2018-06-06 Thread Matthew Barnett
Matthew Barnett added the comment: For clarity, the first is '\U00010308\U00010316' and the second is '\U00010306\U00010300\U0001030B'. The BMP is the Basic Multilingual Plane, which covers the codepoints in the range U+ to U+. Some software has a problem dealing with codepoints

Re: Problem finding my folder via terminal

2018-06-06 Thread Shakti Kumar
Hi Berger, Do you have any space in the absolute path for mymodules? Spaces avoid getting the correct path as I had seen in one of my virtual environments. Shakti. On Wed, Jun 6, 2018, 9:53 PM T Berger wrote: > I’m learning Python on my own and have been stuck for two days trying to > get

Re: site package does not work

2018-06-06 Thread Peter Otten
Erik Martinson via Python-list wrote: > I am trying to dynamically add a site-package to a script that is run as a > cron job. The method adduseristepackages does not seem to do anything. The function addusersitepackages() seems to be un(der)documented; looking at the source it turns out that

SQLObject 3.7.0

2018-06-06 Thread Oleg Broytman
Hello! I'm pleased to announce version 3.7.0, the first stable release of branch 3.7 of SQLObject. What's new in SQLObject === Contributors for this release are Scott Stahl and Christophe Popov. Features * Add signals on commit and rollback; pull request by Scott

[issue33785] Crash caused by pasting ̖̈ into python

2018-06-06 Thread Romaji Milton Amulo
Romaji Milton Amulo added the comment: Would running it in Powershell avoid the issue? What is the BMP, by the way? -- ___ Python tracker ___

Re: site package does not work

2018-06-06 Thread Jim Lee
On 06/05/2018 01:33 PM, Erik Martinson via Python-list wrote: I am trying to dynamically add a site-package to a script that is run as a cron job. The method adduseristepackages does not seem to do anything. import sys import site

[issue33785] Crash caused by pasting ̖̈ into python

2018-06-06 Thread Zachary Ware
Zachary Ware added the comment: I suspect this is the old issue of Tcl/Tk's lack of support for Unicode characters outside the BMP. If I'm correct, there's nothing we can do about it. -- assignee: -> terry.reedy components: +IDLE nosy: +serhiy.storchaka, terry.reedy, zach.ware

Problem finding my folder via terminal

2018-06-06 Thread T Berger
I’m learning Python on my own and have been stuck for two days trying to get modules I created into site-packages. As a trial step, we were asked to change directly into the folder containing our modules. I typed “cd mymodules” per instructions, but got this error message: “-bash: cd:

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread miss-islington
miss-islington added the comment: New changeset 97fe1b493df979956c66c57095bc7fce22104faf by Miss Islington (bot) in branch '3.6': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) https://github.com/python/cpython/commit/97fe1b493df979956c66c57095bc7fce22104faf --

[issue33785] Crash caused by pasting ̖̈ into python

2018-06-06 Thread Romaji Milton Amulo
Romaji Milton Amulo added the comment: IDLE On Wed, Jun 6, 2018, 11:56 STINNER Victor wrote: > > STINNER Victor added the comment: > > Are you using cmd.exe, PowerShell or IDLE? > > -- > > ___ > Python tracker >

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread miss-islington
miss-islington added the comment: New changeset 016aff77cbf5f63ed051a98ac628522a1cfd40a4 by Miss Islington (bot) in branch '3.7': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) https://github.com/python/cpython/commit/016aff77cbf5f63ed051a98ac628522a1cfd40a4 --

[issue28240] Enhance the timeit module: display average +- std dev instead of minimum

2018-06-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7080 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28240] Enhance the timeit module: display average +- std dev instead of minimum

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3ef769fcd378a7f1cda19c0dfec2e79613d79e48 by Victor Stinner in branch 'master': bpo-28240: timeit: Update repeat() doc (GH-7419) https://github.com/python/cpython/commit/3ef769fcd378a7f1cda19c0dfec2e79613d79e48 --

[issue33785] Crash caused by pasting ̖̈ into python

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Are you using cmd.exe, PowerShell or IDLE? -- ___ Python tracker ___ ___ Python-bugs-list

[issue33785] Crash caused by pasting ̖̈ into python

2018-06-06 Thread Romaji Milton Amulo
New submission from Romaji Milton Amulo : On Windows 10, 64 bit, "Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32" crashes if ̖̈ is pasted into the interpreter window, closing the window immediately. Also ̆̀̋ crashes it too, suggesting the bug might be

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset e5b79c546370521764457ea2ec809303e580f5ea by Victor Stinner in branch '2.7': bpo-19418: audioop.c: Fix warnings on -0x8000 (GH-7453) https://github.com/python/cpython/commit/e5b79c546370521764457ea2ec809303e580f5ea --

[issue19418] audioop.c giving signed/unsigned warnings on Windows

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset e5b79c546370521764457ea2ec809303e580f5ea by Victor Stinner in branch '2.7': bpo-19418: audioop.c: Fix warnings on -0x8000 (GH-7453) https://github.com/python/cpython/commit/e5b79c546370521764457ea2ec809303e580f5ea --

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7079 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33784] hash collision in instances of ipaddress.ip_network

2018-06-06 Thread Francois Schneider
New submission from Francois Schneider : >>> import ipaddress >>> hash(ipaddress.ip_network(u'20.0.2.3/32')) == >>> hash(ipaddress.ip_network(u'20.0.2.0/30')) True -- components: Library (Lib) messages: 318835 nosy: Francois Schneider priority: normal severity: normal status: open

[issue33784] hash collision in instances of ipaddress.ip_network

2018-06-06 Thread Francois Schneider
Change by Francois Schneider : -- versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7078 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7077 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 492d6424a7ca907c8ec1df21e51062e8f3d88e32 by Victor Stinner in branch 'master': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) https://github.com/python/cpython/commit/492d6424a7ca907c8ec1df21e51062e8f3d88e32 --

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2bc1946fb02e140f5f5ac21a1afa2763615ad16b by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7451)

[issue19418] audioop.c giving signed/unsigned warnings on Windows

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7075 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7076 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: > New changeset b17d409bc0458e3981987c2358da661f228f5891 by Victor Stinner in > branch '2.7': > bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452) I checked AppVeyor logs: this change fixed the audioop.c warning that I wanted to fix ;-)

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset b17d409bc0458e3981987c2358da661f228f5891 by Victor Stinner in branch '2.7': bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452) https://github.com/python/cpython/commit/b17d409bc0458e3981987c2358da661f228f5891 --

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Note: I chose to not add a NEWS entry, because even if my change might enhance the rounding, I don't think that it has any effect in practice :-) -- ___ Python tracker

  1   2   >