[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2019-11-20 Thread Galen Han
Change by Galen Han : -- nosy: +Galen Han ___ Python tracker <https://bugs.python.org/issue36054> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38760] Document for urllib.error.HTTPError.headers Should Specify What Version

2019-11-09 Thread Han You
New submission from Han You : It says "New in version 3.4." so I put `urllib3>=3.4` in my requirements.txt. Turned out it is referring to the Python version. https://docs.python.org/3.7/library/urllib.error.html#urllib.error.HTTPError.headers -- assignee: docs@pyth

[issue37248] support conversion of `func(**{} if a else b)`

2019-06-15 Thread Shen Han
Shen Han added the comment: Yes, I think so. -- ___ Python tracker <https://bugs.python.org/issue37248> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37248] support conversion of `func(**{} if a else b)`

2019-06-12 Thread Shen Han
Shen Han added the comment: This PR https://github.com/python/cpython/pull/12703 solves this problem. But haven't been merged. -- ___ Python tracker <https://bugs.python.org/is

[issue37248] support conversion of `func(**{} if a else b)`

2019-06-12 Thread Shen Han
Shen Han added the comment: The 2to3 tool cannot convert the following code: 1. `func(**{} if a else b)` 2. `func(*[] if a else b)` I think that problem is rooted the outdated Grammar.txt. -- ___ Python tracker <https://bugs.python.

[issue37248] support conversion of `func(**{} if a else b)`

2019-06-12 Thread Shen Han
Change by Shen Han : -- components: 2to3 (2.x to 3.x conversion tool) nosy: Shen Han priority: normal severity: normal status: open title: support conversion of `func(**{} if a else b)` type: enhancement versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue36198] Misleading in library/sets document

2019-03-05 Thread Han
Han added the comment: Thanks, I didn't notice the Deprecated sign on the Sets page. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.

[issue36198] Misleading in library/sets document

2019-03-05 Thread Han
New submission from Han : Doc/library/sets.rst said operation s.update(t)'s result is "return set s with elements added from t". But update()'s return value is None. I think change it to "set s with elements added from t" would be better. So are

[issue33293] Using datetime.datetime.utcnow().timestamp() in Python3.6.0 can't get correct UTC timestamp.

2018-04-17 Thread Han Shaowen
Han Shaowen added the comment: Hohoho, I found the full-version doc. This issue over. Thanks Tim, Ned and Brett. And sorry about something improper I said, I respect female Pythonista. -- ___ Python tracker <https://bugs.python.org/issue33

[issue33293] Using datetime.datetime.utcnow().timestamp() in Python3.6.0 can't get correct UTC timestamp.

2018-04-17 Thread Han Shaowen
Han Shaowen added the comment: Guys, what I said is the doc in help(datetime.timestamp) is 'Return POSIX timestamp as float.' So I assumed it is irrelevant to time zone, considering POSIX timestamp's definition. If it is then datetime.now and datetime.utcnow should return the

[issue33293] Using datetime.datetime.utcnow().timestamp() in Python3.6.0 can't get correct UTC timestamp.

2018-04-16 Thread Han Shaowen
New submission from Han Shaowen : What I am talking is like: Python 3.6.0 (default, Feb 28 2018, 15:41:04) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin Type "help", "copyright", "credits" or "license" for more information.

[issue31231] Travis CI mac test broken: ./python: is a directory

2017-08-17 Thread Han Lee
Changes by Han Lee : -- title: Travis CI mac test broken: -> Travis CI mac test broken: ./python: is a directory ___ Python tracker <http://bugs.python.org/issu

[issue31231] Travis CI mac test broken:

2017-08-17 Thread Han Lee
New submission from Han Lee: CPython: master branch In mac and window create python.exe not python https://github.com/python/cpython/blob/master/Makefile.pre.in#L154 But Travis CI and docs use ./python command for test https://docs.python.org/devguide/ https://travis-ci.org/python/cpython

