[issue28331] "CPython implementation detail:" removed when content translated

2017-02-20 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +162 ___ Python tracker <http://bugs.python.org/issue28331> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24274] erroneous comments in dictobject.c

2017-02-20 Thread INADA Naoki
INADA Naoki added the comment: https://github.com/python/cpython/pull/194#issuecomment-281054701 Xiang Zhang found Python 3.6+ have similar issue. -- versions: +Python 3.6, Python 3.7 ___ Python tracker <http://bugs.python.org/issue24

[issue24274] erroneous comments in dictobject.c

2017-02-20 Thread INADA Naoki
INADA Naoki added the comment: New changeset 66fa9d4205e0da672ed19a397069281a4b177af4 by GitHub in branch '3.5': bpo-24274: fix comment in dictobject.c (GH-194) https://github.com/python/cpython/commit/66fa9d4205e0da672ed19a39706928

[issue24274] erroneous comments in dictobject.c

2017-02-20 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +163 ___ Python tracker <http://bugs.python.org/issue24274> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25617] Installing local installation of Python

2017-02-20 Thread INADA Naoki
INADA Naoki added the comment: close this issue because lack of information. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue26382] List object memory allocator

2017-02-20 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue26382> ___ ___

[issue29509] redundant interning in PyObject_GetAttrString

2017-02-20 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +164 ___ Python tracker <http://bugs.python.org/issue29509> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15216] Support setting the encoding on a text stream after creation

2017-02-20 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +166 ___ Python tracker <http://bugs.python.org/issue15216> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24274] erroneous comments in dictobject.c

2017-02-20 Thread INADA Naoki
INADA Naoki added the comment: New changeset 1b8df107f867fb05ff39ebee7c55f0a907e7ad5f by GitHub in branch 'master': bpo-24274: fix erroneous comment in dictobject.c (GH-196) https://github.com/python/cpython/commit/1b8df107f867fb05ff39ebee7c55f0

[issue24274] erroneous comments in dictobject.c

2017-02-20 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +167 ___ Python tracker <http://bugs.python.org/issue24274> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24274] erroneous comments in dictobject.c

2017-02-20 Thread INADA Naoki
INADA Naoki added the comment: New changeset ce552e2d5c4ff90218fb41847e8ffb1fd3ba3b2d by GitHub in branch '3.6': bpo-24274: fix erroneous comment in dictobject.c (GH-200) https://github.com/python/cpython/commit/ce552e2d5c4ff90218fb41847e8ffb

[issue24274] erroneous comments in dictobject.c

2017-02-20 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue29165] Use forward compatible macro in example code for creating new type

2017-02-20 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +179 ___ Python tracker <http://bugs.python.org/issue29165> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29575] your closing of issue29575

2017-02-21 Thread INADA Naoki
INADA Naoki added the comment: I like current, minimum example to describe API. No need to make it complex only for checking it's really executed in parallel. Adding more and more "may be useful for someone" code in the doc make the document long, hard and tedious to re

[issue24340] co_stacksize estimate can be highly off

2017-02-21 Thread INADA Naoki
Changes by INADA Naoki : -- nosy: +inada.naoki ___ Python tracker <http://bugs.python.org/issue24340> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29611] TextIOWrapper's write_through option behave differently between C and pure Python implementation.

2017-02-21 Thread INADA Naoki
New submission from INADA Naoki: In C implementation, write() calls underlaying flush() method when write_through=True. https://github.com/python/cpython/blob/3.6/Modules/_io/textio.c if (self->write_through) text_needflush = 1; if (self->line_buffering &&

[issue29165] Use forward compatible macro in example code for creating new type

2017-02-21 Thread INADA Naoki
INADA Naoki added the comment: > but the code with PyObject_HEAD_INIT() doesn't look incompatible with Python > 3. It's incompatible actually. https://github.com/python/cpython/blob/2.7/Include/object.h /* PyObject_HEAD defines the initial segment of every PyObj

[issue29165] Use forward compatible macro in example code for creating new type

