Re: How to apply filters to posts

2018-06-13 Thread T Berger
On Tuesday, April 10, 2018 at 1:21:53 AM UTC-4, Chris Angelico wrote: > I recommend, instead, joining the mailing list: > > https://mail.python.org/mailman/listinfo/python-list There seem to be two options on the Python-list Information Page. * Subscribe to the list (see sections below) *

Re: pep8 Re: Posting warning message

2018-06-13 Thread Cameron Simpson
On 14Jun2018 01:34, Tamara Berger wrote: Is it possible to do the "linting" after you've written your code but before you install it for the first time? Sure. I always do it that way. Just as you can run your code before you install it, you can lint your code beforehand also. In fact, you

[issue1529353] Squeezer - squeeze large output in the interpreter

2018-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3. It is idlelib's TextView, not tkTextView. If it is not 'good enough', we might improve it. 5. Look at former extensions, like codecontext.py, corresponding parts of editor.py. The key thing for immediate effect is the class reload method, called when

Re: pep8 Re: Posting warning message

2018-06-13 Thread Tamara Berger
Is it possible to do the "linting" after you've written your code but before you install it for the first time? Tamara On Wed, Jun 13, 2018 at 12:30 AM Cameron Simpson wrote: > > On 13Jun2018 00:05, Tamara Berger wrote: > >Thanks for the in-depth answer. I'm going to have to read it >

[issue1529353] Squeezer - squeeze large output in the interpreter

2018-06-13 Thread Tal Einat
Tal Einat added the comment: Additional feature discussion: > 10. The button for 'a'*1 says '(nn lines)'. It should say '(1 > chars)' or '(1 line, 1 chars)'. IMO that's too much, it leads to "information overload". Since the number of lines shown is the number of "wrapped"

Re: How to find an object existing?

2018-06-13 Thread Christian Gollwitzer
Am 14.06.18 um 05:14 schrieb huey.y.ji...@gmail.com: root = Tkinter.Tk() button = Tkinter.Button(root, text="Find me") button.pack() I created a button, Python object. I recall I can check this object existing by using winfo, such as winfo.exists(button). However, I forgot which super class

Re: PEP8 compliance

2018-06-13 Thread T Berger
On Wednesday, June 13, 2018 at 1:44:49 PM UTC-4, Paul Moore wrote: > On 13 June 2018 at 17:35, T Berger wrote: > > > I did make the changes in IDLE, but I thought I must be in the wrong place. > > The line of code I got in terminal was: > > /Users/TamaraB/Desktop/mymodules/vsearch.py:1:25:

[issue1529353] Squeezer - squeeze large output in the interpreter

2018-06-13 Thread Tal Einat
Tal Einat added the comment: Once the ToolTip is ready, I'll begin working on this. Summarizing what appear to be agreed-upon changes to be made (keeping original numbering for reference): 1. Avoid expanding large output accidentally / too easily. Current suggestions are expanding part of

Re: How to find an object existing?

2018-06-13 Thread dieter
huey.y.ji...@gmail.com writes: > root = Tkinter.Tk() > button = Tkinter.Button(root, text="Find me") > button.pack() > > I created a button, Python object. I recall I can check this object existing > by using winfo, such as winfo.exists(button). However, I forgot which > super class contains

Re: python lmfit.minimizer not working