[issue24070] Exceptions and arguments disappear when using argparse inside with statement

2015-05-06 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: The behavior may not be surprising from a technical perspective, but it is unintuitive. I think exceptions inside a with statement should trigger a traceback, unless you are saying that it is the responsibility of the author to catch and raise the exception

[issue24070] Exceptions and arguments disappear when using argparse inside with statement

2015-04-28 Thread Roy Hyunjin Han
New submission from Roy Hyunjin Han: Exceptions and arguments disappear when using argparse inside a "with" statement. The behavior was confusing and frustrating because I could not pinpoint why certain arguments were missing or unrecognized. Unhandled exceptions inside the with

[issue23388] datetime.strftime('%s') does not take timezone into account

2015-02-03 Thread Han Choongwoo
Changes by Han Choongwoo : -- nosy: +tunz ___ Python tracker <http://bugs.python.org/issue23388> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1598] unexpected response in imaplib

2014-07-18 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Yes, I think closing this issue is reasonable. If the error reappears, we can just reopen it. -- ___ Python tracker <http://bugs.python.org/issue1

[issue1598] unexpected response in imaplib

2014-07-18 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Hi Lita, I no longer have access to a Domino server. I'm not sure whether there are enough users trying to access Domino with imaplib for this to warrant investigation. RHH -- ___ Python tracker

[issue1598] unexpected response in imaplib

2014-07-17 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Is imaplib choking on the IBM-specific X-MIMETrack header? Is Lotus Notes properly formatting the multi-line headers? Can RFC822 headers contain the PIPE | symbol? -- ___ Python tracker <http://bugs.python.

[issue1597850] Cross compiling patches for MINGW

2013-02-02 Thread Han-Wen Nienhuys
Han-Wen Nienhuys added the comment: yeah, whatever. (only 7 years to close an issue. Yay for open-source.) -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue1

[issue10574] email.header.decode_header fails if the string contains multiple directives

2012-07-04 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: > This is fixed by the fix to issue 1079, but we have decided that fix can't be > backported because it is a behavior change that might break existing working > programs. Thanks for this update. --

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Ji Han
Ji Han added the comment: @amaury.forgeotdarc It says 'python.exe has stopped working'. Details: Problem Event Name: APPCRASH Application Name: python.exe Application Version: 0.0.0.0 Application Timestamp:4df4b010 Fault Module Name:MSVCR90.dll Fa

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Ji Han
New submission from Ji Han : The following code snippet will crash IDLE: >>> import sys >>> sys.setrecursionlimit((1<<31)-1) The crash happens immediately and is consistently reproducible (environment: Windows 7 SP1 64-bit, Python 2.7.2 for Windows X86_64). ---

[issue10574] email.header.decode_header fails if the string contains multiple directives

2011-01-22 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: 2010/11/30 R. David Murray : > Out of curiosity, which email program is it that is producing these invalid > headers? I lost the headers for the original email, so I don't know which email program created the invalid headers. On searching for me

[issue10574] email.header.decode_header fails if the string contains multiple directives

