[issue41100] Support macOS 11 and Apple Silicon Macs

2021-04-08 Thread Maxime Belanger
Maxime Belanger added the comment: I had some time today, so I took a crack at merging this into Python 3.8. I've filed GH-25274 with my proposal. To summarize, I'm suggesting back porting all changes from bpo-41100 (as well as the subsequent bpo-42688) but without the weak-linking changes

[issue43377] _PyErr_Display should be available in the CPython-specific API

2021-03-02 Thread Maxime Belanger
New submission from Maxime Belanger : We have found `_PyErr_Display` to be quite helpful in embedding situations, in particular as a way to capture errors to a custom buffer rather than to `stderr`. Otherwise, embedders often have to replicate logic in `PyErr_Print`, etc. Since the header

[issue41100] Build failure on macOS 11 (beta)

2020-08-12 Thread Maxime Belanger
Change by Maxime Belanger : -- nosy: +Maxime Belanger ___ Python tracker <https://bugs.python.org/issue41100> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34297] Windows py.exe launcher fail to handle quote correctly

2020-01-10 Thread Maxime Belanger
Change by Maxime Belanger : -- nosy: +Maxime Belanger ___ Python tracker <https://bugs.python.org/issue34297> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37966] is_normalized is much slower at "no" than the standard's algorithm

2019-09-03 Thread Maxime Belanger
Maxime Belanger added the comment: Thanks for that! -- ___ Python tracker <https://bugs.python.org/issue37966> ___ ___ Python-bugs-list mailing list Unsub

[issue33376] [pysqlite] Duplicate rows can be returned after rolling back a transaction

2019-09-03 Thread Maxime Belanger
Change by Maxime Belanger : -- versions: +Python 3.9 -Python 2.7, Python 3.7 ___ Python tracker <https://bugs.python.org/issue33376> ___ ___ Python-bugs-list m

[issue32280] Expose `_PyRuntime` through a section name

2019-09-03 Thread Maxime Belanger
Maxime Belanger added the comment: Thanks for taking a look! To answer your question, the need for the named section comes not from the API being being "internal", but because we need to access it at runtime from a tool running in a separate process. We have augmented Crashpad

[issue35139] Statically linking pyexpat in Modules/Setup fails to compile on macOS

2018-11-01 Thread Maxime Belanger
Maxime Belanger added the comment: The line in question being: ``` #pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI ``` -- ___ Python tracker <ht

[issue35139] Statically linking pyexpat in Modules/Setup fails to compile on macOS

2018-11-01 Thread Maxime Belanger
New submission from Maxime Belanger : Uncommenting the following line in `Modules/Setup` leads to a compiler error on macOS (tested w/ Xcode 10): ``` ./Modules/expat/xmlparse.c:92:3: error: You do not have support for any sources of high quality entropy enabled. For end user security

[issue33376] [pysqlite] Duplicate rows can be returned after rolling back a transaction

2018-10-30 Thread Maxime Belanger
Change by Maxime Belanger : -- nosy: +Maxime Belanger ___ Python tracker <https://bugs.python.org/issue33376> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35080] The tests for the `dis` module can be too rigid when changing opcodes

2018-10-26 Thread Maxime Belanger
Maxime Belanger added the comment: Ah, quite right; apologies for the not-so-useful PR! -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35080] The tests for the `dis` module can be too rigid when changing opcodes

2018-10-26 Thread Maxime Belanger
Change by Maxime Belanger : -- components: +Library (Lib), Tests ___ Python tracker <https://bugs.python.org/issue35080> ___ ___ Python-bugs-list mailin

[issue35080] The tests for the `dis` module can be too rigid when changing opcodes

2018-10-26 Thread Maxime Belanger
New submission from Maxime Belanger : For various reasons, one may want to change the `Lib/opcode.py` module. In doing so, this has caused us to frequently rewrite `test_dis.py`. It would be great if those tests used `dis.opmap` rather than hard-coded/magic numbers, as this would allow

[issue32285] In `unicodedata`, it should be possible to check a unistr's normal form without necessarily copying it

2018-10-24 Thread Maxime Belanger
Change by Maxime Belanger : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue32285> ___ ___ Python-bugs-list mailin

[issue35025] Compiling `timemodule.c` can fail on macOS due to availability warnings

2018-10-19 Thread Maxime Belanger
New submission from Maxime Belanger : We build Python on macOS with `-Werror=unguarded-availability` and `-mmacosx-version-min=` to ensure `libpython` is binary-compatible with earlier versions of macOS. This can create problems when building some modules, including `timemodule.c`, which

[issue35022] MagicMock should support `__fspath__`

2018-10-18 Thread Maxime Belanger
New submission from Maxime Belanger : We have plenty of tests calling into `os.path.*` functions, and as Python 3.6+ gets more stringent about checking for `os.PathLike` compliance, it would greatly simplify our lives for `MagicMock` to support `__fspath__`. -- components: Library

[issue32282] When using a Windows XP compatible toolset, `socketmodule.c` fails to build

2017-12-12 Thread Maxime Belanger
Maxime Belanger <m...@dropbox.com> added the comment: Works for me. We no longer rely on the `_xp` toolset so no objections. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32280] Expose `_PyRuntime` through a section name

2017-12-12 Thread Maxime Belanger
Maxime Belanger <m...@dropbox.com> added the comment: Interesting, would this imply potentially multiple GILs? The major thing we need out of the structure is the (`Py_tss_t`) `autoTSSKey` in order to associate a native thread with its `PyThrea