2018-06-13 Thread dieter
Priya Singh writes: > Dear All, > > I am trying to fit a spectrum using a power law model. I am using > lmfit.minimizer. You are asking a question about a specific module ("lmfit") not part of the Python standard library. You might get better help from a different audience (one closer to

Re: mutable sequences

2018-06-13 Thread Ben Finney
Sharan Basappa writes: > For example, Python lists are mutable. Yes, that's correct. > BTW, is the below explanation correct (it is taken from a book I am > reading) > > Python lists are mutable sequences. They are very similar to tuples, > but they don't have the restrictions due to

Re: mutable sequences

2018-06-13 Thread Chris Angelico
On Thu, Jun 14, 2018 at 12:56 PM, Sharan Basappa wrote: > The term mutable appears quite often in Python. > Can anyone explain what is meant by mutable and immutable sequences. > > For example, Python lists are mutable. > > BTW, is the below explanation correct (it is taken from a book I am

[issue33854] doc Add PEP title in seealso of Built-in Types

2018-06-13 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7302 stage: -> patch review ___ Python tracker ___ ___

Re: mutable sequences

2018-06-13 Thread Jim Lee
On 06/13/2018 07:56 PM, Sharan Basappa wrote: The term mutable appears quite often in Python. Can anyone explain what is meant by mutable and immutable sequences. Mutable means changeable, and immutible means not mutable, or unchangeable. For example, Python lists are mutable. BTW, is the

[issue33854] doc Add PEP title in seealso of Built-in Types

2018-06-13 Thread Andrés Delfino
New submission from Andrés Delfino : Add PEP 461 title to Built-in Types seealso. -- assignee: docs@python components: Documentation messages: 319493 nosy: adelfino, docs@python priority: normal severity: normal status: open title: doc Add PEP title in seealso of Built-in Types type:

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-13 Thread Damon Atkins
Damon Atkins added the comment: >From https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425.aspx Note Python is using CreateProcess(), consider using CreateProcessW() The Unicode version of this function, CreateProcessW, can modify the contents of this string. Therefore, this

How to find an object existing?

2018-06-13 Thread huey . y . jiang
Hi All, root = Tkinter.Tk() button = Tkinter.Button(root, text="Find me") button.pack() I created a button, Python object. I recall I can check this object existing by using winfo, such as winfo.exists(button). However, I forgot which super class contains this winfo method. I printed

[issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ

2018-06-13 Thread Noah Haasis
Change by Noah Haasis : -- keywords: +patch pull_requests: +7300 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33726] Add short descriptions to PEP references in seealso

2018-06-13 Thread Andrés Delfino
Andrés Delfino added the comment: Yeah, I think you are right. The motivation for this PR was to not have two PEPs references in the same line, because, IMHO, it looks somewhat weird. Now, they look like: "See also: PEP 3115 - Metaclasses in Python 3 PEP 3129 - Class Decorators" Would a

mutable sequences

2018-06-13 Thread Sharan Basappa
The term mutable appears quite often in Python. Can anyone explain what is meant by mutable and immutable sequences. For example, Python lists are mutable. BTW, is the below explanation correct (it is taken from a book I am reading) Python lists are mutable sequences. They are very similar to

Re: How to make a button flashing?

2018-06-13 Thread huey . y . jiang
On Wednesday, June 13, 2018 at 5:23:17 PM UTC+8, huey.y...@gmail.com wrote: > Hi All, > > I forgot the syntax of making a button flash, and failed to find an example > in the web. I use Tkinter, to create a button. Then made it packed, and > showed up. Now I am trying to make button b flashing,

[issue33718] Enhance regrtest: meta-ticket for multiple changes

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

Re: What is the "Unpacking Arguments List" rule?

2018-06-13 Thread Jach Fong
Alister via Python-list at 2018/6/13 PM 08:43 wrote: IMHO, there is no reason to check the *args has to appear at last in positional argument list in a function call because of there is no "unknown number of parameters" at the time of unpacking. It should be alright to write line 19

[issue33726] Add short descriptions to PEP references in seealso

2018-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: My personal opinion is that the PEP title should suffice and that a person can click the link for more detail. -- nosy: +rhettinger ___ Python tracker

[issue27575] dict viewkeys intersection slow for large dicts

2018-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Is there anything helpful I can do to help close this issue? > Maybe convert it into a github PR? Yes, that would be nice. Also, please verify that the test cases cover all the code paths. -- ___ Python

[issue33462] reversible dict

2018-06-13 Thread Eric Snow
Eric Snow added the comment: Would it be possible to re-use the __reverse__() support that exists for OrderedDict? Doing so could help avoid adding a bunch of duplicated code. -- nosy: +eric.snow ___ Python tracker

Re: Design of my project

2018-06-13 Thread Cameron Simpson
On 13Jun2018 15:23, Fabien LUCE wrote: Here is a small picture of my project. I'd like to fetch several datas from a website representing races results. Each line of the result contains rank, runner's name and other attributes of the runner (like club etc...). For now I have created 2 classes

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

2018-06-13 Thread Peter J. Holzer
On 2018-06-13 23:56:09 +0300, Marko Rauhamaa wrote: > "Peter J. Holzer" : > > POSIX specifies a number of error codes which can be returned by stat(): [...] > > So none of these is a good choice for the errno parameter of an OSError > > to be thrown. > > The natural errno value would be EINVAL,

Django-hotsauce 1.0 LTS (Commercial Edition) now available for preorder!!

2018-06-13 Thread Etienne Robillard
Dear all, It is my pleasure to announce the availability of Django-hotsauce 1.0 LTS (Commercial Edition) for preorder: https://www.livestore.ca/product/django-hotsauce/ Purchase this gem using Paypal before October 1st 2018 with the discount code "djangohotsauce" and get 50% off the regular

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: > Thanks Gianpaolo for pushing for this. Great job. I concur: great job! Cool optimization. -- ___ Python tracker ___

[issue27575] dict viewkeys intersection slow for large dicts

2018-06-13 Thread Mali Akmanalp
Change by Mali Akmanalp : -- nosy: +Mali Akmanalp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-06-13 Thread Marko Rauhamaa
"Peter J. Holzer" : > POSIX specifies a number of error codes which can be returned by stat(): > > [EACCES] > Search permission is denied for a component of the path prefix. > [EIO] > An error occurred while reading from the file system. > [ELOOP] > A loop exists in symbolic links

Re: Regex to extract multiple fields in the same line

2018-06-13 Thread Friedrich Rentsch
On 06/13/2018 07:32 PM, Ganesh Pal wrote: On Wed, Jun 13, 2018 at 5:59 PM, Rhodri James wrote: On 13/06/18 09:08, Ganesh Pal wrote: Hi Team, I wanted to parse a file and extract few feilds that are present after "=" in a text file . Example , form the below line I need to extract

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

2018-06-13 Thread Peter J. Holzer
On 2018-06-11 14:23:42 +0300, Marko Rauhamaa wrote: > "Peter J. Holzer" : > > On 2018-06-11 01:06:37 +, Steven D'Aprano wrote: > >> Baking a limitation of some file systems into the high-level > >> interface is simply a *bad idea*. > > > > We aren't talking about a high-level interface here. >

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

2018-06-13 Thread Peter J. Holzer
On 2018-06-13 10:10:03 +0300, Marko Rauhamaa wrote: > "Peter J. Holzer" : > > On 2018-06-11 12:24:54 +, Steven D'Aprano wrote: > >> It also clearly states: > >> > >> All functions in this module raise OSError in the case of > >> invalid or inaccessible file names and paths, or other >

Re: PEP8 compliance

2018-06-13 Thread Chris Angelico
On Thu, Jun 14, 2018 at 1:45 AM, Steven D'Aprano wrote: > On Wed, 13 Jun 2018 08:04:27 -0700, T Berger wrote: > >> Sorry for this basic question, but to change my code if it's failed the >> PEP8 test, what code do I use to open my program and make changes? > > Use your text editor to modify the

Re: Distributing a Python module as .rpm and .deb packages across major distributions

2018-06-13 Thread adam . preble
On Sunday, June 10, 2018 at 3:05:45 PM UTC-5, Barry wrote: > The way I learn about the details of RPM packaging is to look at examples > like what I wish to achieve. > > I would go get the source RPM for a python2 package from each distro you want > to supoort and read its .spec file. > > I

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, as I wrote on GitHub. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-06-13 Thread Marcos Dione
Marcos Dione added the comment: Thanks Gianpaolo for pushing for this. Great job. -- ___ Python tracker ___ ___ Python-bugs-list

[issue33853] test_multiprocessing_spawn is leaking memory

2018-06-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33839] IDLE tooltips.py: refactor and add docstrings and tests

2018-06-13 Thread Tal Einat
Tal Einat added the comment: Attaching coverage report for tooltip.py. The uncovered lines are required to avoid exceptions when closing a windows with a tooltip shown. These are not currently reproduced by test_tooltip.py because my attempts to exercise them in automated tests have all

Re: Regex to extract multiple fields in the same line

2018-06-13 Thread MRAB
On 2018-06-13 18:32, Ganesh Pal wrote: On Wed, Jun 13, 2018 at 5:59 PM, Rhodri James wrote: On 13/06/18 09:08, Ganesh Pal wrote: Hi Team, I wanted to parse a file and extract few feilds that are present after "=" in a text file . Example , form the below line I need to extract the

Re: OFF-TOPIC Good sig [was Re: What is the "Unpacking Arguments List" rule?]

2018-06-13 Thread Ian Kelly
On Wed, Jun 13, 2018 at 10:10 AM Steven D'Aprano wrote: > > On Wed, 13 Jun 2018 12:43:12 +, Alister via Python-list wrote: > > > I have a theory that it's impossible to prove anything, but I can't > > prove it. > > Heh, that reminds me of Stephen Pinker's comment from "Enlightenment Now": > >

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2018-06-13 Thread Ethan Smith
Ethan Smith added the comment: When working on clang-cl support, I was advised here https://reviews.llvm.org/D47672#1131325 that we may be using hardware lock elision incorrectly. Copying from there: > I also spoke to Andi Kleen here at Intel to make sure I got these inline > assembly

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Serhiy commented in the PR: >__GLIBC__ and __GLIBC_MINOR__ give you the version of glibc used at >compile >time. But can not the different version be dynamically linked at >run time? Should we use the list approach always to avoid problems with this?

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +7298 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

ANN: A new version (0.4.3) of python-gnupg has been released. It contains a security-related change - please update to this version

2018-06-13 Thread Vinay Sajip via Python-list
A new version of the Python module which wraps GnuPG has been released. What Changed?=This is a security-fix release, and all users are strongly encouraged to upgrade.This fix mitigates against CVE-2018-12020. See the discoverer's blog post [6] formore information. Brief summary: *

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-13 Thread Berker Peksag
Berker Peksag added the comment: That's even better! :) Please submit your work as a pull request. Did you take a look at https://github.com/Pylons/webob/pull/300 as well? Can we use the test in the PR? Is it possible to adapt it solve both this and WebOb issues? --

[issue26544] platform.libc_ver() returns incorrect version number

2018-06-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue26544] platform.libc_ver() returns incorrect version number

