Rajanikanth Jammalamadaka rajanikanth at gmail.com wrote:
Thanks for your reply Kevin. I installed Tk 8.5 but now I get this error:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/Current/bin/idle",
line 5, in
main()
File
"/Library/Frameworks/Python.fr
Kent Johnson wrote:
> Christopher Barker wrote:
>> Robin Dunn wrote:
>>> Just replace sys.stdout with an object with a write() method that does
>>> what you want.
>> I don't think that will do it, as "print" will have already converted
>
Christopher Barker wrote:
> Robin Dunn wrote:
>> Just replace sys.stdout with an object with a write() method that does
>> what you want.
>
> I don't think that will do it, as "print" will have already converted
> the object to a string, and it does that with str(), which calls
> object.__str__
Christopher Barker wrote:
> I suppose what I would like is if I could change the default encoding
> that str() uses -- or at least change it to "replace" or "ignore" mode.
You can, with sys.setdefaultencoding(). See here for discussion of how:
http://blog.ianbicking.org/illusive-setdefaultencodin
DavidW wrote:
> Hi All,
>
> Does anyone know of a set of (formalized software
> engineering) metrics against which (python) modules can be evaluated?
http://pycheesecake.org/ attempts to evaluate the 'kwalitee' (their
word) of software packages by applying automatic metrics.
> Also, I've been b
Daniel Lord wrote:
> Kent,
>
> Thanks for the link. I am just lazy (that's why I like Python over
> C/CPP/ObjC when I can get away with it) and would prefer the lightweight
> (to design and code that is not as in process overhead) threads over
> separate application processes. But certainly you
Daniel Lord wrote:
> My point was that, as I understand it, thanks to the GIL--Python
> cannot easily take advantage of multi-cores period even when the
> program uses multiple threads--it it is a limitation of the
> implementation of the language interpreter. I guess that tells us we
> oug
Scott Frankel wrote:
> Is anyone on this list using Eclipse with Python and the SWT
> windowing kit?
>
> I've been looking through the MacPython.org and Eclipse pages for
> info on combining Python and SWT. So far, I've read about the PyDev
> plugin that allows Eclipse to speak Python.
>
>
Christopher Barker wrote:
> I suppose this may be a time to take a good look at workingenv again...
Or virtualenv which has replaced workingenv:
http://pypi.python.org/pypi/virtualenv
Kent
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://m
Rafael Bejarano wrote:
> Can anyone
> on this list tell me if easygui works on the Mac, and if so, what
> steps I need to take to make it work?
It works fine for me using Python 2.5.1 on MacBook Pro. I don't think I
did anything special to install it.
Kent
___
Dave Everitt wrote:
> After earlier failed attempts to get Django up and running (see:
> 'Macports and Django install problems') I started again and wrote an
> 'absurdly simple' OS X 10.4 Django install guide here:
>
> http://ecoconsulting.co.uk/training/python/python-django-OSX.shtml
You don
Dave Everitt wrote:
> 1. Is it embedded in Python 2.5?
Yes, in the sqlite3 package.
> 2. Can it be tested for with:
> >>> from pysqlite2 import test
> >>> test.test()
No, the package is called sqlite3 and there is no umbrella test.test().
You can run individual tests, e.g.
In [6]: from sqli
has wrote:
> Anyway, simplest solution here is:
>
> import subprocess
> subprocess.call(['open', '/Users/drew/Documents'])
or
import open
os.system('open /Users/drew/Documents')
Kent
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
h
Calder Coalson wrote:
>> That is exactly what modules and imports let you do.
> It really doesn't seem to be doing that, because I import a bunch of
> stuff and define it in my main file, then I import another file and it
> can't use the global variables and the modules imported in the main file.
e assimilator program shouldn't take that long, but it
> really seems like there should be an easy way to do this.
>
> Thanks for the help,
> -Calder
>
>
> On May 20, 2007, at 6:37 AM, Kent Johnson wrote:
>
>> Calder Coalson wrote:
>>> I've tried im
Calder Coalson wrote:
> I've tried import, but that
> doesn't work because the thing has to be completely independent. All
> I want to do is split up my file into multiple files,
These requirements seem a bit contradictory. If you have one program
that you want to split into multiple modules
Kent Johnson wrote:
> Hi,
>
> I am trying to install PostgreSQL and psycopg2. I would like to get this
> working with Python 2.5 and Postgres 8.2.
Update: I was able to build psycopg2 from source and it now imports so I
think I'm all set.
Thanks,
Kent
>
> I insta
Hi,
I am trying to install PostgreSQL and psycopg2. I would like to get this
working with Python 2.5 and Postgres 8.2.
I installed Postgres from Mark Liyanage's installer:
http://www.entropy.ch/software/macosx/postgresql/
I installed psycopg2 from pythonmac:
http://www.pythonmac.org/packages/py
I am having trouble getting wxPython apps to work. I have a MacBook Pro
with OS X 10.4.8. I have Python 2.4.4 and Python 2.5 installed, both
using the framework installs from pythonmac.org.
I have several wx apps I would like to use: SPE and Firedrop, to
start. I haven't been able to get them work
Hi,
I am coming to Mac Python development after several years on Windows and
I am a bit confused by the Python framework stuff.
I have installed the framework build of Python 2.4 from pythonmac.org.
Questions:
- How can I have Python 2.4 and 2.5 both available? I am developing a
web site that
20 matches
Mail list logo