[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think any further work on IDLE print speed should look at the entire path from print('x') to 'x' appearing in IDLE's Shell. Where does the time go, what might be sped up? I no longer think auto-squeezing should consider more than a single output string.

[issue35842] A potential bug about use of uninitialised variable

2019-01-29 Thread rongxin
rongxin added the comment: Josh Rosenberg, thanks for your useful comments. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35854] EnvBuilder and venv symlinks do not work on Windows on 3.7.2

2019-01-29 Thread Eryk Sun
Eryk Sun added the comment: > Actually, it seems like venv symlinks are so far from working > that they haven't worked (on Windows) since 3.5 or possibly > earlier. I use venv with --symlinks prior to 3.7.2. It works fine as far as I can tell. Perhaps you could elaborate. I assumed you

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-29 Thread Steve Pryde
New submission from Steve Pryde : When python prints or returns a stacktrace, it displays the appropriate line from the *current file on disk*, which may have changed since the program was run. It should instead show the lines from the file as it was when the code was executed. Steps to

[issue35856] bundled pip syntaxwarning

2019-01-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This needs to be updated in vendor files for pip repo and then updating the files in CPython. The upstream issue on requests is fixed. -- nosy: +dstufft, ncoghlan, xtreak ___ Python tracker

[issue35856] bundled pip syntaxwarning

2019-01-29 Thread Dima Tisnek
New submission from Dima Tisnek : It seems that `pip` vendored/bundled with Python3.8 doesn't conform to 3.8 syntax: … ~> /usr/local/bin/python3.8 -m ensurepip /.../tmp.../pip-18.1-py2.py3-none-any.whl/pip/_vendor/requests/status_codes.py:3: SyntaxWarning: invalid escape sequence \o

[issue35855] IDLE squeezer: improve unsqueezing and autosqueeze default

2019-01-29 Thread Terry J. Reedy
New submission from Terry J. Reedy : This issue continues #35196, which fixed some bugs (inconsistencies) in auto-squeezing and sped the scan of output strings for possible auto-squeezing. This issue has two parts: 1. Make unsqueezing faster and easier for the user. Details discussed below.

[issue35853] Extend the functools module with more higher order function combinators

2019-01-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I believe each of these has been discussed and individually rejected before. They don't apply as neatly to Python as one would hope. Identity is usually inefficient in Python and we use a func=None as a substitute. Identity also had issues with

[issue35854] EnvBuilder and venv symlinks do not work on Windows on 3.7.2

2019-01-29 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch, patch, patch pull_requests: +11548, 11549, 11550 stage: -> patch review ___ Python tracker ___

[issue35854] EnvBuilder and venv symlinks do not work on Windows on 3.7.2

2019-01-29 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch, patch pull_requests: +11548, 11549 stage: -> patch review ___ Python tracker ___ ___

[issue35854] EnvBuilder and venv symlinks do not work on Windows on 3.7.2

2019-01-29 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +11548 stage: -> patch review ___ Python tracker ___ ___

[issue35853] Extend the functools module with more higher order function combinators

2019-01-29 Thread Tobias Pleyer
Change by Tobias Pleyer : -- keywords: +patch pull_requests: +11546 stage: -> patch review ___ Python tracker ___ ___

[issue35854] EnvBuilder and venv symlinks do not work on Windows on 3.7.2

2019-01-29 Thread Steve Dower
Steve Dower added the comment: Actually, it seems like venv symlinks are so far from working that they haven't worked (on Windows) since 3.5 or possibly earlier. I'm just going to make that option ignored and mark it as such in the docs. -- ___

[issue35854] EnvBuilder and venv symlinks do not work on Windows on 3.7.2

2019-01-29 Thread Steve Dower
New submission from Steve Dower : The change to pull the redirector executables as part of scripts was... perhaps too clever. There exists code out there that uses EnvBuilder to create environments _without_ copying scripts, which now results in an environment that does not include

[issue35853] Extend the functools module with more higher order function combinators

