Mark Dickinson
Mark Dickinson
And this is indeed new with PySide6 6.4.0. With 6.3.2, I get: ```python >>> from pyface.qt import QtCore >>> int(QtCore.Qt.DockWidgetArea.LeftDockWidgetArea) 1 >>> QtCore.Qt.DockWidgetArea.LeftDockWidgetArea.value Traceback (most recent call last): File "",...
Looks like matplotlib ran into this too: https://github.com/matplotlib/matplotlib/issues/24155 (fix in https://github.com/matplotlib/matplotlib/pull/24158)
> We can possibly remove all of the `int(...)` casts introduced by that PR? Yes, a solution that just treats all Qt Enum values as black-box immutable value objects and...
+1 for the changes. The original text here, and the choice to use big-endian for the examples, dates from [over 28 years ago](https://github.com/python/cpython/blob/5fdeeeae2a12b9956cc84d62eae82f72cabc8664/Doc/lib/libstruct.tex#L59-L65). These days I suspect that it's rather...
So my understanding of what's going on is that for _non-native_ packing and unpacking (e.g., your examples with ``), alignment simply doesn't come into play _at all_ (which is why...
Possibly we could reword note 3 to emphasize the contrast with the "non-native size and alignment" comment in note 2? Something like: ``` 3. To pad the end of a...
There's _some_ control over padding for the non-native modes, via the `x` format code (which adds a byte of padding). E.g., ``` >>> import struct >>> struct.pack('>lb3xl', 1, 2, 3)...
@Czaki Thanks for the update! Sounds like this is all in progress, and this issue was redundant - apologies for the noise. Should I just close this?
Awesome. Thank you!
For what it's worth, the approach described in the original issue description is the one that core Python uses. There's a custom tool called `blurb` which manages creating the news...