Re: embedding interactive python interpreter

2011-03-25 Thread Eric Frederich
buffering on stdout with:    setvbuf(stdout, NULL, _IONBF, 0); Thanks, ~Eric On Fri, Mar 25, 2011 at 12:02 PM, Eric Frederich eric.freder...@gmail.com  wrote: I am able to embed the interactive Python interpreter in my C program except that when the interpreter exits, my entire program

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt -Devin Jeanpierre versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2011-03-21 Thread Devin Jeanpierre
Devin Jeanpierre jeanpierr...@gmail.com added the comment: Windows 7 64-bit (on the metal, not in a VM), can confirm. Holding down Ctrl+C will (eventually) halt Python on all the versions I have installed: 2.3, 2.7, 3.0, 3.1, 3.2. (All of these are 32-bit Pythons). Haven't done anything silly

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2011-02-08 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: There is a bug with the patch. The first argument to the `start` command, if a quoted string, becomes the Window title, not the command to execute. Hence, idle.pyw is directly executed by Windows. Here's the correct command line:

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2011-02-08 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: We're only a few days away from 3.2 final so it's too late. Once it goes out I'll make the adjustment and it'll be in 3.2.1. -- resolution: fixed - stage: committed/rejected - patch review status: pending - open

Re: python interpreter

2011-01-26 Thread Dave Angel
On 01/-10/-28163 02:59 PM, nair rajiv wrote: Hi, I was exploring python. I wanted to know more about the python interpreter i.e the technical details of how it has been written. If I am directed to the code that also will be fine. The implementation of python data structures lists, tuples

python interpreter

2011-01-25 Thread nair rajiv
Hi, I was exploring python. I wanted to know more about the python interpreter i.e the technical details of how it has been written. If I am directed to the code that also will be fine. The implementation of python data structures lists, tuples and dictionaries. If there exists any online

[issue1772833] -q (quiet) option for python interpreter

2010-12-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Is it on purpose that no sys.flags attribute has been added for quiet? -- nosy: +eric.araujo versions: +Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue1772833] -q (quiet) option for python interpreter

2010-12-28 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: No, pure ignorance -- should be fixed in r87549. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1772833 ___

[issue1772833] -q (quiet) option for python interpreter

2010-12-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Based on the +1's in #1728488, committed in r87021, with addition to the command-line docs. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-11-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I don't think this is a feature request. This batch file should always run the version of the file for which the batch is installed. For it to be generic and end up using another installed version is incorrect. With that said... Fixed in r86651,

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-11-21 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Brian, The following line: start %CURRDIR%..\..\pythonw.exe %CURRDIR%idle.pyw %1 %2 %3 %4 %5 %6 %7 %8 %9 should be changed to: start %CURRDIR%..\..\pythonw.exe %CURRDIR%idle.pyw %1 %2 %3 %4 %5 %6 %7 %8 %9 This is required

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-11-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: True. I'll correct it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6378 ___ ___

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-11-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Corrected in r86655, r86656, and r86657. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6378 ___

[issue9718] Python Interpreter Crash

2010-08-30 Thread quindraco
is broken, so I'm reporting the issue. That's what's happening - I'm crashing the python interpreter. Here's what I type to cause the issue; I'm not sure what more information is needed. from django.test.client import Client c = Client() response = c.post(logindir, loginvars) response = c.get

[issue9718] Python Interpreter Crash

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This seems to be a pyodbc problem, you should post the issue to them. When an extension module written in C (pyodbc.so) has an issue, there's nothing Python can do to prevent it from crashing the whole process, since C is an insecure language.

[issue9718] Python Interpreter Crash

2010-08-30 Thread quindraco
quindraco rickweinber...@gmail.com added the comment: I thought as much, so I've already posted on the pyodbc bug tracker, but thanks for the second opinion; I wasn't sure. I realise modules written in C can't be prevented from crashing, but is it really impossible to keep the interpreter

[issue9718] Python Interpreter Crash

