Found the problem: I just have to add libgio.g_object_unref.argtypes =
[ctypes.c_void_p]
It now works flawlessly! Sorry for the noise.
2015-03-27 13:03 GMT+01:00 Bruno Cauet :
> Hi,
> I have a segfault problem with ctypes. Script attached.
> I simply need to call `libgio.g_file_new_for_
Hi,
I have a segfault problem with ctypes. Script attached.
I simply need to call `libgio.g_file_new_for_path` and then
`libgio.g_file_get_uri` with its result. That result is a GFile*. Since I
don't manipulate that GFile* I don't think I have to mess with argtypes &
restype of the functions. I st
Hi,
I believe that pathlib and urllib.parse.quote() do not correctly build URIs.
According to RFC 2396 (http://tools.ietf.org/html/rfc2396.html),
unreserved characters such as "!" should not be escaped (section 2.3):
Unreserved characters can be escaped without changing the semantics
of the U
3, but dependencies
keep them with 2.7 (I weep for the few ones still on 2.5).
I also posted the results on HN
(https://news.ycombinator.com/item?id=8967645) and reddit
(http://www.reddit.com/r/Python/comments/2u3oh0/results_of_the_python_2x_and_3x_use_survey_2014/).
Have a nice day, and a year
014 at 3:59 AM, Bruno Cauet wrote:
>> Here's the url: http://goo.gl/forms/tDTcm8UzB3
>> I'll publish the results around the end of the year.
> On "Which versions do you use?", 3.5 is not included. My primary
> Python 3 build on here is a 3.5 built from trun
Hi all,
Last year a survey was conducted on python 2 and 3 usage.
Here is the 2014 edition, slightly updated (from 9 to 11 questions).
It should not take you more than 1 minute to fill. I would be pleased if
you took that time.
Here's the url: http://goo.gl/forms/tDTcm8UzB3
I'll publish the result
0, 2014 at 11:10 AM, Donald Stufft
> wrote:
> > >
> > > On Dec 10, 2014, at 11:59 AM, Bruno Cauet
> wrote:
> > >
> > > Hi all,
> > > Last year a survey was conducted on python 2 and 3 usage.
> > > Here is the 2014 edition, slightly updated (from 9