| |
thread by: David Eger |
last post Jul 18 '05 by: David Eger
I'm trying to make a very simple extension which will return a new copy
of a C++ string object to python, and I'm segfaulting in the process.
I'm using Python 2.2.2, SWIG 1.3.17 and g++ 3.3.
Am I getting something very basic wrong? See code below.
-David
/* file: dups.cxx */
#include "dups.h"
|
thread by: Luiz Siqueira Neto |
last post Jul 18 '05 by: Luiz Siqueira Neto
How I can handle events on a button in a panel inside of a wxHtmlwindow?
|
thread by: Behrang Dadsetan |
last post Jul 18 '05 by: Bengt Richter
Hi all,
I would like deleting specific characters from a string.
As an example, I would like to delete all of the '@' '&' in the string
'You are ben@orange?enter&your&code' so that it becomes
'benorange?enteryourcode'.
So far I have been doing it like:
str = 'You are ben@orange?enter&your&code'
str = ''.join()
|
thread by: jennyw |
last post Jul 18 '05 by: jennyw
Is there a way to set the EOL character that Python recognizes? For
example, I'd like to set it to cr/lf (okay, that's eol characters) when
reading a file (DOS text) and set it to just cr when writing out (Mac).
Is there a way to do this?
Thanks!
Jen
|
thread by: Andre Lerche |
last post Jul 18 '05 by: David M. Cook
Hi list,
I am quite new to Python and try to learn Python with a small pygtk
program. I am facing a problem which I am unable to solve for myself.
I think I have read the documentation and some samples, but however
I cannot find my mistake, so hopefully someone can help me with a
short hint. This is a small sample application which...
|
thread by: Peter Hansen |
last post Jul 18 '05 by: Robert Oschler
So there I was just sitting there, minding my own business, and in walks
one of the programmers, holding "Python in a Nutshell".
"Peter," he says, "this has gotta be the best book you've bought so far.
Every thing I need to look up, it's got it."
THE END
(I told you it was a very short story.)
|
thread by: Tony Steward |
last post Jul 18 '05 by: Gerhard Häring
Hello All,
I am looking for a programming language to use to write a database type
application to run on windows machines. Is python for me or pls suggest what
is.
Is there a page that explains in simple terms what Python can do on windows?
Is there an IDE?
Is the windows api pre wrapped?
Thanks
|
| |
thread by: Wenning Qiu |
last post Jul 18 '05 by: Aahz
I am researching issues related to emdedding Python in C++ for a
project.
My project will be running on an SMP box and requires scalability.
However, my test shows that Python threading has very poor performance
in terms of scaling. In fact it doesn't scale at all.
I wrote a simple test program to complete given number of iterations
of...
|
thread by: David McNab |
last post Jul 18 '05 by: Paul Rubin
Hi,
I'm writing a web app framework which stores pickles in client cookies.
The obvious security risk is that some 5cr1p7 X1ddi35 will inevitably try
tampering with the cookie and malforming it in an attempt to get the
server-side python code to run arbitrary code, or something similarly
undesirable.
To protect against this, I've...
|
thread by: drs |
last post Jul 18 '05 by: drs
please let me know if there is a better place to post this ...
I am trying to create a shared dictionary which can be accessed via COM. To
that end, I have written the code below (at the end).
So far this works from a single computer, but if another computer tries to
share the data it is unable to see changes, and throws exceptions when...
|
thread by: Noah |
last post Jul 18 '05 by: Noah
Does anyone have a function to convert back and forth between
NT style paths and POSIX style? It seems trivial, but
I want to make sure I don't overlook some obscure detail.
Is it a simple matter of translating / and \ characters?
FYI, I need a Python function that does what cygpath does so that
I can run a script on either NT or UNIX or...
|
thread by: drs |
last post Jul 18 '05 by: drs
I don't seem to be getting any bites on the earlier post ...
so here is my problem in a nutshell. I started a ZEO server on one computer
(\\camus) using
C:\>python C:\Python22\Lib\site-packages\ZEO\start.py -p 9000 C:\db\tmp.fs
that is fine
on another computer I typed the following from a python prompt:
|
thread by: Linkages |
last post Jul 18 '05 by: Linkages
im new with python..
im trying to do a script to find a file
in a FTP ...the script is supposed to work with
a recursive function that search in the FS
entering in each DIR until the file is found...
more or less something similar...
Function read_directory( directory_start )
{
|
thread by: Maurice |
last post Jul 18 '05 by: Piet van Oostrum
Dear all,
I've a problem using popen2 when using large files.
When I use small input files everything works well but when I feed large
inputfile to the pipe nothing happens. Is there a maximum bufsize for
using the pipe. The code I use is written down here below. Do I need to
specify a waittime between line 4 and 5 ?
o,i...
|
thread by: David Isal |
last post Jul 18 '05 by: David Isal
hi all,
i'm new to python and i'm trying to build a python extension on win98,
written in c++, with cygwin.
but i keep having the same error message, and i didnt't find much
resources on the web about it:
>g++ -I/cygdrive/c/python22/include -c demomodule.cpp -o demomodule.o
In file included from /cygdrive/c/python22/include/Python.h:62,...
|
| |
thread by: Tubby Tudor |
last post Jul 18 '05 by: hokiegal99
What is the best way to call one python script from within another
python script? For example:
one.py finishes succesfully and calls two.py which finishes OK and then
calls three.py
Thanks guys!
|
thread by: Noah |
last post Jul 18 '05 by: Bob Gailer
Hi,
How do I shutdown a win32 COM server?
I am scripting Adobe Illustrator through its COM interface.
The problem is that Illustrator has memory leaks.
And after a few hours of running, Illustrator will start to behave
oddly
until eventually it refuses the create new COM objects.
The solution is to close Illustrator and then restart it.
|
thread by: Gordon Wetzstein |
last post Jul 18 '05 by: Gordon Wetzstein
Hello everyone,
I have a problem with python sockets.
I broadcast a lot of pickled objects with socket. sendto(...), that works.
Ireceive them on the other site with socket.recvfrom(16384)
The pickled objects are smaller (like 10000 bytes) than the max bytes.
The problem appears if I send too many pickled objects very quickly one
after...
|
thread by: Dave Brueck |
last post Jul 18 '05 by: GerritM
Below is some information I collected from a *small* project in which I wrote
a Python version of a Java application. I share this info only as a data
point (rather than trying to say this data "proves" something) to consider
the next time the "Python makes developers more productive" thread starts up
again.
Background
==========
An...
|
thread by: lamar_air |
last post Jul 18 '05 by: Dennis Lee Bieber
I have a fortran executable which when run from cmd it asks for a
series of parameters which you enter then hit enter.
From my python cgi script i want to be able to run the executable.
Enter the 4 or 5 parameters needed then end the executable and
redirect to another web page which will display some results given
from an output file from the...
|
thread by: Guido van Rossum |
last post Jul 18 '05 by: Bengt Richter
I'm pleased to announce that the Python Software Foundation (PSF) is now
accepting donations from individuals and companies interested in
supporting our mission to improve the Python programming language.
The PSF holds the intellectual property rights for Python and is working
towards building a program to fund future Python development. ...
|
thread by: Létezõ |
last post Jul 18 '05 by: Jarek Zgoda
Hi Python Fans!
Could you send me a download URL of a compiled
HTML Help (CHM) file for Python 2.2.3 ?
Thanks: Complex
|
thread by: Krisztian Kepes |
last post Jul 18 '05 by: Christoph Becker-Freyseng
Hi !
I want to create an module and I want to use some Global Constant in it.
How to I create an global constant in module what is accessable in from other modules ?
like this example:
*** module dirs ***
const Const_Up=1
const Const_Down=1
|
| |
thread by: Tom Plunket |
last post Jul 18 '05 by: Gonçalo Rodrigues
I find myself often doing the following sort of thing (sorry for
lack of whitespace, I don't want the line to break):
for entry, index in map(lambda e,i:(e,i),aList,range(len(aList)):
# ...
This definitely seems like a roundabout way to loop through
parallel lists together. Is this map routine truly the easiest/
best/most...
|
thread by: JW |
last post Jul 18 '05 by: David Jeske
Hi,
Below is a description of what I would like to do. Would someone tell
me if it is possible and if so, how?
I have an array (presumably 'large') that is mallocced in a C function
and its
values are initialized in that same function.
I would like to pass just the pointer to the beginning of the array
|