[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: Regardless, since things have already shipped in stable releases, there is a release that code _will_ encounter somewhere that does validate data but does not support overruling that behavior. so i'm not sure if it actually matters to have this in 3.7 or

Re: PIP question

2019-09-26 Thread dieter
Gisle Vanem writes: > ... pip list ... > But for my Python 3.6 installation, it claims I have > an '-ip' package: > -ip-> f:\programfiler\python36\lib\site-packages > > I fail to find one, but I do have a: > f:\programfiler\python36\lib\site-packages\~ip-19.1.1.dist-info > > directory

[issue27805] io.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2019-09-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: If we were starting from zero, I would suggest omitting the lseek() after open. Sure .tell() might report 0 on newly opened files, but avoiding unnecessary io operations is nicer. -- nosy: +benjamin.peterson

Re: NameError: name 'msvcrt' is not defined

2019-09-26 Thread MRAB
On 2019-09-27 03:14, Hongyi Zhao wrote: Hi, I use python on Debian, when running some python codes, I meet the following error: --- input_username.py", line 18, in read_input if msvcrt.kbhit(): NameError: name 'msvcrt' is not defined How to solve this issue? That

NameError: name 'msvcrt' is not defined

2019-09-26 Thread Hongyi Zhao
Hi, I use python on Debian, when running some python codes, I meet the following error: --- input_username.py", line 18, in read_input if msvcrt.kbhit(): NameError: name 'msvcrt' is not defined How to solve this issue? --

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: You're welcome to 3.5. On Thu, Sep 26, 2019, at 00:23, STINNER Victor wrote: > > STINNER Victor added the comment: > > Benjamin: Python 3.5 is in the Versions field, but I don't see any > change related to 3.5 yet. It's also impacted, no? Do you plan

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-26 Thread DL Neil via Python-list
On 27/09/19 7:21 AM, RobH wrote: On 26/09/2019 17:51, Dennis Lee Bieber wrote: On Thu, 26 Sep 2019 11:58:15 +0100, RobH declaimed the following: ... Check out this guide for info on using character LCDs with the CircuitPython library:

[issue38136] Remove AsyncMock.assert_awaited_*

2019-09-26 Thread Lisa Roach
Change by Lisa Roach : -- pull_requests: +16010 pull_request: https://github.com/python/cpython/pull/16431 ___ Python tracker ___

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-26 Thread RobH
On 26/09/2019 20:21, RobH wrote: On 26/09/2019 17:51, Dennis Lee Bieber wrote: On Thu, 26 Sep 2019 11:58:15 +0100, RobH declaimed the following: import Adafruit_CharLCD as LCD FYI: from Adafruit's download site: https://github.com/adafruit/Adafruit_Python_CharLCD """ DEPRECATED

[issue38160] Add a "PyInterpreterState *" field to PyTypeObject.

2019-09-26 Thread Steve Dower
Steve Dower added the comment: > Does it mean that a type A created in interperter 1 can be seen/accessed from > interpreter 2? No, but it means that a type A *knows* that it was created in interpreter 1 without relying on the current thread local storage. What it does with this

[issue38160] Add a "PyInterpreterState *" field to PyTypeObject.

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: > A "PyInterpreterState *interp" field on PyTypeObject would allow us to > quickly access the originating interpreter from any object. Does it mean that a type A created in interperter 1 can be seen/accessed from interpreter 2? First I understood that an

[issue38160] Add a "PyInterpreterState *" field to PyTypeObject.

2019-09-26 Thread Christian Heimes
Christian Heimes added the comment: How about you add a module state reference to the type object and a interpreter state reference to the module object? -- nosy: +christian.heimes ___ Python tracker

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset 2c24f2cae00bbfe9af1e59778f6516d4c56ffc4e by Christian Heimes in branch '3.7': [3.7] bpo-38275: Skip ssl tests for disabled versions (GH-16427) https://github.com/python/cpython/commit/2c24f2cae00bbfe9af1e59778f6516d4c56ffc4e --

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset 1931132db33dd002cef0b19b8eaa219c1757797e by Christian Heimes in branch '3.8': [3.8] bpo-38275: Skip ssl tests for disabled versions (GH-16386) (GH-16425) https://github.com/python/cpython/commit/1931132db33dd002cef0b19b8eaa219c1757797e

[issue28009] Fix uuid.uuid1() core logic of uuid.getnode() needs refresh

2019-09-26 Thread Tal Einat
Tal Einat added the comment: Michael, many many thanks for the time and effort that you have poured into getting this fixed, and for your patience and perseverance over the three years that it took to happen. Well done! -- resolution: -> fixed stage: patch review -> resolved

[issue37141] Allow multiple separators in Stream.readuntil

2019-09-26 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> later status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37141] Allow multiple separators in Stream.readuntil

