[reviewcode] 那些基础comments
2024-10-08 03:39:11
多次提醒我,为变量取个合适的名字, so cute person:
Not a big deal, but try using variable names better than my_sa
每个参数一行好么 菇凉?
def test_share_path_and_user_unicode(self):
self.assertEquals(user[1].decode('utf-8'), s_perms[ix]['trustee'][u'name'],
'user {0} not found in {1} positon of acl'.format(user[1], ix))
can you put each argument on its own line for readability and line up the continuation lines after the opening parenthesis?
这样写for ok?
fileslist = {file_.encode('utf-8') + fn_suffix for file_ in filenames}
不要在代码里用 hard-coded
好么? 用 constant
user_name = self.testOptions.s_test_users[13][1].decode('utf-8')
判断 是否为 unicode
isinstance(s, unicode)
判断是否为ascii, 返回true 为english, 返回false 为其他字符
ss = all(ord(c)<128 for c in s)
取列表后2位,赋值给2个变量
s_test_users[13][0] zoon
s_test_users[13][1] username
s_test_users[13][2] password
user_name, password = self.testOptions.s_test_users[13][1:]
一些缩写
LGTM
looks good to me 朕知道了 代码已经过 review,可以合并
w.s.
whitespace 我多了个无意义的空白行,我只是想让2个函数分开些,毕竟今天七夕,不想你们挨太近~
JFYR
just for your reference
最新文章
- Leetcode Valid Number
- erlang日志功能。
- Spring并发访问的线程安全性问题
- 15个专业版响应式WordPress主题
- [CoreOS 转载] CoreOS实践指南(四):集群的指挥所Fleet
- TCP/IP 网络编程 (三)
- 备忘:文本编辑器(z.B. Sublime Text 2)策略,git策略
- Win7_Wifi热点
- noip模拟赛 软件software
- [未完成]WebService学习第一天学习笔记
- ftp上传java代码
- CCNP第四天 OSPF综合实验(1)
- [置顶] C++中RTTI机制剖析
- CUICatalog: Invalid asset name supplied: (null)
- 批处理改hosts
- linux下IPC通信
- PHP开发之路之一--WAMP的安装和配置
- 自定义chromium浏览器
- LeetCode-37.Sudok Solver
- PHP DDOS的UDP攻击,TCP攻击,和CC攻击的核心代码