This issue has been migrated to GitHub: https://github.com/python/cpython/issues/73116
classification
process
Created on 2016-12-10 06:20 by xiang.zhang, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Messages (7) |
|
|
msg282832 - (view) |
Author: Xiang Zhang (xiang.zhang) *  |
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) *  |
Date: 2016-12-10 06:32 |
Needed a rule in Makefile. |
|
|
msg282835 - (view) |
Author: Serhiy Storchaka (serhiy.storchaka) *  |
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) *  |
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) *  |
Date: 2016-12-10 10:50 |
Makefile-bytes-methods-v2.patch LGTM. |
|
|
msg282908 - (view) |
Author: STINNER Victor (vstinner) *  |
Date: 2016-12-11 07:40 |
LGTM, you can push it to 3.6 and default. |
|
|
msg283262 - (view) |
Author: Roundup Robot (python-dev)  |
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🔞41 |
xiang.zhang |
set |
status: open -> closedresolution: fixedstage: patch review -> resolved |
2016-12-15 09:15:47 |
python-dev |
set |
nosy: + python-devmessages: + |
2016-12-11 07:40:57 |
vstinner |
set |
messages: + |
2016-12-10 10:50:59 |
serhiy.storchaka |
set |
messages: + |
2016-12-10 10:43:36 |
xiang.zhang |
set |
files: + Makefile-bytes-methods-v2.patchversions: - Python 3.5nosy: + vstinnermessages: + |
2016-12-10 07:46:59 |
serhiy.storchaka |
set |
messages: + |
2016-12-10 07:17:45 |
xiang.zhang |
set |
files: + Makefile-bytes-methods.patchversions: + Python 3.5, Python 3.6, Python 3.7assignee: xiang.zhangkeywords: + patchtype: behavior -> stage: needs patch -> patch review |
2016-12-10 06:32:38 |
serhiy.storchaka |
set |
nosy: + serhiy.storchakamessages: + stage: needs patch |
2016-12-10 06:20:32 |
xiang.zhang |
create |
|