2019-09-26 Thread Yury Selivanov
Yury Selivanov added the comment: I already mentioned that in the PR, but we'll have to hit a pause on this. We decided to revert the latest streams implementation from 3.8, see https://bugs.python.org/issue38242. The upshot is that what we have in 3.9 should be more amenable for things

[issue28009] core logic of uuid.getnode() needs refresh

2019-09-26 Thread Tal Einat
Tal Einat added the comment: New changeset 0bcbfa43d55d9558cdcb256d8998366281322080 by Tal Einat (Michael Felt) in branch 'master': bpo-28009: Fix uuid.uuid1() and uuid.get_node() on AIX (GH-8672) https://github.com/python/cpython/commit/0bcbfa43d55d9558cdcb256d8998366281322080 --

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-26 Thread RobH
On 26/09/2019 17:51, Dennis Lee Bieber wrote: On Thu, 26 Sep 2019 11:58:15 +0100, RobH declaimed the following: import Adafruit_CharLCD as LCD FYI: from Adafruit's download site: https://github.com/adafruit/Adafruit_Python_CharLCD """ DEPRECATED LIBRARY. Adafruit Python CharLCD

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Was LOAD_METHOD optimized for builtin methods? -- ___ Python tracker ___ ___ Python-bugs-list

[issue38289] Add an option to point to an additional "site" directory

2019-09-26 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38289] Add an option to point to an additional "site" directory

2019-09-26 Thread Michał Fronczyk
New submission from Michał Fronczyk : An environment variable to point to an additional site-packages directory (without disabling the one in Python itself) location would allow having different sets of extra packages that can be enabled by the users in their or shared Python installations.

[issue38160] Add a "PyInterpreterState *" field to PyTypeObject.

2019-09-26 Thread Tahia K
Change by Tahia K : -- nosy: +ta1hia ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38141] Use fewer statics in Argument Clinic.

2019-09-26 Thread Tahia K
Change by Tahia K : -- nosy: +ta1hia ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-26 Thread Tahia K
Change by Tahia K : -- nosy: +ta1hia ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38288] shutil.make_archive() should allow setting zipfile.ZipFile() 'strict_timestamps'

2019-09-26 Thread Tahia K
Tahia K added the comment: Hello, I'm interested in picking this task up. Would it be alright for me to grab it? -- nosy: +ta1hia ___ Python tracker ___

[issue38288] shutil.make_archive() should allow setting zipfile.ZipFile() 'strict_timestamps'

2019-09-26 Thread Alori
Alori added the comment: ...would solve the issue (cut off from previous post) -- ___ Python tracker ___ ___ Python-bugs-list

[issue16575] ctypes: unions as arguments

2019-09-26 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: +16009 pull_request: https://github.com/python/cpython/pull/16430 ___ Python tracker ___

[issue38288] shutil.make_archive() should allow setting zipfile.ZipFile() 'strict_timestamps'

2019-09-26 Thread Alori
New submission from Alori : https://bugs.python.org/issue34097 addressed a zipfile.ZipFile() issue where zip files with timestamps prior to the year 1980 could not be created. The fix adds the strict_timestamps=True|False keyword argument to the ZipFile class. shutil.make_archive() is a

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-26 Thread RobH
On 26/09/2019 15:22, Chris Angelico wrote: On Thu, Sep 26, 2019 at 9:01 PM RobH wrote: import Adafruit_CharLCD as LCD # Raspberry Pi pin configuration: Ah, it's an RPi with Adafruit. That's the same library that my brother uses. I don't know much of the details, but in case it's helpful,

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2019-09-26 Thread Eryk Sun
Eryk Sun added the comment: > I'm not sure that there is a big benefit for us to drop Windows 8 > support (only Windows 8 but continue to support Windows 8.1), > compared to the annoyance for users. According to statcounter.com and netmarketshare.com, Windows 8 still has 1% or less of the

[issue38287] tempfile.TemporaryDirectory() should behave the same as a context manager as when used directly

2019-09-26 Thread Pat Gunn
New submission from Pat Gunn : Right now, when tempfile.TemporaryDirectory() is used as a context manager, the context variable is stringy, usable as a string containing the directory name it made. When used directly, it returns an object that does not coerce to a nice string, instead

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset 9f77268f901cc3e8874e5042361520a0e482476a by Christian Heimes in branch 'master': bpo-38275: Fix test_ssl issue caused by GH-16386 (#16428) https://github.com/python/cpython/commit/9f77268f901cc3e8874e5042361520a0e482476a --

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: AMD64 RHEL8 LTO 3.x is green again. I will keep the issue open until all mentionned buildbots are back to green (when test_gdb pass on these workers). -- ___ Python tracker

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: The change caused many buildbot failures, see examples from IRC logs below. I understand that PR 16428 will fix them. 17:22 < py-bb> Build s390x SLES 3.x #3824 is complete: Failure [failed test (failure)] -

[issue37141] Allow multiple separators in Stream.readuntil

2019-09-26 Thread Bruce Merry
Bruce Merry added the comment: I've submitted a PR: https://github.com/python/cpython/pull/16429 -- ___ Python tracker ___ ___

[issue37141] Allow multiple separators in Stream.readuntil

2019-09-26 Thread Bruce Merry
Change by Bruce Merry : -- keywords: +patch pull_requests: +16008 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/16429 ___ Python tracker

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +16007 pull_request: https://github.com/python/cpython/pull/16428 ___ Python tracker ___

Re: CSV reader ignore brackets

2019-09-26 Thread Piet van Oostrum
Skip Montanaro writes: > How about just replacing *\(([^)]*)\)* with *"\1"* in a wrapper class's > line reading method? (I think I have the re syntax approximately right.) > The csv reader will "just work". Again, nesting parens not allowed. > > Skip here is some working code: def

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Malversán
Malversán added the comment: I'm sorry to read that. I thought the report could be enough to reach whoever put that SOCK_STREAM-only checks and ask him why, when the library actually works well also with other socket types. If I ever find enough time to dive into the CPython repository I

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-26 Thread RobH
On 26/09/2019 12:55, Rhodri James wrote: On 26/09/2019 11:58, RobH wrote: Thanks, but was is Python REPR. DL was referring to the interactive program you get when you type "python" at a Linux or Windows command prompt.  Here's an example, copied from my Linux box: rhodri@scrote:~$ python

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset e6b5ed1fbdbb7b44c7ab2a353fa0bc726b073740 by Victor Stinner in branch '3.7': bpo-38239: Fix test_gdb for Link Time Optimization (LTO) (GH-16422) (GH-16426) https://github.com/python/cpython/commit/e6b5ed1fbdbb7b44c7ab2a353fa0bc726b073740

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: If you have no time for contribution -- that's fine, CPython is the Open Source project driven by volunteers. The only caveat is that the issue may wait for years before we find a champion to pick it up. For example, this particular problem is on the very

Re: __init__ is not invoked

2019-09-26 Thread ast
Le 26/09/2019 à 15:17, Peter Otten a écrit : ast wrote: __init__ is called only if __new__ returns an instance of ClassB: I was ignoring that. thank you -- https://mail.python.org/mailman/listinfo/python-list

