RE: Compiling Error prompt

2014-06-20 Thread Ramas Sami
Hi all, when ever I execute the code always on the output prompts this error "C:\Python33\lib\importlib\_bootstrap.py:1532: UserWarning: Module six was already imported from C:\Python33\lib\site-packages\six.py, but c:\python33\lib\site-packages\six-1.6.1-py3.3.egg is being added to sys.path l

RE: Python 3.3 shuts down

2014-06-04 Thread Ramas Sami
Hi all, Python 3.3 IDLE opens perfectly from that If I am try to open any-python-file.py or New file the python IDLE closes automatically. Python Version 3.3OS Windows 7 This problem happened when I had installed py2exe to convert into Python executables, since I have tried other packages like c

traceback.print_exc() supposed to stop exception propagation.

2008-04-06 Thread Sami
ng1\Except2.py", lin 15, in x = 1/0 ZeroDivisionError: integer division or modulo by zero None -- I never see the value 78. What am I doing wrong? Thanks, Sami -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems trying to hook own exception function to sys.excepthook

2008-04-06 Thread Sami
Peter Otten wrote: > Sami wrote: > >> Hello, >> >> I am new to Python. >> >> I tried to hook my own ExceptionPrintingFunction sys.excepthook but it >> does not work. >> >> This is what I wrote: >> ---

Problems trying to hook own exception function to sys.excepthook

2008-04-06 Thread Sami
ly want to test is to stop the exception from propagating further and leave the program intact. What am I doing wrong? Please let me know if there are any other newbie groups that I should probably try in stead. Thanks Sami -- http://mail.python.org/mailman/listinfo/python-list

Re: using "request" variable in python web program

2007-10-22 Thread sami
> Not exactly - this is the "query string" part of the URI. > Request and Response are the two messages defined by the HTTP protocol. > When you type a URL or click on a link or press a button in a page, your > browser builds the appropiate Request message and sends it to the server. > After proces

Re: using "request" variable in python web program

2007-10-22 Thread sami
that occurs after a "?" in a url e.g. url.com/index.cgi?name=sami&lang=python - is that correct? Googling for this information is useless since the word "request" is so common on the www -- http://mail.python.org/mailman/listinfo/python-list

Re: using "request" variable in python web program

2007-10-21 Thread sami
them Since a django user made pyfacebook, hopefully someone on the forum will help out Thanks again Sami > Paul > > P.S. I'm not too impressed by the lack of a common high-level Web API > for Python, either. However, I've mostly ignored the discussions and > stuck with my o

using "request" variable in python web program

2007-10-20 Thread sami
Hi I am trying to write a facebook application in python - I have been programming simple desktop applications till now and am not really familiar with web apps Pyfacebook is the wrapper for the REST based Facebook API - there is a simple example for its usage as shown below: def simple_web_app(

traceback over C API - still not working...

2007-10-20 Thread Sami Vaisanen
This is becoming utterly painful process I found out that the return value from "format_exception" function is NOT a list, i.e. PyList_Check() fails. PySequence_Check() succeeds but then PySequence_List() gives me back -1. So wtf? I must say the API is crap on this part. Im trying to get error

traceback over C API and PyObject_CallObject

2007-10-19 Thread Sami Vaisanen
Hello group, I'm trying to get the Python exception information (message and traceback) stored into a string in my C++ code. However all i get back is the string "None". All the checks pass and all pointers get a value from the python API calls. I've also tried with a different function such as Py

Re: Getting error message/trace over the C API

2007-10-18 Thread Sami Vaisanen
On Tue, 16 Oct 2007 18:55:22 +, Duncan Booth wrote: > Sami Vaisanen <[EMAIL PROTECTED]> wrote: > >> Hello group, >> >> I'm writing a C++ based application that embeds the python engine. Now I >> have a problem regarding exception/error informatio

Re: Extending Python with C API

2007-10-18 Thread Sami Vaisanen
On Thu, 13 Sep 2007 21:26:33 -0400, Carsten Haese wrote: > On Thu, 2007-09-13 at 18:05 -0700, Thierry Masson wrote: >> Hello, >> >> I'm trying to use the C API to extend Python. I've looked at various >> books and web sites (including the docs at python.org) and I can't get >> any of the samples

Getting error message/trace over the C API

2007-10-16 Thread Sami Vaisanen
olding GIL, the lock can be released by extensions/the interpreter and thus opens up a race condition regarding that grabber object. Please advice how to do this. -sami -- http://mail.python.org/mailman/listinfo/python-list