Skip to content

Guide contributions#2

Merged
messense merged 2 commits into
messense:guidefrom
aganders3:guide-suggestions
Nov 2, 2021
Merged

Guide contributions#2
messense merged 2 commits into
messense:guidefrom
aganders3:guide-suggestions

Conversation

@aganders3

Copy link
Copy Markdown

For now this is a first draft of a tutorial. I can add to this PR if I get more time to work on other sections. Actually helping write the guide seems like a great way to get more familiar with the project.

For the tutorial it might make sense to include the source in an examples folder, but at the same time there are several great examples in the pyo3 project already. I was tempted to use one of those but I started from scratch to make sure I didn't miss any steps.

Of course there are others with way more experience, so I welcome any and all feedback and critique!

@aganders3

Copy link
Copy Markdown
Author

I added a draft of the project layout section, mostly taken from the current readme but including some information on adding type hints.

@messense messense merged commit f5b1de1 into messense:guide Nov 2, 2021
@messense

messense commented Nov 2, 2021

Copy link
Copy Markdown
Owner

Thanks

@messense

messense commented Nov 2, 2021

Copy link
Copy Markdown
Owner

I’m gonna move the branch to the main repository so we can coordinate there. (I missed the notification somehow with this repo).

messense added a commit that referenced this pull request Apr 6, 2026
- Fix #1 (critical): prepend_to now defers patches to finish_internal(),
  avoiding "Generated file was already added" crash when __init__.py
  patching happens before source files are collected

- Fix #2 (high): Python patches are now inserted after 'from __future__'
  imports via find_python_insertion_point() to avoid SyntaxError

- Fix #3 (high): add_new_section_with_names now errors on non-Authenticode
  overlays instead of silently truncating them

- Fix #4 (medium): When PE section headers are full, shift sections down
  by FileAlignment bytes (matching delvewheel) instead of bailing

- Fix #5 (medium): is_python_dll now precisely matches CPython
  (python[0-9]+t?(_d)?.dll) and PyPy (libpypy*-c.dll) patterns

- Expand KNOWN_SYSTEM_DLLS from ~60 to ~90 entries covering crypto,
  networking, UI, and storage subsystems commonly linked by native
  extensions
messense added a commit that referenced this pull request Apr 7, 2026
- Fix #1 (critical): prepend_to now defers patches to finish_internal(),
  avoiding "Generated file was already added" crash when __init__.py
  patching happens before source files are collected

- Fix #2 (high): Python patches are now inserted after 'from __future__'
  imports via find_python_insertion_point() to avoid SyntaxError

- Fix #3 (high): add_new_section_with_names now errors on non-Authenticode
  overlays instead of silently truncating them

- Fix #4 (medium): When PE section headers are full, shift sections down
  by FileAlignment bytes (matching delvewheel) instead of bailing

- Fix #5 (medium): is_python_dll now precisely matches CPython
  (python[0-9]+t?(_d)?.dll) and PyPy (libpypy*-c.dll) patterns

- Expand KNOWN_SYSTEM_DLLS from ~60 to ~90 entries covering crypto,
  networking, UI, and storage subsystems commonly linked by native
  extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants