[issue29643] --enable-optimizations compiler flag has no effect

2017-02-24 Thread Alex Wang
Alex Wang added the comment: At least when I last built Python, configure always said that optimizations were not enabled regardless of whether I passed in the flag. >From what it looked like to me, it's because configure uses the $enableval >variable to store the result of the

[issue29643] --enable-optimizations compiler flag has no effect

2017-02-24 Thread Alex Wang
Changes by Alex Wang <aw1621...@gmail.com>: -- pull_requests: +253 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29643> ___ _

[issue29643] --enable-optimizations compiler flag has no effect

2017-02-24 Thread Alex Wang
New submission from Alex Wang: PR submitted here: https://github.com/python/cpython/pull/129 -- components: Build messages: 288535 nosy: awang priority: normal severity: normal status: open title: --enable-optimizations compiler flag has no effect type: behavior versions: Python 2.7

[issue28698] Python 3.x ctypes c_wchar_p return is different from official documentation example

2016-11-15 Thread Alex Wang
Alex Wang added the comment: Hi Eryk, Thanks a lot for quick reply~ This is about the bug I filed: http://bugs.python.org/issue28698# I may still need your help to have a look the original case when I caught this issue: ​I am writing some test automation which call C DLL from Python, the C

[issue28698] Python 3.x ctypes c_wchar_p return is different from official documentation example

2016-11-15 Thread Alex Wang
New submission from Alex Wang: - Python Version Python 3.5.2 - Issue I found that the c_wchar_p and c_char_p return results behaves different from what it is based on ctypes doc. From the ctypes doc of Python 3.5: >>> c_wchar_p("Hello, World") c_wchar_p('Hello, World') I