2017-02-21 Thread INADA Naoki
INADA Naoki added the comment: New changeset 9436bbd87b7eed18dec4c32f25b88452fe282e1c by GitHub in branch '2.7': bpo-29165: doc: make extending/newtypes more Python 3 friendly (GH-211) https://github.com/python/cpython/commit/9436bbd87b7eed18dec4c32f25b884

[issue29165] Use forward compatible macro in example code for creating new type

2017-02-21 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue29165> ___

[issue29165] Use forward compatible macro in example code for creating new type

2017-02-21 Thread INADA Naoki
INADA Naoki added the comment: > And it seems to me that Doc/includes/shoddy.c in Python 3 is not correct. I created another pull request PR 215. -- ___ Python tracker <http://bugs.python.org/issu

[issue29509] redundant interning in PyObject_GetAttrString

2017-02-21 Thread INADA Naoki
INADA Naoki added the comment: New changeset 3e8d6cb1892377394e4b11819c33fbac728ea9e0 by GitHub in branch 'master': bpo-29509: skip redundant intern (GH-197) https://github.com/python/cpython/commit/3e8d6cb1892377394e4b11819c33fb

[issue29509] redundant interning in PyObject_GetAttrString

2017-02-21 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue29607] Broken stack_effect for CALL_FUNCTION_EX

2017-02-21 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +183 ___ Python tracker <http://bugs.python.org/issue29607> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29607] Broken stack_effect for CALL_FUNCTION_EX

2017-02-21 Thread INADA Naoki
INADA Naoki added the comment: Thanks, Matthieu. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue29607] Broken stack_effect for CALL_FUNCTION_EX

2017-02-21 Thread INADA Naoki
INADA Naoki added the comment: New changeset 3ab24bdd47fdd9d45719ad49f93d3878d4442d7e by GitHub in branch '3.6': bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX (GH-219) https://github.com/python/cpython/commit/3ab24bdd47fdd9d45719ad49f93d3878d4442d7e -

[issue26789] Please do not log during shutdown

2017-02-21 Thread INADA Naoki
INADA Naoki added the comment: I'm -1 on suppress log silently. While error message is bit surprising, Traceback (most recent call last): File "/usr/lib/python3.5/asyncio/tasks.py", line 93, in __del__ File "/usr/lib/python3.5/asyncio/base_events.py", line 1160, i

[issue29614] Additional implementation alternative to DictReader

2017-02-21 Thread INADA Naoki
INADA Naoki added the comment: I don't feel TableReader is really useful. Would you show some realistic example when TableReader is better than normal csv.Reader? -- nosy: +inada.naoki ___ Python tracker <http://bugs.python.org/is

[issue29617] Drop Python 3.4 support from asyncio

2017-02-21 Thread INADA Naoki
New submission from INADA Naoki: asyncio for Python 3.3 has not been released for two years. https://pypi.python.org/pypi/asyncio We have many code in asyncio for support Python 3.3. How about removing them? -- components: asyncio messages: 288332 nosy: gvanrossum, inada.naoki

[issue29617] Drop Python 3.4 support from asyncio

2017-02-21 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +195 ___ Python tracker <http://bugs.python.org/issue29617> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29110] [patch] Fix file object leak in `aifc.open` when given invalid AIFF file.

2017-02-21 Thread INADA Naoki
INADA Naoki added the comment: New changeset 03f68b60e17b57f6f13729ff73245dbb37b30a4c by INADA Naoki in branch 'master': bpo-29110: Fix file object leak in `aifc.open` when given invalid AIFF file. (GH-162) https://github.com/python/cpython/commit/03f68b60e17b57f6f13729ff73245d

[issue29463] Add `docstring` field to AST nodes

2017-02-22 Thread INADA Naoki
INADA Naoki added the comment: OK, let's continue on #29522, and close this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.pyth

[issue29463] Add `docstring` field to AST nodes

2017-02-22 Thread INADA Naoki
INADA Naoki added the comment: s/ #29522 / #29622 / -- ___ Python tracker <http://bugs.python.org/issue29463> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29622] ast module doesn't support optional fields of Parser/Python.asdl

2017-02-22 Thread INADA Naoki
INADA Naoki added the comment: AST type doesn't have any information about optional fields. And I don't know it's worth enough to add it. When AST is instantiated by keyword arguments, there are no check about absence of some fields. I suppose we can just loosen positiona

