Search Discussions
-
104
Python vs C++
Hello, I consider myself a python programmer, although C++ was one of the first languages I learned (not really deeply and long time ago). Now I decided to retake C++, to broaden my view of the ...David Palao
Aug 21, 2014 at 12:54 pm
Aug 29, 2014 at 7:54 am -
how can i get the ordinal number by some codes? for id ,value in enumerate(x): if y==value : print(id) Is more simple way to do that?
Luofeiyu
Aug 9, 2014 at 5:22 pm
Aug 13, 2014 at 3:49 am -
Last week I spent a couple of days teaching two children (10 and 13 -- too big an age gap!) how to do some turtle graphics with Python. Neither had programmed Python before -- one is a Minecraft ace ...
Mark Summerfield
Aug 2, 2014 at 6:45 am
Aug 5, 2014 at 4:14 pm -
Neat little exercise, surprisingly cool results! less than 3 minutes! https://www.youtube.com/watch?v=PlDjl5JK0eU&feature=youtu.be
Everything You Need To Know
Aug 20, 2014 at 3:36 pm
Aug 25, 2014 at 12:08 am -
A newbie question to you; what is the difference between statements like: if x is not None: and if x != None: Without any context, which one should be preferred? IMHO, the latter is more readable.
ElChino
Aug 18, 2014 at 8:35 pm
Aug 21, 2014 at 7:42 pm -
I've been using IDLE with Python 3.4.0 on Windows XP (SP3), since March this year, and since May I've been running IDLE almost continuously, using it scores of times every day, mostly to run the same ...
Twirlip2
Aug 26, 2014 at 6:01 pm
Dec 23, 2014 at 10:59 pm -
Hi, as OO programming exercise, I'm trying to port to Python one of my favorite game from early'90 (Atari 65XL/XE) - Kolony (here's video from original version on C64 ...
Wiktor
Aug 3, 2014 at 10:52 pm
Aug 6, 2014 at 6:30 am -
Is there a way to indent everything again? Say I have a while statement with several lines of code and I want to add a while outside that. That means indenting everything. Is there a global way to do ...
Seymore4Head
Aug 22, 2014 at 6:19 pm
Sep 13, 2014 at 9:23 am -
Hi guys, These days I got a small task to identify Captcha characters. I googled a lot and find some way to do verification code identify. However, most are for general captcha. And, for simple ...
Wesley
Aug 12, 2014 at 7:04 am
Aug 15, 2014 at 5:30 pm -
import random sets=3 for x in range(0, sets) ...
Seymore4Head
Aug 25, 2014 at 8:14 pm
Aug 27, 2014 at 1:36 pm -
I am trying to do this example: http://openbookproject.net/pybiblio/practice/wilson/loan.php The instructions warn that floating point math can get messy so I cheated a little bit to get me going. I ...
Seymore4Head
Aug 23, 2014 at 5:47 pm
Aug 25, 2014 at 3:01 am -
The land area of China is 60-degree longitude from west to east. According to the demarcation of the world time zoning standard, the land area of China lies between the eastern fifth to ninth time ...
Luofeiyu
Aug 18, 2014 at 12:31 am
Aug 20, 2014 at 5:01 pm -
This is a proposal with a working implementation for a random string generation template syntax for Python. `strgen` is a module for generating random strings in Python using a regex-like template ...
Paul Wolf
Aug 8, 2014 at 9:01 am
Aug 11, 2014 at 7:58 am -
Hi, I've got a little script: #!/usr/bin/env python3 print("Content-Type: text/html") print("Cache-Control: no-cache, must-revalidate") # HTTP/1.1 print("Expires: Sat, 26 Jul 1997 05:00:00 GMT") # ...
Dominique Ramaekers
Aug 15, 2014 at 6:10 pm
Aug 17, 2014 at 3:56 pm -
I really tried to get this without asking for help. mylist = ["The", "earth", "Revolves", "around", "Sun"] print (mylist) for e in mylist: # one of these two choices should print something. Since ...
Seymore4Head
Aug 30, 2014 at 6:27 pm
Sep 5, 2014 at 4:45 pm -
A blog from Nick Coghlan http://www.curiousefficiency.org/posts/2014/08/python-4000.html that should help put a few minds to rest. -- My fellow Pythonistas, ask not what our language can do for you, ...
Mark Lawrence
Aug 17, 2014 at 12:37 pm
Aug 19, 2014 at 7:04 pm -
Hi all, I have one query. I have did some programming which copies and paste data using system clipboard. I need to keep one GUI always on top till my python code is running. Can we do like this? ...
Jaydeep Patil
Aug 7, 2014 at 11:24 am
Aug 11, 2014 at 10:14 pm -
Hi all Now that I have bitten the bullet and published my repository, I am forced to change my working practices (which is a good thing!). The project is inherently database-driven. The python code ...
Frank Millman
Aug 29, 2014 at 12:42 pm
Aug 30, 2014 at 6:36 am -
With a dict like so: cond = {'a': 1, 'b': 1, 'c': 1, 'A': 0, 'B', 0, 'C':0} how would you make a boolean expression like this: bool = (('a' == 1) & ('A' == 0) | ('b' == 1) & ('B' == 0) | ('c' == 1) & ...
Alex van der Spek
Aug 1, 2014 at 12:45 pm
Aug 5, 2014 at 4:25 pm -
A huge THANK YOU to whoever set the rules for PyPI passwords! You're allowed to go with a monocase password, as long as it's at least 16 characters in length. Finally, someone who recognizes XKCD 936 ...
Chris Angelico
Aug 26, 2014 at 6:16 am
Aug 28, 2014 at 2:47 pm -
s="Aug" how can i change it into 8 with some python time module?
Luofeiyu
Aug 14, 2014 at 1:46 am
Aug 20, 2014 at 2:01 pm -
18
GO vs Python
I spent a few weeks looking at Go and have to say you can see a lot of Python's influence in Go, however my question to this list for others who are doing real work with Go and Python have you ...Rodrick Brown
Aug 25, 2014 at 2:36 am
Aug 26, 2014 at 1:21 am -
System:win7+python34. class Contact(object): def __init__(self, first_name=None, last_name=None, display_name=None, email=None): self.first_name = first_name self.last_name = last_name ...
Luofeiyu
Aug 22, 2014 at 2:26 pm
Aug 25, 2014 at 7:51 am -
You might want to check first: Python 2.7.5 (default, Aug 5 2013, 19:47:08) True {1.0: None} -- Ned Batchelder, http://nedbatchelder.com
Ned Batchelder
Aug 1, 2014 at 1:35 am
Aug 2, 2014 at 11:43 am -
Suppose I have a directory C:/Test that is either empty or contains more than 2000000 files, all with the same extension (e.g. *.txt). How can I determine if the directory is empty WITHOUT the ...
Virgil Stokes
Aug 6, 2014 at 9:46 pm
Aug 8, 2014 at 1:10 am -
['Sat, 09 Aug 2014 07:36:46 -0700', 'Fri, 8 Aug 2014 22:25:40 -0400', 'Sat, 9 Au g 2014 12:46:43 +1000', 'Sat, 9 Aug 2014 12:50:52 +1000', 'Sat, 9 Aug 2014 02:51 :01 +0000 (UTC)', 'Sat, 9 Aug 2014 ...
Luofeiyu
Aug 10, 2014 at 7:14 am
Aug 15, 2014 at 9:13 pm -
I have been using python for 4 years now, and I just started learning ruby. I like that in ruby I don't have to type parenthesis at the end of each function call if I don't need to provide extra ...
Christian Calderon
Aug 5, 2014 at 7:39 pm
Aug 6, 2014 at 7:04 pm -
Hi, just wanting to do a shot in the dark,but maybe this syntax is Pythonic (in a "we-are-all-grown-ups" fashion, ahem)enough to get its way into the language this is what yours truly thinks: don't ...
Icefapper
Aug 21, 2014 at 7:55 am
Aug 23, 2014 at 9:20 am -
Hello all, I want to contour a scatter plot but I don't know how. Can anyone help me out? Cheers, Jamie
Jamie Mitchell
Aug 14, 2014 at 3:22 pm
Aug 20, 2014 at 4:55 pm -
15
CodeSkulptor
I am very new to Python. Right now I am using two tools. I am trying the tutorials at codecademy.com which is walking me through it pretty slow. The second thing I am doing is using codeskulptor to ...Seymore4Head
Aug 4, 2014 at 1:06 am
Aug 4, 2014 at 2:18 pm -
I need to evaluate a complicated function over a multidimensional space as part of an optimization problem. This is a somewhat general problem in which the number of dimensions and the function being ...
Frank Miles
Aug 5, 2014 at 8:06 pm
Oct 8, 2014 at 10:48 am -
Hi, Sorry about the simple question but I am very new to Python. Anyway, I have a function that will be used to call a stored procedure and I need to format the string with the correct number of ...
Dennisearlevans
Aug 27, 2014 at 8:31 pm
Aug 28, 2014 at 2:48 pm -
Hi, Im working in the development of a program based in python that allow us to contrl a spectometer. The spectometer has an .dll file. The idea is to work through this dll and operate the ...
C1223
Aug 12, 2014 at 6:36 pm
Aug 19, 2014 at 5:46 pm -
In the python doc , https://docs.python.org/3.4/library/datetime.html A timedelta <https://docs.python.org/3.4/library/datetime.html#datetime.timedelta object represents a duration, the difference ...
Luofeiyu
Aug 15, 2014 at 2:24 am
Aug 15, 2014 at 6:05 pm -
Hi. I have a long running process, it generates calls to a separate py app. The py app appears to generate errors, as indicated in the /var/log/messages file for the abrtd daemon.. The errors are ...
Bruce
Aug 3, 2014 at 2:29 pm
Aug 4, 2014 at 11:04 pm -
https://www.google.com/webhp?hl=en&tab=ww&gws_rd=ssl#hl=en&q=python+programing+for+the+absolute+beginner There is a book listed as a PDF. When I try the first example of print "Game Over" I get a ...
Seymore4Head
Aug 2, 2014 at 10:13 pm
Aug 4, 2014 at 2:38 pm -
What is the logic behind that? Couldn't help do the same thing as help()? But the reason I ask is that I see (from a video of Getting Started with Python) that older versions of python would allow ? ...
Seymore4Head
Aug 29, 2014 at 8:40 pm
Sep 2, 2014 at 4:36 pm -
Hello, This very simple program runs well on windows 7 # -*- utf8 -*- print('R?ussi') But, when I start the vrey same file on Linux (ubuntu 14), I got: Traceback (most recent call last): File ...
Marc Vanhoomissen
Aug 14, 2014 at 12:35 pm
Aug 15, 2014 at 8:25 am -
13
newbee
I just acquired a Raspberry Pi and want to program in Python. I was a PL/1 programmer back in the 60's & 70's and Python is similar. I am struggling with some very fundamental things that I am not ...Frank Scafidi
Aug 12, 2014 at 11:57 pm
Aug 14, 2014 at 11:59 am -
Hi, what's the correct way to terminate a thread by itself? I mean: class MyThread(threading.Thread): def __init__(self, queueitem): threading.Thread.__init__(self) ... def run(self): """pseudo code ...
Ervin Hegedüs
Aug 27, 2014 at 6:55 pm
Aug 28, 2014 at 10:30 pm -
I like to compute log base 2 of a fairly large integer n but with math.log(n,2) I got: OverflowError: long int too large to convert to float. Is there any feasible work-around for that? Thanks in ...
Mok-Kong Shen
Aug 13, 2014 at 1:05 pm
Aug 13, 2014 at 6:13 pm -
I just installed Arch Linux for the first time, and was surprosed to find that Python isn't installed as part of a "base" system. It's also not included in the 'base-devel' package group. It's ...
Grant Edwards
Aug 11, 2014 at 6:53 pm
Aug 12, 2014 at 3:49 pm -
I'm trying to read from stdin. Here I simulate a process that slowly outputs data to stdout: steve at runes:~$ cat out.py import time print "Hello..." time.sleep(10) print "World!" time.sleep(10) ...
Steven D'Aprano
Aug 27, 2014 at 5:19 am
Aug 29, 2014 at 12:02 am -
i have written a small scripts in python that inputs two values and prints out the sum. Ok i want to be able to install this program on a windows 8 machine and run it as a normal program. i want to ...
Ngangsia akumbo
Aug 27, 2014 at 1:42 pm
Aug 28, 2014 at 3:59 pm -
Ive been asked to formulate a python course for financial services folk. If I actually knew about the subject, I'd have fatter pockets! Anyway heres some thoughts. What I am missing out? [Apart from ...
Rustom Mody
Aug 12, 2014 at 7:33 am
Aug 19, 2014 at 11:00 pm -
When i input usb line with my android phone into the pc , there are two disks j: and k: (type :removable disk) displayed in win7. i can get my android phone bluetooth mac address . import bluetooth ...
Luofeiyu
Aug 9, 2014 at 5:56 pm
Aug 14, 2014 at 6:21 am -
I am trying to write a program that will loop through a text file and delete rows in a mysql database. It seemingly runs but I don't see anything getting deleted in the db. Is there anything apparent ...
Matt Smith
Aug 8, 2014 at 7:07 pm
Aug 9, 2014 at 3:03 am -
number = 7 guess = -1 count = 0 print("Guess the number!") while guess != number: guess = int(input("Is it... ")) count = count + 1 if guess == number: print("Hooray! You guessed it right!") elif ...
Seymore4Head
Aug 7, 2014 at 2:58 am
Aug 7, 2014 at 3:11 pm -
Hi , Could you help me out on this , or guide me to some how can thanks I am trying to get a wav file information but Sndfile is unable to read file with special characters in path and file ...
Furqan wasi
Aug 18, 2014 at 3:34 pm
Aug 19, 2014 at 9:53 pm -
(Cross-posted from http://www.reddit.com/r/Python/comments/2d9f7i/survey_of_python_object_systems/) Hello, has anyone created a survey of Python Object Systems? The two I am aware of are: - elk ...
Thequietcenter
Aug 11, 2014 at 8:26 pm
Aug 14, 2014 at 10:34 am
Group Overview
group | python-list |
categories | python |
discussions | 207 |
posts | 1,867 |
users | 253 |
website | python.org |
253 users for August 2014
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)