[issue19495] context manager for measuring duration of blocks of code

2018-01-30 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hello everyone, I was interested in similar functionality for timeit and found this discussion. I know it's too late for 3.7, but I was wondering if it would be worth putting this on python-ideas or python-dev to try to get some consensus for a PEP

[issue32045] Does json.dumps have a memory leak?

2018-01-30 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue32045> ___ ___

[issue20984] 'Add/Remove Programs' dialog missing entries for 32-bit CPython 'current user only' installations on 64-bit Windows

2018-01-31 Thread Cheryl Sabella
Cheryl Sabella added the comment: Based on Steve's last comment on this issue, should this be closed as 'Out of Date'? -- nosy: +csabella ___ Python tracker <https://bugs.pyt

[issue29209] Remove old-deprecated ElementTree features

2018-01-31 Thread Cheryl Sabella
Cheryl Sabella added the comment: Serhiy, Did you want to revive this for 3.8? -- nosy: +csabella ___ Python tracker <https://bugs.python.org/issue29

[issue18876] Problems with files opened in append mode with io module

2018-01-31 Thread Cheryl Sabella
Cheryl Sabella added the comment: I believe Erik opened #20082 for the BufferedWriter bug, so I think this issue can be closed as Resolved? -- nosy: +csabella ___ Python tracker <https://bugs.python.org/issue18

[issue32735] Typo in f-string example in docs

2018-01-31 Thread Cheryl Sabella
New submission from Cheryl Sabella : On the lexical analysis doc page, in f-strings example, the following example isn't quite right: >>> f"{today:%b %d, %Y}" # using date format specifier 'January 27, 2017' Submitting a patch shortly to use %B instead

[issue32735] Typo in f-string example in docs

2018-01-31 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5290 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32735> ___ ___ Py

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-01-31 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy stage: -> needs patch type: -> enhancement ___ Python tracker <https://bugs.python.org/issue27428> ___ ___

[issue32720] Format mini-language integer definition is incorrect

2018-02-01 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy ___ Python tracker <https://bugs.python.org/issue32720> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32540] venv docs - doesn't match behavior

2018-02-01 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy stage: -> needs patch type: -> enhancement versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/i

[issue30449] Improve __slots__ datamodel documentation

2018-02-01 Thread Cheryl Sabella
Cheryl Sabella added the comment: It looks like this documentation patch was applied to master. Does it need to be backported to 3.6 and 2.7 for the issue to be closed? Thanks! -- nosy: +csabella ___ Python tracker <https://bugs.python.

[issue30516] Documentation for datetime substract operation incorrect?

2018-02-02 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy type: -> enhancement versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue30516> ___ ___ Py

[issue16024] Doc cleanup regarding path=fd, dir_fd, follow_symlinks, etc

2018-02-02 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +5337 ___ Python tracker <https://bugs.python.org/issue16024> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16024] Doc cleanup regarding path=fd, dir_fd, follow_symlinks, etc

2018-02-02 Thread Cheryl Sabella
Cheryl Sabella added the comment: Larry, I've made a pull request for your patch. It seemed like most of the original text was still in place, so I thought you might still want these changes. You had also made changes to the What's New, but I didn't include those changes.

[issue30109] make reindent failed.

2018-02-03 Thread Cheryl Sabella
Cheryl Sabella added the comment: Does this just need to be cherry-picked to 2.7 to be able to close it? -- nosy: +csabella ___ Python tracker <https://bugs.python.org/issue30

[issue32227] singledispatch support for type annotations

2018-02-03 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hello, I believe this could be closed as resolved? Do you think it should be added to the What's New? page for 3.7? -- nosy: +csabella ___ Python tracker <https://bugs.python.org/is

[issue20632] Define a new __key__ protocol

2018-02-03 Thread Cheryl Sabella
Cheryl Sabella added the comment: I wonder if this would make sense as a parameter to dataclass now. -- nosy: +csabella versions: +Python 3.8 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue20

[issue32765] IDLE: Update configdialog docstrings to reflect extension integration

2018-02-04 Thread Cheryl Sabella
New submission from Cheryl Sabella : The layout of the general tab changed with #27099, but the docstrings weren't updated with the new widgets. -- assignee: terry.reedy components: IDLE messages: 311606 nosy: csabella, terry.reedy priority: normal severity: normal status: open

[issue32765] IDLE: Update configdialog docstrings to reflect extension integration

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5356 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32765> ___ ___ Py

[issue30569] Tutorial section 2.1 has *nix example at 3.7, but Windows at 3.6

