Re: Howto use GDateTime (Bug #647249)



Am Samstag, den 09.04.2011, 09:38 +0200 schrieb Laszlo Pandy:
> Is there any particular function you need to pass a GDateTime to? It
> seems like this need to be fixed in GLib. The functions are being
> parsed by the gir scanner correctly, but all of the g_date_time_new_*
> functions are listed as instrospectable=0, which tells Python to
> ignore them.

I created a lib [1] which needs a GDateTime. I also filled a bug report
[2] for this problem.


[1] https://gitorious.org/isas
[2] https://bugzilla.gnome.org/show_bug.cgi?id=647249 

> 
> On Sat, Apr 9, 2011 at 8:37 AM, Thomas Bechtold
> <thomasbechtold jpberlin de> wrote:
> > Hi,
> >
> > i tried to use GDateTime with pygobject (ubuntu natty) and got this:
> >
> > $ python
> > Python 2.7.1+ (r271:86832, Mar 24 2011, 00:39:14)
> > [GCC 4.5.2] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> >>>> import gi
> >>>> from gi.repository import GLib
> >>>> dt = GLib.DateTime()
> > Traceback (most recent call last):
> >  File "<stdin>", line 1, in <module>
> > MemoryError
> >>>>
> >
> >
> > How can i use GDateTime?
> >
> >
> > Cheers,
> >
> > Tom
> >
> >
> > _______________________________________________
> > python-hackers-list mailing list
> > python-hackers-list gnome org
> > http://mail.gnome.org/mailman/listinfo/python-hackers-list
> >
> >

Attachment: signature.asc
Description: This is a digitally signed message part



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