This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2016年12月10日 06:20 by xiang.zhang, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| Makefile-bytes-methods.patch | xiang.zhang, 2016年12月10日 07:17 | review | ||
| Makefile-bytes-methods-v2.patch | xiang.zhang, 2016年12月10日 10:43 | review | ||
| Messages (7) | |||
|---|---|---|---|
| msg282832 - (view) | Author: Xiang Zhang (xiang.zhang) * (Python committer) | Date: 2016年12月10日 06:20 | |
bytes_methods.c includes files in stringlib, for example, stringlib/count.h. But if count.h changes, simply running make won't recompile bytes_methods.c and the methods of bytes remain unchanged. You have to make distclean and compile from scratch. |
|||
| msg282833 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2016年12月10日 06:32 | |
Needed a rule in Makefile. |
|||
| msg282835 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2016年12月10日 07:46 | |
LGTM. But be aware of possible differences in 3.5. Alternatively just BYTESTR_DEPS can be used instead of BYTESMETHODS_DEPS. This would make easier moving implementations between bytesobject.c and bytes_methods.c. |
|||
| msg282846 - (view) | Author: Xiang Zhang (xiang.zhang) * (Python committer) | Date: 2016年12月10日 10:43 | |
> Alternatively just BYTESTR_DEPS can be used instead of BYTESMETHODS_DEPS. This would make easier moving implementations between bytesobject.c and bytes_methods.c. Yes. The only downside of this is some changes may recompile bytes_methods.c unnecessarily but this is not a matter. > But be aware of possible differences in 3.5. In 3.5 bytes_methods.c doesn't rely on stringlib/*. |
|||
| msg282847 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2016年12月10日 10:50 | |
Makefile-bytes-methods-v2.patch LGTM. |
|||
| msg282908 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2016年12月11日 07:40 | |
LGTM, you can push it to 3.6 and default. |
|||
| msg283262 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2016年12月15日 09:15 | |
New changeset 56a7eb5a0679 by Xiang Zhang in branch '3.6': Issue #28930: Add a Makefile rule for bytes_methods.c. https://hg.python.org/cpython/rev/56a7eb5a0679 New changeset c4bcca326c0a by Xiang Zhang in branch 'default': Issue #28930: Merge from 3.6. https://hg.python.org/cpython/rev/c4bcca326c0a |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:40 | admin | set | github: 73116 |
| 2016年12月15日 09:18:41 | xiang.zhang | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2016年12月15日 09:15:47 | python-dev | set | nosy:
+ python-dev messages: + msg283262 |
| 2016年12月11日 07:40:57 | vstinner | set | messages: + msg282908 |
| 2016年12月10日 10:50:59 | serhiy.storchaka | set | messages: + msg282847 |
| 2016年12月10日 10:43:36 | xiang.zhang | set | files:
+ Makefile-bytes-methods-v2.patch versions: - Python 3.5 nosy: + vstinner messages: + msg282846 |
| 2016年12月10日 07:46:59 | serhiy.storchaka | set | messages: + msg282835 |
| 2016年12月10日 07:17:45 | xiang.zhang | set | files:
+ Makefile-bytes-methods.patch versions: + Python 3.5, Python 3.6, Python 3.7 assignee: xiang.zhang keywords: + patch type: behavior -> stage: needs patch -> patch review |
| 2016年12月10日 06:32:38 | serhiy.storchaka | set | nosy:
+ serhiy.storchaka messages: + msg282833 stage: needs patch |
| 2016年12月10日 06:20:32 | xiang.zhang | create | |