Re: [Pythonmac-SIG] Finding what a broken alias refers to.

2005-06-23 Thread Bob Ippolito

On Jun 23, 2005, at 11:54 AM, Hubert Holin wrote:

 On 21 juin 2005, at 22:35, [EMAIL PROTECTED] wrote:


 From: Bob Ippolito [EMAIL PROTECTED]
 Date: 21 juin 2005 17:49:59 HAEC
 To: Hubert Holin [EMAIL PROTECTED]
 Cc: pythonmac-sig@python.org
 Subject: Re: [Pythonmac-SIG] Finding what a broken alias refers to.


 On Jun 21, 2005, at 11:21 AM, Hubert Holin wrote:

  Likewise, the Alias Manager functions FSMatchAlias and
 FSMatchAliasNoUI seem not to be wrapped.

  What can I do, short of writing a C++ extension?



 Writing a C extension or using the FFI available in PyObjC or
 ctypes are the only ways to bridge unwrapped functions.

  A question: I'd much, much rather use C++ than C (and never
 mind Objective-C). I have some idea of how to write Python extensions
 in C++, using Boost.Python. From reading what little documentation
 there is on Objective-C++, I see there are possible issues between
 the C++ and Objective-C runtimes. If I build a C++ extension and
 intend to use it along with PyObjC, am I inviting trouble ;-)   ?

Yes, but you really don't want to use something like Boost unless you  
have a fair amount of existing C++ code.  In this case you need one  
or two functions, and it's more than overkill.

C++ code and Objective-C code play together just fine.  In the case  
of Objective-C++ (a separate language, but the same runtime), you can  
mix the two in the same source file with a few limitations (namely  
putting C++ in ivars and expecting ctor/dtor stuff to happen  
automatically, etc.).  This is a don't-write-broken-source-code kind  
of issue, it can't happen by mixing things at runtime with Python.

 From: Chinook [EMAIL PROTECTED]
 Date: 21 juin 2005 18:20:07 HAEC
 To: pythonmac-sig@python.org
 Subject: Re: [Pythonmac-SIG] Finding what a broken alias refers to.
 Reply-To: [EMAIL PROTECTED]


 csvline = _cellpos(dlfpath, alvl, blvl, clvl)

  Thank you for the suggestion. May I ask where _cellpos is
 documented? Yes, I am a newbee in more fields than one :-)   .

In his project, if you're lucky.  It's certainly nothing standard.

 On 22 juin 2005, at 12:00, [EMAIL PROTECTED] wrote:


 From: has [EMAIL PROTECTED]
 Date: 22 juin 2005 01:39:32 HAEC
 To: pythonmac-sig@python.org
 Subject: Re: [Pythonmac-SIG] Finding what a broken alias refers to.

 Likewise, the Alias Manager functions FSMatchAlias and
 FSMatchAliasNoUI seem not to be wrapped.



 Ditto FSCopyAliasInfo. Unfortunately I don't think Python's Carbon
 wrappers have been updated much since their creation back in pre-OS
 X days. You could probably patch up a copy yourself without much
 trouble; it's a slightly hackish solution, but not that hard to do
 (I've done it myself and my C's rubbish).

  Is there a way I can contribute (using some of the time
 slots I now try to put aside for Boost and the unreasonable number of
 things I intend to do)?

Currently, all of the wrapped Carbon functionality is done with an  
ancient, fragile and undocumented parser/generator called bgen, which  
parses out Universal Headers and spits out potentially working Python  
bindings.  In order to make a useful contribution to those modules,  
you'd have to learn it, which really isn't worth doing.  For your own  
purposes you could hack the C code it spits out directly, but unless  
it's done with bgen, it's not going to end up in Python CVS.

-bob

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Eclipse + PyDev

2005-06-23 Thread Derek Lee-Wo
 I tried it. My initial impression was unfavorable -- it seemed cluttered
 and unfocused and I had trouble figuring out how to do the stuff I
 wanted to do. But it may just be a learning curve issue. I'd love to
 hear more from folks who really know it.

Is it fair to say most of the issues people have with it are because
of Eclipse rather than the PyDev plugin?

I'm used the Eclipse environment (and IBM's WSAD) so I know how to
find my way around and I'm used to the memory and CPU footprint.  I
installed the PyDev plugin.  While I've only used it briefly, it seems
to be fine.  Just wondering if there some other gotchas or issues
other than Eclipse itself.

Derek
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Eclipse + PyDev

2005-06-23 Thread Kevin Walzer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've tried to use PyDev, but apart from the speed issue, Eclipse's
interface is so sprawling and unintuitive that I haven't even figured
out how to get PyDev started. Perhaps I'm missing something, and if you
find Eclipse a pleasant environment to work in, go for it.