2019-01-29 Thread Tobias Pleyer
New submission from Tobias Pleyer : The partial function is a typical example of a higher order function: It takes a function as argument and returns a function. As the name of the functools module suggests its purpose is to provide tools for working with functions. This should, in my

[issue35847] RISC-V needs CTYPES_PASS_BY_REF_HACK

2019-01-29 Thread miss-islington
miss-islington added the comment: New changeset 10354cbb5067b4719ba1c2d51d22314a644ed3e5 by Miss Islington (bot) in branch '3.7': bpo-35847: RISC-V needs CTYPES_PASS_BY_REF_HACK (GH-11694) https://github.com/python/cpython/commit/10354cbb5067b4719ba1c2d51d22314a644ed3e5 --

[issue35823] Use vfork() in subprocess on Linux

2019-01-29 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Thank you for the review and your thoughts, Gregory. > With this in place we may want to make the _use_posix_spawn() logic in > subprocess.py stricter? That could be its own followup PR. Yes, I think we can always use vfork() on Linux unless we find some

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Steve for the details. I am adding io module maintainers to the issue who will have better context on whether to clarify the docs or to change the implementation to raise UnsupportedOperation. -- nosy: +benjamin.peterson, stutzbach,

[issue35837] smtpd PureProxy breaks on mail_options keyword argument

2019-01-29 Thread R. David Murray
R. David Murray added the comment: I'm closing this in favor of #35799 because someone has to first make a remove-or-fix decision, which is mentioned there. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> fix or remove

[issue35799] fix or remove smtpd.PureProxy

2019-01-29 Thread R. David Murray
R. David Murray added the comment: I'm neutral on fixing versus removing philosophically. Since fixing is actually the least effort in this case, I think practically I favor fixing. -- ___ Python tracker

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Steve Palmer
Steve Palmer added the comment: I agree with Karthikeyan that the method does not apply in the io.TextIOBase class context. I'm sorry that I didn't spot the note in the description of io.TextIOBase - though I think that it is easy to miss. I'd suggest that there are two ways to clear this

[issue35852] Fixed tests regenerating using CRLF when running it on Windows

2019-01-29 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch pull_requests: +11544, 11545 stage: -> patch review ___ Python tracker ___

[issue35852] Fixed tests regenerating using CRLF when running it on Windows

2019-01-29 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +11544 stage: -> patch review ___ Python tracker ___ ___

[issue35852] Fixed tests regenerating using CRLF when running it on Windows

2019-01-29 Thread Addons Zz
New submission from Addons Zz : When generating the file on Windows by running ``` python test/test_profile.py -r ``` The file has its line ending converted from LF to CRLF, creating noise on the git diff. -- components: Library (Lib), Tests messages: 334529 nosy: addons_zz priority:

[issue35847] RISC-V needs CTYPES_PASS_BY_REF_HACK

2019-01-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +11543 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35847] RISC-V needs CTYPES_PASS_BY_REF_HACK

2019-01-29 Thread miss-islington
miss-islington added the comment: New changeset 742d768656512a469ce9571b1cbd777def7bc5ea by Miss Islington (bot) (Andreas Schwab) in branch 'master': bpo-35847: RISC-V needs CTYPES_PASS_BY_REF_HACK (GH-11694) https://github.com/python/cpython/commit/742d768656512a469ce9571b1cbd777def7bc5ea

[issue35769] IDLE: change new file name from ''Untitled" to "untitled"

2019-01-29 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35851] Make search result in online docs keep their position when search finishes

