Re: Splitting up large python module impact on performance?

2018-06-12 Thread Gregory Ewing
Chris Angelico wrote: A few thousand lines in a file is only a problem if you're using an editor that lacks a Find feature. My editor has a find feature, but I still find it a nuisance to have to use it every single time I want to find something. -- Greg --

[issue31378] Missing documentation for sqlite3.OperationalError

2018-06-12 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +7289 stage: needs patch -> patch review ___ Python tracker ___ ___

Re: Splitting up large python module impact on performance?

2018-06-12 Thread dieter
Bill Deegan writes: > I'm doing some refactoring on a fairly large python codebase. > Some of the files are > 4000 lines long and contain many classes. I am typically working with systems consisting of hundreds of modules (Zope/Plone). Such large systems have a significant impact on startup time

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't know whether this is a theoretical or a real concern, but I think this fix can wait for 3.7.1. -- ___ Python tracker ___

Re: Index of entity in List with a Condition

2018-06-12 Thread Cameron Simpson
On 12Jun2018 21:06, Subhabrata Banerjee wrote: Dear Sir, Thank you for your kind reply. I am trying in few days time and getting back. I made a small fix of my own and I would discuss it, too. Thank you for your kind words, but I ignore unnecessary remarks. So please do not worry. Meanwhile,

Re: Posting warning message

2018-06-12 Thread Cameron Simpson
On 13Jun2018 00:29, Tamara Berger wrote: On Tue, Jun 12, 2018 at 7:57 PM Cameron Simpson wrote: On 12Jun2018 07:14, Tamara Berger wrote: >Just one more thing, Cameron. I was looking at an Apple support page, and it says "When you're logged in to your Mac using an administrator account,

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

