[issue33212] add several options to msgfmt.py

2018-04-02 Thread umedoblock
umedoblock added the comment: Sorry, I forgot to add a patch file. -- keywords: +patch Added file: https://bugs.python.org/file47518/a.patch ___ Python tracker ___

[issue33212] add several options to msgfmt.py

2018-04-02 Thread umedoblock
New submission from umedoblock : = Why do I add several options ? I'd like to effectively know a progress of translate about some po files when KiCad dev team announce to public KiCad 5.0 major. Because KiCad dev team separates PCB design tools to exe files. And I used the poedit to translate wor

[issue32360] Save OrderedDict imports in various stdlibs.

2018-04-02 Thread INADA Naoki
Change by INADA Naoki : -- dependencies: -Dict order is now guaranteed, so add tests and doc for it stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue32360] Save OrderedDict imports in various stdlibs.

2018-04-02 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue33211] lineno and col_offset are wrong on function definitions with decorators

2018-04-02 Thread Gil Forcada
New submission from Gil Forcada : Given the following code: class MyClass(object): @property def my_function(self): pass Parsing it with ast module, the lineno and col_offset of the ast.FunctionDef is reported to be where the decorator starts (i.e. line 3 column 4) rather than where

[issue32360] Save OrderedDict imports in various stdlibs.

2018-04-02 Thread miss-islington
miss-islington added the comment: New changeset 0c533573c527c63dacab5921becb66dc3eb274c1 by Miss Islington (bot) in branch '3.7': bpo-32360: Remove object_pairs_hook=OrderedDict examples (GH-5001) https://github.com/python/cpython/commit/0c533573c527c63dacab5921becb66dc3eb274c1 -- no

[issue1222585] C++ compilation support for distutils

2018-04-02 Thread Ben Elliston
Ben Elliston added the comment: Is there a simple workaround that one can put into setup.py in the meantime? I tried using compiler.compiler.remove('-Wstrict-prototypes') to no avail. -- nosy: +bje ___ Python tracker

[issue32360] Save OrderedDict imports in various stdlibs.

2018-04-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6072 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32360] Save OrderedDict imports in various stdlibs.

2018-04-02 Thread INADA Naoki
INADA Naoki added the comment: New changeset 629338f1404ea9cd75e4fb0389a2fbe1b589de43 by INADA Naoki in branch 'master': bpo-32360: Remove object_pairs_hook=OrderedDict examples (GH-5001) https://github.com/python/cpython/commit/629338f1404ea9cd75e4fb0389a2fbe1b589de43 -- __

[issue33202] os.walk mentions os.listdir instead of os.scandir

2018-04-02 Thread miss-islington
miss-islington added the comment: New changeset fa5157e0499f7afdb59e220e3f4fdbf44adb5ac8 by Miss Islington (bot) in branch '3.6': closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335) https://github.com/python/cpython/commit/fa5157e0499f7afdb59e220e3f4fdbf44adb5a

[issue33199] PyDict_Copy() can leave 'ma_version_tag' uninitialized

2018-04-02 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue33199] PyDict_Copy() can leave 'ma_version_tag' uninitialized

2018-04-02 Thread INADA Naoki
Change by INADA Naoki : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue33199] PyDict_Copy() can leave 'ma_version_tag' uninitialized

2018-04-02 Thread INADA Naoki
Change by INADA Naoki : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue33202] os.walk mentions os.listdir instead of os.scandir

2018-04-02 Thread miss-islington
miss-islington added the comment: New changeset f6d1d65803f290dfe14048f17d8125f8093a61ec by Miss Islington (bot) in branch '3.7': closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335) https://github.com/python/cpython/commit/f6d1d65803f290dfe14048f17d8125f8093a61

[issue33162] TimedRotatingFileHandler in logging module

2018-04-02 Thread Vinay Sajip
Vinay Sajip added the comment: You can already roll your own, see https://docs.python.org/3/library/logging.handlers.html#baserotatinghandler -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue33199] PyDict_Copy() can leave 'ma_version_tag' uninitialized

2018-04-02 Thread miss-islington
miss-islington added the comment: New changeset 9a90826c9b64183713ebe5a98ec82423d9cae3ee by Miss Islington (bot) in branch '3.6': bpo-33199: Initialize ma_version_tag in PyDict_Copy (GH-6341) https://github.com/python/cpython/commit/9a90826c9b64183713ebe5a98ec82423d9cae3ee -- __

[issue33199] PyDict_Copy() can leave 'ma_version_tag' uninitialized

