Search Discussions

284 discussions - 2,507 posts

  • There's a recent blog post complaining about the lousy support for Unicode text in most programming languages: http://mortoray.com/2013/11/27/the-string-type-is-broken/ The author, Mortoray, gives ...
    Steven D'ApranoSteven D'Aprano
    Nov 30, 2013 at 12:44 am
    Dec 4, 2013 at 2:38 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
  • 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
  • I want to a fixed length list-like container, it should have a sorted()-like function that I can use to sort it,I think there should also a function I can use it to detect whether the numbers of ...
    Nov 29, 2013 at 1:54 am
    Dec 4, 2013 at 12:47 am
  • I have the following script however when the clipboard contents are greek letters it fails to print them right. I have used all posible encoding for greek letters including utf8 but to no avail so i ...
    Nov 28, 2013 at 10:22 pm
    Nov 29, 2013 at 3:48 am
  • Hello, is here someone which has run webpy with nginx? I has follow the tutorial on webpy.org, but sometimes run sometimes not. It looks not staple. I try to start spawn-fcgi but it looks not so as ...
    Silvio SiefkeSilvio Siefke
    Nov 28, 2013 at 9:05 pm
    Nov 28, 2013 at 9:05 pm
  • Easy : def getSlice(iterable, start, n): lit = len(iterable) end = start + n return ''.join(iterable[i%lit] for i in range(start, end)) for n in range(1, len(inStr)+1): [getSlice(inStr, i, n) for i ...
    Ricardo AráozRicardo Aráoz
    Nov 28, 2013 at 6:38 pm
    Nov 28, 2013 at 6:38 pm
  • Hello! I'm using Jython to write a game with Python/Jython/LibGDX. I wasn't having any trouble, and everything was going well, but sadly I can't access items in enumerations. If you know about the ...
    Eamonn ReaEamonn Rea
    Nov 28, 2013 at 5:22 pm
    Nov 29, 2013 at 7:40 pm
  • 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've created a script that allows me to see how many images are on a webpage and their URL however now I want to download all .jpg images from this website and save them onto my computer. I've ...
    TheRandomPast .TheRandomPast .
    Nov 28, 2013 at 3:19 pm
    Nov 28, 2013 at 5:32 pm
  • This silly google-groups does not reflect changed subject lines!! That means that GG users who may want to read this may not see it. So reposting as a new thread ...
    Nov 28, 2013 at 1:52 pm
    Dec 9, 2013 at 3:02 am
  • I am in the process of porting reportlab to python3.3, one of the contributions is a module that implements a reporting proxy with a canvas that records all access calls and attribute settings etc ...
    Robin BeckerRobin Becker
    Nov 28, 2013 at 11:12 am
    Dec 2, 2013 at 2:42 pm
  • Hi, I'm running pep8 across my code, and getting warnings about my long lines ( 80 characters). I'm wonder what's the recommended way to handle the below cases, and fit under 80 characters. First ...
    Victor HooiVictor Hooi
    Nov 28, 2013 at 1:57 am
    Dec 5, 2013 at 1:47 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 there, I am attending the lectures, and written the codes according to lectures. Professor's codes are working fine, but my one gives an error. I am new to python. Please it's a humble request, ...
    Speen sabaSpeen saba
    Nov 28, 2013 at 12:37 am
    Nov 28, 2013 at 2:30 am
  • Hi All, I'm very happy to announce the a new release of Mush, a light weight dependency injection framework aimed at enabling the easy testing and re-use of chunks of code that make up scripts. This ...
    Chris WithersChris Withers
    Nov 27, 2013 at 11:43 pm
    Nov 27, 2013 at 11:43 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
  • 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
  • Hey list, I always have issues with TODOs as they stay in the code and most of time forgot. On that, I tried to find a way to track them and to be able to output them automatically. Automatically is ...
    Jordi RieraJordi Riera
    Nov 27, 2013 at 2:38 pm
    Nov 27, 2013 at 3:13 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 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
  • Hi, I'm trying to use Python's new style string formatting with a dict and string together. For example, I have the following dict and string variable: my_dict = { 'cat': 'ernie', 'dog': 'spot' } foo ...
    Victor HooiVictor Hooi
    Nov 27, 2013 at 12:01 am
    Nov 27, 2013 at 12:21 am
  • I am currently using Windows 7 Sp1, Tkinter 8.5, Python 2.7.4 on a laptop with no attached monitor. I am attempting to use winfo_screenmmwidth, but the returned value is incorrect. Specs state 280 ...
    Nov 26, 2013 at 10:13 pm
    Dec 4, 2013 at 1:33 am
  • Hi, I have been following a very good online tutorial for matplotlib: http://www.loria.fr/~rougier/teaching/matplotlib/#introduction However, when I try to annotate the point where the cosine/sine ...
    Eric GarlicEric Garlic
    Nov 26, 2013 at 7:34 pm
    Nov 26, 2013 at 7:44 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
  • No, it's not the same; after yielding the ten values, the first one then _returns_ the list. It's a weird and confusing syntax to use for such a thing, but fundamentally it's (more or less) this: def ...
    Chris AngelicoChris Angelico
    Nov 26, 2013 at 2:26 pm
    Nov 26, 2013 at 3:14 pm
  • Hello, I want to use some machine learning stuff on mail messages. First step is get some flattened text from a mail message, python's email package does not work as automatically as I wish. Right ...
    Florian LindnerFlorian Lindner
    Nov 26, 2013 at 10:51 am
    Nov 26, 2013 at 10:51 am
  • Hi, let say I have a legacy code with the following structure: pkg1/__init__.py pkg1/pkg2/__init__.py pkg1/pkg2/bar.py pkg1/pkg2/pkg3/__init__.py pkg1/pkg2/pkg3/foo.py In pkg1/pkg2/bar.py I have: # ...
    Nov 26, 2013 at 10:08 am
    Nov 26, 2013 at 10:08 am
  • Hello folks, I?m interested in digging up some Python mailing list archives from ages past. Google Groups? archive goes sporadically back to ?94, but clearly the list is older. Does any one have a ...
    Drew CrawfordDrew Crawford
    Nov 26, 2013 at 9:47 am
    Nov 26, 2013 at 1:39 pm
  • Hi, I have a school project to do where I've to download MD5 Hashes from a particular website and write a code that will crack them. Does anyone know where I'll find out more information on how to do ...
    Nov 25, 2013 at 11:32 pm
    Nov 27, 2013 at 9:18 pm
  • Hi, I was wondering if the default ConfigParser can handle multi line strings (especially in the relate section) For example, if i have system.ini [Global] memory = 1024 [Process A] command = sleep ...
    Nov 25, 2013 at 11:32 pm
    Nov 26, 2013 at 12:35 am
  • I have an XML file that has an element called "Node". These can be nested to any depth and the depth of the nesting is not known to me. I need to parse the file and preserve the nesting. For exmaple, ...
    Larry MartellLarry Martell
    Nov 25, 2013 at 10:22 pm
    Nov 28, 2013 at 1:31 pm
  • (First off, sorry in advance, as I?m not sure if this is the right place to post my inquiry). *Consumer level eye tracking - easy activation of virtual buttons without touchscreen* After using ...
    Jeff KangJeff Kang
    Nov 25, 2013 at 8:59 pm
    Nov 25, 2013 at 8:59 pm
  • I've heard that there is a library that allows you to get the appdata directory for a given OS, but I'd like to do it myself, as a learning experience. Is there a built in way to get a users Appdata ...
    Eamonn ReaEamonn Rea
    Nov 25, 2013 at 8:48 pm
    Dec 2, 2013 at 2:39 pm
  • Hi, I have a Python application that communicates with a server via telnet. Host and port of the server are supplied by the user when the application is started. How can I determine from within the ...
    Malte ForkelMalte Forkel
    Nov 25, 2013 at 7:35 pm
    Nov 27, 2013 at 10:32 pm
  • Dear Jonas I need someone who knows to write Phyton programmes. The application is a controller for performing tests. Can you propose names or yourself? Best regards Ivan Hendrikx ESTH Lange ...
    Nov 25, 2013 at 5:16 pm
    Nov 25, 2013 at 5:16 pm
  • Huh, neat. Looks like that uses time_t to identify start times. ChrisA
    Chris AngelicoChris Angelico
    Nov 25, 2013 at 2:43 pm
    Nov 25, 2013 at 3:12 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
  • Hi all. I was wondering what is the best way to install multiple Python installations on a single Windows machine. Regular Windows installer works great as long as all your installations have a ...
    Jurko GospodnetićJurko Gospodnetić
    Nov 25, 2013 at 12:32 pm
    Nov 27, 2013 at 5:33 pm
  • Hi all, How can we set the target folder for the package in Setuptools? Thanks & regards, Chandru **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND ...
    Chandru RajendranChandru Rajendran
    Nov 25, 2013 at 8:35 am
    Nov 25, 2013 at 11:14 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 a script should only be executed when it is called from another script and should not be directly executable through linux command line. Like, I have two scripts "scrip1.py" and ...
    Himanshu GargHimanshu Garg
    Nov 25, 2013 at 1:55 am
    Nov 27, 2013 at 2:39 am
  • Hi, Ok, this is a topic that I've never really understood properly, so I'd like to find out what's the "proper" way of doing things. Say I have a directory structure like this: furniture/ __init__.py ...
    Victor HooiVictor Hooi
    Nov 25, 2013 at 1:30 am
    Nov 25, 2013 at 6:00 am
  • On behalf of the Python development team, it's my privilege to announce the first beta release of Python 3.4. This is a preview release, and its use is not recommended for production settings. Python ...
    Larry HastingsLarry Hastings
    Nov 24, 2013 at 10:00 pm
    Nov 24, 2013 at 10:28 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
  • Hi, I'm playing with python internals to make objects behave like this: if I access to "object.attribute" I want to return the result of an HTTP GET request. However if i call "object.attribute()" I ...
    Marc AymerichMarc Aymerich
    Nov 24, 2013 at 12:52 pm
    Nov 24, 2013 at 3:11 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
  • I mentioned some time ago about a program to calculate PID constants for tuning controllers, follow the link to its online version algorithm for anyone interested http://pastebin.com/wAqZmVnR I thank ...
    Renato Barbosa Pim PereiraRenato Barbosa Pim Pereira
    Nov 23, 2013 at 11:22 pm
    Nov 23, 2013 at 11:22 pm
  • 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
  • I'm trying to use sh (https://pypi.python.org/pypi/sh) for calling system grep command but it's now working as expected. An example: import sh sh.grep('abc', os.getcwd(), '-r') But I get the ...
    Nov 23, 2013 at 2:38 pm
    Nov 23, 2013 at 5:23 pm
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