FAQ

Search Discussions

207 discussions - 1,867 posts

  • 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 PalaoDavid 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?
    LuofeiyuLuofeiyu
    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 SummerfieldMark 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 KnowEverything 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.
    ElChinoElChino
    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 ...
    Twirlip2Twirlip2
    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 ...
    WiktorWiktor
    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 ...
    Seymore4HeadSeymore4Head
    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 ...
    WesleyWesley
    Aug 12, 2014 at 7:04 am
    Aug 15, 2014 at 5:30 pm
  • import random sets=3 for x in range(0, sets) ...
    Seymore4HeadSeymore4Head
    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 ...
    Seymore4HeadSeymore4Head
    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 ...
    LuofeiyuLuofeiyu
    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 WolfPaul 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 RamaekersDominique 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 ...
    Seymore4HeadSeymore4Head
    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 LawrenceMark 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 PatilJaydeep 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 MillmanFrank 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 SpekAlex 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 AngelicoChris 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?
    LuofeiyuLuofeiyu
    Aug 14, 2014 at 1:46 am
    Aug 20, 2014 at 2:01 pm
  • 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 BrownRodrick 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 ...
    LuofeiyuLuofeiyu
    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 BatchelderNed 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 StokesVirgil 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 ...
    LuofeiyuLuofeiyu
    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 CalderonChristian 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 ...
    IcefapperIcefapper
    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 MitchellJamie Mitchell
    Aug 14, 2014 at 3:22 pm
    Aug 20, 2014 at 4:55 pm
  • 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 ...
    Seymore4HeadSeymore4Head
    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 MilesFrank 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 ...
    DennisearlevansDennisearlevans
    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 ...
    C1223C1223
    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 ...
    LuofeiyuLuofeiyu
    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 ...
    BruceBruce
    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 ...
    Seymore4HeadSeymore4Head
    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 ? ...
    Seymore4HeadSeymore4Head
    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 VanhoomissenMarc Vanhoomissen
    Aug 14, 2014 at 12:35 pm
    Aug 15, 2014 at 8:25 am
  • 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 ScafidiFrank 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üsErvin 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 ShenMok-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 EdwardsGrant 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'ApranoSteven 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 akumboNgangsia 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 ModyRustom 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 ...
    LuofeiyuLuofeiyu
    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 SmithMatt 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 ...
    Seymore4HeadSeymore4Head
    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 wasiFurqan 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 ...
    ThequietcenterThequietcenter
    Aug 11, 2014 at 8:26 pm
    Aug 14, 2014 at 10:34 am
Group Navigation
period‹ prev | Aug 2014 | next ›
Group Overview
grouppython-list @
categoriespython
discussions207
posts1,867
users253
websitepython.org

253 users for August 2014

Chris Angelico: 235 posts Mark Lawrence: 101 posts Steven D'Aprano: 101 posts Terry Reedy: 79 posts Marko Rauhamaa: 73 posts Luofeiyu: 61 posts Rustom Mody: 58 posts Ian Kelly: 54 posts Seymore4Head: 47 posts Ben Finney: 45 posts Peter Otten: 40 posts Skip Montanaro: 40 posts Roy Smith: 35 posts Grant Edwards: 27 posts Denis McMahon: 23 posts Tim Chase: 23 posts Steven D'Aprano: 20 posts Wxjmfauth: 19 posts Everything You Need To Know: 19 posts Twirlip2: 19 posts
show more
Archives