[issue29622] ast module doesn't support optional fields of Parser/Python.asdl

2017-02-23 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +216 ___ Python tracker <http://bugs.python.org/issue29622> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29622] ast module doesn't support optional fields of Parser/Python.asdl

2017-02-23 Thread INADA Naoki
INADA Naoki added the comment: Now trailing optional fields are optional arguments of AST type. -- ___ Python tracker <http://bugs.python.org/issue29622> ___ ___

[issue29622] ast module doesn't support optional fields of Parser/Python.asdl

2017-02-23 Thread INADA Naoki
INADA Naoki added the comment: @mbussonn With PR 249, "import os" and "%timeit" works fine. -- ___ Python tracker <http://bugs.python.org/issue29622> ___ _

[issue29622] ast module doesn't support optional fields of Parser/Python.asdl

2017-02-23 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue29622> ___

[issue29637] ast.get_docstring(): AttributeError: 'NoneType' object has no attribute 'expandtabs'

2017-02-25 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue29637> ___

[issue29110] [patch] Fix file object leak in `aifc.open` when given invalid AIFF file.

2017-02-25 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +263 ___ Python tracker <http://bugs.python.org/issue29110> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28663] Higher virtual memory usage on recent Linux versions

2017-02-25 Thread INADA Naoki
INADA Naoki added the comment: I close this issue, because there are no enough evidence it's Python's issue. When hit ulimit is just a OS's detail. Please ping or file a new issue when memory usage is really grown. -- resolution: -> not a bug stage: ->

[issue29110] [patch] Fix file object leak in `aifc.open` when given invalid AIFF file.

2017-02-26 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +271 ___ Python tracker <http://bugs.python.org/issue29110> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29110] [patch] Fix file object leak in `aifc.open` when given invalid AIFF file.

2017-02-26 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +272 ___ Python tracker <http://bugs.python.org/issue29110> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29110] [patch] Fix file object leak in `aifc.open` when given invalid AIFF file.

2017-02-26 Thread INADA Naoki
INADA Naoki added the comment: Anyone mind Python 2.7? Since Python 2.7 doesn't have mock and check_no_resource_warning context manager, I can't cherry-pick easily. Backporting is bother to me, and the issue doesn't seem so critical. Can I just c

[issue29642] Why does unittest.TestLoader.discover still rely on existence of __init__.py files?

2017-02-27 Thread INADA Naoki
INADA Naoki added the comment: I'm afraid this change makes testloader searches unrelated directory contains massive files (like node_modules). I don't think loading all tests from whole namespace package is not usual use case. -- nosy: +i

[issue29642] Why does unittest.TestLoader.discover still rely on existence of __init__.py files?

2017-02-27 Thread INADA Naoki
INADA Naoki added the comment: When using import, (namespace) package name is explicitly specified. Only specified name is searched. In test loader's case, there are no such limit. Loader may search millions of completely unrelated directories. It may include directories in NFS or samba

[issue29110] [patch] Fix file object leak in `aifc.open` when given invalid AIFF file.

2017-02-28 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +303 ___ Python tracker <http://bugs.python.org/issue29110> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29110] [patch] Fix file object leak in `aifc.open` when given invalid AIFF file.

2017-02-28 Thread INADA Naoki
INADA Naoki added the comment: OK, since Aifc_write is harder to test, and the exception is very unlikely happens, I fixed only Aifc_read. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29110] [patch] Fix file object leak in `aifc.open` when given invalid AIFF file.

2017-02-28 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue29676] verbose output of test_cprofile

2017-02-28 Thread INADA Naoki
INADA Naoki added the comment: thanks. for summary, notable changes are: (print_callers) +{method 'append' of 'list' objects} <- 40.0000.000 profilee.py:73(helper1) Stats.print_callees output for Profile doesn't fit expectation! and

[issue29684] Minor regression in PyEval_CallObjectWithKeywords()

2017-03-01 Thread INADA Naoki
New submission from INADA Naoki: This issue is spin off issue29548. PyEval_CallObjectWithKeywords(PyObject *func, PyObject *args, PyObject *kwargs) should raise TypeError when kwargs is not dict. But after this commit [1], assert(PyDict_Check(kwargs)) can be called when args==NULL. [1] https

