Search Discussions

284 discussions - 2,507 posts

  • I'm attempting to set up an extremely simple server that receives a string, and returns a string. However, I have 2 problems. I'm able to receive the string from the client fine, but it only will ...
    Nov 22, 2013 at 1:56 am
    Nov 22, 2013 at 5:39 pm
  • As part of a post on python-ideas, I wanted to knock together a quick little script that "imports" a file based on its name, in the same way that the Python interpreter will happily take an absolute ...
    Chris AngelicoChris Angelico
    Nov 24, 2013 at 3:41 am
    Nov 24, 2013 at 4:30 pm
  • A few days ago, I asked about getting the original declared name of a function or method, and learned about the __name__ attribute ...
    John LadaskyJohn Ladasky
    Nov 18, 2013 at 8:13 pm
    Nov 19, 2013 at 7:08 am
  • So I'm trying to write a program for a problem in class, and something strange is happening that I can't figure out why is happening. I was wondering if you guys could help me fix it? ...
    Nov 12, 2013 at 10:14 pm
    Nov 12, 2013 at 11:19 pm
  • Hi all, error: Setup script exited with error: Unable to find vcvarsall.bat Visual C++ Express installed. the key HKEY_LOCAL_MACHINE\Software\Microsoft\VCExpress\9.0\Setup\VC\ProductDir is present ...
    Radu BortoiRadu Bortoi
    Nov 1, 2013 at 1:20 pm
    Nov 1, 2013 at 10:06 pm
  • It's for a school assignment. Basically, I need to roll 5 dies with 6 sides each. So basically, 6 random numbers. That part is easy. Then I need to add it up. Ok, done that. However, I also need to ...
    Nov 30, 2013 at 12:31 am
    Dec 2, 2013 at 1:01 am
  • data = sock.recv(RECV_BUFFER) username = str(sock.getpeername()) username = usernames[username] if command == "/quit": print data sock.send("bye") sock.close() CONNECTION_LIST.remove(sock) even if ...
    Bhanu KarthikBhanu Karthik
    Nov 23, 2013 at 10:15 pm
    Nov 23, 2013 at 10:58 pm
  • Started to build this on my own; then was like, hang on! - This is probably something very commonly requested? Can you recommend an open source project (or two) written in Python; which covers multi ...
    Alec TaylorAlec Taylor
    Nov 13, 2013 at 12:46 pm
    Nov 23, 2013 at 1:49 am
  • Hi all. I need to build my own version of Python on a MacOSX system, and I can't seem to do it successfully. I need to build it with a particular location, etc. and so I can't use Homebrew or ...
    Paul SmithPaul Smith
    Nov 13, 2013 at 7:16 pm
    Nov 15, 2013 at 10:23 pm
  • Could you point out any errors in my code: #This is a game where you have to escape a dragon. # By Saad Imran import random import pygame # Define questions and answers. que1 = "4481 *2" ans1 = ...
    Saad imranSaad imran
    Nov 13, 2013 at 4:18 am
    Nov 13, 2013 at 12:30 pm
  • Hello guys, Probably not right forum but I thought I should get some suggestions. I am looking for some tool written in python which can help users to create rpm spec files and later help to build ...
    Unix SAUnix SA
    Nov 25, 2013 at 2:17 pm
    Nov 29, 2013 at 2:15 pm
  • Hello ! I wish to develop a database application with a lot of specific functionnalities dealing with sound files. I have developped an Access prototype and run into a first problem : it is not so ...
    Nov 27, 2013 at 9:35 pm
    Nov 28, 2013 at 9:58 pm
  • Hello, I am working on a problem (Bioinformatics domain) where all possible combinations of input string needs to be printed as sublist For example: Input string : "LEQN" Output= ...
    Nov 27, 2013 at 10:46 am
    Nov 27, 2013 at 6:14 pm
  • Using 1/3 as an example, 0.3333333333333333 0.33333333333333331482961625624739099293947219848633 3.33333333333333348136306995002087205648422241210938 ...
    Kay Y. JhealleeKay Y. Jheallee
    Nov 18, 2013 at 2:14 pm
    Nov 21, 2013 at 7:04 am
  • I am writing a python script to run chroot command to chroot to a linux distro and then run commands. How can I do this, as after chrooting, the script runs the commands relative to the outside not ...
    Himanshu GargHimanshu Garg
    Nov 13, 2013 at 2:31 pm
    Nov 14, 2013 at 9:41 am
  • Python makes it very easy to turn a zero argument member function into a property (hooray!) by simply adding the @property decorator. (Meme for well thought py feature - "Guido was here") But the ...
    Peter CacioppiPeter Cacioppi
    Nov 3, 2013 at 6:09 am
    Nov 4, 2013 at 11:14 pm
  • I just starting out and am using the Python For Kids book. I have an 2.4 GHz Intel Core 2 Duo iMac running OS X 10.6.8, and I?m getting this message when I open IDLE: Warning: The version of Tcl/Tk ...
    Bart MontgomeryBart Montgomery
    Nov 7, 2013 at 5:39 pm
    Dec 30, 2013 at 6:32 am
  • Hi everyone I a beginner in python. The first project is to build an online city guide start with my own city. I will need some support on where to get started. support like where to find the ...
    Ngangsia akumboNgangsia akumbo
    Nov 28, 2013 at 1:43 am
    Dec 1, 2013 at 3:04 am
  • Hello For-each does not iterate ober all entries of collection, if one removes elements during the iteration. Example code: def keepByValue(self, key=None, value=[]): for row in self.flows: if not ...
    Valentin ZahndValentin Zahnd
    Nov 28, 2013 at 3:49 pm
    Nov 29, 2013 at 12:04 pm
  • Hi, I wonder if someone can help me with a function I need for programming my robot. I want to update an 2D occupancy grid based on sonar data. The sonar ?view angle? is cone shaped. So I need to ...
    Robert VoigtländerRobert Voigtländer
    Nov 25, 2013 at 7:26 am
    Nov 26, 2013 at 7:19 am
  • I want that print "hello" should appear on screen as well as get saved in a log file. How can I accomplish this?
    Himanshu GargHimanshu Garg
    Nov 22, 2013 at 1:51 pm
    Nov 24, 2013 at 7:00 am
  • Hi, I have a script that needs to handle input files of different types (uncompressed, gzipped etc.). My question is regarding how I should handle the different cases. My first thought was to use a ...
    Victor HooiVictor Hooi
    Nov 19, 2013 at 7:13 am
    Nov 20, 2013 at 3:05 pm
  • Hello all, for my project[1] I am trying to build a replacement completer for python's Cmd class which accepts a tree of command and option names[2]. I've been trying all sorts of approaches (like ...
    Roey KatzRoey Katz
    Nov 18, 2013 at 3:47 pm
    Nov 19, 2013 at 12:41 am
  • Hi all, Please suggest how I can understand someone else's program where - documentation is sparse - in function A, there will be calls to function B, C, D.... and in those functions will be calls to ...
    C. NgC. Ng
    Nov 15, 2013 at 11:05 am
    Nov 18, 2013 at 10:42 pm
  • The question of when to use the assert statement comes up occasionally, usually in response to somebody misusing it, so I thought I'd write a post describing when and why to use assertions, and when ...
    Steven D'ApranoSteven D'Aprano
    Nov 17, 2013 at 7:35 am
    Nov 18, 2013 at 11:44 am
  • Example interactive: $ python3 Python 3.3.1 (default, Sep 25 2013, 19:29:01) [GCC 4.7.3] on linux Type "help", "copyright", "credits" or "license" for more information. b'zsz653co6ii6hgjejqhw42ncgy' ...
    Laszlo NagyLaszlo Nagy
    Nov 16, 2013 at 7:12 pm
    Nov 16, 2013 at 10:48 pm
  • I am trying to implement a multivibrator function with python. This is how it works; - An trigger event happens - Upon receiving the event, a variable goes high for 5secs, then go low. - If the event ...
    Nov 11, 2013 at 9:41 am
    Nov 12, 2013 at 4:47 pm
  • I have installed Python 3.3, and i want to add a library with some basic functions like canvas and basic geomteric objects, fonts etc. Preferably something similar to the Javascript canvas. I've ...
    Jonas ThornvallJonas Thornvall
    Nov 11, 2013 at 4:38 pm
    Nov 11, 2013 at 5:21 pm
  • When running the following code on WinXP , all is fine , -------------------------------------------------------------- from win32com.shell import shell def launch_file_explorer(path, files) ...
    Nov 8, 2013 at 3:30 am
    Nov 10, 2013 at 12:39 pm
  • Then os.path.join is probably the wrong tool for the job. Do you want to collapse "/foo/bar" + "../quux" into "/foo/quux"? That rewrites the first. If not, don't use a function that does that. Try ...
    Chris AngelicoChris Angelico
    Nov 4, 2013 at 4:07 pm
    Nov 4, 2013 at 6:29 pm
  • There is certainly nothing stopping you from doing so. Once finished, I recommend placing it on PyPI; if it reaches a critical mass of downloads that support your thesis that "it will save millions ...
    Nov 1, 2013 at 1:05 am
    Nov 3, 2013 at 12:55 pm
  • I am using a basic multiprocessing snippet I found: #----------------------------------------------------- from multiprocessing import Pool def f(x): return x*x if __name__ == '__main__': pool = ...
    Nov 2, 2013 at 2:35 am
    Nov 3, 2013 at 10:24 am
  • When I run e.g. compile('sin(5) * cos(6)', '<string ', 'eval').co_names, I get ('sin', 'cos'), which is just what I expected. But when I have a list comprehension in the expression, I get a little ...
    Magnus LyckaMagnus Lycka
    Nov 27, 2013 at 7:40 pm
    Nov 28, 2013 at 11:17 am
  • Wanting to parse out the the temperature value in the "<w:current" element, just after the guid element using ElementTree or xml.sax. Still learning python and getting to know the XML terminology, so ...
    Larry WilsonLarry Wilson
    Nov 20, 2013 at 3:39 am
    Nov 20, 2013 at 11:44 pm
  • ====================================================== root at secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded ...
    Ferrous CranusFerrous Cranus
    Nov 17, 2013 at 10:31 pm
    Nov 19, 2013 at 6:19 am
  • I have a need for a script to hold several tuples with three values, two text strings and a lambda. I need to index the tuple based on either of the two strings. Normally a database would be ideal ...
    Joseph L. CasaleJoseph L. Casale
    Nov 18, 2013 at 2:03 am
    Nov 18, 2013 at 3:45 am
  • Hi people! Assume we have 2 methods, one called Fire and the other __DoSomething. I want the param which is a string to be converted, that I can fire directly a method. Is it somehow possible in ...
    Tamer HigaziTamer Higazi
    Nov 17, 2013 at 9:46 pm
    Nov 18, 2013 at 2:29 am
  • I'm building python from source and trying to figure out how to test the result. I must be overlooking something obvious, but I looked through the documentation and source and tried some google ...
    Russell E. OwenRussell E. Owen
    Nov 14, 2013 at 7:12 pm
    Nov 16, 2013 at 11:05 am
  • Suppose I have a function that needs access to globals: # module A.py def spam(): g = globals() # this gets globals from A introspect(g) As written, spam() only sees its own globals, i.e. those of ...
    Steven D'ApranoSteven D'Aprano
    Nov 11, 2013 at 11:25 am
    Nov 15, 2013 at 8:23 am
  • I'm trying to make a ranking of 3 numbers and say which the greatest and consider whether there is a tie between them, I am not able to make the conditions of draws. Code in PT-BR ...
    Kennedysalvino KsKennedysalvino Ks
    Nov 10, 2013 at 10:56 pm
    Nov 11, 2013 at 11:55 am
  • Hi all, I have the task of testing some embedded 'C' code for a small micro-controller. Thought it would be a good idea to test it on the PC first to make sure the algorithm is correct then perhaps ...
    John PoteJohn Pote
    Nov 8, 2013 at 2:23 pm
    Nov 8, 2013 at 4:08 pm
  • I have a text file that has lines with numbers occasionally appearing right before a person's name. For example: COLLEGE:ENROLLMENT:COMPLETED EVALUATIONS:624309FUDD, ELMER where I want to search for ...
    Captain DunselCaptain Dunsel
    Nov 1, 2013 at 9:33 pm
    Nov 3, 2013 at 12:27 am
  • I have the following code to extract certain links from a webpage: from bs4 import BeautifulSoup import urllib2, sys import re def tonaton(): site = "http://tonaton.com/en/job-vacancies-in-ghana" hdr ...
    Max CubanMax Cuban
    Nov 29, 2013 at 4:56 pm
    Nov 29, 2013 at 6:45 pm
  • Hi ! Am I the only one to get a bug in GUIs using tkinter on my Mac under maverick and Python 3.3.3 ? When will they get rid of Tcl/Tk which causes recurrent problems at almost each new Python ...
    Dan WissmeDan Wissme
    Nov 27, 2013 at 11:32 am
    Nov 27, 2013 at 11:01 pm
  • Hello, i want try a static Website Generator. Has someone an advice for a simple and easy System to use? I want run my blog with it, so the system should run with my design of Website. I has try ...
    Silvio SiefkeSilvio Siefke
    Nov 16, 2013 at 1:21 pm
    Nov 27, 2013 at 8:36 pm
  • Hey everyone. I'm trying to figure out how to get python to access the properties section of an mp3 file. When you right click an mp3 file and go to properties you can edit the title, album, and ...
    Nov 26, 2013 at 3:41 pm
    Nov 27, 2013 at 12:20 am
  • Hello guys, I am using the asyncio package (Codename 'Tulip'), which will be available in Python 3.4, for the first time. I want the event loop to run a function periodically (e.g. every 2 seconds) ...
    Tobias M.Tobias M.
    Nov 22, 2013 at 9:30 pm
    Nov 26, 2013 at 4:35 pm
  • I'm on Windows XP SP3, Python 2.7.1. On running import cx_Oracle I got the error ImportError: DLL load failed: This application has failed to start because the application configuration is ...
    Ruben van den BergRuben van den Berg
    Nov 24, 2013 at 5:12 pm
    Nov 25, 2013 at 10:50 pm
  • I want to show simple dots while my program copies the files. I have found the code like: for i in range(10): print '.', time.sleep(1) But this will execute ten times as it is predefined and the task ...
    Himanshu GargHimanshu Garg
    Nov 23, 2013 at 11:36 am
    Nov 23, 2013 at 1:03 pm
  • please help me.. what does the following line do? read_sockets,write_sockets,error_sockets = select.select(CONNECTION_LIST,[],[])
    Bhanu KarthikBhanu Karthik
    Nov 23, 2013 at 1:42 am
    Nov 23, 2013 at 7:30 am
Group Navigation
period‹ prev | Nov 2013 | next ›
Group Overview
grouppython-list @

357 users for November 2013

Chris Angelico: 300 posts Mark Lawrence: 178 posts Νίκος Γκρ33κ: 129 posts Steven D'Aprano: 100 posts Ned Batchelder: 61 posts Antoon Pardon: 57 posts Roy Smith: 49 posts Alister: 45 posts Rusi: 43 posts Joel Goldstick: 42 posts Terry Reedy: 41 posts Rick Johnson: 40 posts Tim Chase: 40 posts Denis McMahon: 33 posts Νίκος: 33 posts Grant Edwards: 32 posts MRAB: 31 posts Dave Angel: 28 posts Ben Finney: 27 posts Ian Kelly: 26 posts
show more