Re: ctypes problem: segfault with pointer usage

2015-03-27 Thread Bruno Cauet
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_

ctypes problem: segfault with pointer usage

2015-03-27 Thread Bruno Cauet
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

urllib.parser.quote() and RFC 2396: unreserved characters get encoded

2015-02-11 Thread Bruno Cauet
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

Results of the python 2.x and 3.x use survey, 2014 edition

2015-01-29 Thread Bruno Cauet
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

Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition

2014-12-11 Thread Bruno Cauet
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

Python 2.x and 3.x use survey, 2014 edition

2014-12-11 Thread Bruno Cauet
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

Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition

2014-12-11 Thread Bruno Cauet
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