2018-04-02 Thread miss-islington
miss-islington added the comment: New changeset de755129a7a14cb3bee89aa256ca2e4a9a6605ce by Miss Islington (bot) in branch '3.7': bpo-33199: Initialize ma_version_tag in PyDict_Copy (GH-6341) https://github.com/python/cpython/commit/de755129a7a14cb3bee89aa256ca2e4a9a6605ce -- nosy: +

[issue33202] os.walk mentions os.listdir instead of os.scandir

2018-04-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6071 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33202] os.walk mentions os.listdir instead of os.scandir

2018-04-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6070 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33202] os.walk mentions os.listdir instead of os.scandir

2018-04-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset badb8948aaa8b669c4a6f675a0bc7d98e188 by Benjamin Peterson (Andrés Delfino) in branch 'master': closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335) https://github.com/python/cpython/commit/badb8948aaa8b6

[issue33199] PyDict_Copy() can leave 'ma_version_tag' uninitialized

2018-04-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6069 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33199] PyDict_Copy() can leave 'ma_version_tag' uninitialized

2018-04-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6068 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33199] PyDict_Copy() can leave 'ma_version_tag' uninitialized

2018-04-02 Thread INADA Naoki
INADA Naoki added the comment: New changeset d1c82c5cc7be0c21dddf86fd19c1702f6218459b by INADA Naoki in branch 'master': bpo-33199: Initialize ma_version_tag in PyDict_Copy (GH-6341) https://github.com/python/cpython/commit/d1c82c5cc7be0c21dddf86fd19c1702f6218459b -- ___

[issue33210] pkgutil.walk_packages gives incomplete results

2018-04-02 Thread Cyker Way
New submission from Cyker Way : The current implementation of `pkgutil.walk_packages()` is confusing. Users may be given incomplete results while no exception is raised if they don't explicitly provide the `prefix` parameter. The doc says: > prefix is a string to output on the front of every

[issue33200] Optimize the empty set "literal"

2018-04-02 Thread Josh Rosenberg
Josh Rosenberg added the comment: I may have immediately latched onto this, dubbing it the "one-eyed monkey operator", the moment the generalized unpacking released. I always hated the lack of an empty set literal, and enjoyed having this exist just to fill that asymmetry with the other built

[issue30416] constant folding opens compiler to quadratic time hashing

2018-04-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: We should revert the breaking 2.7 changes. On Sun, Mar 25, 2018, at 13:59, Gregory P. Smith wrote: > > Change by Gregory P. Smith : > > > -- > assignee: -> benjamin.peterson > > ___ > Python tracker >

[issue31814] subprocess_fork_exec more stable with vfork

2018-04-02 Thread Łukasz Langa
Change by Łukasz Langa : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33209] Repeated Pickler.dump() doesn't reset the state in the C implementation of pickle

2018-04-02 Thread Łukasz Langa
Change by Łukasz Langa : -- keywords: +patch pull_requests: +6067 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue23403] Use pickle protocol 4 by default?

2018-04-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Repeated Pickler.dump() doesn't reset the state in the C implementation of pickle superseder: parameterize what serialization is used in multiprocessing -> ___ Python tracker

[issue33209] Repeated Pickler.dump() doesn't reset the state in the C implementation of pickle

2018-04-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : test_clear_pickler_memo tested only the default protocol and fails when bump the default protocol to 4. For some reasons C implementation writes FRAME before PROTO when call Pickler.dump() repeatedly. Python implementation: b'\x80\x04\x95\x13\x00\x00\x00\

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-04-02 Thread wwq
wwq added the comment: And in python365.chm, also had some non ascii chars can not display. -- Added file: https://bugs.python.org/file47515/QQ截图20180403090715.png ___ Python tracker _

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-04-02 Thread wwq
wwq added the comment: In python365.chm, it loss the style in any page but can show in IE. -- Added file: https://bugs.python.org/file47514/QQ截图20180403085952.png ___ Python tracker __

[issue31814] subprocess_fork_exec more stable with vfork

2018-04-02 Thread Łukasz Langa
Łukasz Langa added the comment: Greg, the flip side is that now any Python user is at the mercy of third-party library providers to do the right thing in terms of pthread_atfork(). It won't always be feasible for the user to influence the third party to fix the problem. You're right that vfor

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

2018-04-02 Thread Ned Deily
Ned Deily added the comment: https://www.python.org/ftp/python/doc/3.5.0/ now contains copies of the 3.5.0 final downloadable docs and no longer contains any pre-release versions. Thanks everyone! -- resolution: -> fixed stage: -> resolved status: open -> closed __

[issue23403] Use pickle protocol 4 by default?

2018-04-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should we bump the pickle protocol for shelve? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue33207] typing.Generic does not correctly call super().__init_subclass__

