Re: IDLE Default Working Directory

2018-11-12 Thread Thomas Jollans
On 13/11/2018 00:45, Terry Reedy wrote: > > On Windows, a simple alternate is a .bat file.  I belive the folloiwing > should work. > > cd c:/desired/startup/directory > py -x.y -m idlelib > > The default for x.y is latest 3.x or latest 2.x if no 3.x. Correct me if I'm wrong, but won't that

[issue35223] Pathlib incorrectly merges strings.

2018-11-12 Thread Roffild
Roffild added the comment: It is necessary to assemble a single path from several lines depending on the OS. It is logical to expect behavior in Java. https://docs.oracle.com/javase/8/docs/api/java/nio/file/Paths.html Converts a path string, or a sequence of strings that when joined form a

[issue35224] PEP 572: Assignment Expressions

2018-11-12 Thread Emily Morehouse
Change by Emily Morehouse : -- keywords: +patch pull_requests: +9758 stage: -> patch review ___ Python tracker ___ ___

[issue35224] PEP 572: Assignment Expressions

2018-11-12 Thread Emily Morehouse
Change by Emily Morehouse : -- keywords: +patch, patch pull_requests: +9758, 9759 stage: -> patch review ___ Python tracker ___

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Christoph Gohlke
Christoph Gohlke added the comment: I attached a minimal C extension module that can be used to demonstrate the performance degradation from Python 3.7.0a3 to 3.7.0a4. Build the extension with `py setup.py build_ext --inplace`, then run the following code on Python 3.7.0a3 to 3.7.0a4: ```

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread STINNER Victor
STINNER Victor added the comment: > digits = ''.join([str(i) for i in range(10)]*1000) > %timeit digits.isdigit() # --> 2X+ slower on python 3.7.1 This code calls: * (Python) str.isdigit() * unicode_isdigit_impl() * _PyUnicode_IsDigit() * _PyUnicode_ToDigit() which uses Python internal

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm still testing this solution, but it looks like if you set the environment variable, and then double fork, the granchild won't crash. Roughly: os.putenv('OBJC_DISABLE_INITIALIZE_FORK_SAFETY', 'YES') pid = os.fork() if pid == 0: subpid = os.fork()

[issue35221] Enhance venv activate commands readability

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread Wildman via Python-list
I tried posting this already but it didn't make it. I am trying again... On Tue, 13 Nov 2018 01:07:06 +0530, srinivasan wrote: > Dear Python Experts, > > *First method:* > > I need to get the IP address basically the gateway IP I am assuming your platform is Linux. If I am incorrect then

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread miss-islington
miss-islington added the comment: New changeset f6602f92664b782125a1ec5009706f9300fe7e80 by Miss Islington (bot) in branch '3.7': bpo-35214: Add _Py_ prefix to MEMORY_SANITIZER def. (GH-10503) https://github.com/python/cpython/commit/f6602f92664b782125a1ec5009706f9300fe7e80 --

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3b5b1c0931cd32253bbf2f3bd74e90ff821e026e by Gregory P. Smith in branch '3.6': [3.6] bpo-35214: Initial clang MemorySanitizer support (GH-10479) (GH-10493) https://github.com/python/cpython/commit/3b5b1c0931cd32253bbf2f3bd74e90ff821e026e

[issue35224] PEP 572: Assignment Expressions

2018-11-12 Thread Emily Morehouse
New submission from Emily Morehouse : This issue will serve to track development and PRs for the implementation of PEP 572: Assignment Expressions. -- assignee: emilyemorehouse components: Interpreter Core messages: 329781 nosy: emilyemorehouse, gvanrossum, tim.peters priority: normal

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Christoph Gohlke
Change by Christoph Gohlke : Added file: https://bugs.python.org/file47928/test_isdigit.c ___ Python tracker ___ ___ Python-bugs-list

[issue35224] PEP 572: Assignment Expressions

2018-11-12 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread STINNER Victor
STINNER Victor added the comment: > This issue may be related to bpo-34485. I'm thinking to: New changeset 177d921c8c03d30daa32994362023f777624b10d by Victor Stinner in branch 'master': bpo-34485, Windows: LC_CTYPE set to user preference (GH-8988)

[issue31541] Mock called_with does not ensure self/cls argument is used

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I agree with Karthikeyan: This is is the expected behaviour. The moment you use a mock, any implementation details are lost unless you use wraps or similar to also transfer the call to the/a real object. -- nosy: +pablogsal

[issue33944] Deprecate and remove pth files

2018-11-12 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > I’m a little concerned about this approach because it means random third > party modules can affect the global environment for your application, without > knowing it. Since the hook installation happens at import time, and just > depending on a library that

[issue35224] PEP 572: Assignment Expressions

2018-11-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +9763 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: IDLE Default Working Directory

2018-11-12 Thread Terry Reedy
On 11/12/2018 10:35 AM, Bev in TX wrote: On Nov 12, 2018, at 9:16 AM, eryk sun wrote: On 11/12/18, Christman, Roger Graydon mailto:d...@psu.edu>> wrote: I looked in IDLE's own configuration menu, and didn't see anything there -- and I fear that I might have to fight some Windows settings

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Dragoljub
Dragoljub added the comment: Here is a simple pure python example: digits = ''.join([str(i) for i in range(10)]*1000) %timeit digits.isdigit() # --> 2X+ slower on python 3.7.1 Basically in Pandas C-code parser we call the isdigit() function for each number that is to be parsed. so

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: Can we prefix MEMORY_SANITIZER with _Py_? -- nosy: +benjamin.peterson ___ Python tracker ___

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Alex Gaynor
Alex Gaynor added the comment: All libraries that are linked against, including libc, need to be compiled with MSAN. MSAN is not for the faint of heart. -- ___ Python tracker

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: yeah, i've been surprised how far i was able to get from an oss CPython tree and pre-built clang 7 binary installation. If you have headers installed for common libraries like libssl-dev and libreadline-dev you can't produce an interpreter that'll work

[issue35223] Pathlib incorrectly merges strings.

2018-11-12 Thread Roffild
New submission from Roffild : Code: import os print(os.path.join("C:/123\\345", "\\", "folder///filename.bin")) import pathlib print(pathlib.PureWindowsPath("C:/123\\345", "\\", "folder///filename.bin")) Result: C:\folder///filename.bin C:\folder\filename.bin Expected result for Windows:

Re: IDLE Default Working Directory

2018-11-12 Thread Terry Reedy
On 11/12/2018 7:15 PM, Thomas Jollans wrote: On 13/11/2018 00:45, Terry Reedy wrote: On Windows, a simple alternate is a .bat file.  I belive the folloiwing should work. cd c:/desired/startup/directory py -x.y -m idlelib The default for x.y is latest 3.x or latest 2.x if no 3.x. Correct me

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -9756 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -9755 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: [Tutor] Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread Bill Campbell
On Tue, Nov 13, 2018, srinivasan wrote: >Dear Python Experts, > >*First method:* > >I need to get the IP address basically the gateway IP in my setup I get it >as "192.168.178.1" when I run the below standalone python code. > > >*def get_gateway_ip(self):* >*"""* >*Get the

[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-12 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: It's been more than 3 years, since this was opened, but I will ask nevertheless. Should a PR maybe made for this issue? -- nosy: +lys.nikolaou ___ Python tracker

Re: distribute python interpreter and dependencies

2018-11-12 Thread Thomas Jollans
On 12/11/2018 17:40, Juan Cristóbal Quesada wrote: > Hello, > this is my first mail. I resorted to the list after some prior struggling. Welcome! > Im facing the need to distribute a python installation folder and > interpreter in a shared network drive. > > Im also distributing the

[issue35222] email.utils.formataddr is not exactly the reverse of email.utils.parseaddr

2018-11-12 Thread skreft
skreft added the comment: @r.david.murray where do you see that those functions are only defined for ascii? There's nothing in the online docs stating that and furthermore `formataddr` has supported non-ascii names since version 3.3. RFC 2822 is however mentioned in the docstrings. The

[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2018-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +9757 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Christoph Gohlke
Christoph Gohlke added the comment: > Can someone please try to write an example which only uses the stdlib? The simplest is to compare performance of the `windll.LoadLibrary('API-MS-WIN-CRT-STRING-L1-1-0.DLL')` function on Python 3.7.0a3 and 3.7.0a4, but that will mostly measure

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Christoph Gohlke
Change by Christoph Gohlke : Added file: https://bugs.python.org/file47929/setup.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread STINNER Victor
STINNER Victor added the comment: test_isdigit.c: Can you try to call locale.setlocale(locale.LC_CTYPE, "") before running your benchmark on Python 3.7.0? This issue may be related to bpo-34485. -- ___ Python tracker

Re: Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread Cameron Simpson
On 12Nov2018 21:17, MRAB wrote: On 2018-11-12 19:37, srinivasan wrote: When I use the subprocess I see the below issue: def get_gateway_ip(self): [...] p = subprocess.Popen('ip route show 0.0.0.0/0 dev wlp1s0 | cut -d\ -f3', stdout=subprocess.PIPE) [...]

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Alex Gaynor
Change by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +9760 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35225] test_faulthandler fails under ubsan

2018-11-12 Thread Benjamin Peterson
New submission from Benjamin Peterson : The UBsan buildbot is failing test_faulthandler. We should either spread some __attribute__((no_sanitize_undefined)) around or make the tests skip. == FAIL: test_enable_fd

[issue35215] Replacing CPython memory allocation

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > The point of this 'issue' is to ask the community to suggest how i can go > about finding where the problem is. As I said, there is a lot of code :) Sadly, this tracker is to track bugs related to CPython. Modifying the interpreter to change the

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I cannot initialize the interpreter after compiling with --with-memory-sanitizer: ❯ CC=clang ./configure --with-memory-sanitizer && make -j ❯ ./python Python 3.8.0a0 (heads/master:1584a00815, Nov 13 2018, 03:29:18) [Clang 7.0.0

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3015fb8ce4d25603434b9b44bb7effb98a481532 by Gregory P. Smith in branch 'master': bpo-35214: Add _Py_ prefix to MEMORY_SANITIZER def. (GH-10503) https://github.com/python/cpython/commit/3015fb8ce4d25603434b9b44bb7effb98a481532 --

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +9765 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35222] email.utils.formataddr is not exactly the reverse of email.utils.parseaddr

2018-11-12 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: This is indeed an issue with formataddr, it expects the input to be ascii encoded as RFC 2822 requires. Email is much more complicated though and has been internationalized, a summary of this work is available at

Re: IDLE Default Working Directory

2018-11-12 Thread Terry Reedy
On 11/12/2018 2:28 PM, eryk sun wrote: On 11/12/18, Christman, Roger Graydon wrote: eryk sun responded: On 11/12/18, Christman, Roger Graydon wrote: I looked in IDLE's own configuration menu, and didn't see anything there -- and I fear that I might have to

[issue35222] email.utils.formataddr is not exactly the reverse of email.utils.parseaddr

2018-11-12 Thread R. David Murray
R. David Murray added the comment: Thanks for the report, but parseaddr and formataddr are defined *only* for ASCII. In the port to python3, parseaddr sort-of-maybe-sometimes does the naively expected thing with non-ascii, but that's just an accident. We could have added a check for

[issue35223] Pathlib incorrectly merges strings.

2018-11-12 Thread Eric V. Smith
Eric V. Smith added the comment: As far as which path components are returned, I think this is working as designed. The documentation for os.path.join says: """ If a component is an absolute path, all previous components are thrown away and joining continues from the absolute path component.

[issue35215] Replacing CPython memory allocation

2018-11-12 Thread paul
paul added the comment: Hi guys, First, thanks for the prompt replies. @matrixise: If there is i can't find it, but i am happy to accept it as a possibility. Equally, maybe there is an assumption about memory in the cpython implementation somewhere that goes against my memory allocator

[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2018-11-12 Thread miss-islington
miss-islington added the comment: New changeset 3f9fe53c98978955fea4e36456c784694e6458a8 by Miss Islington (bot) in branch '3.7': bpo-35031: Fix test_start_tls_server_1 on FreeBSD buildbots (GH-10011) https://github.com/python/cpython/commit/3f9fe53c98978955fea4e36456c784694e6458a8

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Nope, actually double fork doesn't work. It's misleading because in my testing, the first invocation of the process causes the core dump, but subsequent runs do not. -- ___ Python tracker

[issue31541] Mock called_with does not ensure self/cls argument is used

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Will -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31541] Mock called_with does not ensure self/cls argument is used

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg329801 ___ Python tracker ___ ___ Python-bugs-list

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +9761 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +9762 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: [Tutor] Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread Michael Torrie
On 11/12/2018 05:55 PM, David Rock wrote: > Is there a requirement to use only what comes in the standard libraries, or > can you use things from pypi? > Getting interface details is exactly why netifaces was created > > https://pypi.org/project/netifaces/ Also if working with NetworkManager is

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +9764 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: passing value from Python3 script back to RewriteMap MapType prg in Apache24

2018-11-12 Thread dieter
Benedikt Kroll writes: > Hi, > > using a Python script as a Rewrite Map with MapType prg in Apache 2.4, I'm > having trouble > passing the value back to Apache. > > The log says "map lookup OK", but the value is empty. > > According to the Apache documentation >

[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: it still seems relevant, having better docs is always good. -- ___ Python tracker ___ ___

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I've done a fair bit of testing and it seems rather inconsistent as to whether either of these work when added right before an explicit call to `os.fork()`: os.environ['OBJC_DISABLE_INITIALIZE_FORK_SAFETY'] = 'YES'

[issue29564] ResourceWarning: suggest to enable tracemalloc in the message

2018-11-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2c07c493d2eb45101312e3eb3a77f94d0c9cad1f by Victor Stinner in branch 'master': bpo-29564: warnings suggests to enable tracemalloc (GH-10486) https://github.com/python/cpython/commit/2c07c493d2eb45101312e3eb3a77f94d0c9cad1f --

[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-12 Thread Windson Yang
Windson Yang added the comment: I will work on it today :D -- nosy: +Windson Yang ___ Python tracker ___ ___ Python-bugs-list

Re: IDLE Default Working Directory

2018-11-12 Thread eryk sun
On 11/12/18, Thomas Jollans wrote: > On 13/11/2018 00:45, Terry Reedy wrote: >> >> On Windows, a simple alternate is a .bat file. I belive the folloiwing >> should work. >> >> cd c:/desired/startup/directory >> py -x.y -m idlelib >> >> The default for x.y is latest 3.x or latest 2.x if no 3.x. >

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: > Can we prefix MEMORY_SANITIZER with _Py_? Yes, I wondered if I should do that. not that I expect anyone would ever define it to mean anything else, but that seems like the right thing to do. https://github.com/python/cpython/pull/10503 --

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9754, 9755, 9756 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9754, 9755 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9754 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Based on my testing, the environment variable has to be set before the parent process starts. Neither os.environ nor os.putenv seem to do the trick. -- ___ Python tracker

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Christoph Gohlke
Christoph Gohlke added the comment: > test_isdigit.c: Can you try to call locale.setlocale(locale.LC_CTYPE, "") > before running your benchmark on Python 3.7.0? Yes, that slows down Python 3.7.0a3 to the 3.7.0a4 level. -- ___ Python tracker

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks @alex! I will try again after linking against ASAN-compiled version of my libraries. -- ___ Python tracker ___

Re: [Tutor] Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread David Rock
> On Nov 12, 2018, at 13:37, srinivasan wrote: > > Dear Python Experts, > > *First method:* > > I need to get the IP address basically the gateway IP in my setup I get it > as "192.168.178.1" when I run the below standalone python code. Is there a requirement to use only what comes in the

Issue in parsing the strings in python code

2018-11-12 Thread srinivasan
Dear Python Experts team, This question might be very simple for you, As am newbie to python, could you please how to parse the below strings 1. Could you please do the needful in guiding me, that how can I extract the strings under the UUID column in python code in the below output (nmcli c

[issue35213] IDLE: use 'macOS' where appropriate.

2018-11-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @terry, I suppose you wanted to say "macOs" and not "maxOs" -- nosy: +matrixise ___ Python tracker ___

[issue35215] Replacing CPython memory allocation

2018-11-12 Thread paul
paul added the comment: I suspect that this _bootstrap library is not being loaded correctly, and i can only assume that this is somehow because of my memory suit, but i am not really sure where to start hunting, as there is a lot of code. My goal is just to replace malloc. If there is a

Re: Issue in parsing the strings in python code

2018-11-12 Thread Thomas Jollans
On 12/11/2018 09:28, srinivasan wrote: > Dear Python Experts team, > > This question might be very simple for you, As am newbie to python, could > you please how to parse the below strings > > [snip] > > > root:~/qa/robot_tests# nmcli c show Pro tip: many *nix tools have a flag that makes

Re: Issue in parsing the strings in python code

2018-11-12 Thread srinivasan
Hi Thomas, Great to hear from you, Could you please let me know how do I get the UUID "1da7d068-4548-4446-bf88-a440e49db1b1" by passing the name of the SSID "Funkloch' using "nmcli --terse" ?? Many thanks in advance, Srini On Mon, Nov 12, 2018 at 9:59 AM Thomas Jollans wrote: > On 12/11/2018

Re: Issue in parsing the strings in python code

2018-11-12 Thread srinivasan
Because the problem is every time when ever I see the output using the "nmcli c show", the below output is the weird output, so instead of connecting to SSID "NIFunkloch" it randomly connects to "NIFunkloch 1552" or sometimes to NIFunkloch 1000" or so on root:~/qa/robot_tests# nmcli c show NAME

[issue35203] Windows Installer Ignores Launcher Installer Options Where The Python Launcher Is Already Present

2018-11-12 Thread Dexter
Dexter added the comment: Sadly due to the secure environment I'm unable to attach the log. The exact error is: "You must be an Administrator to remove this application. To remove this application you can log on as an Administrator, or contact your technical support group for assistance."

Re: Issue in parsing the strings in python code

2018-11-12 Thread Thomas Jollans
On 2018-11-12 10:23, srinivasan wrote: > Hi Thomas, > > Great to hear from you, Could you please let me know how do I get the UUID > "1da7d068-4548-4446-bf88-a440e49db1b1" by passing the name of the SSID > "Funkloch' using "nmcli --terse" ?? Have a look at the output. It appears to me that the

[issue35215] Replacing CPython memory allocation

2018-11-12 Thread paul
New submission from paul : Hi all, I am trying to replace the version of malloc/free...etc with my own function suit. I am have issues with loading the initial library setup. I am looking for wisdom from the community as to why this may be the case. Facts: - i just grabbed the latest

Re: Issue in parsing the strings in python code

2018-11-12 Thread Shakti Kumar
On Mon, 12 Nov 2018 at 14:02, srinivasan wrote: > Dear Python Experts team, > > This question might be very simple for you, As am newbie to python, could > you please how to parse the below strings > > 1. Could you please do the needful in guiding me, that how can I extract > the strings under

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread miss-islington
miss-islington added the comment: New changeset 60cf26528b931215160a53fd61836dbe4f036009 by Miss Islington (bot) in branch '3.6': bpo-35214: Add _Py_ prefix to MEMORY_SANITIZER def. (GH-10503) https://github.com/python/cpython/commit/60cf26528b931215160a53fd61836dbe4f036009 --

[issue33052] Sporadic segmentation fault in test_datetime

2018-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Related discussion with same segfault in Travis CI : issue33701 -- ___ Python tracker ___

[issue35216] misleading error message from shutil.copy()

2018-11-12 Thread Cédric Van Rompay
New submission from Cédric Van Rompay : When calling `shutil.copy('file.txt', 'not_here/')`, if directory `not_here/` does not exist, the raised error is: IsADirectoryError: [Errno 21] Is a directory: 'not_here/' If the intent of the user was to copy a file in a directory but the user

Re: Issue in parsing the strings in python code

2018-11-12 Thread Rhodri James
On 12/11/2018 09:37, srinivasan wrote: Because the problem is every time when ever I see the output using the "nmcli c show", the below output is the weird output, so instead of connecting to SSID "NIFunkloch" it randomly connects to "NIFunkloch 1552" or sometimes to NIFunkloch 1000" or so on

[issue35216] misleading error message from shutil.copy()

2018-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Agreed this is confusing. Is this a Linux specific error? Trying this on Mac gives me a different error code and exception. # Mac $ ./python.exe Python 3.8.0a0 (heads/master:cd449806fa, Nov 12 2018, 09:51:24) [Clang 7.0.2 (clang-700.1.81)] on

Re: [Tutor] SyntaxError: can't assign to literal while using ""blkid -o export %s | grep 'TYPE' | cut -d"=" -f3" % (fs)" using subprocess module in Python

2018-11-12 Thread Anssi Saari
Chris Angelico writes: > On Fri, Nov 9, 2018 at 11:11 PM Anssi Saari wrote: >> >> Chris Angelico writes: >> >> > No helper needed. Safe against command injection. Uses the known >> > format of the command's output; if you want other information as well >> > as the type, you could get that too.

Re: [Tutor] SyntaxError: can't assign to literal while using ""blkid -o export %s | grep 'TYPE' | cut -d"=" -f3" % (fs)" using subprocess module in Python

2018-11-12 Thread Chris Angelico
On Mon, Nov 12, 2018 at 11:20 PM Anssi Saari wrote: > > Chris Angelico writes: > > > On Fri, Nov 9, 2018 at 11:11 PM Anssi Saari wrote: > >> > >> Chris Angelico writes: > >> > >> > No helper needed. Safe against command injection. Uses the known > >> > format of the command's output; if you

[issue35207] Disallow expressions like (a) = 42

2018-11-12 Thread Stefan Krah
Stefan Krah added the comment: I just want to add one more voice for allowing the status quo: C, OCaml, SML, Haskell allow the assignment, Ruby disallows it. The ML family must allow it, since "let (x) = 10" is pattern matching under the hood, and (10) = 10. In C (gcc, clang at least, I

[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2018-11-12 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2018-11-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New changeset 19c46a4c96553b2a8390bf8a0e138f2b23e28ed6 by Giampaolo Rodola in branch 'master': bpo-33695 shutil.copytree() + os.scandir() cache (#7874) https://github.com/python/cpython/commit/19c46a4c96553b2a8390bf8a0e138f2b23e28ed6 --

IDLE Default Working Directory

2018-11-12 Thread Christman, Roger Graydon
Could anyone tell me how to set up IDLE's default working directory, so that it would be in the same place for each startup? (Like C:\Users\myname\Python) I teach a course that mounts a lot of file space across the network and the default directory for all my students is a readonly directory,

[issue35217] REPL history is broken when python is invoked with cmd /c

2018-11-12 Thread 零欸特
New submission from 零欸特 : Windows 7 x64 Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] Steps to reproduce: 1. Create a script: ``` from subprocess import run run(["cmd.exe", "/c", "python"]) run(["python"]) run("python", shell=True)

