Re: convert pyc (python 2.4) to py

2009-11-03 Thread Furkan Kuru
u'll have to figure out how to use it by yourself. > > Cheers, > Chris > -- > http://blog.rebertia.com > -- > http://mail.python.org/mailman/listinfo/python-list > -- Furkan Kuru -- http://mail.python.org/mailman/listinfo/python-list

Re: image recogniton?

2009-01-06 Thread Furkan Kuru
Is there anyone who can give me some > suggestions? > Thank! > Li Han > -- > http://mail.python.org/mailman/listinfo/python-list > -- Furkan Kuru -- http://mail.python.org/mailman/listinfo/python-list

Re: Filtering a Python list to uniques

2008-03-27 Thread Furkan Kuru
# what is the easiest way to get > # back a dictionary like this: > dct = { 'A': 1, 'B': 1, 'C': 2 } > # in other words counting the times a letter appears > in the list. > > Thanks, > Kelly > > > --- Furkan Kuru <[EMAIL PROTECTED

Re: embedded python pythonpath

2008-03-26 Thread Furkan Kuru
On Wed, Mar 26, 2008 at 3:49 AM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Tue, 25 Mar 2008 22:22:41 -0300, Furkan Kuru <[EMAIL PROTECTED]> > escribió: > > > On 3/26/08, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > > > >> En Tue, 25 Mar 20

Re: embedded python pythonpath

2008-03-25 Thread Furkan Kuru
On 3/26/08, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Tue, 25 Mar 2008 20:38:39 -0300, Furkan Kuru <[EMAIL PROTECTED]> > escribió: > > > Actually, I do not want any .py or .pyc files around my executable. > > (including userdict, sys, site etc) > >

Re: My python interpreter became mad !

2008-03-25 Thread Furkan Kuru
reter and importing re. > > and achieve the same result: importing the bogus re. What's your point? yeah same result: bogus re. but from a different way: not user's re but created by someone else in another directory. > > > > > > > On 3/25/08, *John Mach

Re: Filtering a Python list to uniques

2008-03-25 Thread Furkan Kuru
gt; # how do i reduce this to > lsttwo = [ 1, 2, 3, 4, 5, 6 ] > > Is there a page on this in the Python in a Nutshell or the Python > Cookbook? > Did I miss something? > > Kelly Greer > [EMAIL PROTECTED] > change nospam to yahoo > -- > http://mail.python.org/mailman/listinfo/python-list > -- Furkan Kuru -- http://mail.python.org/mailman/listinfo/python-list

Re: embedded python pythonpath

2008-03-25 Thread Furkan Kuru
version of python. On 3/26/08, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > > Furkan Kuru gmail.com> writes: > > > I've tried below code (Setting pythonpath environment variable) > > and then initialize python interpreter but the embedded python > interp

Re: My python interpreter became mad !

2008-03-25 Thread Furkan Kuru
m any directory starting your interpreter and importing re. On 3/25/08, John Machin <[EMAIL PROTECTED]> wrote: > > Furkan Kuru top-posted: > > Most probably X-Spam added itself to your path. > > What is "X-Spam"? Added itself to Benjamin's path [not mine

embedded python pythonpath

2008-03-25 Thread Furkan Kuru
)) { ::putenv( "PYTHONPATH=.;.\\plib.zip"); } else ::putenv("PYTHONPATH=%PYTHONPATH%;.\\plib.zip"); std::cout << "PYTHONPath Set to: " << ::getenv("PYTHONPATH") << std::endl << "And Again: "; system("echo %PYTH

Re: Creating dynamic objects with dynamic constructor args

2008-03-25 Thread Furkan Kuru
> ie. class T: >def __init__(self, foo, bar): >self.foo = foo >self.bar = bar > > argspec = inspect.argspec(T.__init__) > args = (1, 2) > > ??? how do you call T(args)? > > Thanks. > Greg > > -- > http://mail.python.o

Re: My python interpreter became mad !

2008-03-25 Thread Furkan Kuru
>File "", line 1, in ? > >File "/etc/postfix/re.py", line 19, in ? > > m = re.match('(Spam)', mail) > > AttributeError: 'module' object has no attribute 'match' > > >>> > > > > What's th

Re: Inheritance question

2008-03-25 Thread Furkan Kuru
;return '%d.%d' % (a,b) > > While my intention is to get 1.2 I get 2.2 > I would like to know what would be the right way to yield the expected > results > -- > http://mail.python.org/mailman/listinfo/python-list > -- Furkan Kuru -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheritance question

2008-03-25 Thread Furkan Kuru
>FooSon().getid() > File "a.py", line 14, in getid >a = super(Foo, self).getid() > AttributeError: 'super' object has no attribute 'getid' > -- > http://mail.python.org/mailman/listinfo/python-list > -- Furkan Kuru -- http://mail.python.org/mailman/listinfo/python-list

Re: embedded python in c++ packaging

2008-03-25 Thread Furkan Kuru
n_SimpleString("print 'HELLO FROM PYTHON'"); //<--- OR you can do > something else here like run a file > > > Step 2: > Extend python to talk back to your C++ code. > I use one giant SWIG module (see init function above) > > SWIG allows you to fi

Re: embedded python in c++ packaging

2008-02-07 Thread Furkan Kuru
gt; En Thu, 07 Feb 2008 16:18:57 -0200, Joshua Kugler <[EMAIL PROTECTED]> > escribió: > > Furkan Kuru wrote: > >> > >> I have been developing an application in C++ that embeds Python > >> interpreter. It takes advantage of too many modules from Python.

embedded python in c++ packaging

2008-02-07 Thread Furkan Kuru
files to a zip file and redirect Python25.dll to that zip file? Thanks in advance. -- Furkan Kuru -- http://mail.python.org/mailman/listinfo/python-list

Re: recording sound with python

2007-11-09 Thread Furkan Kuru
You. > > jessej > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Furkan Kuru -- http://mail.python.org/mailman/listinfo/python-list

Re: Noob questions about Python

2007-10-17 Thread Furkan Kuru
eturns what I want. Why does Python do that? > > Also I have been playing around with Binary math and noticed that > Python treats: > > val = 00110 > > as the integer 72 instead of returning 00110, why does Python do that? > (and how can I get around it?) > > Gratef

Re: calling the function of one class from another class

2007-09-22 Thread Furkan Kuru
tinfo/python-list > you should create an instance of ClassA: a = ClassA() a.fnc1() or if you want a static function you should declare the method as static classA(): def __init__(): .. .. @staticmethod def fnc1(): -- Furkan Kuru -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python to create windows apps that everyone can use?

2007-09-17 Thread Furkan Kuru
nd not C++, its so simple and > logical. > > > > So basically, the easiest way to do that, please! > > > > Thanks, > > > > Tom Harding > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Furkan Kuru -- http://mail.python.org/mailman/listinfo/python-list

Re: how can I find out the process ids with a process name

2007-09-02 Thread Furkan KURU
o do the programmically in my python script. > I know I can use ' os.system(cmd)' to execute the command 'ps -ef | > grep emacs', but how > can I pipe the output of my 'ps -ef | grep emacs' to my python script > and then run a regression expression with i

Re: building exe from script

2007-08-20 Thread Furkan KURU
o exe without opening console > ( cmd ).I'am working on Windows XP SP2 and Python 2.5. > > > > Regards, > Vedran > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Furkan Kuru -- http://mail.python.org/mailman/listinfo/python-list