2018-02-04 Thread Cheryl Sabella
Cheryl Sabella added the comment: This is still an issue. Since it's more than updating the release version, I think someone more knowledgeable than me should fix it. I wouldn't want to miss something that should be included. -- versions: +

[issue32761] IDLE Keymap for Cntl-A

2018-02-04 Thread Cheryl Sabella
Cheryl Sabella added the comment: That's interesting. I've always thought of Control+A to be 'select all'. https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts Do you think a new keybinding theme should be added for bash/emacs? I don't know how well emacs wo

[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +pmoody ___ Python tracker <https://bugs.python.org/issue30528> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31529] IDLE: Add docstrings and tests for editor.py reload functions

2018-02-04 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Terry, Could you put this one on your radar for review? Thanks! -- ___ Python tracker <https://bugs.python.org/issue31

[issue32769] Add 'annotations' to the glossary

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- assignee: docs@python components: Documentation keywords: easy nosy: csabella, docs@python priority: normal severity: normal status: open title: Add 'annotations' to the glossary type: enhancement versions:

[issue5594] IDLE startup configuration

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch, patch pull_requests: +5366, 5367 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/iss

[issue5594] IDLE startup configuration

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- dependencies: +IDLE: Add docstrings and tests for editor.py reload functions ___ Python tracker <https://bugs.python.org/issue5

[issue5594] IDLE startup configuration

2018-02-04 Thread Cheryl Sabella
Cheryl Sabella added the comment: I created a pull request for this ticket. I did not include any of the other issues/tickets for using the command line information on restart or any of the issues with running certain code. I also added template code to be used in a new editor window. It

[issue5594] IDLE startup configuration

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5366 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/iss

[issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility

2018-02-05 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue31215> ___ ___ Python-bugs-list mailin

[issue32770] collections.counter examples are misleading

2018-02-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: You know, I'm not sure if I had ever seen that example before. When you click Counter at the top of the page, it goes right to the class definition, which is past the example. Having said that, I really like the example. Until now, I didn't re

[issue32769] Add 'annotations' to the glossary

2018-02-09 Thread Cheryl Sabella
Change by Cheryl Sabella : -- stage: -> needs patch ___ Python tracker <https://bugs.python.org/issue32769> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue11015] Bring test.support docs up to date

2018-02-10 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +5420 ___ Python tracker <https://bugs.python.org/issue11015> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11015] Bring test.support docs up to date

2018-02-10 Thread Cheryl Sabella
Cheryl Sabella added the comment: I have created a pull request adding documentation for all of test.support, including script_helper.py. I hope this will be helpful. -- nosy: +csabella versions: +Python 3.8 ___ Python tracker <ht

[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-02-11 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy stage: -> needs patch type: behavior -> enhancement versions: +Python 3.8 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker <https://bugs.python.org/

[issue11015] Bring test.support docs up to date

2018-02-11 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks Nick for merging. Should I open a new PR to address Serhiy's review or fix them on the original PR? -- ___ Python tracker <https://bugs.python.org/is

[issue32831] IDLE: Add docstrings and tests for codecontext

2018-02-12 Thread Cheryl Sabella
New submission from Cheryl Sabella : Add docstrings and tests for codecontext.py. -- assignee: terry.reedy components: IDLE messages: 312046 nosy: csabella, terry.reedy priority: normal severity: normal status: open title: IDLE: Add docstrings and tests for codecontext type: enhancement

[issue32831] IDLE: Add docstrings and tests for codecontext

2018-02-12 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5438 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32831> ___ ___ Py

[issue13319] IDLE: Menu accelerator conflict between Format and Options

2018-02-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Maybe a solution for this would be to change the name of the 'Format' menu to something like 'Source'? Interestingly, the Format menu is available on outwin, even though that is output-only, so I guess 'Source' would only make

[issue32826] idle test fails at least on the 3.6 branch

2018-02-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've been able to run the IDLE test suite on Linux. As far as this issue, there's also a readline in test_textview that you may want to add the encoding to, even though it's only reading __file__. -- ___

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Cheryl Sabella
New submission from Cheryl Sabella : In tkinter, after_cancel has a call to after info: data = self.tk.call('after', 'info', id) Since this is a supported command, there should be a function to access it directly. https://www.tcl.tk/man/tcl8.6/TclCmd/after.htm --

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: I was working on the tests for issue32831. One of the methods was `__del__` which made sure timer events were canceled with `after_cancel`. In the test, to assert that the after events no longer existed after calling `__del__` and after reading the Tcl

[issue20632] Define a new __key__ protocol

2018-02-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks, Nick. When I first came across this issue, I thought that dataclasses would take care of what you wrote below, but after looking at the original discussion on python-dev, I thought the problem was ordering None within a comparison with None being a

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5466 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32839> ___ ___ Py

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've made a pull request. I understand that you may not want to add this functionality, but perhaps the docstring will answer your questions. I took it from the Tcl docs page. -- ___ Python tracker &

[issue21196] Name mangling example in Python tutorial

2018-02-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: Chandan or Berker, Any interest in making a Github pull request for this patch? -- nosy: +csabella versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue21

[issue18802] ipaddress documentation errors

2018-02-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: Jon/Berker, Are you interested in making a Github pull request for this? Thanks! -- nosy: +csabella ___ Python tracker <https://bugs.python.org/issue18

[issue26743] Unable to import random with python2.7 on power pc based machine

2018-02-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since there hasn't been activity on this for nearly 2 years, should it be closed as third party? Stefan seemed to conclude that it was a WindRiver issue. Thanks! -- nosy: +csabella ___ Python tracker &

[issue32843] More revisions to test.support docs

2018-02-14 Thread Cheryl Sabella
New submission from Cheryl Sabella : Serhiy had made the following comments on the pull request for issue11015, but that PR was merged before applying his requested changes. This issue is to address his concerns. TESTFN_NONASCII - How different from TESTFN_UNICODE? PGO - value? True/False

[issue32839] Add after_info as a function to tkinter

2018-02-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: >>> It is internal, it was not exposed to Tkinter users before, and the API for >>> restoring the original Python callable is private. I thought `bind(sequence)` also returned these internal Tcl function names? For example, if I

[issue32857] tkinter after_cancel does not behave correctly when called with id=None

2018-02-16 Thread Cheryl Sabella
New submission from Cheryl Sabella : This was discovered while working on issue32839. An old comment added for issue763637 resulted in further research and it was determined that the comment: ! data = self.tk.call('after', 'info', id) ! # In Tk 8.

[issue32839] Add after_info as a function to tkinter

2018-02-16 Thread Cheryl Sabella
Cheryl Sabella added the comment: I created issue32857 for the after_cancel issue. Thanks! -- ___ Python tracker <https://bugs.python.org/issue32839> ___ ___

[issue32857] tkinter after_cancel does not behave correctly when called with id=None

2018-02-16 Thread Cheryl Sabella
Cheryl Sabella added the comment: I can open a PR for this, but thought it might be best to discuss it first as far as what should happen with None. 1. Raise an error that it's an incorrect call. 2. Ignore it and just return. 3. Loop through all the events and after_cancel each one.

[issue32857] tkinter after_cancel does not behave correctly when called with id=None

2018-02-16 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5490 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue32874] IDLE: Add tests for pyparse

2018-02-19 Thread Cheryl Sabella
New submission from Cheryl Sabella : Add unit tests for pyparse.py in IDLE. -- assignee: terry.reedy components: IDLE messages: 312352 nosy: csabella, terry.reedy priority: normal severity: normal status: open title: IDLE: Add tests for pyparse type: enhancement versions: Python 3.7

[issue32874] IDLE: Add tests for pyparse

2018-02-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: I also moved existing comments in pyparse.py to be docstrings. Adding the tests revealed a bug in the initialization of self.lastopenbracketpos, but I didn't make any changes to fix it. With the bug, the tests weren't repeatable, so I modified th

[issue32874] IDLE: Add tests for pyparse

2018-02-19 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5533 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32874> ___ ___ Py

[issue32857] tkinter after_cancel does not behave correctly when called with id=None

2018-02-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: I had also noticed that the `after` commands didn't have tests. Did you want me to add tests in a separate issue before this one is merged or did you want me to add tests under this PR? Thanks! -- ___ P

[issue32843] More revisions to test.support docs

2018-02-20 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5553 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32843> ___ ___ Py

[issue32843] More revisions to test.support docs

2018-02-20 Thread Cheryl Sabella
Change by Cheryl Sabella : -- stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32843> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue32843] More revisions to test.support docs

2018-02-20 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've made the changes requested. I wasn't sure about: TESTFN_NONASCII - How different from TESTFN_UNICODE? Should I move these out of test.support?: missing_compiler_executable(cmd_names=[]) - It is used only in distutils tests and sh

[issue32874] IDLE: Add tests for pyparse

2018-02-20 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks for pointing out #21765 - very interesting reading. :-) Would the new str.isascii() be helpful or would it be too early to use something only available in 3.7? It would seem that and combinations of `if isascii() and isidentifier()` might be

[issue32540] venv docs - doesn't match behavior

2018-02-20 Thread Cheryl Sabella
Cheryl Sabella added the comment: Does this need to be backported to 3.7 and 3.6? Or can it be closed as resolved? -- nosy: +csabella ___ Python tracker <https://bugs.python.org/issue32

[issue32017] profile.Profile() has no method enable()

2018-02-20 Thread Cheryl Sabella
Cheryl Sabella added the comment: I started taking a look at this and discovered a few things. There are four methods in the C module `_lsprof` that are within the Profiler class - `enable`, `disable`, `getstats`, and `clear` and which are all available through cProfile.Profile. These

[issue32008] Example suggest to use a TLSv1 socket

2018-02-20 Thread Cheryl Sabella
Cheryl Sabella added the comment: Christian, Would you have any feedback on this? Thanks! -- nosy: +christian.heimes, csabella ___ Python tracker <https://bugs.python.org/issue32

[issue32016] Python 3.6.3 venv FAILURE

2018-02-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Without any additional information, should this be closed as 'Works for Me'? -- nosy: +csabella ___ Python tracker <https://bugs.python.o

[issue28498] tk busy command

2018-02-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: There was a lot of work put into this patch, but I don't think it's been committed yet. Are any of the original authors interested in converting this to a Github pull request on the master branch? Thanks! -- nosy:

[issue23077] PEP 1: Allow Provisional status for PEPs

2018-02-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Pull request: https://github.com/python/peps/pull/577 -- nosy: +csabella ___ Python tracker <https://bugs.python.org/issue23

[issue32016] Python 3.6.3 venv FAILURE

2018-02-22 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32857] tkinter after_cancel does not behave correctly when called with id=None