[issue29684] Minor regression in PyEval_CallObjectWithKeywords()

2017-03-01 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +314 ___ Python tracker <http://bugs.python.org/issue29684> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29684] Minor regression in PyEval_CallObjectWithKeywords()

2017-03-01 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +317 ___ Python tracker <http://bugs.python.org/issue29684> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24665] CJK support for textwrap

2017-03-02 Thread INADA Naoki
INADA Naoki added the comment: See also http://www.unicode.org/reports/tr29/ http://www.unicode.org/reports/tr14/ -- ___ Python tracker <http://bugs.python.org/issue24

[issue27350] Compact and ordered dict

2016-06-18 Thread INADA Naoki
New submission from INADA Naoki: I've implemented compact ordered dictionary, introduced in PyPy blog [1]. To finish my work, I really need core developer's help. Please see TODO comment in the patch. [1]: https://morepypy.blogspot.jp/2015/01/faster-more-memory-efficient-and-more

[issue27350] Compact and ordered dict

2016-06-18 Thread INADA Naoki
Changes by INADA Naoki : -- type: -> resource usage ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue27350] Compact and ordered dict

2016-06-18 Thread INADA Naoki
INADA Naoki added the comment: >> How to support sizeof(Py_ssize_t) == 4? >#if SIZEOF_VOID_P == 4 Thanks! >> Can I use int8_t, int16_t and int32_t > You can use PY_INT32_T for 32-bit signed integers, short for 16-bit signed > integers (if SIZEOF_SHORT == 2) and signed

[issue27350] Compact and ordered dict

2016-06-18 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43465/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue27350] Compact and ordered dict

2016-06-19 Thread INADA Naoki
INADA Naoki added the comment: Make sense! I did it. -- Added file: http://bugs.python.org/file43467/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27

[issue27350] Compact and ordered dict

2016-06-19 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43472/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue27350] Compact and ordered dict

2016-06-19 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43480/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue27350] Compact and ordered dict

2016-06-20 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43484/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue27350] Compact and ordered dict

2016-06-21 Thread INADA Naoki
INADA Naoki added the comment: As I posted to python-dev ML, this compact ordered dict doesn't keep insertion order for key-shared dict. >>> class A: ... ... ... >>> a = A() >>> b = A() >>> a.a = 1 >>> a.b = 2 >>> b.b = 3 >&

[issue27350] Compact and ordered dict

2016-06-22 Thread INADA Naoki
INADA Naoki added the comment: Thank you, mark. I've added PY_INT16_T and PY_UINT16_T for windows, too. https://github.com/methane/cpython/pull/1/commits/dfaa44c051b2dbf580701729944cd0fda00cb541 https://github.com/methane/cpython/pull/1/commits/af80dc27dd381af9d211792963a23c5cecfa7009

[issue27350] Compact and ordered dict

2016-06-22 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43509/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue27350] Compact and ordered dict

2016-06-22 Thread INADA Naoki
INADA Naoki added the comment: FYI, bench result of USABLE_FRACTION(n) = (n/2): Report on Linux ip-10-0-1-249 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 Total CPU cores: 2 +--+-++--++ | Benchmark

[issue27350] Compact and ordered dict

2016-06-23 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43520/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue27350] Compact and ordered dict

2016-06-26 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43542/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue27350] Compact and ordered dict

2016-06-27 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43558/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue27350] Compact and ordered dict

2016-06-27 Thread INADA Naoki
INADA Naoki added the comment: Last patch I've posted implements "strict ordering rule" on key sharing dict. * Insertion order should be strictly equal to order in shared key. If insertion position is not equal to ma_used, convert it to combined form. * Deleting from

[issue27350] Compact and ordered dict

2016-06-27 Thread INADA Naoki
INADA Naoki added the comment: And Python benchmark result is here. https://gist.github.com/methane/e7a2ae389ca13905508905f5fa4ad46c pickup --- ### call_method_slots ### Min: 0.282221 -> 0.266215: 1.06x faster Avg: 0.282379 -> 0.266448: 1.06x faster Significant (t=780.35) Stddev: 0

