apple sample python code doesn't work?

Apple publishes a whole load of open source code examples. There's a PDF parser in python which exists in a couple of slightly different versions. However, none of them work.

They all produce a variety of syntax errors or crash the python process!


https://opensource.apple.com/source/pyobjc/pyobjc-49/pyobjc/pyobjc-framework-Quartz-2.5.1/Examples/Programming%20with%20Quartz/ParsePageContents/parse_page_contents.py.auto.html


Here's another, with a few differences:


https://opensource.apple.com/source/pyobjc/pyobjc-14.1.1/pyobjc/stable/pyobjc-framework-Quartz/Examples/Programming%20with%20Quartz/ParsePageContents/parse_page_contents.py


Any idea how I tell which is the most up-to-date version? Should I report this to bugreporter?

Apple publishes a whole load of open source code examples.

To be clear, this isn’t Apple sample code but rather sample code included with the PyObjC project. You’re more likely to get traction by engaging with the PyObjC open source community.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
apple sample python code doesn't work?
 
 
Q