2018-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've added the tests for `after` and `after_idle`. I used `update` and `update_idletasks` to make sure they processed. Even scheduling an after event for 0 ms didn't guarantee it would process, but I wasn't sure if there was a better way

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: Terry, In order to not duplicate effort, are you going to be working on these or is it ok if I look at them? Should all the changes happen in one PR or do you want to break them down? Thanks! -- ___ Python

[issue30449] Improve __slots__ datamodel documentation

2018-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: Mariatta, Do you think this one needs to be backported? You had originally added the labels on the pull request, then removed them. I wasn't sure if that was needed before being able to close this. Thanks! -- nosy: +Mar

[issue26792] docstrings of runpy.run_{module,path} are rather sparse

2018-02-22 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy stage: -> needs patch type: -> enhancement versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker <https://bugs.python.org/i

[issue25427] Remove the pyvenv script in Python 3.8

2018-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: Ping since we're now on 3.8. :-) -- nosy: +csabella stage: -> needs patch type: -> enhancement versions: +Python 3.8 ___ Python tracker <https://bugs.python.

[issue32901] Update 3.7 and 3.8 Windows and macOS installer builds to tcl/tk 8.6.8

2018-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'll give it a shot. :-) -- nosy: +csabella ___ Python tracker <https://bugs.python.org/issue32901> ___ ___ Python-bugs-l