[issue38112] Compileall improvements

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: FYI test_compileall.test_compile_dir_maxlevels() also fails on AMD64 FreeBSD CURRENT Shared 3.x: https://buildbot.python.org/all/#builders/168/builds/1529 -- ___ Python tracker

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +16006 pull_request: https://github.com/python/cpython/pull/16427 ___ Python tracker ___

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread miss-islington
miss-islington added the comment: New changeset c9893400652f38804aed0be8d8f70feda9465c47 by Miss Islington (bot) in branch '3.8': bpo-38239: Fix test_gdb for Link Time Optimization (LTO) (GH-16422) https://github.com/python/cpython/commit/c9893400652f38804aed0be8d8f70feda9465c47 --

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 doesn't seem to be affected: I failed to reproduce the test_gdb failure on Python 2.7 with LTO. -- versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16005 pull_request: https://github.com/python/cpython/pull/16426 ___ Python tracker ___

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Malversán
Malversán added the comment: In the past it took me two days to analyze asyncio code, to think up and integrate the hack I´m using for this. But I´m not kidding when I tell you that it took me two years to find a while to come here and properly report it. I'm sorry, but I never have time to

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +16004 pull_request: https://github.com/python/cpython/pull/16425 ___ Python tracker ___

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread miss-islington
miss-islington added the comment: New changeset df6ac7e2b82d921a6e9ff5571b40c6dbcf635581 by Miss Islington (bot) (Christian Heimes) in branch 'master': bpo-38275: Skip ssl tests for disabled versions (GH-16386) https://github.com/python/cpython/commit/df6ac7e2b82d921a6e9ff5571b40c6dbcf635581

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, I do not know such workaround. At best, you can analyze the code object and get the line number of the next instruction. It may be the line past the last line of the function call, or be equal to it if the function call is the part of complex

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 64b4a3a2deabcd4103fac2759a311fe94159b4d1 by Victor Stinner in branch 'master': bpo-38239: Fix test_gdb for Link Time Optimization (LTO) (GH-16422) https://github.com/python/cpython/commit/64b4a3a2deabcd4103fac2759a311fe94159b4d1 --

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +16003 pull_request: https://github.com/python/cpython/pull/16424 ___ Python tracker ___

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2019-09-26 Thread Steve Dower
Steve Dower added the comment: There shouldn't be any annoyance to users, as nobody should be using Windows 8 anymore (the update to 8.1 was free and difficult to avoid). Updating to NTDDI_WINBLUE is fine, but not essential. Nothing about that flag has a real impact until we need or want to

[issue18309] Make python slightly more relocatable

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: My plan is not to change the default implementation to calculate the path configuration, but make it easier to customize the path configuration. One idea is to rewrite Modules/getpath.c and PC/getpathp.c in Python and convert it to a frozen module. It is

Re: __init__ is not invoked

2019-09-26 Thread Rhodri James
On 26/09/2019 15:35, Oscar Benjamin wrote: On Thu, 26 Sep 2019 at 13:39, Rhodri James wrote: You have returned the class object, not an instance of anything, Well object is an instance of object as well as of type: Fair point. I keep forgetting that. -- Rhodri James *-* Kynesim Ltd --

Re: __init__ is not invoked

2019-09-26 Thread Oscar Benjamin
On Thu, 26 Sep 2019 at 13:39, Rhodri James wrote: > > On 26/09/2019 13:20, ast wrote: > > > > >>> class ClassB(object): > > ... def __new__(cls, arg): > > ... print('__new__ ' + arg) > > ... return object > > ... def __init__(self, arg): > > ... print('__init__ '

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Thomas Haller
Thomas Haller added the comment: > We could keep f_lineno unchanged, despite the fact that its value can be wrong It was not completely wrong. It was seemingly good enough for the past 20+ years. The change in behaviour is one thing. It's also inconvenient that, even when being aware of

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: > Oh, there is a regression: (...) PyInit__tkinter() calls Py_GetProgramName(). > But Python initialization no longer copies PyConfig path configuration into > _Py_path_info (the global configuration). So Python has to recompute the path > configuration

Re: __init__ is not invoked

2019-09-26 Thread Oscar Benjamin
On Thu, 26 Sep 2019 at 14:19, Peter Otten <__pete...@web.de> wrote: > > __init__ is called only if __new__ returns an instance of ClassB: > > """ > /* If the returned object is not an instance of type, >it won't be initialized. */ > if (!PyType_IsSubtype(Py_TYPE(obj), type)) >

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-26 Thread Chris Angelico
On Thu, Sep 26, 2019 at 9:01 PM RobH wrote: > > import Adafruit_CharLCD as LCD > > > # Raspberry Pi pin configuration: Ah, it's an RPi with Adafruit. That's the same library that my brother uses. I don't know much of the details, but in case it's helpful, here's the code that currently runs his

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: > Steve, in PR 15951 you updated Py_WINVER to 0x0602. I think it should be > 0x0603 (_WIN32_WINNT_WINBLUE) and Py_NTDDI should be NTDDI_WINBLUE. Windows 8 > hasn't been supported since 2016. Windows 8.1 is supported until 2023. Dropping Windows 7 support

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2019-09-26 Thread Eryk Sun
Eryk Sun added the comment: Steve, in PR 15951 you updated Py_WINVER to 0x0602. I think it should be 0x0603 (_WIN32_WINNT_WINBLUE) and Py_NTDDI should be NTDDI_WINBLUE. Windows 8 hasn't been supported since 2016. Windows 8.1 is supported until 2023. --

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 96c8475362acb41decd1d7db9243f328973e5de7 by Victor Stinner in branch '3.8': [3.8] bpo-38234: Backport init path config changes from master (GH-16423) https://github.com/python/cpython/commit/96c8475362acb41decd1d7db9243f328973e5de7 --

Pysmnp : setCmd doesn't modify the object value

2019-09-26 Thread cdoare.ext
Hello, I tried to set a value from setCmd. Execution doesn't return any error but the snmp request is not sent ! g = setCmd(SnmpEngine() , CommunityData('public', mpModel=1) , UdpTransportTarget(('x.x.x.x', 161)) , ContextData() , ObjectType(ObjectIdentity('1.3.6.1.2.1.2.2.1.7.364904448'),

[issue38286] tarfile forgets set sgid when targetpath has it

2019-09-26 Thread Charles Coulombe
New submission from Charles Coulombe : An archive that does not have sgid that is extracted in a directory with sgid set does not end up having its sgid set since the targetpath is chmod with the mode of the tarinfo. (Lib/tarfile.py#L2277) For comparison, an archive extracted with tar has

PIP question

2019-09-26 Thread Gisle Vanem
Hello list. This little program should print the location of all my installed Python packages: -- 8< -- 8< --- import pip try: packages = pip.get_installed_distributions (local_only=False, skip=()) except AttributeError: import pkg_resources # Python3 packages =

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16002 pull_request: https://github.com/python/cpython/pull/16423 ___ Python tracker ___

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 12f2f177fc483723406d7917194e7f655a20631b by Victor Stinner in branch 'master': bpo-38234: Py_Initialize() sets global path configuration (GH-16421) https://github.com/python/cpython/commit/12f2f177fc483723406d7917194e7f655a20631b --

[issue37883] threading.Lock.locked is not documented

2019-09-26 Thread Ido Michael
Ido Michael added the comment: P.S PR: https://github.com/python/cpython/pull/16420 -- ___ Python tracker ___ ___ Python-bugs-list

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16001 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16422 ___ Python tracker ___

[issue37883] threading.Lock.locked is not documented

2019-09-26 Thread Ido Michael
Ido Michael added the comment: Hey Remi, I've fixed it and created PR on the issue. Ido -- nosy: +Ido Michael ___ Python tracker ___

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: __init__ is not invoked

2019-09-26 Thread Peter Otten
ast wrote: > Hello > > In the following code found here: > https://www.pythonsheets.com/notes/python-object.html > > __init__ is not invoked when we create an object > with "o = ClassB("Hello")". I don't understand why. > I know the correct way to define __new__ is to write > "return

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16000 pull_request: https://github.com/python/cpython/pull/16421 ___ Python tracker ___

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-26 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner Thank you for the feedback. I've updated the PR with the unit test you suggested :-) -- ___ Python tracker ___

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-26 Thread Rhodri James
On 26/09/2019 11:58, RobH wrote: Thanks, but was is Python REPR. DL was referring to the interactive program you get when you type "python" at a Linux or Windows command prompt. Here's an example, copied from my Linux box: rhodri@scrote:~$ python Python 2.7.15+ (default, Jul 9 2019,

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: We can implement these using the following procedure: 1. Use only one socket type per pull request 2. Add support for, e.g. SOCK_SEQPACKET to asyncio code 3. Add test(s) that checks that SOCK_SEQPACKET works fine (./Lib/test/test_asyncio folder, perhaps

[issue18182] xml.dom.createElement() does not take implicit namespaces into account

2019-09-26 Thread karl
karl added the comment: The current specification as of today documents https://dom.spec.whatwg.org/#dom-document-createelementns If you run this in the browser console, var nsdoc = 'http://foo.bar/zoo'; var xmldoc = document.implementation.createDocument(nsdoc, 'Zoo', null); var cpd =

Re: __init__ is not invoked

2019-09-26 Thread ast
Le 26/09/2019 à 14:20, ast a écrit : Hello In the following code found here: https://www.pythonsheets.com/notes/python-object.html __init__ is not invoked when we create an object with "o = ClassB("Hello")". I don't understand why. I know the correct way to define __new__ is to write "return

Re: __init__ is not invoked

2019-09-26 Thread Rhodri James
On 26/09/2019 13:20, ast wrote: Hello In the following code found here: https://www.pythonsheets.com/notes/python-object.html __init__ is not invoked when we create an object with "o = ClassB("Hello")". I don't understand why. I know the correct way to define __new__ is to write "return

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Malversán
Malversán added the comment: Certainly I have only tested it with SOCK_SEQPACKET, but apparently no one has ever tested this before with a socket type other than SOCK_STREAM. It may be worth to consider the possibility that the current asyncio implementation may also support some other

__init__ is not invoked

2019-09-26 Thread ast
Hello In the following code found here: https://www.pythonsheets.com/notes/python-object.html __init__ is not invoked when we create an object with "o = ClassB("Hello")". I don't understand why. I know the correct way to define __new__ is to write "return object.__new__(cls, arg)" and not

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think if we want to support SOCK_SEQPACKET by asyncio we should do it explicitly. In the other case, we can open a can of worms: we cannot guarantee that all existing protocols are supported by asyncio seamlessly. Anyway, this is a new feature request.

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Malversán
New submission from Malversán : Currently the BaseEventLoop class in asyncio has explicit checks to raise ValueError when creating a connection if the socket argument has a type other than SOCK_STREAM: .create_connection() .create_server() This is also applicable for class

[issue38112] Compileall improvements

2019-09-26 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +15999 pull_request: https://github.com/python/cpython/pull/16419 ___ Python tracker ___

Re: Funny code

2019-09-26 Thread Albert-Jan Roskam
On 26 Sep 2019 10:28, Christian Gollwitzer wrote: Am 26.09.19 um 08:34 schrieb ast: > Hello > > A line of code which produce itself when executed > > >>> s='s=%r;print(s%%s)';print(s%s) > s='s=%r;print(s%%s)';print(s%s) > > Thats funny ! ==> Also impressive, a 128-language quine:

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, of course. We could keep f_lineno unchanged, despite the fact that its value can be wrong, and introduce f_lineno_new. Then we should change all code in the stdlib which uses f_lineno to use f_new_lineno, or rather, to keep absolute backward

[issue38284] signal.sigwait* do not intercept certain signals

2019-09-26 Thread Blindfreddy
New submission from Blindfreddy : On debian, signal.sigwait/sigwaitinfo/sigtimedwait do not properly handle the below signals (NOK). Steps to reproduce 1. start python and type: >>> import signal >>> signal.sigwait([

[issue38277] Allowing conditions with assignment expressions in comprehensions without parantheses

2019-09-26 Thread Arne Recknagel
Arne Recknagel added the comment: Alright, fair enough -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Thomas Haller
Thomas Haller added the comment: OK, I see. Thanks for the references. FWIW, I think such changes in behavior are really bad. The issue should be fixed without changing existing API. -- ___ Python tracker

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-26 Thread RobH
On 26/09/2019 11:08, DL Neil wrote: On 26/09/19 9:14 PM, RobH wrote: I have some sample/demo python code for scrolling and outputting text onto a 16x2 lcd display. I would like to put my own message or text outputting to the lcd on 2 lines. I have tried using lcd.message('my message',1) and

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2019-09-26 Thread Marcin Gozdalik
Marcin Gozdalik added the comment: A program which failed under Python 3.6 with TypeError: 'int' object is not callable still fails under Python 3.7.4 with same exception: import signal import os import sys import time import multiprocessing def fail(): def handler(*args):

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue12458 and issue34372. Related issues: issue34876, issue16806, issue31241. -- ___ Python tracker ___

[issue38223] Reorganize test_shutil

2019-09-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.7, Python 3.8 ___ Python tracker

[issue38223] Reorganize test_shutil

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4f2eac04e4fee4d7d188ad2eeb0e610e3d7254bb by Serhiy Storchaka in branch 'master': bpo-38223: Reorganize test_shutil. (GH-16281) https://github.com/python/cpython/commit/4f2eac04e4fee4d7d188ad2eeb0e610e3d7254bb --

[issue18309] Make python slightly more relocatable

2019-09-26 Thread Mathias Fröhlich
Mathias Fröhlich added the comment: Yes. msg191944 from Nick Coghlan, made me think that with all the initialization rework that appeared to be underway you want to incorporate that presented idea of basing the default onto the location of the libpython.so or the pythonX.X.dll instead of

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-26 Thread DL Neil via Python-list
On 26/09/19 9:14 PM, RobH wrote: I have some sample/demo python code for scrolling and outputting text onto a 16x2 lcd display. I would like to put my own message or text outputting to the lcd on 2 lines. I have tried using lcd.message('my message',1) and lcd.message('my message', 2), but

  1   2   >