2018-06-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +7297 stage: -> patch review ___ Python tracker ___ ___

[issue26544] platform.libc_ver() returns incorrect version number

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that the strategy used for platform.libc_ver() is not perfect. But the implementation has bugs that make it useless. The following PR fixes two bugs in the implementation: 1) Version numbers compared as strings. 2) Versions that are located on the

Re: PEP8 compliance

2018-06-13 Thread Paul Moore
On 13 June 2018 at 17:35, T Berger wrote: > I did make the changes in IDLE, but I thought I must be in the wrong place. > The line of code I got in terminal was: > /Users/TamaraB/Desktop/mymodules/vsearch.py:1:25: E231 missing whitespace > after ':' > def search4vowels(phrase:str)->set: > > I

Matplotlib and Python 3.7

2018-06-13 Thread BlindAnagram
Now that Python 3.7 has reached release candidate status, I thought that I should try it. But I use Matplotlib a lot and this fails to install with Python 3.7 because "freetype and png cannot be installed" (I am using Windows 10). I am wondering if anyone knows how to work around this issue? I

Re: Regex to extract multiple fields in the same line

2018-06-13 Thread Ganesh Pal
On Wed, Jun 13, 2018 at 5:59 PM, Rhodri James wrote: > On 13/06/18 09:08, Ganesh Pal wrote: > >> Hi Team, >> >> I wanted to parse a file and extract few feilds that are present after "=" >> in a text file . >> >> >> Example , form the below line I need to extract the values present after >>

Re: PEP8 compliance

2018-06-13 Thread Terry Reedy
On 6/13/2018 12:35 PM, T Berger wrote: I did make the changes in IDLE, but I thought I must be in the wrong place. This is a good place for beginners. The line of code I got in terminal was: /Users/TamaraB/Desktop/mymodules/vsearch.py:1:25: E231 missing whitespace after ':' def

Re: PEP8 compliance

2018-06-13 Thread Rick Johnson
On Wednesday, June 13, 2018 at 10:47:40 AM UTC-5, Steven D'Aprano wrote: > I'm of two minds here... Obviously. > [...] So use your own judgement: if following PEP 8 becomes > a chore, or if you would rather follow your own style, > don't feel guilty about ignoring the style guide. IOWs:

Re: How to make a button flashing?

2018-06-13 Thread Terry Reedy
On 6/13/2018 7:21 AM, Peter Otten wrote: huey.y.ji...@gmail.com wrote: I forgot the syntax of making a button flash, and failed to find an example in the web. I use Tkinter, to create a button. Then made it packed, and showed up. Now I am trying to make button b flashing, to make it get

[issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-06-13 Thread Ned Deily
Ned Deily added the comment: > For a recent example of change releasing the GIL, see bpo-32186 which has > been backported up to 2.7. Playing Devil's Advocate here: yes, but that was a far simpler and less extensive change. bpo-32186 did not change configure.ac and pyconfig.h.in and I

What data types does matplotlib pyplot take?

2018-06-13 Thread C W
Hi everyone, I'm curious what data types pyplot takes. It seems that it can take numpy series, pandas series, and possibly pandas dataframe? How many people data types are out there? Is that true for all functions in like hist(), bar(), line(), etc? Is there an official documentation that lists

Re: PEP8 compliance

2018-06-13 Thread T Berger
On Wednesday, June 13, 2018 at 11:04:39 AM UTC-4, T Berger wrote: > Sorry for this basic question, but to change my code if it's failed the PEP8 > test, what code do I use to open my program and make changes? Obviously, I > should still be in bash, but then what? > > Thanks, > > Tamara I did

Re: PEP8 compliance

2018-06-13 Thread Marko Rauhamaa
r...@zedat.fu-berlin.de (Stefan Ram): > T Berger writes: >>to change my code if it's failed the PEP8 test, >>what code do I use to open my program and make changes? > > A text editor (emacs, vim, pico, IDLE, notepad, ex, sed, ...). > What did you use to write your code in the first place?

[issue23869] Initialization is being done in PyType_GenericAlloc

2018-06-13 Thread Eric Snow
Eric Snow added the comment: As to the docs, the entry for tp_alloc in Doc/c-api/typeobj.rst does not mention initialization. The tp_new entry does say that it should call tp_alloc and then do the minimum initialization possible. That implies (weakly) that tp_alloc should do the minimum

[issue23869] Initialization is being done in PyType_GenericAlloc

2018-06-13 Thread Eric Snow
Eric Snow added the comment: Thanks for bringing this up, Hristo! "Initialization" (in this context, and hopefully everywhere in the C-API docs) is referring specifically to setting fields on a custom instance, much as you would expect in __init__ (or sometimes even __new__). In that

OFF-TOPIC Good sig [was Re: What is the "Unpacking Arguments List" rule?]

2018-06-13 Thread Steven D'Aprano
On Wed, 13 Jun 2018 12:43:12 +, Alister via Python-list wrote: > I have a theory that it's impossible to prove anything, but I can't > prove it. Heh, that reminds me of Stephen Pinker's comment from "Enlightenment Now": "one cannot reason that there's no such thing as reason" but on the

Re: Posting warning message

2018-06-13 Thread Steven D'Aprano
On Wed, 13 Jun 2018 14:30:05 +, Grant Edwards wrote: [...] > You refer to "this forum" as if you think it's some centrally controlled > web application. It's not. It's a Usenet group gatewayed to a mailing > list gatewayed to an archive/nntp server at gmane.org. Google then > duct-taped the

Re: PEP8 compliance

2018-06-13 Thread Steven D'Aprano
On Wed, 13 Jun 2018 08:04:27 -0700, T Berger wrote: > Sorry for this basic question, but to change my code if it's failed the > PEP8 test, what code do I use to open my program and make changes? Use your text editor to modify the source code of the program. I'm of two minds here... on the one

[issue17045] Improve C-API doc for PyTypeObject

2018-06-13 Thread Eric Snow
Eric Snow added the comment: @Cheryl, thanks for pointing that out. I'll take a look. -- ___ Python tracker ___ ___

Re: PEP8 compliance

2018-06-13 Thread MRAB
On 2018-06-13 16:04, T Berger wrote: Sorry for this basic question, but to change my code if it's failed the PEP8 test, what code do I use to open my program and make changes? Obviously, I should still be in bash, but then what? You edit it in a plain text editor (i.e. an editor for plain

[issue31181] Segfault in gcmodule.c:360 visit_decref (PyObject_IS_GC(op))

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: I am sorry, but without further information, we cannot fix your issue. Usually, a crash in visit_decref() means that a C extension corrupted a random Python object. Try to run your test on Python 3 using PYTHONMALLOC=debug. -- nosy: +vstinner

[issue33735] test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: bpo-33853 has been marked as a duplicate this bug. -- ___ Python tracker ___ ___

[issue33853] test_multiprocessing_spawn is leaking memory

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-33735. -- nosy: +vstinner resolution: -> duplicate superseder: -> test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7 ___ Python tracker

[issue33853] test_multiprocessing_spawn is leaking memory

2018-06-13 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : The test `test_multiprocessing_spawn` is leaking memory according to the x86 Gentoo Refleaks 3.x buildbot: x86 Gentoo Refleaks 3.x http://buildbot.python.org/all/#/builders/1/builds/253 test_multiprocessing_spawn leaked [1, 2, 1] memory blocks,

PEP8 compliance

2018-06-13 Thread T Berger
Sorry for this basic question, but to change my code if it's failed the PEP8 test, what code do I use to open my program and make changes? Obviously, I should still be in bash, but then what? Thanks, Tamara -- https://mail.python.org/mailman/listinfo/python-list

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-06-13 Thread Eric Snow
Eric Snow added the comment: I've re-enabled the subinterpreter tests, but left the one problem test (ChannelTests.test_run_string_arg_resolved) disabled. I also changed all uses of %lld to use PRId64 instead. (Thanks, Victor, for the suggestion.) The buildbots look good. I'll keep an

[issue27575] dict viewkeys intersection slow for large dicts

2018-06-13 Thread Forest
Forest added the comment: Is there anything helpful I can do to help close this issue? Maybe convert it into a github PR? Since Raymond asked for cases where this issue is a problem, I'll add the case that brought me here. I have an application where I need to do thousands of intersections

[issue33839] IDLE tooltips.py: refactor and add docstrings and tests

2018-06-13 Thread Tal Einat
Tal Einat added the comment: The refactoring is done, manual testing with the htests works, and I've added automated tests with ~92% code coverage. Terry, I'd be happy for your review! -- ___ Python tracker

[issue33839] IDLE tooltips.py: refactor and add docstrings and tests

2018-06-13 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +7296 stage: test needed -> patch review ___ Python tracker ___ ___

Re: Posting warning message

2018-06-13 Thread Grant Edwards
On 2018-06-13, Tamara Berger wrote: > I just meant edit within the moment or two after you've posted a > message. I think a good feature in this forum would allow posters to > edit their messages in just that way. I have such a feature enabled in > gmail. I can "undo" my action for 30 seconds

Design of my program

2018-06-13 Thread ftg
Hello everyone, Here is a small picture of my project. I'd like to fetch several datas from a website representing races results. Each line of the result contains rank, runner's name and other attributes of the runner (like club etc...). For now I have created 2 classes (Race and Runner).

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-13 Thread bellcanadardp
On Wednesday, 13 June 2018 09:12:32 UTC-4, Steven D'Aprano wrote: > On Wed, 13 Jun 2018 03:55:58 -0700, bellcanadardp wrote: > > > the collFile has to be like a variable that would refer to the file > > Collection.dat..thats my best guess also in the error line , it doesnt > > actually open the

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-13 Thread Jan Lachnitt
Jan Lachnitt added the comment: @eryksun: Sorry for my late reply, apparently I did not have time to reply in 2017. I see your point, but still I think that Python is conceptually multi-platform, so its behavior on Linux and Windows should be as much consistent as possible. I am not the

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-06-13 Thread Eric Snow
Eric Snow added the comment: New changeset ab4a1988fd4347484a7928394b94e2cdf5f8f2a7 by Eric Snow in branch 'master': bpo-33615: Re-enable subinterpreter tests. (#7552) https://github.com/python/cpython/commit/ab4a1988fd4347484a7928394b94e2cdf5f8f2a7 --

Design of my project

2018-06-13 Thread Fabien LUCE
Hello everyone, Here is a small picture of my project. I'd like to fetch several datas from a website representing races results. Each line of the result contains rank, runner's name and other attributes of the runner (like club etc...). For now I have created 2 classes (Race and Runner).

[issue33852] doc Remove parentheses from sequence subscription description

2018-06-13 Thread Andrés Delfino
Andrés Delfino added the comment: Thanks, Serhiy! Didn't know I should trace the LaTeX version. Guido, I'm adding you because it seems you authored or at least agreed on the current wording. Do you believe this proposal for improvement makes sense? -- nosy: +gvanrossum

[issue33836] [Good first-time issue] Recommend keyword-only param for memoization in FAQ

2018-06-13 Thread Zachary Ware
Zachary Ware added the comment: Certainly! Have a look at the devguide to get started. -- ___ Python tracker ___ ___

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-13 Thread bellcanadardp
On Wednesday, 13 June 2018 07:14:06 UTC-4, INADA Naoki wrote: > ​> 1st is this script is from a library module online open source > > If it's open source, why didn't you show the link to the soruce? > I assume your code is this: > >

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have updated the PR with a workaround. -- ___ Python tracker ___ ___ Python-bugs-list

[issue33852] doc Remove parentheses from sequence subscription description

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This wording was introduced in 3a0ad6089bccf0b167fe8ebd2457fedec8f851a3. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue33852] doc Remove parentheses from sequence subscription description

2018-06-13 Thread Andrés Delfino
Change by Andrés Delfino : -- title: doc Remove parentheses from -> doc Remove parentheses from sequence subscription description ___ Python tracker ___

[issue33850] Json.dump() bug when using generator

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue27613. -- nosy: +serhiy.storchaka resolution: -> duplicate status: open -> closed superseder: -> Empty iterator with fake __len__ is rendered as a single bracket ] when using json's iterencode

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-06-13 Thread Steven D'Aprano
On Wed, 13 Jun 2018 03:55:58 -0700, bellcanadardp wrote: > the collFile has to be like a variable that would refer to the file > Collection.dat..thats my best guess also in the error line , it doesnt > actually open the file ... The file has to be opened if you are reading from it. If it isn't

[issue33852] doc Remove parentheses from

2018-06-13 Thread Andrés Delfino
New submission from Andrés Delfino : I think the idea of having "list" inside parentheses is to document that in case of sequences, only "one-expression" expression lists are legal. That being said, IMHO, explaining that in actual prose would be better, but removing the parentheses (taking

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

2018-06-13 Thread Steven D'Aprano
On Wed, 13 Jun 2018 10:10:03 +0300, Marko Rauhamaa wrote: > "Peter J. Holzer" : [...] >> I wasn't entirely clear here. What I meant is that POSIX systems, as a >> group, provide no such way. > > I still don't see how POSIX is directly relevant here. Linux users like to sneer at Windows users

[issue33850] Json.dump() bug when using generator

2018-06-13 Thread Walter Dörwald
Walter Dörwald added the comment: The problem here is that StreamArray lies about the length of the iterator. This confuses json.encoder._make_iterencode._iterencode_list(), (which is called by json.dump()), because it first does a check for "if not lst" and then assumes in the loop that it

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread STINNER Victor
STINNER Victor added the comment: > If we want to support older versions of glibc a temporary (and somewhat > inelegant) workaround is storing the temporaries in a list that the caller > passes and destroy the list after calling `posix_spawn`. Creating a copy seems to be a reasonable

[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: If we want to support older versions of glibc a temporary (and somewhat inelegant) workaround is storing the temporaries in a list that the caller passes and destroy the list after calling `posix_spawn`. --

Re: What is the "Unpacking Arguments List" rule?

2018-06-13 Thread Alister via Python-list
On Wed, 13 Jun 2018 14:21:53 +0800, sa...@caprilion.com.tw wrote: > [Of the first part] > line 19 is > action(progress=progress, *args) > where the args is a tuple > args = (i, 3) > and the function is defined as > def action(id, reps, progress): > > In documents 4.7.2. Keyword

[issue26544] platform.libc_ver() returns incorrect version number

2018-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I need the glibc version for skipping a test if run with glibc containing a bug (see issue31630 and issue33630). platform.libc_ver() is not usable, it always returns '2.9' (the version that has bugs), while the actual version on my computer is '2.25' (the

Re: Splitting up large python module impact on performance?

2018-06-13 Thread Rick Johnson
On Wednesday, June 13, 2018 at 4:27:35 AM UTC-5, Chris Angelico wrote: > It's more his definition of "large" and "small" that I was > disagreeing with. You're absolutely right that a dense > global scope is a problem; but a "one class per file" rule > is a terrible idea. What if the "one class"

Re: Regex to extract multiple fields in the same line

2018-06-13 Thread Rhodri James
On 13/06/18 09:08, Ganesh Pal wrote: Hi Team, I wanted to parse a file and extract few feilds that are present after "=" in a text file . Example , form the below line I need to extract the values present after --struct =, --loc=, --size= and --log_file= Sample input line = '06/12/2018

  1   2   >