[Python-Dev] Building with VS2015

2016-01-12 Thread Eddy Quicksall
I downloaded https://www.python.org/ftp/python/3.4.4/Python-3.4.4.tgz. After reading Python-3.4.4\PCbuild\readme.txt I opened pcbuild.sln and selected release/winn32 then tried a build all (F7). But that give lots of errors and missing .h files (mostly sqlite3.h). Does anyone know what I may

[Python-Dev] C struct for Str( )

2016-01-15 Thread Eddy Quicksall
I want to fill an Str() string from a C function. But I think I am using the wrong structure (PyBytesObject). I have written a C function to dump the Python class but as you can see the structure I'm using does not match the data in the class. Can someone please tell me the correct structure: --

Re: [Python-Dev] C struct for Str( )

2016-01-15 Thread Eddy Quicksall
Sorry, I must be on the wrong list. Can you please give me the correct list? Eddy From: Brett Cannon [mailto:br...@python.org] Sent: Friday, January 15, 2016 6:58 PM To: Eddy Quicksall; python-dev@python.org Subject: Re: [Python-Dev] C struct for Str( ) I don't quite see what this h