[issue29105] code or doc improvement for logging.handlers.RotatingFileHandler

2016-12-29 Thread iMath
New submission from iMath: For class logging.handlers.RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=0) if backupCount is zero and maxBytes is non-zero, the log file size could exceed maxBytes, i.e. we are not able to restrict the log file size using

[issue29074] repr doesn't give full result for this re math result

2016-12-26 Thread iMath
New submission from iMath: I tested with Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32 re.search(r'http://v.pptv.com/show/.*?\.html.+', 'http://v.pptv.com/show/2bwkox9SS4nsatI.html?rcc_src=P5') does give a match, but it show the result

[issue32366] suggestion:html.escape(s, quote=True) escape \n to

2017-12-18 Thread iMath
New submission from iMath <redstone-c...@163.com>: It would be better if html.escape(s, quote=True) could escape linefeed to https://docs.python.org/3/library/html.html#html.escape -- components: XML messages: 308546 nosy: redstone-cold priority: normal severity: normal status

[issue30904] Python 3 logging HTTPHandler sends duplicate Host header

2017-12-07 Thread iMath
iMath <redstone-c...@163.com> added the comment: Yes, I met with the same bug, see the post for description and bug investigation https://stackoverflow.com/questions/43185804/using-httphandler-cause-django-server-side-shows-http-400-and-invalid-http-host/47434323#47434323 -

[issue34221] Any plans to combine collections.OrderedDict with dict

2018-07-25 Thread iMath
New submission from iMath : Since Python 3.7,dicts remember the order that items were inserted, so any plans to combine collections.OrderedDict with dict? https://docs.python.org/3/library/collections.html?#collections.OrderedDict https://docs.python.org/3/library/stdtypes.html#dict BTW, I

[issue34450] improve shutil.make_archive

2018-08-21 Thread iMath
New submission from iMath : The current behavior of shutil.make_archive caused many issues , the problem is mainly on the extracted archive directory hierarchy. These are the proofs: https://stackoverflow.com/questions/51914467/directory-hierarchy-issue-when-using-shutil-make-archive https

[issue34450] improve shutil.make_archive

2018-08-22 Thread iMath
iMath added the comment: one workaround is : if os.path.join(root_dir, base_dir) exists, use the current implementation , this is set for backwards-compatibility, if not exist, please consider the feature in my last post(maybe we should recommend Python users to follow this approach

[issue27820] Possible bug in smtplib when initial_response_ok=False

2018-09-12 Thread iMath
iMath added the comment: I encountered the same issue , Dario D'Amico's changing works ! please fix the problem ! -- nosy: +redstone-cold ___ Python tracker <https://bugs.python.org/issue27