[issue27350] Compact and ordered dict

2016-06-28 Thread INADA Naoki
INADA Naoki added the comment: Anyone can review this by Python 3.6a3 ? -- ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list mailin

[issue27424] Failures in test.test_logging

2016-07-01 Thread INADA Naoki
INADA Naoki added the comment: Maybe, `socket.getfqdn()` returns non-ASCII string in your environment. smtpd.py has `-u` option which enables utf-8 support. smtpd.SMTPServer has enable_SMTPUTF8 option. test_logging.TestSMTPServer should enable this option. Could you test adding

[issue26110] Speedup method calls 1.2x

2016-07-01 Thread INADA Naoki
INADA Naoki added the comment: Updated, based on 102241:908b801f8a62 -- nosy: +naoki Added file: http://bugs.python.org/file43599/call_method_2.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26110] Speedup method calls 1.2x

2016-07-01 Thread INADA Naoki
INADA Naoki added the comment: Oops, previous patch doesn't update magic number in PC/launcher.c Should I update it? Or don't touch it to avoid additional conflicts? -- Added file: http://bugs.python.org/file43601/call_method_3.patch

[issue27454] PyUnicode_InternInPlace can use PyDict_SetDefault

2016-07-05 Thread INADA Naoki
New submission from INADA Naoki: PyDict_SetDefault() was added Python 3.4 Currently, PyUnicode_InternInPlace() uses PyDict_GetItem, and PyDict_SetItem if no item found. It can be replaced PyDict_SetDefault() easily. -- components: Interpreter Core files: intern-setdefault.patch

[issue27454] PyUnicode_InternInPlace can use PyDict_SetDefault

2016-07-05 Thread INADA Naoki
INADA Naoki added the comment: Thank you for pointing it out. That comment seems useless when removing PyDict_GetItem(). So I removed it. -- Added file: http://bugs.python.org/file43634/intern-setdefault2.patch ___ Python tracker <h

[issue26081] Implement asyncio Future in C to improve performance

2016-07-09 Thread INADA Naoki
INADA Naoki added the comment: I'm working on this. Some bugs are fixed, but doesn't pass tests for now. https://github.com/methane/cpython/pull/5 -- nosy: +methane ___ Python tracker <http://bugs.python.o

[issue26081] Implement asyncio Future in C to improve performance

2016-07-09 Thread INADA Naoki
INADA Naoki added the comment: Passing all tests now. Yury, could you explain what the comment "This isn't a Future class; it's a BaseFuture" means? Should it be "_futures.Future" or "_futures.BaseFuture"? -- _

[issue26081] Implement asyncio Future in C to improve performance

2016-07-09 Thread INADA Naoki
INADA Naoki added the comment: Should I send pull request to github.com/python/asyncio? Or should I post patch here? -- ___ Python tracker <http://bugs.python.org/issue26

[issue26081] Implement asyncio Future in C to improve performance

2016-07-09 Thread INADA Naoki
INADA Naoki added the comment: OK. Here is current version. -- Added file: http://bugs.python.org/file43670/futures.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26081] Implement asyncio Future in C to improve performance

2016-07-11 Thread INADA Naoki
INADA Naoki added the comment: In my patch, test_asyncio runs against C version Future. I saw how test_json tests against C version and pure Python version. But test_asyncio is more larger than test_json. Before working on it, could someone give me idea to run whole test_asyncio with and

[issue26081] Implement asyncio Future in C to improve performance

2016-07-11 Thread INADA Naoki
INADA Naoki added the comment: Thanks. I'll working on test_asyncio in next few days. -- ___ Python tracker <http://bugs.python.org/issue26081> ___ ___ Pytho

[issue26081] Implement asyncio Future in C to improve performance

2016-07-12 Thread INADA Naoki
INADA Naoki added the comment: > asyncio uses loop.create_future() to create sockets. I'd suggest you to > create two base test classes: one that monkeypatches loop.create_future to > return pure python Future in its setUp method; an another, that makes > create_future to r

[issue27622] int.to_bytes(): docstring is not precise