2019-01-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I have minimum experience with CSS but this seems to be a Sphinx level enhancement that needs to be made. The text is set after search completion at [0]. The element [1] to which the text is added has no fixed height and is empty at the beginning

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I checked and io.TextIOBase is the only io.IOBase subclass to lack one of read, readinto or write: >>> import io, inspect >>> for name, obj in inspect.getmembers(io, predicate=inspect.isclass): ... missing = {'read', 'readinto', 'write'} - {name for name,

[issue35851] Make search result in online docs keep their position when search finishes

2019-01-29 Thread Roel Schroeven
New submission from Roel Schroeven : Search in the online documentation shows results while the search continues in the background, which is very nice. Only problem is: when the search finishes, a line with the text "Search finished, found x page(s) matching the search query." appears which

[issue34148] Fatal read error on socket transport

2019-01-29 Thread SilentGhost
Change by SilentGhost : -- nosy: +asvetlov, yselivanov versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/io.html#io.TextIOBase > Base class for text streams. This class provides a character and line based > interface to stream I/O. There is no readinto() method because Python’s > character strings are immutable. It

[issue35810] Object Initialization Bug with Heap-allocated Types

2019-01-29 Thread Petr Viktorin
Petr Viktorin added the comment: I would very much like to see this fixed. Yes, it can make some extension types immortal, but I believe those types were relying on buggy behavior, and need to be fixed to prevent memory leaks. I think this is a big enough change to be mentioned in What’s

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread SilentGhost
Change by SilentGhost : -- assignee: -> docs@python components: +Documentation -IO nosy: +docs@python stage: -> needs patch versions: +Python 3.8 ___ Python tracker ___

[issue35849] Added thousands separators to Lib/pstats.py final report

2019-01-29 Thread SilentGhost
SilentGhost added the comment: Hi, your change breaks some test, most of the breakage is related to the change in whitespace separators. This breakages should be fixed before your PR can be considered for inclusion. You can see the status of the tests within discussion on github.

[issue35500] Align expected and actual calls on mock.assert_called_with error message

2019-01-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Cheryl, this is a good first issue for new contributor. I was waiting for suggestion and I am not sure if there is a consensus over the format. I would like to go with the below format as per suggestion from Mario and Terry. AssertionError:

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2019-01-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think feature creep is ok if it stems from user needs. Slighty related, but simpler, is https://bugs.python.org/issue35845 -- ___ Python tracker

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2019-01-29 Thread Stefan Krah
Stefan Krah added the comment: CC Antoine and Nick. I think we can do it, but we'd need cast(shape=[2,3], order='F') to allow casting back. The only practical objections are feature creep. To preserve symmetry with tobytes(), we'd need to add tobytes('F') (and tobytes('A')). --

[issue35850] CKAN installation went on script error

2019-01-29 Thread Christian Heimes
Christian Heimes added the comment: ckan is a 3rd party package and not maintain by Python core developers. Please report the issue with the authors of that package. -- nosy: +christian.heimes resolution: -> third party stage: -> resolved status: open -> closed

[issue35850] CKAN installation went on script error

2019-01-29 Thread Previn Kutty
New submission from Previn Kutty : Command : paster make-config ckan development.ini was showing the following error (ckan) C:\applns\ckan-master>paster make-config ckan test.ini Distribution already installed: ckan 2.8.2 from

[issue35500] Align expected and actual calls on mock.assert_called_with error message

2019-01-29 Thread Cheryl Sabella
Cheryl Sabella added the comment: @xtreak, were you going to submit a pull request for this or do you think this would be a 'good first issue' for a new contributor? -- nosy: +cheryl.sabella ___ Python tracker

[issue32834] test_gdb fails with Posix locale in 3.7

2019-01-29 Thread Nick Coghlan
Nick Coghlan added the comment: Added Dave Malcolm to the nosy list, as the more recent tracebacks are actually throwing an exception in the gdb hooks, rather than just failing the expected output comparison in the test suite. -- nosy: +dmalcolm

[issue29235] Allow profile/cProfile to be used as context managers

2019-01-29 Thread Cheryl Sabella
Cheryl Sabella added the comment: Closing as these changes have been merged for a few months. msg285538 mentions that the pure-Python profiler doesn't have `enable` and `disable`, which is already opened in issue 32017. -- nosy: +cheryl.sabella resolution: -> fixed stage: patch

[issue35849] Added thousands separators to Lib/pstats.py final report

2019-01-29 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch, patch pull_requests: +11539, 11540, 11541 stage: -> patch review ___ Python tracker ___

[issue35849] Added thousands separators to Lib/pstats.py final report

2019-01-29 Thread Addons Zz
New submission from Addons Zz : Instead of doing: ``` 10056.0 function calls in 0.006 seconds Ordered by: internal time ncalls tottime percall cumtime percall filename:lineno(function) 1.00.0020.0020.0060.006

[issue35849] Added thousands separators to Lib/pstats.py final report

2019-01-29 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +11539 stage: -> patch review ___ Python tracker ___ ___

[issue35849] Added thousands separators to Lib/pstats.py final report

2019-01-29 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch pull_requests: +11539, 11540 stage: -> patch review ___ Python tracker ___

[issue35841] Datetime strftime() does not return correct week numbers for 2019

2019-01-29 Thread Emmanuel Arias
Emmanuel Arias added the comment: > I believe this ticket can be closed. Yes, I think so. How you say, on 35535 there is a detailed explanation about the behavior. -- nosy: +eamanu ___ Python tracker

[issue25592] distutils docs: data_files always uses sys.prefix

2019-01-29 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > it seems that Jeroen's analysis is right. So would you be willing to merge the PR then? -- ___ Python tracker ___

[issue35841] Datetime strftime() does not return correct week numbers for 2019

2019-01-29 Thread Tommy Rowland
Tommy Rowland added the comment: Hi Paul, Thank you for the clarification. I can see that %V does indeed return the correct week number. It seems that when calling strftime, it is possible to use this in conjunction with %y, but when calling strptime, it is not. Is this also intended

[issue35707] time.sleep() should support objects with __float__

2019-01-29 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > You've got a reference leak in your __index__ based paths. Thanks for pointing that out. I fixed that now. -- ___ Python tracker ___

[issue35847] RISC-V needs CTYPES_PASS_BY_REF_HACK

2019-01-29 Thread Andreas Schwab
Change by Andreas Schwab : -- keywords: +patch, patch, patch pull_requests: +11536, 11537, 11538 stage: -> patch review ___ Python tracker ___

[issue35847] RISC-V needs CTYPES_PASS_BY_REF_HACK

2019-01-29 Thread Andreas Schwab
Change by Andreas Schwab : -- keywords: +patch, patch pull_requests: +11536, 11537 stage: -> patch review ___ Python tracker ___

[issue35847] RISC-V needs CTYPES_PASS_BY_REF_HACK

2019-01-29 Thread Andreas Schwab
Change by Andreas Schwab : -- keywords: +patch pull_requests: +11536 stage: -> patch review ___ Python tracker ___ ___

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2019-01-29 Thread Henry S. Thompson
Henry S. Thompson added the comment: This issue is also implicated in a failure of isalpha and friends. Easy way to see this is to compare >>> isalpha('İ') True >>> isalpha('İ'.lower()) False This results from the use of a combining character to encode lower-case Turkish dotted i: >>>

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Steve Palmer
New submission from Steve Palmer : class io.IOBase states "Even though IOBase does not declare read(), readinto(), or write() because their signatures will vary, implementations and clients should consider those methods part of the interface. Also, implementations may raise a ValueError (or

[issue35843] importlib.util docs for namespace packages innaccurate

2019-01-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: See also #35673. -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35847] RISC-V needs CTYPES_PASS_BY_REF_HACK

2019-01-29 Thread Andreas Schwab
New submission from Andreas Schwab : == FAIL: test_pass_by_value (ctypes.test.test_structures.StructureTestCase) -- Traceback (most recent call last): File

[issue35846] Incomplete documentation for re.sub

2019-01-29 Thread Pascal Bugnion
New submission from Pascal Bugnion : The documentation for `re.sub` states that "Unknown escapes such as ``\&`` are left alone.". This is only true for escapes which are not ascii characters, as far as I can tell (c.f. source on