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
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
___
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
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:
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
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
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
É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
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
___
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
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,
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
Brian Curtin cur...@acm.org added the comment:
True. I'll correct it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6378
___
___
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
___
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
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.
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
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
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
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
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.
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
Changes by Georg Brandl ge...@python.org:
--
assignee: - georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1772833
___
___
É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
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
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
___
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
Changes by Tal Einat talei...@gmail.com:
--
nosy: +taleinat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6378
___
___
Python-bugs-list mailing
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
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
___
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
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
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3297
___
___
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
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
___
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
___
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
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
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3984
___
___
Python-bugs-list mailing
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
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
___
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
___
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
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
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
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
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,
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
___
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
nosy: -ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
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
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
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
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
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();
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() {
'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
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
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
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
: 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
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
Changes by Lino Mastrodomenico l.mastrodomen...@gmail.com:
--
nosy: +l.mastrodomenico
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3297
___
___
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
___
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
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
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
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
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
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
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
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
(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
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
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
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
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
-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
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
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
___
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.
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
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
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
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
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
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
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
Changes by Guido van Rossum gu...@python.org:
--
assignee: gvanrossum -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1772833
___
___
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
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
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
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
Changes by hippietrail hippytr...@gmail.com:
--
nosy: +hippietrail
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3297
___
___
Python-bugs-list
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]
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
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]
--
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
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
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
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
401 - 500 of 783 matches
Mail list logo