| |
thread by: lv191 |
last post Oct 10 '07 by: Motoma
Hi,
Now i raise a question : How to justify a container is a list or dictionary?
thank you for your answer !
Ma Shuai
|
thread by: cprogrammer |
last post Oct 10 '07 by: Stargaming
hello all,
i need to read from a file a struct like this
reading 1 byte or more is not a problem ... but the 12 bits values
are ...
thanks
|
thread by: Benjamin |
last post Oct 10 '07 by: OnCallSupport321
When importing Java packages in Jython, what is the convention to
simplify imports? For example:
import java.util as util
Is this correct? Or should I use from * import *?
|
thread by: Konstantinos Pachopoulos |
last post Oct 10 '07 by: mauro
Hi,
i have the following files:
current_dir/level1/Called.py
current_dir/Caller.py
Called.py:
-----------
class Called:
def exec1(self):
|
thread by: Ramon Crehuet |
last post Oct 10 '07 by: Scott David Daniels
Dear all,
I have a Fortran programming background and I have some difficulties in
understading how function wrappers work. I have delved into the subject
because of the new decorators, but I understand the decorator syntax. My
ignorance is more profound... Here is an example without decorators:
def require_int(func):
def wrapper(arg):...
|
thread by: Shriphani |
last post Oct 10 '07 by: Paul Hankin
Hello all,
Let us say I have a function like this:
def efficientFiller(file):
worthless_list =
pot_file = open(file,'r')
pot_file_text = pot_file.readlines()
for line in pot_file_text:
if line.find("msgid") != -1:
|
thread by: Diego Torres Milano |
last post Oct 10 '07 by: Diego Torres Milano
I've been working on a python based tool named autoglade that could be
of help to simplify application development using glade as the interface
designer.
There is a lot of room for improvement but it's pretty usable right now.
You can download autoglade from http://sourceforge.net/projects/autoglade.
A basic tutorial can be found in the...
|
| |
thread by: mauro |
last post Oct 10 '07 by: mauro
Hi all,
I am trying to make a package distribution containing some extension
module written in C. The problem is that when I run setup.py some
files are generated in the wrong position.
Suppose that this is my setup.py:
from distutils.core import setup, Extension
setup(name='foo',
package_dir = {"foo" : "src"},
|
thread by: Thomas W |
last post Oct 10 '07 by: Stefan Behnel
I've tried to install the pyxml-package, available at http://pyxml.sourceforge.net/,
both from source and using some hack on the win32-binary package
available for python2.4, but without luck. After install the module
xml.dom.ext.reader is not available, eventhough the folder, __init__py
and everything is in place.
Why? And could someone...
|
thread by: Stefan Arentz |
last post Oct 10 '07 by: John Machin
Is it possible to mix classes defined in both Python and C in the same
module? Ideally I would like to be able to do:
from some.module import MyPythonClass, MyCClass
I guess that would mean that this would look like this on disk:
some/
__init__.py
module.py (contains MyPythonClass)
|
thread by: Duncan Grisby |
last post Oct 10 '07 by: Duncan Grisby
I am pleased to announce that omniORB 4.1.1 and omniORBpy 3.1 are now
available. omniORB is a robust, high performance CORBA implementation
for C++; omniORBpy is a version for Python.
You can download them in source and Windows binary forms from
SourceForge:
...
|
thread by: panguohua |
last post Oct 10 '07 by: panguohua
www.space666.com
sports , poker ,etc.
|
thread by: Just Another Victim of the Ambient Morality |
last post Oct 10 '07 by: Stefan Behnel
HTMLParser is behaving in, what I find to be, strange ways and I would
like to better understand what it is doing and why.
First, it doesn't appear to translate HTML escape characters. I don't
know the actual terminology but things like & don't get translated into
& as one would like. Furthermore, not only does HTMLParser not translate it...
|
thread by: annguyen |
last post Oct 10 '07 by: bartonc
Hi!
I'm looking for the PAMIE documents. Are there any people could help me?
|
thread by: yanzinmeister |
last post Oct 10 '07 by: yanzinmeister
Hello everyone,
i'm new user of python, in fact, i'm using Control Desk from dsPACE. I
just want to change the programm a bit to fit to my application.
I draw xyplot using virsual instrument xyplot in Control Desk, and i
want to delect any curses if it's needed. But in Control Desk the
xyplot is time signal, i can not simply delect it....
|
| |
thread by: thatos |
last post Oct 10 '07 by: bvdet
need help I was trying to do a program which could eliminate numbers which repeats themselves in a list the program below works but it gives me an error can you please try to find the problem as have I tried to check where the problem is but i couldn't find the solution
>>> a =
>>> n = 0
>>> b = len(a)
>>> while n < b:
while a == a:...
|
thread by: thatos |
last post Oct 10 '07 by: WhiteRider
I would like to know what is the difference between a program and a code cause sometimes i get confused which word should i use
|
thread by: Tommy Grav |
last post Oct 9 '07 by: John Machin
Hi everyone,
I have a list of objects where I have want to do two loops.
I want to loop over the list and inside this loop, work on all
the elements of the list after the one being handled in the outer
loop. I can of course do this with indexes:
.... for j in xrange(i+1,len(alist)):
.... print i,j,alist,alist
....
|
thread by: Fantus |
last post Oct 9 '07 by: Fantus
Hello
I am doing a small research and I found this:
http://www.freedom-to-tinker.com/tinyp2p.html
I tried to get it to work. So far I managed to run it as a server using
a command:
|
thread by: Alex Ezell |
last post Oct 9 '07 by: Alex Ezell
Can anyone offer any assistance as to how to convert a basic python
dictionary, list, or even tuple into the SOAP type "ArrayOfKeyValue"?
I am currently using SOAPpy, but would be willing to change to ZSI or
something else if it made this conversion easier.
I have tried with the arrayType and structType methods in
SOAPpy.Types, yet they...
|
thread by: crazy420fingers |
last post Oct 9 '07 by: arvind
I'm running a python program that simulates a wireless network
protocol for a certain number of "frames" (measure of time). I've
observed the following:
1. The memory consumption of the program grows as the number of frames
I simulate increases.
To verify this, I've used two methods, which I invoke after every
frame simulated:
|
thread by: ApoorvaDesai |
last post Oct 9 '07 by: bartonc
I have a GUI with two textCtrl .
# For entering User ID
self.textCtrl1 = wx.TextCtrl(id=wxID_MDICHILDFRAME4TEXTCTRL1,
name='textCtrl1', parent=self, pos=wx.Point(104, 16),
size=wx.Size(100, 21), style=0, value='')
# for entering password
self.textCtrl2 = wx.TextCtrl(id=wxID_MDICHILDFRAME4TEXTCTRL2,
...
|
thread by: Stefan Arentz |
last post Oct 9 '07 by: Chris Mellon
Is there an easy way to implement a specific method of a Python class
in C? Like a native method in Java? I would really like to do the
majority of my class code in Python and just do one or two methods
in C.
S.
|
| |
thread by: timw.google |
last post Oct 9 '07 by: timw.google
Hi
I want to write a python script that runs rsync on a given directory
and host. I build the command line string, but when I try to run
subprocess.call(cmd), or p=subprocess.Popen(cmd, shell=True),or
os.system(cmd), I get prompted for my login password. I expected this,
but when I try to give my password, it's echoed back to the terminal...
|
thread by: Thomas W |
last post Oct 9 '07 by: Grant Edwards
I want to create a virtual filesystem based on a relational database.
It might run as a server on a different machine, but it has to be
available like a normal filesystem, either shared using SAMBA or
windows filesharing or thru something else like WebDav.
The idea is that I scan a local filesystem and then create relations
between those...
|