2018-06-12 Thread dieter
Jach Fong writes: > ... > 4.7.4. Unpacking Argument Lists > The reverse situation occurs when the arguments are already in a list or > tuple but need to be unpacked for a function call requiring separate > positional arguments. > ... args = [3, 6] list(range(*args)) > """ > > I

Re: Posting warning message

2018-06-12 Thread Cameron Simpson
On 13Jun2018 00:41, 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

[issue33840] connection limit on listening socket in asyncio

2018-06-12 Thread Lisa Guo
Lisa Guo added the comment: Hi Yury, no, I'm not familiar with the other frameworks (libuv doesn't have this). I'll need to look into it. If anybody else knows, please comment as well. -- ___ Python tracker

Re: Posting warning message

2018-06-12 Thread Chris Angelico
On Wed, Jun 13, 2018 at 2:41 PM, 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

[issue2053] IDLE - standardize dialogs

2018-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would rather leave this open for the moment as an information resource. I wrote query.py with a base class and subclasses to standardize asking users for input. So some of the patch may be obsolete, but it does have a catalog of popup uses. The patch

Re: Posting warning message

2018-06-12 Thread Tamara Berger
On Tue, Jun 12, 2018 at 7:50 PM Cameron Simpson wrote: > > On 12Jun2018 07:48, Tamara Berger wrote: > > > >> On Wed, Jun 13, 2018 at 12:17 AM, T Berger wrote: > >> > Sorry, to bother you again. But is there some way to edit a message once > >> > its posted? Or do I have to delete it and rewrite

Re: pep8 Re: Posting warning message

2018-06-12 Thread Cameron Simpson
On 13Jun2018 00:05, Tamara Berger wrote: Thanks for the in-depth answer. I'm going to have to read it carefully, with the help of a Python glossary. Some of the terms you use are new to me. No worries. Just ask if you don't find definitions. BTW, a "lint" program, or "linter" is a program

Re: Posting warning message

2018-06-12 Thread Tamara Berger
On Tue, Jun 12, 2018 at 7:57 PM Cameron Simpson wrote: > > On 12Jun2018 07:14, Tamara Berger wrote: > >Just one more thing, Cameron. I was looking at an Apple support page, and it > >says "When you're logged in to your Mac using an administrator account, you > >can use the sudo command in the

Re: Splitting up large python module impact on performance?

2018-06-12 Thread Chris Angelico
On Wed, Jun 13, 2018 at 2:15 PM, Rick Johnson wrote: > On Tuesday, June 12, 2018 at 10:35:47 PM UTC-5, Chris Angelico wrote: > [...] >> A few thousand lines in a file is only a problem if you're >> using an editor that lacks a Find feature. Or if you use >> bad function/class names that you can't

Re: Splitting up large python module impact on performance?

2018-06-12 Thread Rick Johnson
On Tuesday, June 12, 2018 at 10:35:47 PM UTC-5, Chris Angelico wrote: [...] > A few thousand lines in a file is only a problem if you're > using an editor that lacks a Find feature. Or if you use > bad function/class names that you can't search for. I'm unaware of any text editor that doesn't

Re: Index of entity in List with a Condition

2018-06-12 Thread subhabangalore
On Wednesday, June 13, 2018 at 6:30:45 AM UTC+5:30, Cameron Simpson wrote: > On 11Jun2018 13:48, Subhabrata Banerjee wrote: > >I have the following sentence, > > > >"Donald Trump is the president of United States of America". > > > >I am trying to extract the index 'of', not only for single but

[issue26698] Tk DPI awareness

2018-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The fix for IDLE on Windows made it into 3.6.6rc1 and 3.7.0rc1. Changing the python.exe and pythonw.exe default dpi settings is a possible issue for 3.8, and should have Steve.Dower nosy. -- resolution: -> duplicate stage: -> resolved status: open

Re: Splitting up large python module impact on performance?

2018-06-12 Thread Cameron Simpson
On 13Jun2018 13:35, Chris Angelico wrote: On Wed, Jun 13, 2018 at 1:23 PM, Rick Johnson wrote: Bill Deegan wrote: I'm doing some refactoring on a fairly large python codebase. Some of the files are > 4000 lines long and contain many classes. I would argue that files of such size are a

Re: pep8 Re: Posting warning message

2018-06-12 Thread Tamara Berger
Hi Cameron, Thanks for the in-depth answer. I'm going to have to read it carefully, with the help of a Python glossary. Some of the terms you use are new to me. >or am I supposed to root around for my module and make the edits one by one? I was trying to be amusing and didn't get my point

Re: Splitting up large python module impact on performance?

2018-06-12 Thread Chris Angelico
On Wed, Jun 13, 2018 at 1:23 PM, Rick Johnson wrote: > Bill Deegan wrote: >> I'm doing some refactoring on a fairly large python >> codebase. Some of the files are > 4000 lines long and >> contain many classes. > > I would argue that files of such size are a total pain to > navigate and thus,

Re: Splitting up large python module impact on performance?

2018-06-12 Thread Rick Johnson
Bill Deegan wrote: > I'm doing some refactoring on a fairly large python > codebase. Some of the files are > 4000 lines long and > contain many classes. I would argue that files of such size are a total pain to navigate and thus, edit. I prefer to place only one -- or only a handful of classes --

helpfulness Re: Index of entity in List with a Condition

2018-06-12 Thread Cameron Simpson
On 11Jun2018 18:03, Rick Johnson wrote: subhaba...@gmail.com wrote: I have the following sentence, "Donald Trump is the president of United States of America". [...] Typically when you ask us to do your homework for you, it is considered bad taste to present the teacher's assignment

[issue33828] Add versionchanged notes for string.Formatter

2018-06-12 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for the review, Eric. :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement versions: +Python 2.7 ___ Python tracker

[issue33828] Add versionchanged notes for string.Formatter

2018-06-12 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset fc8ea20c6f8571de96791bc5f7f2d693406024c7 by Xiang Zhang in branch '2.7': [2.7] bpo-33828: Clarify auto-numbering is not available to string.Formatter. (GH-7668) (GH-7676)

Re: Splitting up large python module impact on performance?

2018-06-12 Thread Steven D'Aprano
On Tue, 12 Jun 2018 15:00:44 -0700, Bill Deegan wrote: > Greetings, > > I'm doing some refactoring on a fairly large python codebase. Some of > the files are > 4000 lines long and contain many classes. > > Should I expect any performance hit from splitting some of the classes > out to other

[issue33828] Add versionchanged notes for string.Formatter

2018-06-12 Thread miss-islington
miss-islington added the comment: New changeset 439a9b69985bd4757de1504d19b040f78e384ca4 by Miss Islington (bot) in branch '3.6': bpo-33828: Add missing versionchanged note for string.Formatter. (GH-7668) https://github.com/python/cpython/commit/439a9b69985bd4757de1504d19b040f78e384ca4

[issue33828] Add versionchanged notes for string.Formatter

2018-06-12 Thread miss-islington
miss-islington added the comment: New changeset 29fdea5ec2054f18e68733ec83edbd0b855fd8bb by Miss Islington (bot) in branch '3.7': bpo-33828: Add missing versionchanged note for string.Formatter. (GH-7668) https://github.com/python/cpython/commit/29fdea5ec2054f18e68733ec83edbd0b855fd8bb

[issue33828] Add versionchanged notes for string.Formatter

2018-06-12 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +7288 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33828] Add versionchanged notes for string.Formatter

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

[issue33828] Add versionchanged notes for string.Formatter

2018-06-12 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset b9d8ad5130e0f77be28a3dec6d468e6470835573 by Xiang Zhang in branch 'master': bpo-33828: Add missing versionchanged note for string.Formatter. (GH-7668) https://github.com/python/cpython/commit/b9d8ad5130e0f77be28a3dec6d468e6470835573 --

[issue33828] Add versionchanged notes for string.Formatter

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

Re: Splitting up large python module impact on performance?

2018-06-12 Thread Gregory Ewing
Bill Deegan wrote: Should I expect any performance hit from splitting some of the classes out to other files? I doubt it. Time taken to load modules is mostly dependent on the total amount of code, not how many files it lives in. If you had a *very* large number of tiny files, it might be a

Re: Index of entity in List with a Condition

2018-06-12 Thread Cameron Simpson
On 11Jun2018 13:48, Subhabrata Banerjee wrote: I have the following sentence, "Donald Trump is the president of United States of America". I am trying to extract the index 'of', not only for single but also for its multi-occurance (if they occur), from the list of words of the string, made by

Re: pep8 Re: Posting warning message

2018-06-12 Thread Chris Angelico
On Wed, Jun 13, 2018 at 10:46 AM, Gregory Ewing wrote: > Cameron Simpson wrote: >> >> PEP8 is a style recommendation for Python code: >> >> https://www.python.org/dev/peps/pep-0008/ > > > Specifically, it's a style guide for *code in the Python > standard library*, as it says in the

Re: pep8 Re: Posting warning message

2018-06-12 Thread Gregory Ewing
Cameron Simpson wrote: PEP8 is a style recommendation for Python code: https://www.python.org/dev/peps/pep-0008/ Specifically, it's a style guide for *code in the Python standard library*, as it says in the Introduction: This document gives coding conventions for the Python code comprising

Re: Splitting up large python module impact on performance?

2018-06-12 Thread Chris Angelico
On Wed, Jun 13, 2018 at 10:32 AM, Cameron Simpson wrote: > I think I'm saying: don't worry unless your applications are very time > critical (eg invoked very frequently and/or doing almost nothing after the > "import" phase) or you notice a significant slowdown after your changes. And > it is

Re: Splitting up large python module impact on performance?

2018-06-12 Thread Cameron Simpson
On 12Jun2018 15:00, Bill Deegan wrote: I'm doing some refactoring on a fairly large python codebase. Some of the files are > 4000 lines long and contain many classes. Should I expect any performance hit from splitting some of the classes out to other files? In general, nothing significant.

[issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version

2018-06-12 Thread Steve Dower
Steve Dower added the comment: Merged! We don't normally change the name (except to update the GH-7667 reference at the end), but once there's more than one commit GitHub will use the PR title instead of the commit message. -- assignee: -> steve.dower resolution: -> fixed stage:

[issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version

2018-06-12 Thread Steve Dower
Steve Dower added the comment: New changeset 42ca8367ceb59021bbf5e5fb4fd0268d3411c0a4 by Steve Dower (Andrés Delfino) in branch '2.7': bpo-33845: Update Doc\make.bat on 2.7 to bring it on par to master version (GH-7667)

[issue31861] aiter() and anext() built-in functions

2018-06-12 Thread Julian Mehnle
Change by Julian Mehnle : -- nosy: +jmehnle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

pep8 Re: Posting warning message

2018-06-12 Thread Cameron Simpson
On 12Jun2018 07:51, Tamara Berger wrote: [... snip ...] One more thing about PEP8. My workbook is a bit skimpy on details. Is there a quick way to make the edits PEP8 is a style recommendation for Python code: https://www.python.org/dev/peps/pep-0008/ It is followed pretty rigorously in

[issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version

2018-06-12 Thread Andrés Delfino
Andrés Delfino added the comment: I think I wasn't clear: I see no reason to not merge this right now. -- ___ Python tracker ___

[issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version

2018-06-12 Thread Andrés Delfino
Andrés Delfino added the comment: Not really. I name all my first commits "Initial commit" as you gals/guys rename it anyways, and, also, it's usual to be asked for changes :) I might change my mind after my initial commit, but I only make pull requests when the first commit _seems_ final to

Re: Posting warning message

2018-06-12 Thread Cameron Simpson
On 12Jun2018 07:14, Tamara Berger wrote: On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: On 11Jun2018 22:51, Tamara Berger wrote: [...] >192:~ TamaraB$ sudo python3 -m pip install pytest >Password: >The directory '/Users/TamaraB/Library/Caches/pip/http' or its parent

[issue30317] test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot

2018-06-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New failure on x86 Windows7 3.x: http://buildbot.python.org/all/#/builders/58/builds/1000 -- nosy: +pablogsal ___ Python tracker ___

Re: Posting warning message

2018-06-12 Thread Cameron Simpson
On 12Jun2018 07:48, Tamara Berger wrote: On Tuesday, June 12, 2018 at 10:27:06 AM UTC-4, Chris Angelico wrote: On Wed, Jun 13, 2018 at 12:17 AM, T Berger wrote: > Sorry, to bother you again. But is there some way to edit a message once > its posted? Or do I have to delete it and rewrite it?

[issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version

2018-06-12 Thread Steve Dower
Steve Dower added the comment: Hopefully there aren't that many more fixes needed to this scripts - you've done a great job clearing up the issues! Any reason not to merge right now? I notice your commit message simply reads "Initial commit" --

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-12 Thread Steve Dower
Steve Dower added the comment: There's no option to omit ctypes, though I am aware of some custom builds of Python that exclude it. I don't think you need to worry about those being used for IDLE (but of course the general policy of the stdlib not relying on ctypes remains). --

Re: Posting warning message

2018-06-12 Thread Michael Torrie
On 06/12/2018 08:48 AM, T Berger wrote: > I deleted them a number of time, then got a bar across the page indicating > that a post had been deleted. It's nuts that you can't edit your own post. This "forum" is actually a mailing list mirrored to Usenet, so whatever you post gets instantly

Re: FULLSCREEN and DOUBLEBUF

2018-06-12 Thread Greg Ewing
Paul St George wrote: I had considered meddling with the config.txt to try to enable* HWSURFACE but from what you say, this is unnecessary. I don't really have much idea what effect HWSURFACE would have, if any. It will certainly depend a lot on your hardware and drivers. My suggestion would

[issue25246] Alternative algorithm for deque_remove()

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

[issue33849] Caught infinite recursion resets the trace function

2018-06-12 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- resolution: -> duplicate superseder: -> Tracing disabled when a recursion error is triggered (even if properly handled) ___ Python tracker

[issue33849] Caught infinite recursion resets the trace function

2018-06-12 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33849] Caught infinite recursion resets the trace function

2018-06-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like this has been known for quite some time. See issue10933. -- ___ Python tracker ___

[issue33849] Caught infinite recursion resets the trace function

2018-06-12 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Consider the following code: import sys def trace(frame, event, arg): pass def f(): f() sys.settrace(trace) print(sys.gettrace()) try: f() except RuntimeError: pass print(sys.gettrace()) When I run it, I get None Apparently, the

Splitting up large python module impact on performance?

2018-06-12 Thread Bill Deegan
Greetings, I'm doing some refactoring on a fairly large python codebase. Some of the files are > 4000 lines long and contain many classes. Should I expect any performance hit from splitting some of the classes out to other files? Thanks, Bill --

[issue33848] Incomplete format string syntax for Exceptions

2018-06-12 Thread Eric V. Smith
Eric V. Smith added the comment: This is because Exception does not define __format__, so object.__format__ is being called. object.__format__ does not allow any format specifier to be used. You get the same error for any object without its own __format__, when you supply a format spec.

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just ran the 3.7.0rc1 installer and here is no option to omit ctypes. -- ___ Python tracker ___

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

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

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

2018-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just ran the 3.7.0rc1 installer and here is no option to omit ctypes. -- ___ Python tracker ___

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

2018-06-12 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-06-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: For future reference, as per https://github.com/python/cpython/pull/7160 discussion, we decided not to use CopyFileEx on Windows and instead increase read() buffer size from 16KB to 1MB (Windows only) resulting in a 40.8% speedup (instead of 48%). Also

[issue31102] deheader: double #incude of the same file

2018-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Closing this. No action item from our side. -- nosy: +Mariatta resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

Re: Stefan's headers [was:Names and identifiers]

2018-06-12 Thread Rick Johnson
Gregory Ewing wrote: [...] > * Charging money for copies of software is not the only way > to make money from programming. You can charge for support > services. You can charge for writing custom one-off > software. There are people who make a good living from > doing these things. Microsoft

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I confirmed that IDLE did not import ctypes before this issue. Serhiy, I presume that the new code can be skipped, you are suggesting replacing import ctypes with try: import ctypes except ImportError: pass # The ctypes-using fix is not

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33848] Incomplete format string syntax for Exceptions

2018-06-12 Thread Johannes Raggam
New submission from Johannes Raggam : The following is valid Python 2: >>> 'okay {0:s}'.format(Exception('test')) 'okay test' >>> 'okay {0}'.format(Exception('test')) 'okay test' The following fails on Python 3.6: >>> 'okay {0:s}'.format(Exception('test')) Traceback (most recent call last):

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

2018-06-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New changeset 4a172ccc739065bb658c75e8929774a8e94af9e9 by Giampaolo Rodola in branch 'master': bpo-33671: efficient zero-copy for shutil.copy* functions (Linux, OSX and Win) (#7160)

[issue32108] configparser bug: section is emptied if you assign a section to itself

2018-06-12 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 33cd058f21d0673253c88cea70388282918992bc by Łukasz Langa (Cheryl Sabella) in branch 'master': bpo-32108: Don't clear configparser values if key is assigned to itself (GH-7588)

[RELEASE] Python 3.7.0rc1 and 3.6.6rc1 are now available

2018-06-12 Thread Ned Deily
Python 3.7.0rc1 and 3.6.6rc1 are now available. 3.7.0rc1 is the final planned release preview of Python 3.7, the next feature release of Python. 3.6.6rc1 is the the release preview of the next maintenance release of Python 3.6, the current release of Python. Assuming no critical problems are found

[issue25246] Alternative algorithm for deque_remove()

2018-06-12 Thread Tal Einat
Tal Einat added the comment: IMO both approaches sound better than the existing implementation. Better to choose one than to do nothing. -- nosy: +taleinat ___ Python tracker

Re: Filters

2018-06-12 Thread Mark Lawrence
On 12/06/18 15:45, T Berger wrote: Why doesn't the system allow me to set filters for my own posts? I was able to do it once, but when I returned to the forum, I was back among the unfiltered posts. When I tried to reapply the filter, the option was grayed out. Also, I've selected the option

Re: Filters

2018-06-12 Thread Grant Edwards
On 2018-06-12, pyotr filipivich wrote: > It is Google. They will decide what is evil. and not do that. They've found it simpler to just declare than anything they do is, by definition, therefore not evil. -- Grant Edwards grant.b.edwardsYow! There's enough money

Re: Posting warning message

2018-06-12 Thread Grant Edwards
On 2018-06-12, Chris Angelico wrote: > On Wed, Jun 13, 2018 at 12:17 AM, T Berger wrote: > >> Sorry, to bother you again. But is there some way to edit a message >> once its posted? Or do I have to delete it and rewrite it? > > Nope. And you can't delete it either. That depends. If you're

[issue33847] doc: Add '@' operator entry to index

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

[issue33847] doc: Add '@' operator entry to index

2018-06-12 Thread Andrés Delfino
New submission from Andrés Delfino : Currently, the index only refers to decorators for the @ symbol. PR adds entry for the matrix multiplication operator. -- assignee: docs@python components: Documentation messages: 319398 nosy: adelfino, docs@python priority: normal severity: normal

[issue33846] Misleading error message in urllib.parse.unquote

2018-06-12 Thread R. David Murray
R. David Murray added the comment: We don't generally do type checks like that. This is a specific case of a general issue with binary operators and mismatched string/bytes types. I thought there was an open issue for it, but I haven't found it yet. -- nosy: +r.david.murray

[issue33846] Misleading error message in urllib.parse.unquote

2018-06-12 Thread Johannes Raggam
New submission from Johannes Raggam : urllib.parse.unquote gives an misleading error message when: >>> import urllib >>> urllib.parse.unquote(b'bytesurl') *** TypeError: a bytes-like object is required, not 'str' while: >>> urllib.parse.unquote('texturl') texturl The correct behavior is to

Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-12 Thread Paul St George
Dennis Lee Bieber wrote: Both may be dependent upon the actual hardware graphics board and the drivers for said board. On 11/06/2018 01:47, Gregory Ewing wrote: My guess is that if your surface is not fullscreen or is not a hardware surface, then you're always drawing into an ofscreen

[issue33660] pathlib.Path.resolve() returns path with double slash when resolving a relative path in root directory

2018-06-12 Thread Dong-hee Na
Dong-hee Na added the comment: For reviewers, I submitted a patch PR 7666. Please take a look -- nosy: +corona10 ___ Python tracker ___

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

2018-06-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Serhiy, I am checking and the only temporary Python object (the result of encoding/decoding) that is passed to C library function that I can find is in: if (!PyArg_ParseTuple(file_action, "OiO" ";A open

Re: Filters

2018-06-12 Thread pyotr filipivich
T Berger on Tue, 12 Jun 2018 07:45:58 -0700 (PDT) typed in comp.lang.python the following: >Why doesn't the system allow me to set filters for my own posts? I was able to >do it once, but when I returned to the forum, I was back among the unfiltered >posts. When I tried to reapply the filter,

[issue33844] Writing capital letters with csvwriter.writerow changes the csv file format

2018-06-12 Thread Eric V. Smith
Eric V. Smith added the comment: This is happening because the string "ID" is special to the SYLK format: https://en.wikipedia.org/wiki/SYmbolic_LinK_(SYLK) -- nosy: +eric.smith ___ Python tracker

[issue33828] Add versionchanged notes for string.Formatter

2018-06-12 Thread Xiang Zhang
Change by Xiang Zhang : -- keywords: +patch pull_requests: +7283 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version

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

[issue33845] Update Doc\make.bat on 2.7 to bring it on par to master version

2018-06-12 Thread Andrés Delfino
New submission from Andrés Delfino : PR makes the necessary changes to make Doc\make.bat the same as the master version, except some small differences. This should help backports. -- components: Windows messages: 319392 nosy: adelfino, paul.moore, steve.dower, tim.golden, zach.ware

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: > On 11Jun2018 22:51, Tamara Berger wrote: > >On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > >> Tamara Berger wrote: > >> > I typed these 2 lines in the terminal: > >> > 192:~ TamaraB$ sudo python3 > >>

Filters

2018-06-12 Thread T Berger
Why doesn't the system allow me to set filters for my own posts? I was able to do it once, but when I returned to the forum, I was back among the unfiltered posts. When I tried to reapply the filter, the option was grayed out. Also, I've selected the option to get email updates to my posts, but

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 10:27:06 AM UTC-4, Chris Angelico wrote: > On Wed, Jun 13, 2018 at 12:17 AM, T Berger wrote: > > > > Sorry, to bother you again. But is there some way to edit a message once > > its posted? Or do I have to delete it and rewrite it? > > Nope. And you can't delete it

[issue33660] pathlib.Path.resolve() returns path with double slash when resolving a relative path in root directory

2018-06-12 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +7281 stage: test needed -> patch review ___ Python tracker ___ ___

Re: Posting warning message

2018-06-12 Thread Chris Angelico
On Wed, Jun 13, 2018 at 12:17 AM, T Berger wrote: > > Sorry, to bother you again. But is there some way to edit a message once its > posted? Or do I have to delete it and rewrite it? Nope. And you can't delete it either. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: > On 11Jun2018 22:51, Tamara Berger wrote: > >On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > >> Tamara Berger wrote: > >> > I typed these 2 lines in the terminal: > >> > 192:~ TamaraB$ sudo python3 > >>

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

2018-06-12 Thread Tal Einat
Tal Einat added the comment: I've started work on this. My progress can be followed on the bpo-33839 branch on my GitHub repo: https://github.com/taleinat/cpython/tree/bpo-33839 -- ___ Python tracker

Re: Question : Input after all prompts in python

2018-06-12 Thread mohan4h
On Tuesday, June 12, 2018 at 7:37:25 PM UTC+8, Bart wrote: > On 11/06/2018 12:16, Steven D'Aprano wrote: > > On Mon, 11 Jun 2018 01:44:19 -0700, mohan4h wrote: > > > >> Everyone, > >> > >> I am very new to python. I am trying to achieve the below in it, but i > >> am unable to find suitable

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: > On 11Jun2018 22:51, Tamara Berger wrote: > >On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > >> Tamara Berger wrote: > >> > I typed these 2 lines in the terminal: > >> > 192:~ TamaraB$ sudo python3 > >>

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

2018-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For reference: posix_spawn() was implemented in issue20104. -- ___ Python tracker ___ ___

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

2018-06-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Should we merge PR6693 and PR6725 before fixing the memory problem? -- ___ Python tracker ___

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

2018-06-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: A separate PR is needed for the apparent reusing of freed memory in the implementation of posix_spawn. I am currently looking into it. -- ___ Python tracker

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

2018-06-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: In PR 7663 I am only fixing the race condition. -- ___ Python tracker ___ ___

  1   2   >