[issue17232] Improve -O docs

2018-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: Should I make a pull request for Terry's last patch? -- nosy: +csabella ___ Python tracker <https://bugs.python.org/is

[issue18356] help(numpy) causes segfault on exit

2018-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: It appears that the suggested change from SO was implemented under issue23374 and issue23792. I cannot recreate this on Ubuntu 16.04, so closing as resolved. -- assignee: docs@python -> nosy: +csabella resolution: -> fixed stage: ->

[issue19412] Add docs for test.support.requires_docstrings decorator

2018-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: I added `HAVE_DOCSTRINGS`,`MISSING_C_DOCSTRINGS`, `requires_docstring` to the test.support documentation under issue11015. Additional changes to those three have been made under issue32843, so I am closing this issue in favor of issue32843. Please comment

[issue26018] documentation of ZipFile file name encoding

2018-02-22 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue26018> ___ ___ Pytho

[issue30935] document the new behavior of get_event_loop() in Python 3.6

2018-02-22 Thread Cheryl Sabella
Change by Cheryl Sabella : -- stage: needs patch -> patch review type: -> enhancement ___ Python tracker <https://bugs.python.org/issue30935> ___ ___ Pyth

[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2018-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: It appears that all the docs from the issue title (and the subsequent releases) exist on https://www.python.org/ftp/python/doc/ now, except that the 3.5.0 ones are for alpha releases instead of the final. Larry mentioned that in msg271236. Not sure if

[issue9635] Add Py_BREAKPOINT and sys._breakpoint hooks

2018-02-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: Did PEP553 make this issue obsolete? -- nosy: +csabella ___ Python tracker <https://bugs.python.org/issue9635> ___ ___ Pytho

[issue32918] IDLE: make smart indent after comment line consistent

2018-02-22 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5602 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue32916] IDLE: change 'str' to 'code' in idlelib.pyparse.PyParse and users

