substitue for LISTS and TUPLEs in C++

2005-06-16 Thread GujuBoy
I am trying to transfer some code from PYTHON to C++. What is the best substitute for a LIST and TUPLE in C++. please advice. -- http://mail.python.org/mailman/listinfo/python-list

appending an array to a list in BOOST / Python

2005-06-08 Thread GujuBoy
i have an array in C++ (array[100]) and i want to append that to the list can i just say list1.append(array) without actually traversing through the entire array and appending... how can i do this in BOOST Python please help -- http://mail.python.org/mailman/listinfo/python-list

import error using BOOST in linux

2005-06-07 Thread GujuBoy
i am using BOOST in linux with python and i can compile my CPP file just fine to make a .so but everytime i do a import i get this error >>> import dirgesh Traceback (most recent call last): File "", line 1, in ? ImportError: libboost_python.so.1.32.0: cannot open shared object file: No such fil

error in usin list with boost

2005-06-04 Thread GujuBoy
i have created a "cpp" file which has the followin code and when i try to compile it..it does not know what "list" is..it says its undefined..i also tried using #include but no differe...can someone please help. thanks static list retrieval_as_list(SplitText &self, int position, int re

using boost to return list

2005-06-04 Thread GujuBoy
i am trying to make a "cpp" file which will make an array and pass it to python as a list. how is this possible...i am using BOOST...please can someone point me at some examples thanks -- http://mail.python.org/mailman/listinfo/python-list

changing colors in python

2005-04-14 Thread GujuBoy
i have a ansi.py file that i use in LINUX to change the text color to STDOUT when i use the "print" function...but when i move this ansi.py file over the windows...it does not work is there a version of ansi.py i can use for windows/linux please help -- http://mail.python.org/mailman/listin

Changing TEXT color from python

2005-04-04 Thread GujuBoy
so i am writing a program in Python and i want to print out a few statements in Different colors for example "Print hello world in RED, and "GOOD BYE in blue" " how can i do this...and hopefully without including any external modules. thanks in advance -- http://mail.python.org/mailman/listinf

checking if program is installing using python

2005-03-30 Thread GujuBoy
i want to check to see if a certain program is installed on my windows box using python. how can i do that...(ie, i want to see if "word" is installed) please help -- http://mail.python.org/mailman/listinfo/python-list

checksum works in unix but not win32 os

2005-03-29 Thread GujuBoy
i have the following code...which works fine in UNIX but then i move it over to WINDOWS XP and check the sum on the same file that i tested on unix and i get different results. def checksum(fileobj): filedata = array.array('B', fileobj.read()) totbytes = len(filedata) result = 0 de

Win32 or Unix check in python

2005-03-28 Thread GujuBoy
how can you check in python at the beginning if you running the app in WIN32 or UNIX. please help -- http://mail.python.org/mailman/listinfo/python-list

doing "checksum" in python

2005-03-28 Thread GujuBoy
is there a built-in function that does a "checksum" on a file...basicly counts the bytes and computes a 16-bit checksum for each given FILE. this is the like the "sum" command in unix -- http://mail.python.org/mailman/listinfo/python-list