473,772 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
2
1,403
thread by: Rustom Mody | last post Nov 2 '07 by: rustompmody
Ive been trying to compile python 3000 on debian etch And on running test I get: 4 skips unexpected on linux2: test_tcl test_dbm test_ssl test_bsddb Can someone tell me what packages I am missing?
0
1,050
thread by: Nikola Skoric | last post Nov 2 '07 by: Nikola Skoric
Is there a python library which supports using SOCKS proxy which I create by "ssh -D port remote-host"? I was trying to use that socket by SocksiPy, but I get "channel 3: open failed: administratively prohibited: open failed" on the server side. And I can use that channel freely with firefox. Any other library I might use? -- "Now the...
0
362
thread by: David Boddie | last post Nov 2 '07 by: David Boddie
On Fri Nov 2 12:59:48 CET 2007, Bart. wrote: You can use PyQt, Kross or PythonQt for this, but only PyQt will give you a comprehensive API "out of the box". There is code in the PyQt source distribution that shows how to set up the Python interpreter inside a C++ plugin and import modules - it's used to load custom Python widgets into...
3
2,601
thread by: Just Another Victim of the Ambient Morality | last post Nov 2 '07 by: Grant Edwards
Is there a Python library to communicate with a usenet server? I did a bit of googling and found some sites that suggest that you can roll your own fairly easily but, mostly, I got a lot of false positives with talk of Python libraries on usenet and I am really hoping this work has already done. Thank you...
2
4,060
thread by: gert | last post Nov 2 '07 by: gert
I want to escape binary data so i can insert data into a blob Using MySQLdb.string_literal(data) doesn't seem to escape everything ?
7
2,511
thread by: braver | last post Nov 2 '07 by: kyosohma
Greetings -- as a long time user of both Python and Ruby interpreters, I got used to the latter's syntax-coloring gem, wirble, which colorizes Ruby syntax on the fly. Is there anything similar for Python?
1
1,592
thread by: Devraj | last post Nov 2 '07 by: Alberto Berti
Hi everyone, Is it possible to write UI code in XUL for a GTK Python application? I found NuFox, which does the reverse (lets me write Python to generate XUL) Thanks.
0
819
thread by: =?iso-8859-1?q?Jo=E3o_Rodrigues?= | last post Nov 2 '07 by: =?iso-8859-1?q?Jo=E3o_Rodrigues?=
Hello all, I'm trying to build a webserver client and I'm having quite the trouble. I ended up using ZSI (since it's the only one that I could actually install on my Linux system) but I wonder: is there any other software for this purpose? I read about SOAPpy and PyXML but since both are discontinued, what do you use? By the way, I'm...
10
1,258
thread by: hyozan.ux3 | last post Nov 2 '07 by: Boris Borcic
I want to create a program that I type in a word. for example... chaos each letter equals a number.... A=1 B=20
1
1,409
thread by: alf | last post Nov 2 '07 by: Thomas Heller
Hi, there is following issue: "import cx_Oracle" on windows pops up a nice 'DLL missing' window in case there indeed is no CLI.DLL (or something like that). Then the exception is raised. Catching the exception is obviously not a problem, but the popup practically blocks the application and requires user intervention. There could be a...
40
1,959
thread by: brad | last post Nov 2 '07 by: Bruno Desthuilliers
Will len(a_string) become a_string.len()? I was just reading http://docs.python.org/dev/3.0/whatsnew/3.0.html One of the criticisms of Python compared to other OO languages is that it isn't OO enough or as OO as others or that it is inconsistent. And little things such as this seem to support those arguments. Not that it matters really......
7
5,300
thread by: Johny | last post Nov 2 '07 by: Bruno Desthuilliers
Is it possible to change record separator when using readline? As far as I know readline reads characters until found '\n' and it is the end of record for readline. My problem is that my record consits several '\n' and when I use readline it does NOT read the whole my record. So If I could change '\n' as a record separator for readline, it...
3
1,757
thread by: scripteaze | last post Nov 2 '07 by: scripteaze
posting to a form with no form name or it's just that i cant find the form name. can anyone explain how to either post to a form with no name or, find the name of the form..here my current output, but i dont see a form name, also, there is only 1 form on the page <POST https://somesite.com/login.html application/x-www-form- urlencoded...
0
912
thread by: rickyclarke9 | last post Nov 2 '07 by: rickyclarke9
I have found an excellent resource on understanding Windows Application concepts and exam 070-306. http://technical-talk.com/mc/mcsd/mcsd306.asp
1
19,324
thread by: crybaby | last post Nov 2 '07 by: J. Cliff Dyer
I wrote a python code in linux text pad and copied to thumb drive and try to ran the file by changing the path to windows: sys.path = sys.path + I get the following error: ValueError: invalid \x escape I am pretty sure this problem is due some kind of linux end of line
1
1,878
thread by: Nebulism | last post Nov 2 '07 by: bartonc
Hey everyone, I have a decent amount of experience programming in Python and using Tkinter to this point including the usage of many different widgets and events. I have the need to create a GUI now with a persistent environment (as in it looks like a regular windows program with the x, box, and _ in the upper right hand corner. I then will...
4
1,463
thread by: borthouth | last post Nov 2 '07 by: bartonc
Hi, I have multiple files with different filenames and want to test out regular expressions. I can use regexp=".*" to pick up all files, and also regexp=".*\.xxx$" to pick up all files ending with ".xxx". If I want to pick up files that does not finish with ".xxx" do I use regexp=".*$" Thanks.
1
1,037
thread by: cesco | last post Nov 1 '07 by: Paul Hankin
Hi, I have a defaultdict which I have initialized as follows: def train(features): model = collections.defaultdict(lambda: 1) for f in features: model += 1 return model
1
1,325
thread by: devnew | last post Nov 1 '07 by: Boris Borcic
hi i am looking for an efficient way to get a specific column of a numpy.matrix .. also i want to set a column of the matrix with a given set of values ..i couldn't find any methods for this in matrix doc..do i have to write the functions from scratch? TIA dn
3
1,433
thread by: Meitham | last post Nov 1 '07 by: Meitham
Hi, I am trying to write a simple program that reads data from a source file (Excel sheet, XML file or text file) and then write the data into another application by pasting the data into the applications fields, and jumps from one field to another by writing \t tab. My question is, how do I write the data into another application fields....
1
1,035
thread by: Robert LaMarca | last post Nov 1 '07 by: Jonathan Gardner
Hi all.. Was planning to use Python (maybe C later) to mock parallel processing project.. About to put together a set of computers for this.. Wondered if anyone had any knowledge or ideas about using a playstation running linux? My first impressions are that it is interesting.. for $400, one can get access to 6 smps under linux.. For...
1
4,648
thread by: max.aginaga | last post Nov 1 '07 by: Jonathan Gardner
Hi everyone I've come across the following problem: on two different linux machines, both running python 2.5 (r25:51908), I have the same file 'd.dat'. The md5 checksums are the same. Now, on one machine the following code works while on the other...
0
990
thread by: stef mientki | last post Nov 1 '07 by: stef mientki
hello, I would like to use instance parameters as a default value, like this: class PlotCanvas(wx.Window): def __init__(self) self.Buf_rp = 0 self.Buf_wp = 0 def Draw ( self, x1 = self.Buf_rp, x2 = self.Buf_wp ) :
4
1,081
thread by: Steve | last post Nov 1 '07 by: Steve
I'm currently working on a little database type program is which I'm using a dictionary to store the information. The key is a component a and the definition is a list of parts that make up the component. My problem is I need to list out several components, but not all, and there associated parts to a printer. Not having any luck. I can list...
1
5,540
thread by: openuser | last post Nov 1 '07 by: openuser
Hello, I've been researching how to embed python into C/C++. And, I learned how to write c/c++ code that, in threory, should do its job in embedding Python module into itself. Here is what I have.. #include <python2.4/Python.h> void SomeStuff::someMethod (void) { std::cout << "ErrVisitor" << std::endl; PyObject *pName,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.