2010-08-30 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Well, that's a another issue completely. -- nosy: +benjamin.peterson status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9718

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2010-08-28 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I'm not able to reproduce this. Do you have anything installed like pyreadline? -- assignee: ronaldoussoren - nosy: +brian.curtin versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2010-08-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I can't reproduce this on windows (in a KVM) with 2.6 or 2.7. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2010-08-27 Thread Isaul Vargas
Isaul Vargas isa...@gmail.com added the comment: I tested this on a real Windows 7 machine (64 bit, Ultimate) I open the command prompt, and I have the latest Pythons installed, Python 2.6.6, Python 2.7 final, and Python 3.1.2 If I hold down Ctrl-C, it will eventually exit the interpreter.

[issue1254125] Python interpreter unnecessarily linked against c++ runtime

2010-08-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: No reply to msg60799. -- nosy: +BreamoreBoy resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1254125

[issue1772833] -q (quiet) option for python interpreter

2010-08-21 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1772833 ___ ___

[issue3984] python interpreter import dependency with disutils/util

2010-08-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: get_config has moved to sysconfig, which is now a top-level module, and site is fixed. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker

[issue6187] Improvement in doc of Extending and Embedding the Python Interpreter, 5.3 Beyond Very High Level Embedding: An overview

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I don't see why this needs to be done, the 2nd paragraph of the doc is pretty explicit. This document assumes basic knowledge about Python. For an informal introduction to the language, see The Python Tutorial. The Python Language

[issue6187] Improvement in doc of Extending and Embedding the Python Interpreter, 5.3 Beyond Very High Level Embedding: An overview

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Agreed with Mark. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6187 ___

[issue8258] Multiple Python Interpreter Memory Leak

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It's actually the same issue as issue1635741 -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - closed superseder: - Interpreter seems to leak references after finalization

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-07-20 Thread Tal Einat
Changes by Tal Einat talei...@gmail.com: -- nosy: +taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6378 ___ ___ Python-bugs-list mailing

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-07-20 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: BTW, ActivePython (2.6 and 2.7 at the moment) includes this patched idle.bat. The start menu shortcut launches it. -- ___ Python tracker rep...@bugs.python.org

[issue8258] Multiple Python Interpreter Memory Leak