2016-07-25 Thread INADA Naoki
INADA Naoki added the comment: docstring says: The integer is represented using length bytes. An OverflowError is raised if the integer is not representable with the given number of bytes. (Python 3.5.2) -- nosy: +methane ___ Python tracker <h

[issue27622] int.to_bytes(): docstring is not precise

2016-07-26 Thread INADA Naoki
INADA Naoki added the comment: @mmarkk Do you read full docstring? It's documented very clearly. --- int.to_bytes(length, byteorder, *, signed=False) -> bytes Return an array of bytes representing an integer. The integer is represented using length bytes. An OverflowError is raise

[issue27671] FAQ: len() is still function for good reason.

2016-08-03 Thread INADA Naoki
New submission from INADA Naoki: https://docs.python.org/3/faq/design.html#why-does-python-use-methods-for-some-functionality-e-g-list-index-but-functions-for-other-e-g-len-list > The major reason is history. ... > but it’s a part of Python, and it’s too late to make such fundamental c

[issue27350] Compact and ordered dict

2016-08-06 Thread INADA Naoki
INADA Naoki added the comment: ping -- ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue27704] bytes(x) is slow when x is bytearray

2016-08-07 Thread INADA Naoki
New submission from INADA Naoki: When bytes(x), bytes_new checks if x is integer via PyNumber_AsSize_t(x). It cause TypeError internally. When x is not an integer, especially bytearray or memoryview, the internal exception cause significant overhead. # HEAD $ ./python -m timeit -s '

[issue27350] Compact and ordered dict

2016-08-07 Thread INADA Naoki
INADA Naoki added the comment: I see, and I'm sorry about that. -- ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue26081] Implement asyncio Future in C to improve performance

2016-08-09 Thread INADA Naoki
INADA Naoki added the comment: Yury, could you review this before 3.6a4? -- ___ Python tracker <http://bugs.python.org/issue26081> ___ ___ Python-bugs-list mailin

[issue27704] bytes(x) is slow when x is bytearray

2016-08-09 Thread INADA Naoki
INADA Naoki added the comment: Thanks for comments. -- Added file: http://bugs.python.org/file44059/fast-bytearray-fromobject.patch ___ Python tracker <http://bugs.python.org/issue27

[issue26081] Implement asyncio Future in C to improve performance

2016-08-10 Thread INADA Naoki
INADA Naoki added the comment: > Left a couple of comments; the important one -- Future.__await__ (and > Future.__iter__) should always return a *new* instance of a generator-like > object (tied to the Future object). Implementing full behavior of generator seems difficult to

[issue26081] Implement asyncio Future in C to improve performance

2016-08-11 Thread INADA Naoki
INADA Naoki added the comment: Implemented FutureIter -- Added file: http://bugs.python.org/file44081/futures.patch ___ Python tracker <http://bugs.python.org/issue26

[issue27350] Compact and ordered dict

2016-08-12 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file44086/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue27350] Compact and ordered dict

2016-08-14 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file44110/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue27350] Compact and ordered dict

2016-08-23 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file44194/compact-dict.patch ___ Python tracker <http://bugs.python.org/issue27350> ___ ___ Python-bugs-list m

[issue26081] Implement asyncio Future in C to improve performance

2016-08-27 Thread INADA Naoki
INADA Naoki added the comment: There are only two weeks until 3.6 beta. Yury, could you review this again? Or should I implement freelist before review? Implementing freelist may be easy, but measuring the effect of freelist from realistic application is not easy

[issue27350] Compact and ordered dict

2016-08-29 Thread INADA Naoki
Changes by INADA Naoki : Added file: https://bugs.python.org/file44259/compact-dict.patch ___ Python tracker <https://bugs.python.org/issue27350> ___ ___ Python-bug

[issue27350] Compact and ordered dict

2016-08-30 Thread INADA Naoki
Changes by INADA Naoki : Added file: https://bugs.python.org/file44267/compact-dict.patch ___ Python tracker <https://bugs.python.org/issue27350> ___ ___ Python-bug

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2013-04-04 Thread INADA Naoki
Changes by INADA Naoki : -- nosy: +naoki ___ Python tracker <http://bugs.python.org/issue17636> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    23   24   25   26   27   28   29   30   31   >