"Chris Barker" <[EMAIL PROTECTED]> writes:
> Because of this, I don't recommend altering your default python in
> that way. I put:
>
> export $PATH:PATH=/usr/local/bin
You mean
export PATH=$PATH:/usr/local/bin
of course?
> in my .profile, so that the system one is found first. By the way,
> thi
Bob Ippolito wrote:
On Apr 22, 2005, at 4:38 AM, Yair Benita wrote:
If it co-exist how do I control which one is used when simply typing
/usr/bin/python at the command line?
NEVER EVER change anything in /usr (except /usr/local) or /System. DO
NOT EVER DO THAT. BAD.
I think the OP was not propos
On Fri, Apr 22, 2005 at 05:08:47PM +0100, has wrote:
> I'm kinda leery of using MacPython's CF wrapper as it's a bit buggy in
> places. Still your example looks like it works ok - good suggestion, thanks.
>
> One bit I'm not sure about though - if I run this:
>
> u = toCF('A Non-mounted
> Drive
On Apr 22, 2005, at 11:41, Chris Smith wrote:
Do you have a suggestion as to what can I give a module so it has
enough information to execute a function that resides in __main__?
Here is a visual of what is going on:
--__main__
def y1():
pass
import foo
foo.run(string_from_main) #what shou
On Apr 22, 2005, at 7:00 PM, Bob Ippolito wrote:
On Apr 22, 2005, at 9:39 PM, Larry Meyn wrote:
On Apr 22, 2005, at 9:08 AM, has wrote:
I'm not sure how useful HFS path conversion options will really be;
it seemed an idea to put it in for completeness' sake, but perhaps
it's just overkill?
There
Dave Opstad wrote:
> > Just wondering if there's anything in MacPython for converting HFS paths to
> > POSIX and vice-versa, or is my memory playing tricks on me? If not, does
> > anyone have some code they don't mind sharing?
>
>To clarify: are you asking for something that converts a string with
On Apr 22, 2005, at 10:37 PM, Kevin Walzer wrote:
I've gotten some inquiries from users about my Python packages--PyQt in
particular--and whether they will run on Tiger. Is it safe to say that
Python stuff built/packaged against 2.3 on Panther will probably need
to
be repackaged for Tiger, assumin
Chris Barker wrote:
altern wrote:
Michael Hudson wrote:
The way you ask the question suggests you don't know Python especially
well. As Bob says, there are likely better ways to acheive your goal.
any tips about those other ways?
A) this is more of a topic for comp.lang.python, but as long s we'
On Fri, Apr 22, 2005 at 02:05:28PM +0100, has wrote:
> Just wondering if there's anything in MacPython for converting HFS
> paths to POSIX and vice-versa, or is my memory playing tricks on me?
> If not, does anyone have some code they don't mind sharing?
Keep in mind that HFS paths aren't unique,
David M. Cooke wrote:
that way. I put:
export $PATH:PATH=/usr/local/bin
You mean
export PATH=$PATH:/usr/local/bin
of course?
Yes, of course. that's a good way to confuse a newbie! Sorry about that.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NO
Has,
Jack helped me out awhile back in creating HFS paths. The archive is
at
http://mail.python.org/pipermail/pythonmac-sig/2003-August/008527.html
Larry
On Apr 22, 2005, at 6:05 AM, has wrote:
Hi all,
Just wondering if there's anything in MacPython for converting HFS
paths to POSIX and vice-v
> Just wondering if there's anything in MacPython for converting HFS paths to
> POSIX and vice-versa, or is my memory playing tricks on me? If not, does
> anyone have some code they don't mind sharing?
To clarify: are you asking for something that converts a string with colons
to one with slashes
Le 22/04/05 12:19, « whamoo » <[EMAIL PROTECTED]> a écrit :
> 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?
>
Hi all,
Just wondering if there's anything in MacPython for converting HFS paths to
POSIX and vice-versa, or is my memory playing tricks on me? If not, does anyone
have some code they don't mind sharing?
Ta,
has
--
http://freespace.virgin.net/hamish.sanderson/
On Apr 22, 2005, at 12:21 AM, Bob Ippolito wrote:
On Apr 21, 2005, at 9:06 PM, Chris Smith wrote:
###
def y1():
pass
def foo():
from __main__ import y1
pass
foo()
###
Here is a version of the code, stripped of the timeit code. The
above segment exhibits the same symptoms as the previo
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
On Friday, Apr 22, 2005, at 03:52 America/Chicago, Just van Rossum -
[EMAIL PROTECTED] wrote:
Importing __main__ is a very silly thing to do anyway, if you ask me.
All comments from you, Bob, and Jack have been *very* helpful. I think
I understand better what is going on. What's got me scratch
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?
I'm get this error with the base ship python:
Traceback (most re
Hi Bob,
Thanks for the tips.
It a bit tricky to put the script as its a bit complex.
Its build in a way that there is a class that makes all calculations and
returns the output. Lets simplify:
class objX:
def __init__(self, params):
def method1 (self):
d
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
On Apr 22, 2005, at 4:38 AM, Yair Benita wrote:
Upgrading to a new version of python is always tricky as I have many
many
modules that may not work properly after upgrading (biopython, etc.).
None of them will work. They will all have to be re-installed for the
new version of Python.
If I insta
Upgrading to a new version of python is always tricky as I have many many
modules that may not work properly after upgrading (biopython, etc.).
If I install the new python 2.4.1 from the installer package provided, will
it co-exist with my python 2.3.3 or will it replace it?
If it co-exist how do
On 22 Apr 2005, at 03:06, Chris Smith wrote:
###
def y1():
pass
def foo():
from __main__ import y1
pass
foo()
###
Here is a version of the code, stripped of the timeit code. The above
segment exhibits the same symptoms as the previously submitted one.
Even though I am running this as
23 matches
Mail list logo