[issue35218] Impossible to round-trip decompress -> compress zipfiles with Python 3 due to losing flag_bits

2018-11-12 Thread keeely
New submission from keeely : Python 2.7 allows one to capture from one file a list of ZipInfo objects, and then recreate a new file using those ZipInfo objects. The same thing appears to be impossible with Python 3 without resorting to monkey-patches because of a line of code in the

Re: IDLE Default Working Directory

2018-11-12 Thread Brian Oney via Python-list
On Mon, 2018-11-12 at 09:35 -0600, Bev in TX wrote: > On Nov 12, 2018, at 9:16 AM, eryk sun wrote: > > On 11/12/18, Christman, Roger Graydon mailto:d...@psu.edu>> > > wrote: > > > I looked in IDLE's own configuration menu, and didn't see anything there > > > -- > > > and I fear that I might

[issue35216] misleading error message from shutil.copy()

2018-11-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: You have the issue with the built-in 'open' function. -- nosy: +matrixise ___ Python tracker ___

[issue35215] Replacing CPython memory allocation

2018-11-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35207] Disallow expressions like (a) = 42

2018-11-12 Thread Guido van Rossum
Guido van Rossum added the comment: Let's close this already. It won't happen. Sorry for the noise. -- ___ Python tracker ___ ___

[issue35215] Replacing CPython memory allocation

2018-11-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: You have the issue with your functions, not with Python. Are you sure you do not have an issue with your code? -- nosy: +matrixise ___ Python tracker

  1   2   >