2018-04-02 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +6066 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue23403] Use pickle protocol 4 by default?

2018-04-02 Thread Łukasz Langa
Change by Łukasz Langa : -- keywords: +patch pull_requests: +6064 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue23403] Use pickle protocol 4 by default?

2018-04-02 Thread Łukasz Langa
Change by Łukasz Langa : -- keywords: +patch, patch pull_requests: +6064, 6065 stage: -> patch review ___ Python tracker ___ ___ Pyt

[issue23403] Use pickle protocol 4 by default?

2018-04-02 Thread Łukasz Langa
Łukasz Langa added the comment: Now that Python 3.3 is dead and 3.4 is soon to follow, it's safe to bump DEFAULT_PROTOCOL to 4. -- assignee: -> lukasz.langa resolution: duplicate -> status: closed -> open ___ Python tracker

[issue23403] Use pickle protocol 4 by default?

2018-04-02 Thread Łukasz Langa
Change by Łukasz Langa : -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33203] random.choice: raise IndexError on empty sequence even when not using getrandbits internally

2018-04-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll mull this over for while. There is some merit in getting the various components to fit together more uniformly. There's also the option of having choice() catch either a ZeroDivisionError or ValueError. -- __

[issue29922] error message when __aexit__ is not async

2018-04-02 Thread Yury Selivanov
Yury Selivanov added the comment: 3.5 is in security fixes only, so don't bother. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue29922] error message when __aexit__ is not async

2018-04-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be hard to backport this to 3.5. Wordcode allows scanning back. -- ___ Python tracker ___ _

[issue33203] random.choice: raise IndexError on empty sequence even when not using getrandbits internally

2018-04-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, it was intended that the error checking (when required) occur at higher levels in the API rather than in the inner-most non-public utility function. Some calls to _randbelow cannot be zero or negative, so they shouldn't have to pay an penalty for th

[issue29922] error message when __aexit__ is not async

2018-04-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6063 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29922] error message when __aexit__ is not async

2018-04-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6062 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29922] error message when __aexit__ is not async

2018-04-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a68f2f0578bbf812fa2264d0e0bb388340d6e230 by Serhiy Storchaka in branch 'master': bpo-29922: Improve error messages in 'async with' (GH-6352) https://github.com/python/cpython/commit/a68f2f0578bbf812fa2264d0e0bb388340d6e230 -- ___

[issue23403] Use pickle protocol 4 by default?

2018-04-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33203] random.choice: raise IndexError on empty sequence even when not using getrandbits internally

2018-04-02 Thread Michael Selik
Michael Selik added the comment: If you're going to tackle this problem, this should probably be solved for the general case of n <= 0 rather than just n == 0. In [1]: import random In [2]: class Random(random.Random): ...: def random(self): ...: return super().random()

[issue29922] error message when __aexit__ is not async

2018-04-02 Thread Ned Deily
Ned Deily added the comment: > Can we backport it to 3.6 too? I suppose so. (Though you'll owe me if you break anything.) -- versions: +Python 3.6 ___ Python tracker ___

[issue29922] error message when __aexit__ is not async

2018-04-02 Thread Yury Selivanov
Yury Selivanov added the comment: > PR 6352 smells like a bug fix to me and I think it should be OK for 3.7.0b4. Can we backport it to 3.6 too? -- ___ Python tracker ___ _

[issue33206] Windows inet_pton(socket.AF_INET6, 'localhost') raises ValueError instead of socket.error

2018-04-02 Thread Vitaly Kruglikov
Vitaly Kruglikov added the comment: Indeed, confirmed no `inet_pton()` on Windows in Python 2.7 :(. -- ___ Python tracker ___ ___ Py

[issue29922] error message when __aexit__ is not async

2018-04-02 Thread Ned Deily
Ned Deily added the comment: PR 6352 smells like a bug fix to me and I think it should be OK for 3.7.0b4. -- versions: +Python 3.7 ___ Python tracker ___ __

[issue33208] Lib2to3 grammar.txt error

2018-04-02 Thread Lukasz
Change by Lukasz : -- components: +IO type: -> crash versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33208] Lib2to3 grammar.txt error

2018-04-02 Thread Lukasz
New submission from Lukasz : Hello I have problem with script Im am totaly beginner in python I'm using Qpython ( python 2.7 on android) So this is my error: /data/user/0/org.qpython.qpy/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts/InstaPy-master/quickstart.py" && exit

[issue32162] typing.Generic breaks __init_subclass__

2018-04-02 Thread Will T
Will T added the comment: Done: https://bugs.python.org/issue33207 - thanks for the quick response! -- ___ Python tracker ___ ___ Py

[issue33207] typing.Generic does not correctly call super().__init_subclass__

2018-04-02 Thread Ned Deily
Change by Ned Deily : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue33207] typing.Generic does not correctly call super().__init_subclass__