2010-11-28 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: The following code seems to solve the first case just as well. It seems that it is a problem of missing whitespace. email.header.decode_header('=?UTF-8?B?MjAxMSBBVVRNIENBTEwgZm9yIE5PTUlO?==?UTF-8?B?QVRJT05TIG9mIFZQIGZvciBNZW1iZXJz?==?UTF-8?B?aGlw?=

[issue10574] email.header.decode_header fails if the string contains multiple directives

2010-11-28 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Improved workaround to handle another degenerate case where the encoded string is in between non-encoded strings. import re import email.header pattern_ecre = re.compile(r'((=\?.*?\?[qb]\?).*\?=)', re.VERBOSE | re.IGNORECASE | re.MULTI

[issue10574] email.header.decode_header fails if the string contains multiple directives

2010-11-28 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Currently using the following workaround. import re import email.header def decodeSafely(x): match = re.search('(=\?.*?\?B\?)', x) if not match: return x encoding = match.group(1) return email.header.decode_he

[issue10574] email.header.decode_header fails if the string contains multiple directives

2010-11-28 Thread Roy H. Han
New submission from Roy H. Han : email.header.decode_header fails for the following message subject: :: email.header.decode_header('=?UTF-8?B?MjAxMSBBVVRNIENBTEwgZm9yIE5PTUlO?==?UTF-8?B?QVRJT05TIG9mIFZQIGZvciBNZW1iZXJz?==?UTF-8?B?aGlw?=') If the directives are removed and t

[issue6283] Cannot build extension in amd64 using msvc9compiler

2009-06-14 Thread Alex Shih-Han Lin
Alex Shih-Han Lin added the comment: yes, I have already installed VS 2008 (but it is Express Edition for VC, VB ,C#...I have no money to buy standard edition.) -- ___ Python tracker <http://bugs.python.org/issue6

[issue6283] Cannot build extension in amd64 using msvc9compiler

2009-06-14 Thread Alex Shih-Han Lin
New submission from Alex Shih-Han Lin : OS is Windows 7 x64, python using 2.6.2 amd64, SDK installed, but when I build some module by setup.py, it always traceback ValueError. running build running build_py running build_ext building 'genshi._speedups' extension Traceback (most recent

[issue6120] zipfile.ZipFile's extractall works inproperly under Windows

2009-05-26 Thread Wentao Han
New submission from Wentao Han : On Windows, if you extract all files from a zip file which containing subdirectories by zipfile.ZipFile's extractall method, a WindowsError will be raised. -- components: Library (Lib) messages: 88400 nosy: aerodonkey severity: normal status:

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2009-05-22 Thread Wentao Han
New submission from Wentao Han : The invocation of socket.getfqdn to get FQDN of the host may delay for several seconds on some platforms when no appropriate host name is found. This causes lag when using SimpleXMLRPCServer and other class derived from BaseHTTPServer for every request

[issue1598] unexpected response in imaplib

2009-03-24 Thread Roy H. Han
Roy H. Han added the comment: Using a different format, it seems the message involves cryptographic keys signed by Lotus Notes? >>> server.fetch(407, '(BODY.PEEK[HEADER] FLAGS)') To: pers...@place.com Subject: subject Message-ID: Date: Tue, 28 Oct 2008 17:53:22 -0400 Fro

[issue1598] unexpected response in imaplib

2009-03-24 Thread Roy H. Han
Roy H. Han added the comment: I'm also getting the same error retrieving a message through IMAP from a Lotus Notes server. Traceback (most recent call last): File "mail.py", line 152, in if 'setup' == argument: setup() File "mail.py", lin

[issue1597850] Cross compiling patches for MINGW

2008-10-07 Thread Han-Wen Nienhuys
Han-Wen Nienhuys <[EMAIL PROTECTED]> added the comment: @Luke the compiling strategy for Python (IIRC) is to compile everything, including modules that will never work, and use compiler errors as a signal to not include a module in the result. this is what I end up with for 2.4 ./u

[issue1597850] Cross compiling patches for MINGW

2008-10-07 Thread Han-Wen Nienhuys
Han-Wen Nienhuys <[EMAIL PROTECTED]> added the comment: I'm still interested in this, but the last time I did anything, I jumped through all the hoops (see conversation here), and not a single change was put into trunk. I'm not very enthousiastic about spending a lot ti

[issue2818] pulldom cannot handle xml file with large external entity properly

2008-05-11 Thread Luyang Han
New submission from Luyang Han <[EMAIL PROTECTED]>: when use xml.dom.pulldom module to parse a large xml file, if all the information is saved in one xml file, the module can handle it in the following way without construction the whole DOM: events = xml.dom.pulldom.parse('fil