| |
thread by: Florian Schulze |
last post Jul 18 '05 by: Michael Hudson
Hi!
I want to check from C that the Python Interpreter is still running and
it's save to call things like PySys_GetObject, PyFile_WriteString etc. I
need this in a C function which might be called during shutdown in a
program embedding Python. Currently I get this error:
Fatal Python error: PyThreadState_Get: no current thread
Abort!
|
thread by: christof hoeke |
last post Jul 18 '05 by: christof hoeke
hi,
for some days now i have problems with python taking a lot of time to start
up or run programs. today i installed the python 2.3rc1 but still the same
problem.
e.g. starting pythonwin 1.53 on winXP (athlon 1200 with 512MB) which
normally took only a few seconds now takes at least 15-20 seconds.
has anybody had a similar problem or...
|
thread by: solosnake |
last post Jul 18 '05 by: Michael Hudson
Well I thought I would take my first few steps in embedding python today,
and had to stop much sooner then I hoped. Where is python22_d.lib? Why is it
not in the release? I have 2.2.3, but nowhere is there such a library. Must
I get the source and build it myself? I'm using MSVC++ 6.0.
Thanks for all help,
Dáire Stockdale
|
thread by: Sebastien de Menten |
last post Jul 18 '05 by: Sebastien de Menten
Hi,
I am using the profile module to watch hot spots in a python
application.
The default output is already useful but has anyone tried to produce
output readable by kcachegrind (http://kcachegrind.sourceforge.net/) ?
seb
|
thread by: Tamer Higazi |
last post Jul 18 '05 by: John Hunter
Hi!
I have no idea about python. I got a c++ program which i want to be
called from an python script. How do i do that?
My programs path under Linux is:
/bin/Prinit
For any help,
|
thread by: Andrew Clover |
last post Jul 18 '05 by: Skip Montanaro
Evening all,
haven't seen much discussion on PEP 304 recently, what's its current
status?
As I'm currently writing something that also allows configuration of where
bytecode files go, I finally got around to reading the PEP, and I'm really
not convinced I like the approach it takes. It's so broad-brush;
PYTHONBYTECODEBASE can only really...
|
thread by: Ames Andreas (MPA/DF) |
last post Jul 18 '05 by: Duncan Booth
Hi all,
I'm using python 2.1 and can't easily upgrade (Zope). I'm using the
Queue module to synchronize/communicate between two threads and
weakref.proxy objects to avoid cycles. Scenario:
thread1:
- is the sole consumer (non-blocking get)
- holds the reference to the queue
|
| |
thread by: Stephen Ferg |
last post Jul 18 '05 by: Stephen Ferg
Seen in the Wall Street Journal, Monday, July 21, 2003, page B1.
Lee Gomes' "Portals" technology column: "Two Men, Two Ways to Speak
Computerese and Two Big Successes".
This is a brief, non-technical story on Guido von Rossum, inventor of
Python, and Larry Wall, inventor of Perl.
I don't think this is available online unless you are a...
|
thread by: manuel |
last post Jul 18 '05 by: manuel
I've two modules: main.py and eval.py
Eval.py is imported in main.py, but I've a loop
in eval.py that must call a function in main.py...
I can't import main.py in eval.py too, because
that would create an import loop.
But I'm thinking a different solution:
a pause in a loop to return periodically an
|
thread by: Michael Peuser |
last post Jul 18 '05 by: Michael Peuser
Python's OpenGL.Tk binding makes simple 3D drawing a snap! The default mouse
keys for panning and sizing is left and right, for rotation it seems to be
the middle key which is on just very few people's mouse nowadays.
Of course I tried obvious and not so obvious shift/alt/contrl/mouse
combinations- without any success.
Is there a...
|
thread by: Raymond Hettinger |
last post Jul 18 '05 by: Raymond Hettinger
Here are few more mini-mysteries for your amusement
and edification.
Again in this episode, the program output is not shown.
Your goal is to predict the output and, if anything
mysterious occurs, then explain what happened
(in blindingly obvious terms).
This time, the extra credit is for picking-out the three
that surfaced as errors in...
|
thread by: anonymous |
last post Jul 18 '05 by: Max Khesin
i'm looking to start learning python. could someone
recommend a good beginner's book for me?
thanks.
--------------------------------------------------------------------
For free web access to 50,000+ newsgroups, please visit
|
thread by: Raymond Arthur St. Marie II of III |
last post Jul 18 '05 by: Raymond Arthur St. Marie II of III
Hi Eric,
I've been quietly going around the web asking people to please fix the broken
Tuxedo links to your pages as I find them.
Hint.-- Hint--
http://www.catb.org/~esr/writings/cathedral-bazaar/
Your aware that many of the links in the books are still pointing to Tuxedo I'm
sure.
I also know how very busy you are.
|
thread by: none |
last post Jul 18 '05 by: David C. Fox
or is it just me?
I am having a problem with using a dictionary as an attribute of a
class. This happens in python 1.5.2 and 2.2.2 which I am accessing
through pythonwin builds 150 and 148 respectively
In the sample code you see that I have class Item and class Dict
class Dict contains a dictionary called items. The items dictionary...
|
thread by: christof hoeke |
last post Jul 18 '05 by: Alan Kennedy
hi,
i wrote a small application which extracts a javadoc similar documentation
for xslt stylesheets using python, xslt and pyana.
using non-ascii characters was a problem. so i set the defaultending to
UTF-8 and now everything works (at least it seems so, need to do more
testing though).
it may not be the most elegant solution (according...
|
| |
thread by: MK |
last post Jul 18 '05 by: MK
I'm working with IIS on W2K server. I'm trying to
use module "wmi" in a CGI script but with no success.
The following works:
import cgitb; cgitb.enable()
cgi.test()
.... but the following isn't working:
|
thread by: Dave Cole |
last post Jul 18 '05 by: Dave Cole
OVERVIEW
Albatross is a small toolkit for developing highly stateful web
applications.
The toolkit has been designed to take a lot of the pain out of
constructing intranet applications although you can also use Albatross
for deploying publicly accessed web applications.
In slightly less than 3000 lines of Python (according to pycount)...
|
thread by: Aurélien Géron |
last post Jul 18 '05 by: John J. Lee
Hi,
I'd like to write a simple portable browser plugin for Internet Explorer,
Netscape and if possible other navigators too. Is there a way to do that
using Python? For now I'd like to develop something like the GoogleBar, but
I'd also like to know how to develop "in-frame" plugins such as Flash or
Realplayer.
I searched comp.python.com...
|
thread by: Bartolomé Sintes Marco |
last post Jul 18 '05 by: Bartolomé Sintes Marco
Hi,
I have downloaded and installed Python 2.3 RC1 in a Windows
98 SE computer. IDLE 1.0 does not work very well:
a) When I open with IDLE 1.0 RC1 a program written
with IDLE 0.8, non-ASCII characters (like voyels with accents)
are changed to wrong characters.
b) If a program has non-ASCII characters, save or save as
work when a new file is...
|
thread by: Lawrence Oluyede |
last post Jul 18 '05 by: Steven Taschuk
Does it worth to make "object" keyword a reserved one?
I'd like to avoid oddities like this:
Python 2.3c1 (#44, Jul 18 2003, 14:32:36)
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class c(object): pass
....
>>> object = 4
>>> class c(object): pass
|
thread by: Ravi |
last post Jul 18 '05 by: Gerhard Häring
Hi,
I did some googling, and found that there doesn't seem to be a pure
python MySQL communication module. There is one for perl however,
Net::MySQL. I was wondering if there was a specific reason why something
similar hasn't been implemented in Python, a limitation of the language
or libraries perhaps? I briefly scanned through the perl...
|
thread by: Mark 'Kamikaze' Hughes |
last post Jul 18 '05 by: Mark 'Kamikaze' Hughes
In the new Python game I'm developing, I need to crop out individual
tiles from larger tilesets, and maintain transparency. Unfortunately,
I've run into major deficiencies in both Tkinter and PIL (PyGame,
wxPython, PyQt, etc. are not really suitable for this program, for a
number of reasons, and I have zero interest in discussing why right...
|
thread by: Hans Deragon |
last post Jul 18 '05 by: Hans Deragon
Greetings.
If I want to write a screensaver for Linux using Python, how can I detect
that the user has not touched the keyboard or mouse for the last 5 mins?
Sincerely,
Hans Deragon
--
|
| |
thread by: Ray Smith |
last post Jul 18 '05 by: Peter Hansen
Just a quick thought I had as a stumbled out of bed this morning ...
when I program some tricky piece of code well in another language I say
to myself ...
"Gee I was clever"
when I program a tricky well written piece of code in Python I say to
myself ...
|
thread by: jeff |
last post Jul 18 '05 by: jeff
Hiya
im trying to pull tags off a website using python ive got a few things
running that have the potential to work its just i cant get them to
becuase of certain errors?
basically i dont what to download the images and all the stuff just
the html and then work from there, i think its timing out because its
trying to downlaod the images...
|