FAQ

Search Discussions

318 discussions - 1,952 posts

  • The Python 3 merge of int and long has effectively penalized small-number arithmetic by removing an optimization. As we've seen from PEP 393 strings (jmf aside), there can be huge benefits from ...
    Chris AngelicoChris Angelico
    Mar 25, 2013 at 9:51 pm
    Apr 7, 2013 at 3:14 pm
  • Today i switched to Python v3.2.3 on my remote web server at HostGator. My cgi-script which it works at python v2.6.6 now produces theses errors: -- -- Traceback (most recent call last): File ...
    Νίκος Γκρ33κΝίκος Γκρ33κ
    Mar 7, 2013 at 8:18 am
    Mar 9, 2013 at 3:20 pm
  • Hello everyone, my name is Michael, I'm the lead developer of a Python GUI automation library for Windows called Automa: http://www.getautoma.com. We want to add some features to our library but are ...
    Michael HerrmannMichael Herrmann
    Mar 25, 2013 at 7:29 pm
    Apr 4, 2013 at 7:05 am
  • True True False What's the rule about that? Is it the number of letters or what? thanks
    FranzferdinandFranzferdinand
    Mar 20, 2013 at 1:33 pm
    Mar 24, 2013 at 4:12 pm
  • As a reply to rusi's comment: http://groups.google.com/group/comp.lang.python/browse_thread/thread/a7689b158fdca29e# Important: The real/absolute values of these experiments are not important. I do ...
    JmfauthJmfauth
    Mar 13, 2013 at 9:36 am
    Mar 16, 2013 at 10:10 pm
  • Any ideas on hopw to embed some html data at the end of each python script?
    Νίκος Γκρ33κΝίκος Γκρ33κ
    Mar 5, 2013 at 5:11 pm
    Mar 7, 2013 at 12:17 pm
  • I'am using this snipper to read a current directory and insert all filenames into a databse and then display them. But what happens when files are get removed form the directory? The inserted records ...
    Νίκος Γκρ33κΝίκος Γκρ33κ
    Mar 6, 2013 at 7:45 am
    Mar 11, 2013 at 2:27 pm
  • You're asking for a facility whereby variables magically get pulled from the caller's scope. Let me put it to you another way: def func1(): return foo + " world" def func2(): foo = "Hello" ...
    Chris AngelicoChris Angelico
    Mar 1, 2013 at 5:07 pm
    Mar 5, 2013 at 11:55 am
  • mail = form.getvalue('mail') id what the user types in an html form and click submits. this can be a non valid email of course i just check if there is a '@' in the mail address. But will the mail, ...
    Νίκος Γκρ33κΝίκος Γκρ33κ
    Mar 9, 2013 at 9:25 pm
    May 27, 2013 at 11:44 am
  • Hi all, Currently create a simple text-based database of information about people I have a csv file which consist of 3 rows , row 1 2 and 3 is as such: Name Address Telephone Birthday John Konon ...
    Jiewei HuangJiewei Huang
    Mar 24, 2013 at 5:20 am
    Mar 29, 2013 at 4:28 am
  • I am in the process of making a pong game in python using the pygame library. My current problem is that when I move the mouse, it turns off as soon as the mouse stops moving. The way I am doing this ...
    Alex GardnerAlex Gardner
    Mar 3, 2013 at 1:56 am
    Mar 18, 2013 at 11:05 pm
  • Fianlly my cgi .py script doesnt produce any more errors, i think i ahve correct them but it present a blank screen http://superhost.gr Any idea why? What should i check?
    Νίκος Γκρ33κΝίκος Γκρ33κ
    Mar 28, 2013 at 2:19 pm
    Mar 29, 2013 at 9:14 pm
  • Program summary: I have a module called user.py that imports another module called app.py. Functions in app.py are used in user.py to describe 3D objects. These objects are saved in another object ...
    Kene MeniruKene Meniru
    Mar 9, 2013 at 3:06 am
    Mar 12, 2013 at 1:38 pm
  • Hello today i deiced to go form python 2.6 to python 3.2.3 although in 2.6 my script runs in the ht enewest python i ge this error: Traceback (most recent call last): File ...
    Νίκος Γκρ33κΝίκος Γκρ33κ
    Mar 26, 2013 at 9:24 pm
    Mar 28, 2013 at 3:57 am
  • I'm inserting a gazillion rows into a MySQL database using MySQLdb and cursor.executemany() for efficiency. Every once in a while, I get a row which violates some kind of database constraint and ...
    Roy SmithRoy Smith
    Mar 29, 2013 at 2:48 pm
    Mar 30, 2013 at 4:44 pm
  • I'm currently in the process of learning Ruby on Rails. I'm going through the Rails for Zombies tutorial, and I'm seeing the power of Rails. I still need to get a Ruby on Rails site up and running ...
    Jason HsuJason Hsu
    Mar 6, 2013 at 6:03 pm
    Mar 9, 2013 at 4:40 am
  • I stumbled upon an interesting bit of trivia concerning lists and list comprehensions today. We use mongoengine as a database model layer. A mongoengine query returns an iterable object called a ...
    Roy SmithRoy Smith
    Mar 7, 2013 at 3:20 am
    Mar 10, 2013 at 11:50 pm
  • I'am about to go nuts with python 3.2.3 Do you see somehtign wrong with the following statement? cur.execute( '''SELECT hits FROM counters WHERE url = ?''', (page,) ) data = cur.fetchone() because as ...
    Νίκος Γκρ33κΝίκος Γκρ33κ
    Mar 28, 2013 at 3:50 am
    Mar 29, 2013 at 7:24 pm
  • Hello, I just posted an answers on quora.com about OOP (http://qr.ae/TM1Vb) and wanted to engage the python community on the subject. Alan Kay's idea of message-passing in Smalltalk are interesting, ...
    Mark JanssenMark Janssen
    Mar 18, 2013 at 3:53 am
    Mar 21, 2013 at 5:50 am
  • For example: a=[-15,-30,-10,1,3,5] I want to find a negative and a positive minimum. example: negative print(min(a)) = -30 positive print(min(a)) = 1 An HTML attachment was scrubbed... URL ...
    Norah JonesNorah Jones
    Mar 12, 2013 at 5:03 pm
    Mar 14, 2013 at 11:45 am
  • Every time I write a program with exception handling (and I suppose that includes just about every program I write!) I need to scratch my brain when I create try blocks. For example, I'm writing a ...
    BvdpBvdp
    Mar 2, 2013 at 5:40 pm
    Mar 3, 2013 at 11:01 pm
  • Hello everyone, i am using the MMK.py example from a SimPy tutorial, which can be found here: http://heather.cs.ucdavis.edu/~matloff/156/PLN/DESimIntro.pdf I have made very little changes to the code ...
    NZachNZach
    Mar 19, 2013 at 1:57 am
    Mar 19, 2013 at 3:26 pm
  • I downloaded the following program from somewhere using a link from Wikipedia and inserted the ?most difficult Sudoku puzzle ever? string into it and ran it. It worked fine and solved the puzzle in ...
    Eric ParryEric Parry
    Mar 27, 2013 at 5:44 am
    Apr 1, 2013 at 3:58 am
  • Hi, I have a single questions regarding id() built-in function. example 1: var1 = "some string" var2 = "some string" if use the id() function on both, it returns exactly the same address. example 2 ...
    Fabian von RombergFabian von Romberg
    Mar 24, 2013 at 12:37 am
    Mar 24, 2013 at 9:35 am
  • Sometimes many levels of trace messages can be helpful when detecting bugs, however, in the case of NameErrors, these "nuggets" ejected from deep within the bowls of the Python interpreter are ...
    Rick JohnsonRick Johnson
    Mar 16, 2013 at 6:27 pm
    Mar 17, 2013 at 9:22 pm
  • Is there some way to go around this limit? I need to import data from python to excel and I need 1440 columns for that.
    Ana DionísioAna Dionísio
    Mar 18, 2013 at 3:28 pm
    Mar 30, 2013 at 4:43 pm
  • So i have a variable called funds that i want to store the value of even after the program is exited. My funds variable holds the total value of funds i have. I add a certain number of funds each ...
    Eli mEli m
    Mar 1, 2013 at 3:35 am
    Mar 14, 2013 at 12:22 am
  • Actually, *languages* are neither interpreted nor compiled. A language is an abstract description of behaviour and syntax. Whether something is interpreted or compiled or a mixture of both is a ...
    Steven D'ApranoSteven D'Aprano
    Mar 1, 2013 at 2:55 am
    Mar 5, 2013 at 1:35 am
  • N00b question. But here is the code: http://bin.cakephp.org/view/709201806 In the first example, the first for-loop is run and then the list is assigned to the tricky variable. But, what happens in ...
    Yves S. GarretYves S. Garret
    Mar 18, 2013 at 12:58 am
    Mar 19, 2013 at 1:08 am
  • Hi, I have a package name collections and inside of my package I want to import the collections package from the standard library, but there is name conflicts. How do I import explicitly from the ...
    Fabian von RombergFabian von Romberg
    Mar 24, 2013 at 11:12 pm
    Mar 27, 2013 at 12:33 am
  • I want to write a fairly trivial database driven application, it will basically present a few columns from a database, allow the user to add and/or edit rows, recalculate the values in one column and ...
    TinnewsTinnews
    Mar 13, 2013 at 6:40 pm
    Mar 19, 2013 at 2:17 pm
  • how to couper all the obejcts in a canvas in an auther canvas?
    Olsr KamalOlsr Kamal
    Mar 14, 2013 at 12:16 pm
    Mar 15, 2013 at 8:46 pm
  • Hello all I am trying to solve this problem[1] using regular expression. I wrote this code but I am getting time limit exceed. Could some one please tell me how to make this code run faster. import ...
    Mukesh tiwariMukesh tiwari
    Mar 10, 2013 at 5:42 pm
    Mar 11, 2013 at 8:23 pm
  • hi guys i wrote this example : name = raw_input("What is your name?") quest = raw_input("What is your quest?") color = raw_input("What is your favorite color?") print """Ah, so your name is %s, your ...
    Leonardo selmiLeonardo selmi
    Mar 22, 2013 at 5:06 pm
    Mar 24, 2013 at 11:35 pm
  • I'm curious about using configuration files. Can someone tell me how they are used? I'm writing a podcast catcher and would like to set up some default configurations, e.g. directory, etc Other than ...
    ChuckChuck
    Mar 5, 2013 at 8:09 pm
    Mar 7, 2013 at 4:18 pm
  • # ================================================================================================================= # display download button for each file and downlaod it on click # ...
    Νίκος Γκρ33κΝίκος Γκρ33κ
    Mar 5, 2013 at 9:00 am
    Mar 5, 2013 at 2:37 pm
  • hi guys i have a mac os x 10.8, i had already python 2.7, i downloaded python 3.3 and active tcl 8.5, but idle and the new version don't work, the answer is:"idle's subprocess didn't make connection ...
    LeonardoLeonardo
    Mar 10, 2013 at 11:04 am
    Jul 27, 2013 at 12:40 pm
  • Hello, I'm using python 3.2.3 and I'm making a program that show the of occurrences of the character in the string in Tkinter. My questions are: How can I make an empty Entry object that will hold a ...
    Maiden129Maiden129
    Mar 19, 2013 at 7:01 pm
    Mar 20, 2013 at 5:37 pm
  • Hi all, I'm well into "Python Programming for the Absolute Beginner" in order to become more acquainted with the language. However, when I got to page 304 and did my first example ...
    Yves S. GarretYves S. Garret
    Mar 16, 2013 at 2:53 pm
    Mar 19, 2013 at 2:11 pm
  • This simple script is about a public transport, here is the code: def report_status(should_be_on, came_on): if should_be_on < 0.0 or should_be_on 24.0 or came_on < 0.0 or came_on 24.0: return 'time ...
    Santosh KumarSantosh Kumar
    Mar 18, 2013 at 1:56 pm
    Mar 18, 2013 at 3:24 pm
  • The following scripts are working fine on linux but, using the same version, can't work on windows because i receive the following message: Script: import json import urllib import csv url = ...
    IoIo
    Mar 4, 2013 at 7:06 pm
    Mar 5, 2013 at 2:58 am
  • I just updated PyDev and I got this message that they are looking for funding for a new flavor of Eclipse called LiClipse. The description of what LiClipse will be is kind of sketchy. No offense ...
    WandererWanderer
    Mar 22, 2013 at 8:26 pm
    Mar 23, 2013 at 5:56 pm
  • Hi all I want to locate a file relative to the directory from which the main program was launched. I have found two ways of finding the starting directory - 1. import os dir = os.getcwd() 2. import ...
    Frank MillmanFrank Millman
    Mar 19, 2013 at 7:26 am
    Mar 20, 2013 at 10:17 am
  • I am trying to make an object that can track when its attributes have been assigned new values, and which can rollback to previous values where necessary. I have the following code which I believe ...
    Ben SizerBen Sizer
    Mar 6, 2013 at 4:07 pm
    Mar 8, 2013 at 6:50 pm
  • I was wondering what the best approach for the following might be. Say you have a list P of points and another list N of other items. You can always assume that len(N) <= len(P) Now I would like to ...
    SvenSven
    Mar 7, 2013 at 9:23 am
    Mar 8, 2013 at 5:59 pm
  • Hi all, I would like to inherit from the list native class. really I expected that was possible to use native list method without redefining them, for example the __repr__ method. I don't know if i ...
    GialloporporaGialloporpora
    Mar 2, 2013 at 5:02 pm
    Mar 3, 2013 at 8:40 pm
  • Hi, I don't quite understand how -m option is used. And it is difficult to search for -m in google. Could anybody provide me with an example on how to use this option? Thanks! -m module-name Searches ...
    Peng YuPeng Yu
    Mar 18, 2013 at 9:17 pm
    Apr 8, 2013 at 6:47 pm
  • What's a neat way to print columns of numbers with blanks where a number is zero or None? E.g. I want to output something like:- Credit Debit Description 100.00 Initial balance 123.45 Payment for ...
    ClCl
    Mar 26, 2013 at 3:50 pm
    Mar 27, 2013 at 8:23 am
  • I am using swig to generate our CLI for TCL and Python. In this CLI, we have a subcommand "exec" that is failing to compile in the python case. There seems to be some built-in python command "exec" ...
    KyleKyle
    Mar 25, 2013 at 8:28 pm
    Mar 27, 2013 at 1:27 am
  • Hi, suppose I have a file like this: class A: r = 5 def func(self, s): self.s = s a = A() print(a.r) # this should print 5, but where does py store the name of r a.func(3) print(a.s) # this should ...
    Shiyao MaShiyao Ma
    Mar 26, 2013 at 6:17 am
    Mar 26, 2013 at 12:43 pm
Group Navigation
period‹ prev | Mar 2013 | next ›
Group Overview
grouppython-list @
categoriespython
discussions318
posts1,952
users378
websitepython.org

378 users for March 2013

Chris Angelico: 184 posts Steven D'Aprano: 120 posts Νίκος Γκρ33κ: 107 posts Dave Angel: 82 posts Roy Smith: 52 posts Terry Reedy: 51 posts Rusi: 48 posts Mark Lawrence: 47 posts Rick Johnson: 39 posts Ian Kelly: 38 posts Joel Goldstick: 31 posts Peter Otten: 30 posts Jmfauth: 25 posts Michael Herrmann: 23 posts Grant Edwards: 20 posts Jean-Michel Pichavant: 18 posts Michael Torrie: 18 posts MRAB: 18 posts Alex Gardner: 17 posts Neil Cerutti: 15 posts
show more
Archives