[issue32285] In `unicodedata`, it should be possible to check a unistr's normal form without necessarily copying it

2017-12-11 Thread Maxime Belanger
New submission from Maxime Belanger <m...@dropbox.com>: In our deployment of Python 2.7, we've patched `unicodedata` to introduce a new function: `is_normalized` can check whether a unistr is in a given normal form. This currently has to be done by creating a normalized copy, then ch

[issue32282] When using a Windows XP compatible toolset, `socketmodule.c` fails to build

2017-12-11 Thread Maxime Belanger
New submission from Maxime Belanger <m...@dropbox.com>: If Python is built using the Windows XP "variant" of the toolset (e.g. `v140_xp`), build errors can occur in `socketmodule.c`. This is due to the include of `VersionHelpers.h` being gated on `_MSC_VER`, which &qu

[issue32280] Expose `_PyRuntime` through a section name

2017-12-11 Thread Maxime Belanger
New submission from Maxime Belanger <m...@dropbox.com>: We've recently been toying with more sophisticated crash reporting machinery for our Desktop Python application (which we deploy on macOS, Windows and Linux). To assist in debugging, we are storing `_PyRuntime` in a predictable lo

[issue31903] `_scproxy` calls SystemConfiguration functions in a way that can cause deadlocks

2017-10-30 Thread Maxime Belanger
New submission from Maxime Belanger <m...@dropbox.com>: Through the use of various Python packages (such as `pyobjc`), it is possible for a deadlock to occur due to how `_scproxy.c` calls `SCDynamicStoreCopyProxies`. In more recent versions of macOS (10.7+), this function can

[issue31359] `configure` script incorrectly detects symbols as available on Mac w/ Xcode 8+

2017-09-06 Thread Maxime Belanger
Maxime Belanger added the comment: That'd be even better :). I'll also note that this is slightly worse in Python 3 vs Python 2 as there are way more of these to deal with. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue31359] `configure` script incorrectly detects symbols as available on Mac w/ Xcode 8+

2017-09-05 Thread Maxime Belanger
Changes by Maxime Belanger <m...@dropbox.com>: -- components: +Build, macOS nosy: +ned.deily, ronaldoussoren type: -> compile error ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue31359] `configure` script incorrectly detects symbols as available on Mac w/ Xcode 8+

2017-09-05 Thread Maxime Belanger
New submission from Maxime Belanger: At Dropbox, we use a custom fork of Python to deploy our Desktop Client onto various platforms, including macOS. We currently use the Mac OS X 10.11 SDK, but are considering updating to the macOS 10.12 SDK, which introduced new low-level functions

[issue27596] Build failure with Xcode 8 beta on OSX 10.11

2017-01-19 Thread Maxime Belanger
Maxime Belanger added the comment: Glad to hear it! Thanks for the quick followup :). -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27596] Build failure with Xcode 8 beta on OSX 10.11

2017-01-19 Thread Maxime Belanger
Maxime Belanger added the comment: We're hitting this issue with Python 2.7 (which we deploy on Mac OS X 10.6-10.12). We've worked around it by manually patching `pyconfig.h` to un-define `HAVE_GETENTROPY` before `make`ing. Is a patch is in the works to support weak-linking this symbol

[issue23534] `test_longdouble` fails on Mac when using system libffi (version 3.1)

2015-02-26 Thread Maxime Belanger
New submission from Maxime Belanger: Greetings, We're compiling a custom version of Python 2.7.9 for the Mac (building on OS X 10.9 with Xcode 6.1), and we're instructing Python to use a vanilla copy of `libffi` (that we've also compiled ourselves) using the `--with-system-ffi` flag. We're

[issue19884] Importing readline produces erroneous output

2015-02-26 Thread Maxime Belanger
Maxime Belanger added the comment: I think the version check (`readline._READLINE_VERSION 0x0600`) is incorrect, as the test still fails for me on Mac OS X 10.9 with readline version 6.2 (0x602). Upgrading to 6.3 (0x603) fixes it, though. -- nosy: +Maxime Belanger