FAQ

Search Discussions

211 discussions - 2,060 posts

  • Hi all, I work in a University Engineering faculty teaching, among other things, programming. In our last meeting about improving our teaching syllabus and delivery we've identified the first year ...
    Oscar BenjaminOscar Benjamin
    Dec 9, 2013 at 12:23 pm
    Jan 29, 2014 at 3:17 am
  • GUI:-want to learn GUI programming in python , how should i proceed. There are lots of book here so I am confuse which book i should refer so that i don't waste time . please answer
    JaiJai
    Dec 14, 2013 at 12:12 pm
    Dec 26, 2013 at 7:58 am
  • I have an ethernet-rs232 adapter which allows me to connect to a measurement instrument by means of netcat on a linux system. e.g. entering nc 10.128.59.63 7000 allows me to enter e.g. *IDN? after ...
    Jean DuboisJean Dubois
    Dec 11, 2013 at 11:08 pm
    Dec 19, 2013 at 7:20 am
  • http://alexgaynor.net/2013/dec/30/about-python-3/ may be of interest to some of you. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark ...
    Mark LawrenceMark Lawrence
    Dec 30, 2013 at 7:41 pm
    Jan 8, 2014 at 8:04 pm
  • hey guys, I have a requirement where I need to sequentially execute a bunch of executions, each execution has a return code. the followed executions should only be executed if the return code is 0 ...
    Frank CuiFrank Cui
    Dec 22, 2013 at 6:37 pm
    Dec 30, 2013 at 5:36 pm
  • Hi! I find global getattr() function awkward when reading code. What is the reason there's no "natural" syntax allowing to access attributes with names not being valid Python identifiers in a similar ...
    Piotr DobrogostPiotr Dobrogost
    Dec 3, 2013 at 5:14 pm
    Dec 7, 2013 at 12:47 am
  • Is it just me, or is this basically useless? Help on class object in module builtins: class object Surely a few more words, or a pointer to this ...
    Mark LawrenceMark Lawrence
    Dec 6, 2013 at 5:03 pm
    Jan 17, 2014 at 9:21 pm
  • i have a dictionary with names and ages for each name. I want to write a function that takes in an age and returns the names of all the people who are that age. please help
    RafaellasavRafaellasav
    Dec 8, 2013 at 5:59 pm
    Dec 10, 2013 at 5:29 am
  • Hi, I am trying to control Aeroplane mode on Android using Python code. I am running QPyPlus python. When I execute this code(that is widespread in the net), #!/usr/bin/python import android droid = ...
    Kevin PetersonKevin Peterson
    Dec 23, 2013 at 3:20 am
    Dec 27, 2013 at 12:31 pm
  • i am using 2.7. I need to print the time in seconds from the epoch with millisecond precision. i have tried many things but have failed. heres my latest: from time import time, strftime from datetime ...
    Matt Doolittle33Matt Doolittle33
    Dec 26, 2013 at 6:32 pm
    Jan 3, 2014 at 3:41 pm
  • I have few wav files that I can use either of the following command line mentioned here https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20%28join,%20merge%29%20media%20files to concatenate ffmpeg ...
    iMathiMath
    Dec 2, 2013 at 11:34 am
    Dec 10, 2013 at 12:59 pm
  • http://xkcd.com/1306/
    Roy SmithRoy Smith
    Dec 20, 2013 at 2:19 pm
    Dec 22, 2013 at 12:36 am
  • Is anyone using a module or database that gives Python 3.x access to MPAA ratings (EG G, PG, PG-13, etc.)? I explored a few of the possibilities on Pypi, a couple of web interfaces, and the IMDB flat ...
    Dan StrombergDan Stromberg
    Dec 10, 2013 at 5:25 am
    Dec 12, 2013 at 1:56 pm
  • Does anyone else feel like Python is being dragged too far in the direction of long, complex, multiline one-liners? Or avoiding temporary variables with descriptive names? Or using regex's for ...
    Dan StrombergDan Stromberg
    Dec 6, 2013 at 11:54 pm
    Dec 10, 2013 at 3:36 am
  • Hey guys, I found this website that has a script in order to increase numbers to a live viewing stream. Being new to python, I keep running into problems trying to get it to work. The original site ...
    MarkMark
    Dec 15, 2013 at 4:51 am
    Dec 18, 2013 at 10:46 pm
  • Hi, ALL, I have following code: def MyFunc(self, originalData): data = {} dateStrs = [] for i in xrange(0, len(originalData)): dateStr, freq, source = originalData[i] data[str(dateStr)] = {source ...
    Igor KorotIgor Korot
    Dec 6, 2013 at 7:37 pm
    Dec 16, 2013 at 4:24 am
  • Hello, for the first time I'm trying te create a little Python program. (on a raspberri Pi) I don't understand the handling of variables in a loop with Python. Lets say i want something like this. x ...
    Vanommen RobertVanommen Robert
    Dec 24, 2013 at 4:07 pm
    Dec 27, 2013 at 10:40 pm
  • Hi, I have a list like this: a = [(52, 193), (52, 193), (52, 192), (51, 193), (51, 191), (51, 190), (51, 189), (51, 188), (50, 194), (50, 187), (50, 186), (50, 185), (50, 184), (49, 194), (49, 183), ...
    Robert VoigtländerRobert Voigtländer
    Dec 12, 2013 at 7:25 am
    Dec 16, 2013 at 10:49 pm
  • Hi! I hope I've got the right list here- there were a few to choose from. :} I am trying to embed Python with multiple interpreters into an existing application. I have things working fine with a ...
    GarthyGarthy
    Dec 6, 2013 at 2:34 am
    Dec 7, 2013 at 12:57 am
  • I keep hearing naysayers, nay saying about Python 3.x. Here's a 9 question, multiple choice survey I put together about Python 2.x use vs Python 3.x use. I'd be very pleased if you could take 5 or 10 ...
    Dan StrombergDan Stromberg
    Dec 30, 2013 at 9:56 pm
    Jan 10, 2014 at 7:53 pm
  • Hi people! Is there a way to get dict by search terms without iterating the entire dictionary ?! Let us assume I have ...
    Tamer HigaziTamer Higazi
    Dec 11, 2013 at 12:02 am
    Dec 12, 2013 at 3:43 am
  • Hi everyone, I am developing a proprietary Python library. The library is currently Windows-only, and I want to also make it available for other platforms (Linux & Mac). I'm writing because I wanted ...
    Michael HerrmannMichael Herrmann
    Dec 5, 2013 at 10:14 am
    Dec 6, 2013 at 3:35 pm
  • I have some code which produces a list from an iterable using at least one temporary list, using a Decorate-Sort-Undecorate idiom. The algorithm looks something like this (simplified): table = ...
    Steven D'ApranoSteven D'Aprano
    Dec 11, 2013 at 11:54 pm
    Dec 13, 2013 at 5:35 am
  • y = raw_input('Enter a number:') print type y y = float(raw_input('Enter a number:')) print type y I'm assuming that y is an object. I'm also assuming that the second and the first y are different ...
    Dec135Dec135
    Dec 20, 2013 at 3:16 pm
    Dec 23, 2013 at 8:19 am
  • I have a number of python processes which communicate with each other through writing/reading config text files. The python ConfigParser is used. I am wondering if it is more CPU-efficient to switch ...
    JLJL
    Dec 14, 2013 at 3:29 pm
    Dec 19, 2013 at 8:18 am
  • Hi, I try to squeeze out some performance of the code pasted on the link below. http://pastebin.com/gMnqprST The code will be used to continuously analyze sonar sensor data. I set this up to ...
    Robert VoigtländerRobert Voigtländer
    Dec 6, 2013 at 8:47 am
    Dec 10, 2013 at 12:54 pm
  • Hi, I'd like to extracted elements from a heapq in a for loop. I feel my solution below is much too complicated. How to do it more elegantly? I know I could use a while loop but I don't like it. Many ...
    Helmut JarauschHelmut Jarausch
    Dec 3, 2013 at 12:18 pm
    Dec 5, 2013 at 2:29 am
  • The Python.org site says that the future is Python 3, yet whenever I try something new in Python, such as Tkinter which I am learning now, everything seems to default to Python 2. By this I mean ...
    Travis McGeeTravis McGee
    Dec 27, 2013 at 5:04 am
    Jan 2, 2014 at 4:34 pm
  • Maybe of interest to some of you http://www.bbc.co.uk/news/technology-25495315 -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
    Mark LawrenceMark Lawrence
    Dec 24, 2013 at 12:32 am
    Dec 28, 2013 at 8:05 am
  • I need to use a tree structure. Is there a good and known library? Doesn't have to be binary tree, I need to have multiple children per node. Thanks
    Ricardo AráozRicardo Aráoz
    Dec 12, 2013 at 6:14 pm
    Dec 13, 2013 at 10:55 pm
  • Why this is not working. To me, Python will interpret '\\\\' to '\\'. And the replace method will replace '\\' with '\'. So, the result will be 'Hello, \World'. But it's give me 'Hello, \\\\World' ...
    Mahan MarwatMahan Marwat
    Dec 8, 2013 at 12:58 am
    Dec 8, 2013 at 10:43 am
  • greetings I am a novice who is really interested in contributing to Python projects. How and where do I begin? thanking you in anticipation An HTML attachment was scrubbed... URL ...
    Jennifer stoneJennifer stone
    Dec 13, 2013 at 5:15 am
    Dec 19, 2013 at 2:53 pm
  • I am running PYTHON 2.7.3 and executing a PYTHON program that uses multi-threading. I am running this on a 64-bit Windows 2008 R2 server (Service Pack 1). Three months ago, I was able to execute this ...
    Dan RoseDan Rose
    Dec 10, 2013 at 4:21 pm
    Dec 12, 2013 at 10:48 am
  • I'm trying to go through a tutorial on tkinter which has the code below as an example. The only thing I see when running it is a little popup with "Click mouse here to quit" which works as expected ...
    Jean DuboisJean Dubois
    Dec 7, 2013 at 4:52 pm
    Dec 8, 2013 at 3:53 pm
  • Hi, ALL, Is there a better way to do that: def Read_CSV_File(filename): file = open(filename, "r") reader = csv.DictReader(file) line = 1 for row in reader: if line < 6: reader.next() line++ # ...
    Igor KorotIgor Korot
    Dec 17, 2013 at 5:20 am
    Dec 20, 2013 at 8:27 am
  • Hi guys, I am trying to create a fixed list which would allow my values to be wrapped around it. For example i have 10 values : 0,1,2,3,4,5,6,7,8,9 I need to create a list which contains 4 numbers ...
    Shengjie ShengjieShengjie Shengjie
    Dec 16, 2013 at 4:38 am
    Dec 16, 2013 at 12:51 pm
  • I know the problem is with the for loop but don't know how to fix. Any help with explanation would be appreciated. #!/bin/env python import csv import sys if len(sys.argv) < 3: print('Please specify ...
    Brian cleereBrian cleere
    Dec 11, 2013 at 7:10 pm
    Dec 12, 2013 at 1:36 am
  • That is an excellent question, I only wish I had an excellent answer to give you. Obviously great minds think alike because I was going to ask the same question, prompted by this comment from Nick ...
    Steven D'ApranoSteven D'Aprano
    Dec 16, 2013 at 10:17 pm
    Dec 18, 2013 at 11:45 am
  • Hi group, it's somewhat OT here, but I have a puzzle to which I would like a solution -- but I'm unsure how I should tackle the problem with Python. But it's a fun puzzle, so maybe it'll be ...
    Johannes BauerJohannes Bauer
    Dec 9, 2013 at 11:49 am
    Dec 11, 2013 at 1:52 pm
  • I am trying to solve this problem: http://codeforces.com/problemset/problem/71/A The input and output is as wanted, but my answer keep rejected, here is my source code http://txt.do/1smv Please, I ...
    Geezle86Geezle86
    Dec 3, 2013 at 3:48 pm
    Dec 3, 2013 at 11:52 pm
  • Hi, I can't figure out how I can extend the 'function' built-in class. I tried: class test(function): def test(self): print("test") but I get an error. Is it possible ? Regards, G.
    G.G.
    Dec 1, 2013 at 7:18 pm
    Dec 2, 2013 at 9:32 am
  • I have a python-program which I want to perform its task first, then switch to the python console to experiment with further commands, using what was already defined in the python-program. I want ...
    Jean DuboisJean Dubois
    Dec 18, 2013 at 8:17 pm
    Dec 23, 2013 at 12:24 pm
  • Not sure I understand the problem but I think the answer is to put multiple values in a list and return the list.
    Bob RashkinBob Rashkin
    Dec 22, 2013 at 11:41 pm
    Dec 23, 2013 at 9:58 am
  • Hello, I have python up and running using the exact setup as recommended by http://learnpythonthehardway.org/ I am now trying to use pdfminer. I have python here: C:\USERS\Python27 using "import os", ...
    Jason MelloneJason Mellone
    Dec 17, 2013 at 8:06 pm
    Dec 20, 2013 at 9:00 am
  • So I'm using the following script to check our sites to make sure they are all up and some of them are reporting they are "down" when, in fact, they are actually up. These sites do not require a ...
    Jeff JamesJeff James
    Dec 16, 2013 at 11:40 am
    Dec 17, 2013 at 4:25 pm
  • Hello, I have 2 counters generated from list using Collections.counter() I want to print only key,values in Counter2 which have values then corresponding value in Counter1. E.g ...
    Amjad SyedAmjad Syed
    Dec 12, 2013 at 7:49 am
    Dec 16, 2013 at 9:50 am
  • I have an app that generates a file one a day and would like to email it using pythons SMTP server. http://docs.python.org/2/library/smtpd.html#smtpd.SMTPServer The documentation is kinda sparse and ...
    Vincent DavisVincent Davis
    Dec 13, 2013 at 1:01 am
    Dec 14, 2013 at 3:48 pm
  • Python scripts can run without a main(). What is the advantage to using a main()? Is it necessary to use a main() when the script uses command line arguments? (See script below) #!/usr/bin/python ...
    JLJL
    Dec 11, 2013 at 9:55 am
    Dec 11, 2013 at 9:22 pm
  • The source code: for i in range(8): n = input() When we run it, consider the numbers below is the user input, 1 2 3 4 5 6 (and so forth) my question, can i make it in just a single line like, 1 2 3 4 ...
    Geezle86Geezle86
    Dec 4, 2013 at 3:38 pm
    Dec 5, 2013 at 3:21 pm
  • Hello guys, i need some help with is program I have a txt file "test.txt" where there is Name;Sexe;Answer(Y or N) example of txt file: -------------------------------------- nam1;F;Y nam2;M;N ...
    Bala JiBala Ji
    Dec 28, 2013 at 11:30 pm
    Dec 29, 2013 at 11:02 am
Group Navigation
period‹ prev | Dec 2013 | next ›
Group Overview
grouppython-list @
categoriespython
discussions211
posts2,060
users271
websitepython.org

271 users for December 2013

Chris Angelico: 236 posts Mark Lawrence: 194 posts Rustom Mody: 103 posts Roy Smith: 90 posts Steven D'Aprano: 86 posts Ned Batchelder: 54 posts Terry Reedy: 53 posts Michael Torrie: 36 posts Dan Stromberg: 35 posts Jean Dubois: 35 posts Peter Otten: 33 posts Tim Chase: 32 posts Ethan Furman: 31 posts Wxjmfauth: 30 posts Gregory Ewing: 29 posts Steven D'Aprano: 29 posts Dave Angel: 27 posts Joel Goldstick: 26 posts Rurpy: 24 posts Grant Edwards: 24 posts
show more
Archives