| |
thread by: Rainer Deyke |
last post Jul 18 '05 by: Aahz
Now that rexec is gone, is there any code or information available on
executing Python in a restricted environment? And before I roll my own
solution, exactly where the security holes in rexec anyway?
(I know one way of getting a restricted environment: butcher the Python
interpreter by removing everything that's even remotely dangerous,...
|
thread by: Raymond Hettinger |
last post Jul 18 '05 by: Michael Hudson
QOTW: "the DOM API is designed for consultants, not for humans or
computers" -- Fredrik Lundh giving solace to a confused DOM API user
QOTW: "Python enjoys making tradeoffs that drive *someone* crazy
<wink>" -- Michael Hudson's signature line attributed to Tim Peters
Discussion
----------
Alex Martelli shows the classic example for...
|
thread by: Nick Hawthorn |
last post Jul 18 '05 by: Michael Hudson
I've just installed Python 2.3.1 on a SGI system running Irix 6.5,
using the SGI versions of cc and CC, as the local gcc is broken.
There were a lot of error messages, which seems to be normal. I'd
like to hear comments about how usable the resulting Python is likely
to be, and how to fix some of the install errors. So far I don't
know...
|
thread by: Tom Loredo |
last post Jul 18 '05 by: Martin Franklin
Hi folks-
I'm about to move from a Solaris 8/SPARC environment to a Dell running
RedHat 9. Are there any issues I need to be aware of in bringing my
Python code over (mostly scientific computation)? In particular, I know
earlier versions of RH shipped with an "old" Python installed as "python"
and that installation of more recent versions...
|
thread by: Gregor |
last post Jul 18 '05 by: Duncan Booth
I am trying to print some special characters, but they come out as
different characters in the Python console. If I have a script like this:
# -*- coding: latin_1 -*-
print "Mädchen"
print "M\xE4dchen"
Both statements produce a capital sigma where they ä should be. Typing
"\xE4" directly in the console also spits back a sigma.
|
thread by: dan |
last post Jul 18 '05 by: Andrew Dalke
I really have two related questions.
1) Is it possible (without recompiling and changing the core Python
behavior) to write functions that utilize the same syntax as built-in
functions? IE, can I create a function that does this:
>>>printCaps "hello" #note no parentheses
HELLO
|
thread by: eichin |
last post Jul 18 '05 by: Donn Cave
One of my recent projects has involved taking an accretion of sh and
perl scripts and "doing them right" - making them modular, improving
the error reporting, making it easier to add even more features to
them. "Of course," I'm redoing them in python - much of the cut&paste
reuse has become common functions, which then get made more robust...
|
| |
thread by: geoff moyle |
last post Jul 18 '05 by: Dennis Lee Bieber
|
thread by: Jonathan Edwards |
last post Jul 18 '05 by: Paul Paterson
The parser library module only records source line numbers for tokens. I
need a parser that records ranges of line and character locations for
each AST node, so I can map back to the source. Does anyone know of such
a thing? Thanks
Jonathan
|
thread by: Scott Hathaway |
last post Jul 18 '05 by: Dennis Lee Bieber
I want to write an NT service that will intercept any outgoing smtp
traffic, like Norton Antivirus does. Can anyone tell me how I can do
something like this in Python? I do not know how to intercept the
outgoing traffic, specifically.
Any help is greatly appreciated.
Thanks,
Scott
|
thread by: Sami Viitanen |
last post Jul 18 '05 by: eichin
Hello,
I was using os.popen function to get CVS command output to string from
script..
Same commands worked well with Windows, but Linux seems to have problem with
those. Whole CVS commands seem to froze or given commands aren't executed
right
at all. I had to replace os.popen commands with os.system. os.system
commands just
|
thread by: Prabu |
last post Jul 18 '05 by: logistix at cathoderaymission.net
Hi,
I'm new to python, so excuse me if i'm asking something dumb.
Does python provide a mechanism to implement virtual functions?
Can you please give a code snippet also...:)
Thanx in advance
-Prabu.
|
thread by: Bram Stolk |
last post Jul 18 '05 by: JanC
Hello,
I'm looking for a Python module that will let me stream real-time data,
in my case video data.
The current C++ code I use, based on UDP, is unsatisfactory and I would
like to move to something the the RTP protocol.
Python does not come with RTP support, and the only RTP related stuff
|
thread by: Howard Lightstone |
last post Jul 18 '05 by: Howard Lightstone
I know I've seen this elsewhere but I can't seem to find the answer....
I have Python embedded in a Windows application. I want to debug the non-
python part of the app without using the debug versions of python22_d.dll
and the myriad of other _d.pyd's.
I do have all the _d files (62 at last count!!!) but I didn't put them in
my delivery...
|
thread by: Gonçalo Rodrigues |
last post Jul 18 '05 by: Gonçalo Rodrigues
Hi,
I use the unittest module for testing a given module's functionality,
by lumping several test classes and then at the end a simple
if __name__ == "__main__":
unittest.main()
In one of these, I get, at a DOS prompt the following weird result:
|
| |
thread by: PyCon Chair |
last post Jul 18 '05 by: PyCon Chair
Want to share your expertise? PyCon DC 2004 is looking for proposals to
fill the formal presentation tracks.
PyCon DC 2003 had a broad range of presentations, from reports on
academic and commercial projects to tutorials and case studies, and we
hope to extend that range this year. As long as the presentation is
interesting and...
|
thread by: Stephen Ferg |
last post Jul 18 '05 by: Penna Elabi
I use the newsgroup mainly via my Web browser and Google.
Over the last few days, when I click on a link to a thread, I've been
frequently getting the message "Unable to find thread."
Does anybody know what's going on?
|
thread by: G.A. |
last post Jul 18 '05 by: Markus Wankus
I've installed Eclipse 3.0 and the latest pyeclipse. I can get the editor
run - at least I think so, because it seems to do reasonable syntax
highlighting. However, I can't get the Python console window to appear
(Unable to instantiate view: org.python.pyeclipse.views.ConsoleView), nor
can I get python to run to completion. The MSWindows...
|
thread by: Yi-Yu Chou |
last post Jul 18 '05 by: Fernando Perez
Dear all,
I want to use python as my GUI to load a 3D volume (vtkImageData),
and use a pointer to pass this 3D image to my own C++ class.
My question is I don't know how to communicate between python and C++.
Any suggestion would be appreciated.
_________________________________________________________________
²{¦b´N¤W MSN...
|
thread by: Andrew Chalk |
last post Jul 18 '05 by: Andrew Chalk
What is wrong with the following attempt to perform an SQL INSERT? No error
is thrown but no data is inserted into table FRED in the database.
Especially odd is that SELECT statements work! The database is MS SQL Server
2000.
Thanks!
import mx.DateTime, mx.ODBC.Windows
if __name__ == '__main__':
|
thread by: drn |
last post Jul 18 '05 by: John J. Lee
sir/madam,
as we are going to develop a educational s/w for children at preprimary level
we are facing some problems in deciding what platform to choose and what s/w to
use. so please help.
-we have more of graphics work.
-we have two students working simutaneously on one system.
-we will be having 4-5 systems in total in one classroom.
...
|
thread by: Lukas Schnieper |
last post Jul 18 '05 by: Richard
Hi all
I work with Suse Linux 8.2 and Python 2.2.2
I'm trying to make a python script which makes a rlogin to another
system and executes there another script. So it looks like this:
os.system("rlogin <hostname>")
os.system("./myscript.py")
The rlogin is ok. I can give in my password and i'm on the other host.
|
thread by: Gary |
last post Jul 18 '05 by: Gary
I'm trying to install various things via fink, in particular
numeric-py23.
The process stops with a dependency error:
dpkg: dependency problems prevent configuration of python23:
python23 depends on python23-shlibs (= 2.3-1); however:
Version of python23-shlibs on system is 1:2.3-1.
|
| |
thread by: Indigo Moon Man |
last post Jul 18 '05 by: Indigo Moon Man
The .dll file that py2exe creates to go with the program is huge even for a
small program. Is there any way to possibly optomize the .dll file to make
it smaller?
--
Audio Bible Online:
http://www.audio-bible.com/
|
thread by: sud jag |
last post Jul 18 '05 by: Michael Hudson
Hi,
Iam a newbie to python. So any help on this is
deeply appreciated
If I append an instance of a class to a list will
the list have a copy of the instance or just a
reference to that instance ? If it is only a reference
is there something similar to deep copy in case of
append ?
|