473,772 Members | 3,731 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.
3
1,099
thread by: krishnamanenianil | last post Nov 6 '07 by: Paul McGuire
hi i am looking for pattern in regular expreesion that replaces anything starting with and betweeen http:// until / like http://www.start.com/startservice/yellow/ fdhttp://helo/abcd will be replaced as p/startservice/yellow/ fdp/abcd
1
11,379
thread by: nish88 | last post Nov 6 '07 by: bartonc
hi to all... i'm working on an animation where i have to make the picture background.gif transparent. l'm not able to do it.can you please help me or tell me what codes i should add to make the picture transparent. thank in advance import Tkinter from Tkconstants import * def window(tk):
0
929
thread by: Donn Ingle | last post Nov 6 '07 by: Donn Ingle
Hi, I'm doing something odd with pycairo and friends and I want to see what commands are coming out of my objects. Here's some code: class Box: def draw() self.context.set_source_rgb(1, 0, 0) self.context.rectangle(0, 00, 50, 50)
1
1,251
thread by: rustom | last post Nov 6 '07 by: Simon Brunning
heckle in ruby is inspired by jester for java. I quote: Heckle is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is that if code can be changed and your tests don't notice, either that code isn't being covered or it doesn't do anything. from...
4
2,970
thread by: Wolfgang Keller | last post Nov 6 '07 by: Jonathan LaCour
Hello, so far it seems to me as if the only ORM module for Python which supports composite primary/foreign keys was SQLAlchemy. Which looks a little bit "overbloated" for my needs: I "just" need to be able to define a "logical model" (à la UML) in Python and have the ORM connect to a database (running on PostgreSQL in my case) which uses a...
2
5,828
thread by: metaperl.com | last post Nov 6 '07 by: Paul McGuire
I'm reading http://norvig.com/spell-correct.html and do not understand the expression listed in the subject which is part of this function: def train(features): model = collections.defaultdict(lambda: 1) for f in features: model += 1 return model
0
1,174
thread by: Michel Albert | last post Nov 6 '07 by: Michel Albert
I would like to display some charts in a Qt application. But all the docs I find online are rather dusty and talk about Qt3. My application uses Qt4 however. I ran into PyQwt and matplotlib. But the docs of matplotlib are horrid and the example in their wiki covers Qt3, and things look quite cryptic to me. PyQwt looks much more interesting,...
1
232
thread by: devel001 | last post Nov 6 '07 by: A.T.Hofkamp
please open this link==== this is will help you http://www.55a.net
6
1,115
thread by: Shriphani | last post Nov 6 '07 by: Boris Borcic
Hello, I want to try something like: for (a, b, c, d, e, f) in : #### When I do that I get an error: TypeError: unpack non-sequence My main intention is to state that each of the variables namely a, b,
18
7,437
thread by: Jens | last post Nov 6 '07 by: Aaron Watters
I'm starting a project in data mining, and I'm considering Python and Java as possible platforms. I'm conserned by performance. Most benchmarks report that Java is about 10-15 times faster than Python, and my own experiments confirms this. I could imagine this to become a problem for very large datasets. How good is the integration with...
10
1,756
thread by: sandipm | last post Nov 6 '07 by: Nicolas.Chauvat
seeing posts from students on group. I am curious to know, Do they teach python in academic courses in universities? in undergrad comp science courses, We had scheme language as scheme is neat and beautiful language to learn programming. We learnt other languages ourselve with basics set right by scheme.. sandip
6
10,088
thread by: awel | last post Nov 6 '07 by: Marc 'BlackJack' Rintsch
Hello All, I am trying to to make a script to move all the files that has been created at today's to another folder but my problem is the date format that I receive from the 'os.stat ' is different from the one that I receive from the 'datetime.date.today()'. Does someone could help me? Here is my script:
4
1,194
thread by: sandipm | last post Nov 6 '07 by: Palindrom
I did fair amount of programming in python but never used c/c++ as mentioned below. any good tutorials for using C/C++ to optimize python codebase for performance? how widely do they use such kind of mixed coding practices? sandip ---------- Forwarded message ---------- From: "D.Hering"
13
4,013
thread by: c3950ig | last post Nov 6 '07 by: Ton van Vliet
Hi, I am python newbie and the command prompt is having an issue with python. I installed python 2.4.4 onto my windows machine, opened a command prompt window, and typed python to start the interactive mode. Got the following error. D:\>python 'python' is not recognized as an internal or external command, operable program or batch file.
4
3,925
thread by: loial | last post Nov 6 '07 by: Tim Roberts
I am writing a file in python with writelines f = open('/home/john/myfile',"w") f.writelines("line1\n") f.writelines("line2\n") f.close() But whenever I try to do anything with the file in python it finds no data. I am trying ftp, copying the file...the resultant file is always 0 bytes, although if I look at the original file on the...
1
1,320
thread by: Benjamin | last post Nov 6 '07 by: D.Hering
Hi! I'm trying to install SIP on my Mac with the eventual aim of installing PyQt. The "python configure.py" stage works fine, but when I type make this is what I see: cc -c -pipe -Os -w -I. -o main.o main.c cc -c -pipe -Os -w -I. -o transform.o transform.c cc -c -pipe -Os -w -I. -o gencode.o gencode.c cc -c -pipe -Os -w -I. -o export.o...
0
912
thread by: sindhu_jjcet | last post Nov 6 '07 by: sindhu_jjcet
to get preapred for the business see bird-flumanual.com log on to http://www.geocities.com/humnoses/
3
1,157
thread by: zionist.news | last post Nov 6 '07 by: Virgil
http://www.youtube.com/watch?v=BdB2r1ss5Wk http://www.jewwatch.com/ <----- excellent source for well researched news on world events and the big movers of history
0
932
thread by: sndive | last post Nov 6 '07 by: sndive
am i allowed to use PyUnicode_Decode or PyUnicode_DecodeUTF8 in my code or that is not advisable? QString s("foo"); // QString::unicode returns garbage unusable for PyUnicode_FromUnicode PyObject *uo = PyUnicode_Decode(s.utf8(), s.length(), "utf8", 0);
2
1,684
thread by: Erika Skoe | last post Nov 5 '07 by: Martin Marcher
1
1,430
thread by: JamesHoward | last post Nov 5 '07 by: Chris Mellon
Are there any good thread profilers available that can profile a thread as it is running instead of after execution is completed? I would like to find a python class which looks at a currently running thread and if its memory exceeds a certain amount than kill it. Ideally I would like the program to track memory used not just by that...
0
1,040
thread by: crybaby | last post Nov 5 '07 by: crybaby
Right now I am trying to install pydev 1.3.10 on Eclipse 3.3. I am getting an Mylar error org.eclipse.mylar (2.0.0.v20070403-1300) or something needed. Mylyn is mylar, now. How do you disable the mylar dependency, so that Mylyn is used by PyDev?
2
2,727
thread by: =?iso-8859-1?B?QW5kcuk=?= | last post Nov 5 '07 by: =?iso-8859-1?B?QW5kcuk=?=
I just installed Leopard on my Mac. I already was using Python 2.5. I can run a Python script from a terminal window by typing "python script.py" as one would expect ... but not using the Python launcher either directly or indirectly (by double clicking on a Python icon). Has anyone else observed this and, more importantly, found a fix for...
7
1,351
thread by: mrkafk | last post Nov 5 '07 by: Rich Harkins
Hello everyone, I'm trying to do seemingly trivial thing with descriptors: have another attribute updated on dot access in object defined using descriptors. For example, let's take a simple example where you set an attribute s to a string and have another attribute l set automatically to its length.
0
1,097
thread by: Gabriel Genellina | last post Nov 5 '07 by: Gabriel Genellina
QOTW: "I've just done my first serious work in Python/IDLE, a small dot pre-processor for software modeling diagrams and I am very enthused. It should be called Pytho; it has the positive qualities of Play-Do and Lego: you get ideas squishing it through your fingers and it snaps together nicely to build things." - Jonathan Cronin...

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.