bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: python (parted) question


From: Andrew Clausen
Subject: Re: python (parted) question
Date: Fri, 12 Sep 2003 10:03:36 +1000
User-agent: Mutt/1.3.28i

On Mon, Sep 08, 2003 at 03:40:47PM -0700, Paul Telford wrote:
> static PyObject *
> disk_get_partition(PyObject *self, PyObject *args)
> {
>         PyPartedObject *o;
>         int num;
> 
>         if (!PyArg_ParseTuple(args, "Oi", &o, &num))
>                 return NULL;
> 
>         return PyPartedObject_new("PedPartition",
>                                   ped_disk_get_partition((PedDisk *)o->obj,
>                                                          num));
> }
> 
> 
> 
> This same code worked with libparted1.4, and broke at the 1.6 upgrade.  
> I'm not sure if the problem is in libparted, python-parted, or user-error.  
> I'm perfectly willing to accept the latter, but I hope to find a solution 
> anyway.  :)

I'm quite busy right now, so I'll give you some suggestions :)

So, to begin... could you stick a ped_disk_print((PedDisk*)o->obj)
call in the above function?

> Is anyone else out there even using python-parted?  There doesn't seem to 
> be much info about it...

BTW, there are two python-parted ports.  I personally like the other
one better (by address@hidden), so you might want to take a look at that
also.  I don't think it's been ported to 1.6 though.

Cheers,
Andrew





reply via email to

[Prev in Thread] Current Thread [Next in Thread]