debugging - converting PyObject back to a variable name

2005-06-22 Thread adamc
hi,

I'm currently debugging a crash occurring in the Python interpreter.
I've got a Dictionary object in the form of a (PyObject *)

I can cast it to (dictobject *) in the debugger watch window, and I can
also use PyString_AsString(PyObject_Repr()) to get the debugger to
print out a string representation of the dictionary (actually I can't -
this also crashes, because one of the values in the dictionary has
become corrupted)

What I'm trying to do is relate this dictionary object back to a
variable name in my application source code (i.e. written in Python) -
I've been searching round the web for an easy way of doing this -
hopefully some function I can type into the debugger's watch window.

thanks alot for the help

adam

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python glade tute

2005-03-04 Thread adamc
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2005-03-04, somesh [EMAIL PROTECTED] wrote:
 hello,
 I wrote a small tute for my brother to teach him python + glade,
 plz see, and suggest to make it more professional ,
 In tute I discussed on Glade + Python for developing Applications too
 rapidly as ppls used to work on win32 platform with VB.

 http://www40.brinkster.com/s4somesh/glade/index.html


 somesh

Somesh, 

I've been meaning to start a small simple collection of documents that 
teaches the basics of python to younger (age 7-12) children. I have 
two kids who aren't yet old enough to read properly (although they've 
made a start) but I want to get some basic docs ready for when they're 
ready to start. 

I've looked around at other docs, but I don't think that they are great 
for ordinary kids of this age (but I'm sure some will get something out 
of it). The docs I want to produce will run in small chunks but with 
quick resultsi, heavy on screenshots (where applicable) and have a 
younger look and feel about them than some of the official documents. 
All the documents should also be supported by face-to-face interaction 
(like a day programming with dad!)

I notice that your documents are specific to gui creation and glade, 
and I'm not sure how old your brother is, but do you want to collaborate 
on this? Anyone else think this might be worth while distributing? 

Adam

- -- 
http://www.monkeez.org
PGP key: 7111B833
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCKG7TLeLM1Z6tVakRAiUSAJ9yaxNBk0YnqB7ES20eMLKL6U1ymACfcSHA
VCZ81mc86bS0wK39ah/as5U=
=dhNY
-END PGP SIGNATURE-
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python evolution: Unease

2005-01-07 Thread adamc
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2005-01-07, Paul Rubin http wrote:
 Roman Suzi [EMAIL PROTECTED] writes:
 I do not like the idea of having stubs. Once I had an experience working with
 CPAN (I tried to install SpamAssassin and it required some specific modules.)
 Magic install shell, provided by Perl, upgraded half the Perl distro,
 including newer version of Perl!
 
 So, I do like Python distutils better. it is not a major problem to
 install something even if it required something else. Of course,
 this depends on the package authors.

 But distutils don't help the problem that the module requires stuff
 that's missing.  That's what happened with the thing I downloaded last
 week, that needed wxPython.  I don't understand why the author felt he
 had to use wxPython instead of tkinter, since it wasn't a really fancy
 gui, but after already-described hassles trying to instead wxPython, I
 just used the application's command line interface instead, which
 worked fine.  But if wxPython is so much better, maybe it's time for
 Python to include it.

 I want to start using Audacity pretty soon, which I think really does
 depend on wxPython, so I'm going to have to deal with this wxPython
 installation problem which is definitely not completely trivial.  What
 a pain.  


I've not experienced problems installing wxPython on Debian (unstable).
It just *works* out of the box with apt-get. Perhaps this is more of a
problem with the package maintainers? 

Adam
- -- 
http://www.monkeez.org
PGP key: 7111B833
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFB3lgd9F0IVXERuDMRAu49AJ4lBRrF10nHLtBK9NBVuznOnfJH/QCgx0vV
Oqk8Vx/nASKJXvakVEYtHII=
=kThY
-END PGP SIGNATURE-
-- 
http://mail.python.org/mailman/listinfo/python-list