Re: [Pythonmac-SIG] Read Strings from Resources

2004-12-22 Thread Just van Rossum
wicked witch wrote: > >>>So it looks like a 2-byte count followed by an array of Pascal > >>>strings. > >> > >>Ah yes. And now that I see this I seem to remember that the pstrings > >>are padded to a 2-byte boundary. > > > > Hmmm, I'd be a bit surprised if there was such alignment padding. > > Pa

Re: [Pythonmac-SIG] New to phython and need an ide tool help....

2005-01-02 Thread Just van Rossum
John Ochiltree wrote: > > On 2 Jan 2005, at 06:02, Bob Ippolito wrote: > > > The MacPython IDE isn't really maintained, so it's unlikely that > > this will happen. > > > > You may want to try using Xcode, it will do syntax highlighting and > > completion of Python code. It's not the smartest a

[Pythonmac-SIG] Re: [Pyobjc-dev] @selector(mymethod:) with pyobjc?

2005-01-20 Thread Just van Rossum
whamoo wrote: > I'm writing an application with dinamic menu (NSMenu - NSMenuItem), > but i've some problem with this function: > [[NSMenuItem alloc] initWithTitle:action:keyEquivalent:] > > I want to pass to "action:" a function of my class, in objc i must use > this code @selector(mioMetodo:)

Re: [Pythonmac-SIG] History of Python in MacOSX

2005-01-29 Thread Just van Rossum
Robert White wrote: > I started with Jaguar, MacOSX 10.2, where Python was built as a > framework. The Python that shipped with 10.2 was not a framework build, but an "ordinary" static unix build, or whatever the correct term for that is. > I am just curious. Was Python included with 10.1 or 1

RE: [Pythonmac-SIG] Discovering file type

2005-02-10 Thread Just van Rossum
Ramm, Henning wrote: > 'WDBN' : 'Word Document', \ > 'XDOC' : 'XPress Document' \ > } (btw, you can leave out all those backslashes...) Just ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-13 Thread Just van Rossum
Bob Ippolito wrote: > > Another fun project is DrawBot by Just, it's a Proce55ing like > > program to learn about graphics. > > Yeah, DrawBot is really cool. Note that this is an unofficial fork that is NOT endorsed by me. In fact I have told the guy last week he

Re: [Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 22, Issue 46

2005-02-14 Thread Just van Rossum
Andrew Meit wrote: > -- YES, I once, when much younger, did Type (known for my Gutenberg > font work) and graphic design; I must be getting old, too: I thought I knew everyone who did type AND Python... Welcome to the club. Just ___ Pythonmac-SIG mai

Re: [Pythonmac-SIG] Versions, Frameworks, Linking, PantherPythonFix

2005-02-23 Thread Just van Rossum
Michael Hudson wrote: > If you want your Python app to work in perpetuity, you'd better bundle > a version of Python with it because one day OS X will presumably come > with 2.4 or 2.5. This strikes me as being the same as any other > platform. I would _hope_ they'd still keep 2.3(.X) in there f

[Pythonmac-SIG] SciPy installer for Panther Python, anyone?

2005-02-26 Thread Just van Rossum
I'd like to quickly evaluate SciPy for a project, but I can't seem to find a binary distribution for 10.3's Python anywhere. Am I not looking hard enough? Tried to build from the source but the amount of dependencies for building it makes this not a viable option right now. Just __

Re: [Pythonmac-SIG] SciPy installer for Panther Python, anyone?

2005-02-28 Thread Just van Rossum
Peter Maxwell wrote: > No guarantees, but my latest attempt to compile SciPy seems to have > worked: > > http://cbis.anu.edu.au/misc/SciPy_complete-0.3.2.mpkg.zip Thanks. In the meantime, it turned out my problem was trivially solvable through Numeric, so I can skip SciPy for now. But it's gre

Re: [Pythonmac-SIG] OS9/2.1 IDE problem

2005-03-20 Thread Just van Rossum
Michael Dunn wrote: > Yeah, I'm using old stuff, I know. > > Having a weird problem. I've defined a few functions for a > program and put them in a separate file. In my main program I write > "from filename import *". > > When I run as an applet, everything seems to work. When I

Re: [Pythonmac-SIG] Re: Weird import problem with PythonIDE on Mac (was 'import problem')

2005-04-22 Thread Just van Rossum
Jack Jansen wrote: > As always, reading the source provides the answer. > > If you look in PyEdit.py, method Editor.execstring(), you'll see that > the only thing "run as __main__" does is set the module name to > "__main__". It does *not* change the globals dictionary to __main__. > > I'm not

Re: [Pythonmac-SIG] It is normal in python2.3 shipped with apple?

2005-04-22 Thread Just van Rossum
whamoo wrote: > i'm writing a program that must use the python 2.3 shipped with > apple, and i'm using the plistlib, but seem that the panther native > version of python doesn't have module named utils.iso8601. Can > someome confirm this please? Correct. The 2.3 plistlib depends on PyXML for

Re: [Pythonmac-SIG] State of DrawBot, missing features

2006-01-12 Thread Just van Rossum
Dinu Gherman wrote: > Could someone, please, provide insight into the current state of > DrawBot [1], a nice interactive graphics programming environment, > originally written by Just van Rossum? I asked Just via private > email some weeks ago, but either he's busy or his reply

Re: [Pythonmac-SIG] Would bundlebuilder work "universally?"

2006-03-18 Thread Just van Rossum
Kevin Walzer wrote: > I know py2app doesn't support universal builds right now...would > bundlebuilder? I don't think bundlebuilder supports anything at all currently... bundlebuilder is dead, we should probably just remove it from svn. Just ___ Python

Re: [Pythonmac-SIG] Status of PyObjC port to Intel OS X

2006-05-16 Thread Just van Rossum
Marcin Komorowski wrote: > > (...) since the only part of the Xcode tool chain I use for Python/ > > ObjC development is Interface Builder. > > > > Hey Daniel, > > What do you than use for your Python/ObjC development on a Mac? TextMate + Terminal + py2app. Oh wait, my name's not Daniel. Never

Re: [Pythonmac-SIG] str.decode() behaves differently in 2.5 and 2.6

2008-10-12 Thread Just van Rossum
It seems as if 2.5 uses native byte order by default, and 2.6 big endian (if there's no Byte Orde Mark). Maybe a bug, maybe a bug fix, I don't know :). In the meantime, just use 'utf-16be' or 'uft-16le' explicitly or make sure there's a BOM. Just On Oct 12, 2008, at 12:42 PM, has wrote:

[Pythonmac-SIG] py2app -A and virtual environments

2018-09-28 Thread Just van Rossum
Hi all, py2app seems to do the right thing from an activated virtual env when building a full app. However, for speedy development I use the py2app -A option a lot, and when running such an alias bundle it appears to use the global Python install instead of the virtual env. Is there a way aroun

Re: [Pythonmac-SIG] py2app -A and virtual environments

2018-09-28 Thread Just van Rossum
efix, so I guess a bit more needs to be done. Just > On 27 Sep 2018, at 16:05, Just van Rossum wrote: > > Hi all, > > py2app seems to do the right thing from an activated virtual env when > building a full app. However, for speedy development I use the py2app -A > option

Re: [Pythonmac-SIG] py2app -A and virtual environments

2018-10-01 Thread Just van Rossum
> On 28 Sep 2018, at 13:08, Ronald Oussoren wrote: > > > >> On 28 Sep 2018, at 10:34, Just van Rossum wrote: >> >> Following up to this: it seems line 1832 in py2app/build_app.py isn’t >> correct anymore, with Python 3 venv behavior: >> >>

Re: [Pythonmac-SIG] py2app -A and virtual environments

2018-10-01 Thread Just van Rossum
> On 28 Sep 2018, at 11:31, Joni Orponen wrote: > > On Fri, Sep 28, 2018 at 10:36 AM Just van Rossum > wrote: > Following up to this: it seems line 1832 in py2app/build_app.py isn’t correct > anymore, with Python 3 venv behavior: > > if os.path.exists

[Pythonmac-SIG] ctypes, codesigning, notarizing, py2app?

2020-02-14 Thread Just van Rossum
Hello, I’m trying to codesign and notarize my application, and thanks to the following thread I’m getting closer: https://mail.python.org/pipermail/pythonmac-sig/2018-October/024341.html However, I’m stuck there, since my app _does_ require ctypes. Is there currently a way to use ctypes in a p

Re: [Pythonmac-SIG] ctypes, codesigning, notarizing, py2app?

2020-02-14 Thread Just van Rossum
I’ve found a solution. Adding the following entitlement during codesigning allows me to use ctypes: com.apple.security.cs.disable-executable-page-protection That is a big relief. Just > On 14 Feb 2020, at 21:46, Just van Rossum wrote: > > Hello, > > I’m trying to codesi

Re: [Pythonmac-SIG] Building plans .....

2020-03-11 Thread Just van Rossum
FWIW, as far as I can tell, a non-framework-build can't be used to build a native macos app, at least not with py2app. I ran into this while trying to build an app on github-actions, and had to resort to downloading and installing Python from python.org upon build. Which is wasteful, and in my eye