2010-07-20 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +brian.curtin, tim.golden stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8258 ___

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-07-10 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I will try to test this sometime, though I always start IDLE through the start menu. -- nosy: +tjreedy versions: +Python 3.2 -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-07-10 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: Added file: http://bugs.python.org/file17938/idle-use-curr-py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6378 ___

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2010-06-18 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3297 ___ ___

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2010-06-14 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: We are too close from the final 2.7 release, it's too late to backport. As I wrote, this feature is not important and there are many workaround, so we don't need to backport to 3.1. Close the issue: use Python 3.2 if you want a

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.4, Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3297 ___

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-05-25 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- type: behavior - feature request versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6378 ___

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2010-05-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @benjamin.peterson: Do you plan to port r75928 to 2.7 and 3.1? If not, can you close this issue? I think that this issue priority is minor because few people write directly non-BMP characters in Python files (maybe only one, Ezio

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2010-04-30 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Unassigning this issue from myself as I cannot reproduce the issue on OSX. -- assignee: ronaldoussoren - nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org

[issue3984] python interpreter import dependency with disutils/util

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3984 ___ ___ Python-bugs-list mailing

[issue8258] Multiple Python Interpreter Memory Leak

2010-03-29 Thread William
New submission from William william.le...@mastek.com: Context: I am embedding Python into a Windows based C++ application, where a new Python interpreter (using Py_NewInterpreter) is created for each user who connects to the system. When the user logs off, the function Py_EndInterpreter

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-28 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- dependencies: +UnicodeEncodeError - I can't even see license ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3297 ___

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Committed Adam's patch in r75928. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3297 ___

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This last point is already tracked by issue5127. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3297

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-04 Thread Adam Olsen
Adam Olsen rha...@gmail.com added the comment: Patch, which uses UTF-32-BE as indicated in my last comment. Test included. -- keywords: +patch Added file: http://bugs.python.org/file15043/py3k-nonBMP-literal.diff ___ Python tracker

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-04 Thread Adam Olsen
Adam Olsen rha...@gmail.com added the comment: With some further prodding I've noticed that although the test behaves as expected in the py3k branch (fails on UTF-32 builds before the patch), it doesn't fail using python 3.0. I'm guessing there's interactions with compile() vs import and the

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-03 Thread Adam Olsen
Adam Olsen rha...@gmail.com added the comment: Looks like the failure mode has changed here, presumably due to issue #3672 patches. It now always fails, even after loading from a .pyc. This is using py3k via bzr, which reports itself as 3.2a0 $ rm unicodetest.pyc $ ./python -c 'import

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-03 Thread Adam Olsen
Adam Olsen rha...@gmail.com added the comment: I've traced down the biggest problem to decode_unicode in ast.c. It needs to convert everything into a form of escapes so it becomes pure ascii, which then become evaluated back into a unicode object. Unfortunately, it uses UTF-16-BE to do so,

[issue3984] python interpreter import dependency with disutils/util

2009-09-17 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek priority: - low versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3984 ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2009-09-06 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- nosy: -ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___

Re: how to embed the python interpreter into web App (Mehndi, Sibtey)

2009-07-29 Thread Ryniek90
Hi All I am trying to embed the python interpreter in to a web app but could not get the way, any one can suggest me how to do this. Thanks, Sibtey Mehdi This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended

Re: how to embed the python interpreter into web App (Mehndi, Sibtey)

2009-07-29 Thread André
On Jul 29, 1:11 pm, Ryniek90 rynie...@gmail.com wrote: Hi All I am trying to embed the python interpreter in to a web app but could not get the way, any one can suggest me how to do this. Thanks, Sibtey Mehdi This e-mail (and any attachments), is confidential and may be privileged

Re: Problem with uuid package when embedding a python interpreter

2009-07-01 Thread Jérôme Fuselier
On Jun 30, 7:02 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 30 Jun 2009 13:05:42 -0300, Jérôme Fuselier jerome.fusel...@gmail.com escribió:   I've tried to import a script in an embedded python intrepreter but this script fails when it imports the uuid module. I have a

Re: Problem with uuid package when embedding a python interpreter

2009-07-01 Thread Aahz
In article 7d5cfbf0-38d5-4505-a93a-f321d0da7...@c36g2000yqn.googlegroups.com, =?ISO-8859-1?Q?J=E9r=F4me_Fuselier?= jerome.fusel...@gmail.com wrote: I've tried to import a script in an embedded python intrepreter but this script fails when it imports the uuid module. I have a segmentation fault

Problem with uuid package when embedding a python interpreter

2009-06-30 Thread Jérôme Fuselier
Hello, I've tried to import a script in an embedded python intrepreter but this script fails when it imports the uuid module. I have a segmentation fault in Py_Finalize(). Here is a simple program which imitate my problem. main.c : #include Python.h void test() { Py_Initialize();

Re: Problem with uuid package when embedding a python interpreter

2009-06-30 Thread Gabriel Genellina
En Tue, 30 Jun 2009 13:05:42 -0300, Jérôme Fuselier jerome.fusel...@gmail.com escribió: I've tried to import a script in an embedded python intrepreter but this script fails when it imports the uuid module. I have a segmentation fault in Py_Finalize(). #include Python.h void test() {

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2009-06-29 Thread Sridhar Ratnakumar
'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe) type: behavior versions: Python 2.6, Python 3.1 Added file: http://bugs.python.org/file14392/idle-use-curr-py.patch ___ Python tracker rep

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2009-06-29 Thread Trent Mick
Changes by Trent Mick tre...@gmail.com: -- nosy: +trentm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6378 ___ ___ Python-bugs-list mailing list

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2009-06-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Removing the Windows part: on my machine, repeated Ctrl-C's don't exit the 3.1 interpreter, probably because the io module is now written in C. -- assignee: - ronaldoussoren components: +Macintosh -Interpreter Core, Windows

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2009-06-23 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I cannot reproduce this on my machine (running OSX) using 2.5, 2.6 and 3.1 (latest rc). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677

[issue6187] Improvement in doc of Extending and Embedding the Python Interpreter, 5.3 Beyond Very High Level Embedding: An overview

2009-06-03 Thread Jon Blubinger
: Improvement in doc of Extending and Embedding the Python Interpreter, 5.3 Beyond Very High Level Embedding: An overview versions: Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file14168/interp3.c ___ Python tracker rep

using Winpdb in an embedded python interpreter

2009-05-16 Thread Adrian Genaid
Hi there, I have a problem using Winpdb in Pythonscripts running in a program which uses an embedded Python interpreter. After linking all needed modules statically to python, import rpdb2 can be done and leads to no error. But on using the next line rpdb2.start_embedded_debugger('password

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-04-28 Thread Lino Mastrodomenico
Changes by Lino Mastrodomenico l.mastrodomen...@gmail.com: -- nosy: +l.mastrodomenico ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3297 ___ ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2009-04-27 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed versions: +Python 3.1 -Python 2.4, Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-04-25 Thread Jakub Wilk
Changes by Jakub Wilk uba...@users.sf.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3297 ___ ___ Python-bugs-list mailing

Re: Python interpreter speed

2009-04-21 Thread Stefan Behnel
Tim Roberts wrote: The Python you're thinking of (CPython) is compiled to an intermediate language, which is then interpreted by an interpreter loop, somewhat remeniscent of Forth. It takes more cycles per instruction to run that interpreter loop than it does to run the machine language, but

Re: Python interpreter speed

2009-04-21 Thread Fabio Zadrozny
Further, I have an accounting software which was previously in java, but now in python and the performance gain is ausom. Yes it depends on how we write the code but comparing the 2 at least at the middle layer and front-end (pygtk) python is faster than java. Infact I am most certain that

Re: Python interpreter speed

2009-04-21 Thread Terry Reedy
Fabio Zadrozny wrote: Further, I have an accounting software which was previously in java, but now in python and the performance gain is ausom. Yes it depends on how we write the code but comparing the 2 at least at the middle layer and front-end (pygtk) python is faster than java. Infact I am

Re: Python interpreter speed

2009-04-20 Thread Tim Wintle
code. So why Python interpreter is slower than Java VM? Being written in C and compilled into machine code, it should be as fast as C/Asm code. What's wrong with that? I can't remember Java properly, but... Firstly, speed will depend on what you're writing. I dont' actually know how much

Re: Python interpreter speed

2009-04-20 Thread Krishnakant
On Mon, 2009-04-20 at 20:12 +0100, Tim Wintle wrote: I can't remember Java properly, but... Firstly, speed will depend on what you're writing. I dont' actually know how much slower python is, but I'm sure there are some things that run faster in python. I know many instences which

Re: Python interpreter speed

2009-04-20 Thread Tim Roberts
Ryniek90 rynie...@gmail.com wrote: Standard Python interpreter's implementation is written in C language. C code while compilation, is compilled into machine code (the fastest code). Python code is compiled into into byte-code which is also some sort of fast machine code. So why Python

Python interpreter speed

2009-04-19 Thread Ryniek90
Hi. Standard Python interpreter's implementation is written in C language. C code while compilation, is compilled into machine code (the fastest code). Python code is compiled into into byte-code which is also some sort of fast machine code. So why Python interpreter is slower than Java VM

Re: Python interpreter speed

2009-04-19 Thread Krishnakant
(the fastest code). Python code is compiled into into byte-code which is also some sort of fast machine code. So why Python interpreter is slower than Java VM? Being written in C and compilled into machine code, it should be as fast as C/Asm code. What's wrong with that? Greets and thank you

Re: Python interpreter speed

2009-04-19 Thread Pascal Chambon
into machine code (the fastest code). Python code is compiled into into byte-code which is also some sort of fast machine code. So why Python interpreter is slower than Java VM? Being written in C and compilled into machine code, it should be as fast as C/Asm code. What's wrong with that? Greets

Unusual Python interpreter problem with os.fork()

2009-03-06 Thread DLitgo
Hello everyone, I have a curious problem which I'm wondering if anyone here can shed some light on. I'm basically just following along with a guide which is going through some of the os module, and I'm running some examples in the python interpreter on mac os x (accessed through terminal/ bash

Re: Unusual Python interpreter problem with os.fork()

2009-03-06 Thread Jean-Paul Calderone
examples in the python interpreter on mac os x (accessed through terminal/ bash). Basically all I did was use os.fork() which caused this strange problem: Macintosh:~ $ python Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type help, copyright, credits

Re: Unusual Python interpreter problem with os.fork()

2009-03-06 Thread DLitgo
which is going through some of the os module, and I'm running some examples in the python interpreter on mac os x (accessed through terminal/ bash). Basically all I did was use os.fork() which caused this strange problem: Macintosh:~ $ python Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13

Re: Is there a way to increase memory allocated to the python interpreter

2009-02-25 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 janandith jayawardena wrote: Is there a way to configure the amount of memory allocated to the python interpreter. Can it be increased or decreased using an argument like in the Java Virtual Machine. Java needs the memory allocation number

Is there a way to increase memory allocated to the python interpreter

2009-02-24 Thread janandith jayawardena
Hi, Is there a way to configure the amount of memory allocated to the python interpreter. Can it be increased or decreased using an argument like in the Java Virtual Machine. thanks, Janandith. -- http://mail.python.org/mailman/listinfo/python-list

[issue1254125] Python interpreter unnecessarily linked against c++ runtime

2009-02-15 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- priority: normal - low type: - feature request versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1254125 ___

Re: ImportError in embedded Python Interpreter

2009-01-30 Thread googler . 1 . webmaster
Hi! Thanks. Well, os.py is found and all the others which don't need a library. I tested this: I execute Py_Main(...) in my app which executes the console interpreter and i tried to execute import socket which works. So Py_Main has something what my created PyRun_SimpleString doesn't have.

Re: ImportError in embedded Python Interpreter

2009-01-30 Thread Gabriel Genellina
En Fri, 30 Jan 2009 06:54:56 -0200, googler.1.webmas...@spamgourmet.com escribió: Thanks. Well, os.py is found and all the others which don't need a library. I tested this: I execute Py_Main(...) in my app which executes the console interpreter and i tried to execute import socket which

Re: ImportError in embedded Python Interpreter

2009-01-30 Thread googler . 1 . webmaster
Hi! Okay, thats just the question. I did that what you wrote but it doesn't really works. What is, if Py_SetProgramName() gets a NULL Pointer, if argv[0] is empty? Well, the problem is, in my opinion that os.environ returns some paths in python.exe and in my embedded interpreter if I call

Re: ImportError in embedded Python Interpreter

2009-01-30 Thread Gabriel Genellina
En Fri, 30 Jan 2009 08:50:45 -0200, googler.1.webmas...@spamgourmet.com escribió: Okay, thats just the question. I did that what you wrote but it doesn't really works. What is, if Py_SetProgramName() gets a NULL Pointer, if argv[0] is empty? Why so? Are you in an embedded environment or

ImportError in embedded Python Interpreter

2009-01-29 Thread googler . 1 . webmaster
a small console app which is stored in C:\test\ and embeddeds the python interpreter. I set the environment variable PATH so the python DLL files can be load. But when I want to import in a script the socket module, it fails. (The interpreter works fine, just importing files in the DLLs folder fail

ImportError in embedded Python Interpreter

2009-01-29 Thread googler . 1 . webmaster
a small console app which is stored in C:\test\ and embeddeds the python interpreter. I set the environment variable PATH so the python25.dll can be load. But when I want to import the socket module in a script, it fails. (The interpreter works fine, just importing files in the DLLs folder fail

Re: ImportError in embedded Python Interpreter

2009-01-29 Thread googler . 1 . webmaster
Hi! Okay, I checkede Py_Main(...) and called some python code there. There it works too. So I know whats missing. sys.environ.. returns nothing. How can I set the paths with the Python C API? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: ImportError in embedded Python Interpreter

2009-01-29 Thread Gabriel Genellina
python.exe I get the console and I can call import socket which succeeds. I wrote a small console app which is stored in C:\test\ and embeddeds the python interpreter. I set the environment variable PATH so the python25.dll can be load. The easiest way is to mirror the directory structure

[issue1772833] -q (quiet) option for python interpreter

2009-01-05 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- assignee: gvanrossum - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1772833 ___ ___

python interpreter black window

2008-12-25 Thread Gandalf
I use WX gui so the user doesn't actually need it, Is their any way to hide it? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: python interpreter black window

2008-12-25 Thread Chris Rebert
On Thu, Dec 25, 2008 at 3:32 PM, Gandalf goldn...@gmail.com wrote: I use WX gui so the user doesn't actually need it, Is their any way to hide it? Make sure your Python program is run by pythonw.exe as opposed to python.exe pythonw.exe exists specifically for the purpose of suppressing the DOS

Re: python interpreter black window

2008-12-25 Thread Scott David Daniels
Chris Rebert wrote: On Thu, Dec 25, 2008 at 3:32 PM, Gandalf goldn...@gmail.com wrote: I use WX gui so the user doesn't actually need it, Is their any way to hide it? Make sure your Python program is run by pythonw.exe as opposed to python.exe pythonw.exe exists specifically for the purpose

Re: python interpreter black window

2008-12-25 Thread Gandalf
On Dec 26, 2:52 am, Scott David Daniels scott.dani...@acm.org wrote: Chris Rebert wrote: On Thu, Dec 25, 2008 at 3:32 PM, Gandalf goldn...@gmail.com wrote: I use WX gui so the user doesn't actually need it, Is their any way to hide it? Make sure your Python program is run by pythonw.exe

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2008-12-21 Thread hippietrail
Changes by hippietrail hippytr...@gmail.com: -- nosy: +hippietrail ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3297 ___ ___ Python-bugs-list

[issue928332] Python interpreter stalled on _PyPclose.WaitForSingleObject

2008-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: os.popen is now deprecated; the subprocess module does all this much better. -- nosy: +amaury.forgeotdarc resolution: - wont fix status: open - closed ___ Python tracker [EMAIL PROTECTED]

Re: Implementing my own Python interpreter

2008-10-14 Thread Stefan Behnel
Ognjen Bezanov wrote: Also, any pro's out there willing to chime on the feasibility of implementing python to run directly on the hardware (without an underlying OS)? I don't expect 100% compatibility, but would the basics (branching, looping, arithmatic) be feasible? You should take a look

Re: Implementing my own Python interpreter

2008-10-14 Thread Scott David Daniels
Stefan Behnel wrote: You should take a look at Cython, which translates Python code to C. Also take a gander at RPython in the PyPy project. It is a restricted subset of Python on top of which they implement Python. --Scott David Daniels [EMAIL PROTECTED] --

Implementing my own Python interpreter

2008-10-13 Thread Ognjen Bezanov
Hello All, I am a third year computer science student and I'm the process of selection for my final year project. One option that was thought up was the idea of implement my own version of the python interpreter (I'm referring to CPython here). Either as a process running on another OS

Re: Implementing my own Python interpreter

2008-10-13 Thread Grant Edwards
On 2008-10-13, Ognjen Bezanov [EMAIL PROTECTED] wrote: I am a third year computer science student and I'm the process of selection for my final year project. One option that was thought up was the idea of implement my own version of the python interpreter (I'm referring to CPython here

Re: Implementing my own Python interpreter

2008-10-13 Thread Ognjen Bezanov
Grant Edwards wrote: On 2008-10-13, Ognjen Bezanov [EMAIL PROTECTED] wrote: I am a third year computer science student and I'm the process of selection for my final year project. One option that was thought up was the idea of implement my own version of the python interpreter (I'm referring

Re: Implementing my own Python interpreter

2008-10-13 Thread Matt Nordhoff
Ognjen Bezanov wrote: Hello All, I am a third year computer science student and I'm the process of selection for my final year project. One option that was thought up was the idea of implement my own version of the python interpreter (I'm referring to CPython here). Either as a process

<    1   2   3   4   5   6   7   8   >