pyconfig.h

2010-04-19 Thread omnia neo
Hi All, I am working on porting python on vxworks and hence was updating the PC \pyconfig.h file for configurng python. As I am reading the file and updating manually I come across lot many preprocessor directives which I dont understand e.g. HAVE_NICE etc. May be this is standard nomenclature and

Re: [Solved] SIP installation and usage on windows

2010-04-12 Thread omnia neo
On Apr 9, 7:41 pm, Gabriel Genellina wrote: > omnia neo gmail.com> writes: > > > > > > > On Apr 9, 10:42 am, omnia neo wrote: > > > On Apr 9, 10:30 am, Stefan Behnel wrote: > > > > > omnia neo, 09.04.2010 07:01: > > > > > >

Re: SIP

2010-04-08 Thread omnia neo
On Apr 9, 10:42 am, omnia neo wrote: > On Apr 9, 10:30 am, Stefan Behnel wrote: > > > omnia neo, 09.04.2010 07:01: > > > > import siptest > > > > I get following error : > > > import error : no module named siptest > > > Is the directory wh

Re: SIP

2010-04-08 Thread omnia neo
On Apr 9, 10:30 am, Stefan Behnel wrote: > omnia neo, 09.04.2010 07:01: > > > import siptest > > > I get following error : > > import error : no module named siptest > > Is the directory where your siptest.dll lies in your PYTHONPATH (sys.path)? > > Othe

SIP

2010-04-08 Thread omnia neo
Hi All, I was looking at the SIP tool to create a C extensions for python to call. Here is what I tried: 1. I created a simple c file and .h file 2. Then I created a corresponding testfunc.sip file ### %CModule siptest 0 %UnitCode #include"testfunc.h" %End void pyfunc()

Re: Anything like "Effective Java" for Python?

2010-03-12 Thread Neo
I have learned java for half a year and now I want to learn Python, should I learn python 3k or the traditional version? On Wed, Mar 10, 2010 at 7:19 AM, kj wrote: > > > > Subject line pretty much says it all: is there a book like "Effective > Java" for Python. I.e. a book that assumes that rea

Re: Beginning Question about Python functions, parameters...

2009-11-23 Thread Neo
astral orange schrieb: > Hi, I am trying to teach myself Python and have a good book to help me > but I am stuck on something and I would like for someone to explain > the following piece of code for me and what it's actually doing. > Certain parts are very clear but once it enters the "def store(d

Re: More & More Fun w/ Pics & MySQL

2009-10-17 Thread Neo
Hi, Victor Subervi schrieb: > Let me clarify. This prints out "all sorts of crap", which means an > image string, the image as a string, to the screen: > > print 'Content-type: image/jpeg' > print 'Content-Encoding: base64' > print > print pic().encode('base64') > print '' > > The following on