Cheers,

Kevin Walzer, PhD
WordTech Software--Open Source Applications and Packages for OS X
http://www.wordtech-software.com
http://www.kevin-walzer.com
http://www.smallbizmac.com.
mailto:[EMAIL PROTECTED]

Derek Lee-Wo wrote:
|I tried it. My initial impression was unfavorable -- it seemed cluttered
|and unfocused and I had trouble figuring out how to do the stuff I
|wanted to do. But it may just be a learning curve issue. I'd love to
|hear more from folks who really know it.
|
|
| Is it fair to say most of the issues people have with it are because
| of Eclipse rather than the PyDev plugin?
|
| I'm used the Eclipse environment (and IBM's WSAD) so I know how to
| find my way around and I'm used to the memory and CPU footprint.  I
| installed the PyDev plugin.  While I've only used it briefly, it seems
| to be fine.  Just wondering if there some other gotchas or issues
| other than Eclipse itself.
|
| Derek
| ___
| Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
| http://mail.python.org/mailman/listinfo/pythonmac-sig
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCuv9EJmdQs+6YVcoRAseHAJ9E9Ytwdenw2PDsYKRwmbfGjUD7zgCfdSD9
goeEppXes2wjCsxU4RzNj6E=
=rZnw
-END PGP SIGNATURE-
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Eclipse + PyDev

2005-06-23 Thread Russell E. Owen
In article [EMAIL PROTECTED],
 Derek Lee-Wo [EMAIL PROTECTED] wrote:

  I tried it. My initial impression was unfavorable -- it seemed cluttered
  and unfocused and I had trouble figuring out how to do the stuff I
  wanted to do. But it may just be a learning curve issue. I'd love to
  hear more from folks who really know it.
 
 Is it fair to say most of the issues people have with it are because
 of Eclipse rather than the PyDev plugin?
 
 I'm used the Eclipse environment (and IBM's WSAD) so I know how to
 find my way around and I'm used to the memory and CPU footprint.  I
 installed the PyDev plugin.  While I've only used it briefly, it seems
 to be fine.  Just wondering if there some other gotchas or issues
 other than Eclipse itself.

My recollection was that Eclipse itself was much of the problem. But I 
don't recall the details. You're in a much better position to evaluate 
it than I am, since you know your way around Eclipse. Please let us know 
what you think of the PyDev plugin!

-- Russell

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Eclipse + PyDev

2005-06-23 Thread Gravy
I've been using Eclipse for a while now (just started using 3.1) and  
for the first time find the latest version of PyDev useful. I agree  
that the eclipse interface is sprawling but stick with it and read  
the documentation. It's really developer friendly once you get the  
hang of it. All I'd like now is for PyDev to support automated PyUnit  
test build and run for TDD :-)

John Ochiltree
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Eclipse + PyDev

2005-06-23 Thread Henning.Ramm
I've tried to use PyDev, but apart from the speed issue, Eclipse's
interface is so sprawling and unintuitive that I haven't even figured
out how to get PyDev started. Perhaps I'm missing something, and if you
find Eclipse a pleasant environment to work in, go for it.

I tried Eclipse yesterday and today and needed a while until I got PyDev 
installed:
You must add the update URL as new remote repository in the update wizard (see 
Help menu),
it doesn't work to just copy the files; Eclipse3 seems to need a special (and 
missing)
dotfile to recognize the new plugin.

I didn't try to edit Python code yet, but I agree that the interface is rather 
non-intuitive and non-MacOSy, and I don't like that it needs very long to start 
(as every Java application on MacOS X, i.e. on my old G4/400), but perhaps the 
mightyness of Blackout, ehm, Eclipse is worth the hassle. (And I could use it 
for Perl, PHP, HTML etc. also)

I just tried also Eric3 (seems to support only Apple's Python 2.3) and DrPython 
(starts fast, seems lean, has ugly icons), I will need some time to test them.


Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Finding what a broken alias refers to.

2005-06-23 Thread has
Bob wrote:

Is there a way I can contribute (using some of the time
slots I now try to put aside for Boost and the unreasonable number of
things I intend to do)?

Currently, all of the wrapped Carbon functionality is done with an  ancient, 
fragile and undocumented parser/generator called bgen, which  parses out 
Universal Headers and spits out potentially working Python  bindings.  In 
order to make a useful contribution to those modules,  you'd have to learn it, 
which really isn't worth doing.  For your own  purposes you could hack the C 
code it spits out directly, but unless  it's done with bgen, it's not going to 
end up in Python CVS.

I blame Joseph Heller myself.

has
-- 
http://freespace.virgin.net/hamish.sanderson/
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig