15,175 Topics

Member Avatar for
Member Avatar for 2ashwinkulkarni

Hello, I am using the RE, Regular Expression Module. The operation I need to perform is a search; The syntax for which goes like this re.search(pattern, string, flags) #flags being optional where 'pattern' is the string I am looking for in 'string'. My problem is I want to look for …

Member Avatar for jlm699
0
105
Member Avatar for joey101

I'm working on making a server control panel in python (like cpanel, plesk, etc) and wanted to know if any one knew of some tutorials on using bash and python together for creating users and stuff on a *nix system. Also if any one knows of a tutorial on using …

Member Avatar for ovoid
0
748
Member Avatar for skymuss

Hi daniweb users My name is luc. I'm from Germany. Before I have started with Python I used PHP. There you have the funktion [B]urldecode[/B] to decode a url string or [B]urlencode[/B] to encode a url string. I don't really know I a function like that in python. can you …

Member Avatar for Gribouillis
0
318
Member Avatar for sepiso

Hi , Kindly assist me with resolving this defect from the testers team. am new to python. the defect is as follows: "A small code change must be added to checkif the password that has been received from the API call compares to "clear|......". If this is the case then …

Member Avatar for Gribouillis
0
88
Member Avatar for sameer123

i want to create a file exactly like pickled file using C program in Qt without using python. this file will be read by python (unpickled ) to initialize some properties. Or Is there any way one can know the exact syntax of pickled file n then write it using …

Member Avatar for sameer123
0
268
Member Avatar for Briz

hi guys im new to this forum so im not sure how it works :S. im currently using the Khepera robot and am trying to make it follow the wall. i know how to read the sensors but i i dont know how to make it follow the wall if …

Member Avatar for sneekula
0
68
Member Avatar for SUBHABRATAIISC

Dear Group, I am getting some questions on doing Web Pages in Python. I have some interactive codes in python for which I like to make web pages. I am trying to use kid. Kid I learnt, and is easy, too. My questions are: i) Am I going correct? ii) …

Member Avatar for ITVanguard
0
143
Member Avatar for breakbone

Hi, I'm writing a simple echo/chat GUI server using wxPython. I made a separate thread for the server. The only problem I have is that when I try to close the server it hangs in socket.recv() thus hanging the whole thread. How can stop the socket from receiving from the …

Member Avatar for breakbone
0
160
Member Avatar for FreezeBlink

I know, this is a stupid question, but is it possible for a class to have two variables, one of which has a value, and the other of which will [i]always[/i] hold the same value, unless the user changes it? In essence, making the second variable a duplicate of the …

Member Avatar for Gribouillis
0
113
Member Avatar for ChrisP_Buffalo

How do I test a byte string in Python? I want to manually convert (no libraries or functions) a UTF-8 string into UTF-16. My basic solution is to reading from the stream some number of UTF-8 bytes, convert them into codepoints, then convert those codepoints into UTF-16 bytes. I want …

Member Avatar for ChrisP_Buffalo
0
145
Member Avatar for Das246

I have a script with a wx.Python GUI that monitors game files for changes and then makes a .tar.gz backup of each turn. If I run the test script (.py extension) the program works well and I can play the game without noticing the python script running in the background. …

Member Avatar for vegaseat
0
280
Member Avatar for vegaseat

I keep hearing that Python is about as slow as Java. Does anybody have experience with speeding things up?

Member Avatar for Gribouillis
0
484
Member Avatar for tzushky

Hello, long time no see... I've been getting along fine with Python lately and I just need to ask you a question: Is it possible to just write to, NOT OVER , an Excel file, in a certain area, using a certain python module?. This way results from an application …

Member Avatar for Gribouillis
0
2K
Member Avatar for tzushky

Hello again, I have the following situation: I have a script which allows the commands of several instruments. for some of them, their configuration is easy and simply launching the application with [B]os.system()[/B] or through [B]telnetlib [/B]allows me to do what I need. But I have stumbled across something which …

Member Avatar for tzushky
0
165
Member Avatar for darkMatter2008

Hi all, I'm wondering if it is possible to convert an object reference to a string and vica versa? Thanks

Member Avatar for Gribouillis
0
102
Member Avatar for knish

Hi, I am using the following code to send mail from a open window in maya application. This gives me following error. I think it says that A2 is not created. What is a possible way to have this code send a mail. BRgds, kNish # Error: name 'A2' is …

Member Avatar for jlm699
0
858
Member Avatar for fmv2011

Hello All. I am quite new to programming, I have a question in regards to creating a script that reads data from a file and then prints how many time each value ( number in my case occurs). I was wondering if you could help me write a similar script, …

Member Avatar for Ene Uran
0
367
Member Avatar for john_bboy7

I am getting an attribute error...Group not found on cookie = m.group(1) Can any one fix my code here? [CODE]#!usr/bin/python import re import urllib import urllib2 def MassVote(first_number, last_number, email1, email3, password, community_id, join = False, unjoin = False): def curl(url, cookie = None, get_header = False, fields = None): …

Member Avatar for john_bboy7
0
185
Member Avatar for flagrl

I found a way to open the source code on python command line, but my question is once it's in the command line what can i do with it? Anything? Or is it just another way to view the source code?

Member Avatar for jlm699
0
24
Member Avatar for StarryEyedSoy

I'm trying to find the moving average of 20 numbers at a time, being read from a list. This moving average then needs to be inserted into the list. Here is my code: [code]inplis = file(r'table.csv','r').readlines() outp = file(r'avg_volume.csv','w') import math emptyList = [] totalVolume = 0 counter = 0 …

Member Avatar for jlm699
0
122
Member Avatar for Das246

I've been searching for information on using wx.PyEvent so I can create custom events that fire from within my code rather than needing the user to trigger them. There isn't much around. There is some information on using wx.PyCommandEvent but I believe that these events still require the user to …

0
81
Member Avatar for splakhin

Hi everybody! I wrote for my company one little test application: Frame , Pmw.NoteBook and few buttons. and one main button 'Start' under NoteBook which starts process depend on name of Pmw.NoteBook... everything is fine , the problem is each of the processes run ~10 min and all this time: …

Member Avatar for splakhin
0
137
Member Avatar for toolbox03

how do I extract the arguments using getopt Usage: test.py -P abc -S def -G xyz How do I extract the values abc, def and xyz?

Member Avatar for jlm699
0
112
Member Avatar for Agni

This is my code for a chat client. I create a simple UI with a text box for viewing the chat and an entry widget to write messages. There's a button called 'Connect', when i click this i start a new thread which does the connection and keeps receiving messages …

0
86
Member Avatar for docaholic

how would you sort a class object? say..you have a card class, and in the card class, you can have the suits and face value of a card. how would you sort the cards by face values? (smallest to biggest?) thanks

Member Avatar for docaholic
0
159
Member Avatar for raymarquise

Hi, I know nothing about compiling a program, but I desperately need a program that is written in python. I installed python and tried to compile it, but got errors. If someone would be kind enough to compile it for me and sent it to my email address, I would …

Member Avatar for vegaseat
0
124
Member Avatar for FreezeBlink

I'm currently working on an application to which sound integration is important. Currently I'm using winsound for all the sound-related aspects of the program, but it is sub-optimal. I've been unable to make it completely work, and .wav files are bulky. Are there any equally usable alternatives to winsound?

Member Avatar for lllllIllIlllI
0
79
Member Avatar for Mazille

I'm having trouble with creating a function that would generate a random word from a list of four-Letter words from a file called fiveLetterWords.txt. I know how to generate the list and print it but I can't seem to get the random part right. I have attached the fiveLetterWords.txt file …

Member Avatar for Mazille
0
2K
Member Avatar for Billg

I need help on the use of Classes. I am trying to use the Font class in Python to create my own instance. Erro is no Font! I though Font was a standard class in Python. Any help for a newbie will be appreciated. ----------------------------------------------------- [code]from Tkinter import * class …

Member Avatar for vegaseat
0
100
Member Avatar for besktrap

how would I tell python (using pygame code) to do an event after a certain amount of time? Would I use pygame.time.Clock()?

Member Avatar for Scuppery
0
64

The End.