2018-04-02 Thread Will T
New submission from Will T : Per the docs ( https://docs.python.org/3/reference/datamodel.html#object.__init_subclass__ ) this should be chain-calling super but currently doesn't, and thus breaks base classes listed after it which depend on this functionality. Attached a test for a real-world

[issue29922] error message when __aexit__ is not async

2018-04-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue looks unrelated to issue25538. PR 6352 improves error messages without changing bytecode. It is so simple that could be backported to 3.7 if Ned approves this. But it conflicts with issue32949. This way will not work after merging any of current

[issue29922] error message when __aexit__ is not async

2018-04-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6061 stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue20104] expose posix_spawn(p)

2018-04-02 Thread Ned Deily
Ned Deily added the comment: Thanks for adding the doc updates. There are a few rendering issues: https://docs.python.org/3.7/library/os.html#os.posix_spawn -- ___ Python tracker __

[issue32162] typing.Generic breaks __init_subclass__

2018-04-02 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Thanks Will! I think this is actually a different (although very similar issue). It looks like it is easy to fix. Could you please open a separate issue (and mention it here)? Also could you please provide a typical example when this breaks so that I can ad

[issue32162] typing.Generic breaks __init_subclass__

2018-04-02 Thread Will T
Will T added the comment: I believe I'm experiencing a related bug in the new (3.7) version unfortunately. The current version of typing.Generic.__init_subclass__ isn't chaining to super(Generic, cls).__init_subclass__, meaning Generic's position in class bases can prevent subsequent bases fr

[issue33162] TimedRotatingFileHandler in logging module

2018-04-02 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue32216] Document PEP 557 Data Classes (dataclasses module)

2018-04-02 Thread Lino Mastrodomenico
Lino Mastrodomenico added the comment: Friendly ping, there's still no documentation for this wonderful new module and there's only one planned beta left for 3.7 before the release candidates. Needless to say, https://www.python.org/dev/peps/pep-0557/ has lots of information that could be a s

[issue33206] Windows inet_pton(socket.AF_INET6, 'localhost') raises ValueError instead of socket.error

2018-04-02 Thread Vitaly Kruglikov
Vitaly Kruglikov added the comment: Zachary, thank you for noticing that Twisted is involved. inet_pton definitely exists on Windows 2.7.14, but it turns out that Twisted monkey-patches it if `socket.inet_pton(socket.AF_INET6, "::")` fails. Aha! - but this suggests that Window's Python 2.7.14

[issue32861] urllib.robotparser: incomplete __str__ methods

2018-04-02 Thread Senthil Kumaran
Senthil Kumaran added the comment: > But two unnecessary trailing newlines should be kept for compatibility in > maintained versions. Yup, that sounds good to me. It doesn't seem like any RFC requirements. It's just kept for the compatibility and we can do away with it in 3.8 -- ___

[issue33206] Windows inet_pton(socket.AF_INET6, 'localhost') raises ValueError instead of socket.error

2018-04-02 Thread Zachary Ware
Zachary Ware added the comment: Your traceback seems to include both pika and twisted, and as best I can tell, `socket.inet_pton` does not exist on Windows in Python 2.7. If I've diagnosed this incorrectly, please reopen the ticket with a reproducer that does not depend on pika or twisted.

[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2018-04-02 Thread Guido van Rossum
Guido van Rossum added the comment: That's rather disturbing, and none of that is reflected in the zipimport docs. Is there at least a bpo issue about it? I may be the last person in the world to still recommend putting a zipfile on sys.path -- I used to believe it's faster than directory sea

[issue30760] configparse module in python3 can not write '%' to config file

2018-04-02 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2018-04-02 Thread Łukasz Langa
Łukasz Langa added the comment: In the context of this issue: zipimport doesn't properly lock on imports happening in multiple threads at the same time. This causes one thread to receive a partially imported module while the other thread is still performing the import. zipimport also doesn't

[issue32380] functools.singledispatch interacts poorly with methods

2018-04-02 Thread Łukasz Langa
Łukasz Langa added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue27212] Doc for itertools, 'islice()' implementation have unwanted behavior for recipe 'consume()'

2018-04-02 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks! :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33206] Windows inet_pton(socket.AF_INET6, 'localhost') raises ValueError instead of socket.error

