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(data,

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 no.em...@please.post wrote: Subject line pretty much says it all: is there a book like Effective Java for Python. I.e. a book that

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 attached testfunc.c and testfunc.h 2. Then I created a corresponding testfunc.sip file ### %CModule siptest 0 %UnitCode

Re: SIP

2010-04-08 Thread omnia neo
On Apr 9, 10:30 am, Stefan Behnel stefan...@behnel.de 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)? Otherwise, Python can't find it. Stefan

Re: SIP

2010-04-08 Thread omnia neo
On Apr 9, 10:42 am, omnia neo neo.omn...@gmail.com wrote: On Apr 9, 10:30 am, Stefan Behnel stefan...@behnel.de 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

Re: [Solved] SIP installation and usage on windows

2010-04-12 Thread omnia neo
On Apr 9, 7:41 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: omnia neo neo.omnia7 at gmail.com writes: On Apr 9, 10:42 am, omnia neo neo.omn...@gmail.com wrote: On Apr 9, 10:30 am, Stefan Behnel stefan...@behnel.de wrote: omnia neo, 09.04.2010 07:01: import siptest

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

[issue11597] Can't get ConfigParser.write to write unicode strings

2016-02-01 Thread neo gurb
neo gurb added the comment: In file ConfigParser.py, def write, replace line key = " = ".join((key, str(value).replace('\n', '\n\t'))) by key = " = ".join((key, str(value).decode('utf-8').replace('\n', '\n\t'))) Tested in Windows7 and Ubuntu 15.04. --