2018-02-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Yes, I agree. I'll start working on this one first. -- ___ Python tracker <https://bugs.python.org/issue32916> ___ ___

[issue32916] IDLE: change 'str' to 'code' in idlelib.pyparse.PyParse and users

2018-02-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5608 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue17232] Improve -O docs

2018-02-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +5616 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue17232> ___ ___ Python-

[issue17232] Improve -O docs

2018-02-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've made a PR and tried to integrate the changes from PEP 488. -- ___ Python tracker <https://bugs.python.org/is

[issue32930] [help][webbrowser always opens new tab. I want to open in the same tab]

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Tommy, The documentation states "If new is 0, the url is opened in the same browser window if possible." It seems to be browser dependent, hence the 'if possible' caveat. What operating system and browser are you using? --

[issue32930] [help][webbrowser always opens new tab. I want to open in the same tab]

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: TitanSnow, You're right, sorry about the confusion. But, nevertheless, this does seem to be something that the browsers don't have available as an option. Here's the Mozilla command line option page: https://developer.mozilla.org/en-

[issue32938] webbrowser: Add options for private mode

2018-02-24 Thread Cheryl Sabella
New submission from Cheryl Sabella : When looking at the command line option page for Mozilla (https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options), I noticed options for opening a private mode window (-private-window or -private-window URL). Chrome also has an

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: New issue: find_good_parse_start() call in editor.py has the wrong signature. There's actually a few things going on here. Here's the section in editor: ``` if not self.context_use_ps1: for context in self.num_con

[issue32939] IDLE: self.use_context_ps1 defined in editor, but always False

2018-02-24 Thread Cheryl Sabella
New submission from Cheryl Sabella : In the EditorWindow in editor.py, there is an attribute called `self.context_use_ps1` that is only set to False. Changed to an instance variable in: https://github.com/python/cpython/commit/6af44986029c84c4c5df62a64c60a6ed978a3693 Removed from pyshell in

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: For msg312444 on StringTranslatePseudoMapping: I ran a comparison of the current class vs defaultdict. This was my test: ``` with open('/home/cheryl/cpython/Lib/idlelib/pyparse.py') as fd: code = fd.read() copies = 2 code *= copies for i i

[issue32940] IDLE: pyparse - replace StringTranslatePseudoMappingTest with defaultdict

2018-02-24 Thread Cheryl Sabella
New submission from Cheryl Sabella : Based on timing test on msg312733, StringTranslatePseudoMappingTest and a defaultdict have about the same performance, so this replaces the custom class with the stdlib functionality. -- assignee: terry.reedy components: IDLE messages: 312734 nosy

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: For msg312444 on StringTranslatePseudoMapping: I ran a comparison of the current class vs defaultdict. This was my test: ``` with open('/home/cheryl/cpython/Lib/idlelib/pyparse.py') as fd: code = fd.read() copies = 2 code *= copies for i i

[issue32940] IDLE: pyparse - replace StringTranslatePseudoMappingTest with defaultdict

2018-02-24 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5629 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32940> ___ ___ Py

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: I also timed this for a `_tran` optimization (instead of looping and doing the `ord`), but it didn't really make a difference. ``` _tran = defaultdict(lambda: 'x') _tran.update({40: 40,# ord('(') 91: 40,# ord(&

[issue32930] [help][webbrowser always opens new tab. I want to open in the same tab]

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'm going to close this as third party since it's browser and not Python related. -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs

[issue32940] IDLE: pyparse - replace StringTranslatePseudoMapping with defaultdict

2018-02-24 Thread Cheryl Sabella
Change by Cheryl Sabella : -- title: IDLE: pyparse - replace StringTranslatePseudoMappingTest with defaultdict -> IDLE: pyparse - replace StringTranslatePseudoMapping with defaultdict ___ Python tracker <https://bugs.python.org/issu

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: I wish I could delete my last message (and duplicate posting of the one before. On the last one, I didn't move my timings. I feel like an idiot. Anyway, there is a difference. ``` start = time.time() for i in range(100): _tran = defaultdict(l

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: For msg312474 regarding replace vs re. Running the 20,000 copy version of the translated text (only translating once gives the following timings: copies: 2 translate time: 5.591020822525024 copies: 2 translate time: 5.5614333152771 copies: 2

<    6   7   8   9   10   11   12   13   14   >