2018-04-02 Thread Vitaly Kruglikov
Vitaly Kruglikov added the comment: This behavior goes against the socket documentation https://docs.python.org/2/library/socket.html which states "Supported values for address_family are currently AF_INET and AF_INET6. If the IP address string ip_string is invalid, *socket.error* will be rai

[issue33206] Windows inet_pton(socket.AF_INET6, 'localhost') raises ValueError instead of socket.error

2018-04-02 Thread Vitaly Kruglikov
Change by Vitaly Kruglikov : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33206] Windows inet_pton(socket.AF_INET6, 'localhost') raises ValueError instead of socket.error

2018-04-02 Thread Vitaly Kruglikov
New submission from Vitaly Kruglikov : I am seeing this with `socket.AF_INET6` on Windows running python 2.7.14 ``` [00:02:33] File "C:\projects\pika\pika\adapters\host_tcp_connector.py", line 153, in _check_already_resolved [00:02:33] socket.inet_pton(socket.AF_INET6, 'localhost') [00:02:

[issue33204] IDLE: remove \b from colorizer string prefix

2018-04-02 Thread miss-islington
miss-islington added the comment: New changeset 306559e6ca15b86eb230609f484f48132b7ca383 by Miss Islington (bot) in branch '3.6': bpo-33204: IDLE - revise and extend colorizer test. (GH-6347) https://github.com/python/cpython/commit/306559e6ca15b86eb230609f484f48132b7ca383 -- __

[issue33205] GROWTH_RATE prevents dict shrinking

2018-04-02 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +6060 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33204] IDLE: remove \b from colorizer string prefix

2018-04-02 Thread miss-islington
miss-islington added the comment: New changeset fa91aff07c16ad48a63580c2909934be92a5e9c8 by Miss Islington (bot) in branch '3.7': bpo-33204: IDLE - revise and extend colorizer test. (GH-6347) https://github.com/python/cpython/commit/fa91aff07c16ad48a63580c2909934be92a5e9c8 -- __

[issue33204] IDLE: remove \b from colorizer string prefix

2018-04-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6059 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33204] IDLE: remove \b from colorizer string prefix

2018-04-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6058 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33204] IDLE: remove \b from colorizer string prefix

2018-04-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 55966f3a0d5f1bf823bd22ce1abbde267b06552f by Terry Jan Reedy in branch 'master': bpo-33204: IDLE - revise and extend colorizer test. (GH-6347) https://github.com/python/cpython/commit/55966f3a0d5f1bf823bd22ce1abbde267b06552f --

[issue33204] IDLE: remove \b from colorizer string prefix

2018-04-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +6057 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33204] IDLE: remove \b from colorizer string prefix

2018-04-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, still correct, as a keyword. Legal "x or''" is colored as "x" "or" "''" . Legal "if'':" is colored as "if" "''" ":" ". New PR revises colorizer test and add the above. -- ___ Python tracker

[issue15088] PyGen_NeedsFinalizing is public, but undocumented

2018-04-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think https://searchcode.com/ may have a larger indexing base than GitHub alone. And, yes, you'll see many duplicates of the CPython source code... Visual inspection may be needed :-/ -- ___ Python tracker

[issue15088] PyGen_NeedsFinalizing is public, but undocumented

2018-04-02 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks Antoine. Do you have a good way for searching third party projects? I searched on Github and I'm getting a lot of references to the CPython filenames. I don't know how to check if anyone is making calls to the function. But, maybe that's the point

[issue33205] GROWTH_RATE prevents dict shrinking

2018-04-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue33205] GROWTH_RATE prevents dict shrinking

2018-04-02 Thread INADA Naoki
INADA Naoki added the comment: # cap2.json is master (used*2 + dk_size/2) # used3.json is patched (used*3) $ ./python-master -m perf compare_to cap2.json used3.json -G Slower (2): - rand_access(size=20): 2.67 ms +- 0.01 ms -> 2.80 ms +- 0.04 ms: 1.05x slower (+5%) - rand_access(size=10): 2.70

[issue32623] Resize dict on del/pop

2018-04-02 Thread INADA Naoki
Change by INADA Naoki : -- dependencies: +GROWTH_RATE prevents dict shrinking ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue33205] GROWTH_RATE prevents dict shrinking

2018-04-02 Thread INADA Naoki
New submission from INADA Naoki : GROWTH_RATE is changed from (used*2) to (used*2 + dk_size/2) in #17563, at Python 3.4. It was for avoid resizing dict for massive del/insert use case, by increasing possibility of overwriting DUMMY entry. >From Python 3.6, there are no DUMMY entry. While ther

[issue33204] IDLE: remove \b from colorizer string prefix

2018-04-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is ''or'' correctly colorized? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs