Search Discussions
-
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 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
Jai
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 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 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 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 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 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
Rafaellasav
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 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 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 ...
iMath
Dec 2, 2013 at 11:34 am
Dec 10, 2013 at 12:59 pm -
http://xkcd.com/1306/
Roy 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 Stromberg
Dec 10, 2013 at 5:25 am
Dec 12, 2013 at 1:56 pm -
29
One liners
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 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 ...
Mark
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 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 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ä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 ...
Garthy
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 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 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 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'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 ...
Dec135
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 ...
JL
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ä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 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 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 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áoz
Dec 12, 2013 at 6:14 pm
Dec 13, 2013 at 10:55 pm -
13
Is It Bug?
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 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 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 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 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 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 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 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'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 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 ...
Geezle86
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.
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 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 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 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 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 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 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 ...
JL
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 ...
Geezle86
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 Ji
Dec 28, 2013 at 11:30 pm
Dec 29, 2013 at 11:02 am
Group Overview
group | python-list |
categories | python |
discussions | 211 |
posts | 2,060 |
users | 271 |
website | python.org |
271 users for December 2013
Archives
- September 2015 (591)
- August 2015 (1,058)
- July 2015 (1,440)
- June 2015 (1,704)
- May 2015 (1,841)
- April 2015 (1,231)
- March 2015 (1,717)
- February 2015 (1,612)
- January 2015 (889)
- December 2014 (1,283)
- November 2014 (1,600)
- October 2014 (1,447)
- September 2014 (1,031)
- August 2014 (1,867)
- July 2014 (1,618)
- June 2014 (1,357)
- May 2014 (1,431)
- April 2014 (1,285)
- March 2014 (2,093)
- February 2014 (1,999)
- January 2014 (2,089)
- December 2013 (2,060)
- November 2013 (2,507)
- October 2013 (1,932)
- September 2013 (1,634)
- August 2013 (1,532)
- July 2013 (2,062)
- June 2013 (2,795)
- May 2013 (1,935)
- April 2013 (1,980)
- March 2013 (1,953)
- February 2013 (1,789)
- January 2013 (1,924)
- December 2012 (1,569)
- November 2012 (1,579)
- October 2012 (1,961)
- September 2012 (2,311)
- August 2012 (1,808)
- July 2012 (1,577)
- June 2012 (1,199)
- May 2012 (1,197)
- April 2012 (1,416)
- March 2012 (1,373)
- February 2012 (1,442)
- January 2012 (1,446)
- December 2011 (1,895)
- November 2011 (1,291)
- October 2011 (1,188)
- September 2011 (1,587)
- August 2011 (2,069)
- July 2011 (2,140)
- June 2011 (1,908)
- May 2011 (2,475)
- April 2011 (2,098)
- March 2011 (1,761)
- February 2011 (1,746)
- January 2011 (2,123)
- December 2010 (1,671)
- November 2010 (2,355)
- October 2010 (2,518)
- September 2010 (2,187)
- August 2010 (3,098)
- July 2010 (2,579)
- June 2010 (3,238)
- May 2010 (2,458)
- April 2010 (2,356)
- March 2010 (2,759)
- February 2010 (3,486)
- January 2010 (3,294)
- December 2009 (2,899)
- November 2009 (3,396)
- October 2009 (3,346)
- September 2009 (3,087)
- August 2009 (3,903)
- July 2009 (3,761)
- June 2009 (3,321)
- May 2009 (3,370)
- April 2009 (4,272)
- March 2009 (4,228)
- February 2009 (3,965)
- January 2009 (4,732)
- December 2008 (4,335)
- November 2008 (3,799)
- October 2008 (4,123)
- September 2008 (3,816)
- August 2008 (4,056)
- July 2008 (4,238)
- June 2008 (3,737)
- May 2008 (4,976)
- April 2008 (4,708)
- March 2008 (4,122)
- February 2008 (4,132)
- January 2008 (4,145)
- December 2007 (3,686)
- November 2007 (3,419)
- October 2007 (4,234)
- September 2007 (4,332)
- August 2007 (4,189)
- July 2007 (3,771)
- June 2007 (4,142)
- May 2007 (5,018)
- April 2007 (4,912)
- March 2007 (4,365)
- February 2007 (3,951)
- January 2007 (3,864)
- December 2006 (4,449)
- November 2006 (4,229)
- October 2006 (5,506)
- September 2006 (5,244)
- August 2006 (4,829)
- July 2006 (4,720)
- June 2006 (5,054)
- May 2006 (5,302)
- April 2006 (4,845)
- March 2006 (5,729)
- February 2006 (4,839)
- January 2006 (5,249)
- December 2005 (5,011)
- November 2005 (5,677)
- October 2005 (5,387)
- September 2005 (4,458)
- August 2005 (4,428)
- July 2005 (4,472)
- June 2005 (4,562)
- May 2005 (4,269)
- April 2005 (5,019)
- March 2005 (5,070)
- February 2005 (5,159)
- January 2005 (5,194)
- December 2004 (5,211)
- November 2004 (4,048)
- October 2004 (5,191)
- September 2004 (5,534)
- August 2004 (6,168)
- July 2004 (4,217)
- June 2004 (4,202)
- May 2004 (3,890)
- April 2004 (4,285)
- March 2004 (5,077)
- February 2004 (4,213)
- January 2004 (3,988)
- December 2003 (3,818)
- November 2003 (4,940)
- October 2003 (6,297)
- September 2003 (4,299)
- August 2003 (5,654)
- July 2003 (4,912)
- June 2003 (4,933)
- May 2003 (4,938)
- April 2003 (5,017)
- March 2003 (5,031)
- February 2003 (7,701)
- January 2003 (6,229)
- December 2002 (4,102)
- November 2002 (4,346)
- October 2002 (3,307)
- September 2002 (4,206)
- August 2002 (4,919)
- July 2002 (4,826)
- June 2002 (4,215)
- May 2002 (5,295)
- April 2002 (5,967)
- March 2002 (5,323)
- February 2002 (5,245)
- January 2002 (5,617)
- December 2001 (4,443)
- November 2001 (4,565)
- October 2001 (3,669)
- September 2001 (3,719)
- August 2001 (5,208)
- July 2001 (6,528)
- June 2001 (4,905)
- May 2001 (5,492)
- April 2001 (4,713)
- March 2001 (4,478)
- February 2001 (3,871)
- January 2001 (4,187)
- December 2000 (3,099)
- November 2000 (2,336)
- October 2000 (3,820)
- September 2000 (3,933)
- August 2000 (4,253)
- July 2000 (4,199)
- June 2000 (4,089)
- May 2000 (4,269)
- April 2000 (3,217)
- March 2000 (3,719)
- February 2000 (4,000)
- January 2000 (2,682)
- December 1999 (2,283)
- November 1999 (1,896)
- October 1999 (2,048)
- September 1999 (2,001)
- August 1999 (2,151)
- July 1999 (2,351)
- June 1999 (2,386)
- May 1999 (2,201)
- April 1999 (1,706)
- March 1999 (6)
- February 1999 (1)