Search Discussions

259 discussions - 1,789 posts

  • Hi folks. I am a long time C sharp dev, just learning Python now due to job requirements. My initial impression is that Python has got to be the most ambiguous and vague language I have seen to ...
    Feb 21, 2013 at 9:26 pm
    Feb 26, 2013 at 9:30 pm
  • One week ago, "JoePie91" wrote a blog post challenging the Python community and the state of Python documentation, titled: "The Python documentation is bad, and you should feel bad" ...
    Steven D'ApranoSteven D'Aprano
    Feb 26, 2013 at 12:54 pm
    Mar 9, 2013 at 6:22 am
  • DISCLAIMER: This post covers a universal programming language design flaw using both Python and Ruby code examples to showcase the issue. I really don't like to read docs when learning a language, ...
    Rick JohnsonRick Johnson
    Feb 9, 2013 at 1:50 am
    Feb 12, 2013 at 8:46 pm
  • As an antidote to the ill-informed negativity of Ranting Rick's illusionary "PyWarts", I thought I'd present a few of Python's more awesome features, starting with exception contexts. If you've ever ...
    Steven D'ApranoSteven D'Aprano
    Feb 12, 2013 at 6:15 am
    Feb 20, 2013 at 4:13 pm
  • I need to pick up a language that would cover the Linux platform. I use Powershell for a scripting language on the Windows side of things. Very simple copy files script. Is this the best way to do ...
    Anthony CorreiaAnthony Correia
    Feb 5, 2013 at 4:14 am
    Feb 9, 2013 at 3:10 am
  • Hi, I was hoping namedtuples could be used as replacements for tuples in all instances. There seem to be some differences between how tuples and namedtuples are created. For example with a tuple I ...
    John ReidJohn Reid
    Feb 18, 2013 at 11:47 am
    Feb 22, 2013 at 10:38 am
  • I coded a Python solution for Problem #14 on the Project Euler website. I was very surprised to find that it took 107 sec. to run even though it's a pretty simple program. I also coded an equivalent ...
    John ImmarinoJohn Immarino
    Feb 18, 2013 at 7:13 pm
    Feb 20, 2013 at 10:59 pm
  • I'm new to Python and only a hobbyist programmer. A long time ago I used Microsoft's Visual Basic which had a nice (graphical) facility for creating GUIs which was part of the development ...
    Rex MaceyRex Macey
    Feb 19, 2013 at 10:19 pm
    Feb 21, 2013 at 9:16 pm
  • import datetime from datetime try: datetime.strptime( date, '%d %m %Y' ) date = date.strptime( '%Y-%m-%d' ) except ValueError: print( "<h2 <font color=red H ?????????? ?????? ?? ???????? ???? ????? ...
    Ferrous CranusFerrous Cranus
    Feb 21, 2013 at 7:38 pm
    Feb 22, 2013 at 5:39 pm
  • New to Python, which I really like BTW. First serious prog. Hope you like it. I know it needs a 'can't move if your King would be put into check' test. But the weighted value of the King piece does a ...
    Chris HinsleyChris Hinsley
    Feb 13, 2013 at 11:25 pm
    Jul 5, 2013 at 1:33 am
  • In article <mailman.1425.1360186878.2939.python-list at python.org , rh wrote: I would have used the urlparse module. http://docs.python.org/2/library/urlparse.html
    Roy SmithRoy Smith
    Feb 6, 2013 at 9:54 pm
    Feb 15, 2013 at 8:58 pm
  • Hello, Would it be feasible to modify the Python grammar to allow ':' to generate slice objects everywhere rather than just indexers and top-level tuples of indexers? Right now in Py2.7, Py3.3 ...
    Feb 13, 2013 at 7:00 pm
    Feb 26, 2013 at 7:38 am
  • Hi there, I run the following code in Python 3.3.0 (on a Windows 7 machine) and Python 2.7.3 on a Mac and I get two different results: result1 = [] result2 = [] for a in range(2,101): for b in ...
    Schizoid ManSchizoid Man
    Feb 21, 2013 at 7:33 pm
    Feb 22, 2013 at 11:48 am
  • Hi Team, I Have saved my output in .doc file and want to format the output with *************Start the File ************************ Some data here *******************End of ...
    Morten EngvoldsenMorten Engvoldsen
    Feb 9, 2013 at 2:27 pm
    Feb 10, 2013 at 5:00 pm
  • I created an html help page for my Python 2.7.3 application and put it in a documentation folder. I used webbrowser.open() to fetch the page. On linux -- KDE specifically, the command opens the local ...
    Feb 24, 2013 at 9:17 am
    Feb 26, 2013 at 1:15 pm
  • Hello all; I am using Ubuntu 12.10 and Python v2.7.3. I am trying to add a directory to the PYTHONPATH. All of the commands I have found on the web have failed. Please help me to add a directory to ...
    Matt Doolittle33Matt Doolittle33
    Feb 19, 2013 at 3:23 pm
    Feb 19, 2013 at 9:46 pm
  • Hello all, One said, Python is not programming language, rather scripting language, is that true? Thanks. An HTML attachment was scrubbed... URL ...
    Feb 8, 2013 at 1:03 pm
    Feb 11, 2013 at 11:46 pm
  • I have a program that performs some calculations that runs perfectly on Python 2.7.3. However, when I try to execute it on Python 3.3.0 I get the following error: numer = math.log(s) TypeError: a ...
    Schizoid ManSchizoid Man
    Feb 2, 2013 at 10:27 am
    Feb 3, 2013 at 4:22 am
  • I use FreeBSD or Linux, but my son is learning Python and is using Windows. My question is this: Would it be good practice for him to put #!/usr/bin/ env python at the top of his scripts, so that if ...
    Walter HurryWalter Hurry
    Feb 22, 2013 at 6:16 pm
    Feb 26, 2013 at 2:30 pm
  • Hi guys, on an embedded linux system (BeagleBoard) I am writing data coming from bluetooth dongle into a pipe. The function is the following one: def write_to_pipe(line): # next line ensures that ...
    Feb 18, 2013 at 3:12 pm
    Feb 20, 2013 at 10:05 pm
  • Any small program ideas? I would prefer to stick to command line ones. Thanks.
    Eli mEli m
    Feb 16, 2013 at 3:22 am
    Mar 29, 2013 at 1:43 pm
  • I am using Eclipse to write my python scripts and when i run them from inside eclipse they work fine without errors. But almost in every script that handle some form of special characters like ...
    Magnus PetterssonMagnus Pettersson
    Feb 12, 2013 at 10:43 am
    Feb 13, 2013 at 3:51 am
  • The eternal conflict between "Look Before You Leap" and "Easier to Ask for Forgiveness than Permission" (LBYL vs EAFP) continues... I want to check that a value is a number. Let's say I don't care ...
    Steven D'ApranoSteven D'Aprano
    Feb 4, 2013 at 11:16 pm
    Feb 5, 2013 at 12:25 pm
  • Hello all, New guy here, with a kind of general question. Hopefully its not too silly... I've been working at learning python off and on now for a while, with a couple programs in mind as a goal - ...
    Monte MilanukMonte Milanuk
    Feb 21, 2013 at 4:22 pm
    Feb 26, 2013 at 6:26 am
  • A quote from Computer World (http://tinyurl.com/bxqjed8): "... the Python Software Foundation (PSF) - a non-profit supporting the venerable Python programming language ..." Venerable? Come on ...
    Roy SmithRoy Smith
    Feb 20, 2013 at 2:45 am
    Feb 20, 2013 at 4:03 pm
  • So I have a dictionary and the key is a number. The values are either a single tuple or a tuple of tuples. Is there a better way to go about accessing the values of the dictionary? All the tuples ...
    Jon ReyesJon Reyes
    Feb 19, 2013 at 12:52 am
    Feb 19, 2013 at 3:56 am
  • Hello all, The Python Software Foundation is the organisation which protects and manages the "boring" bits of keeping a big open source project alive: the legal and contractual parts, funding for ...
    Steven D'ApranoSteven D'Aprano
    Feb 14, 2013 at 9:52 pm
    Feb 18, 2013 at 11:48 pm
  • I'm new to Python with a new windows 8 machine (64-bit OS). Learning programming mainly for fun. Naturally I downloaded Python 3.3 (who doesn't want the latest and greatest). What I want involves ...
    Rex MaceyRex Macey
    Feb 10, 2013 at 5:35 pm
    Feb 14, 2013 at 11:09 am
  • Hi, I'm implementing a python client connecting to a C-backend server and am currently stuck to as to how to proceed with receiving variable-length byte stream coming in from the server. I have coded ...
    Ihsan Junaidi IbrahimIhsan Junaidi Ibrahim
    Feb 11, 2013 at 12:48 am
    Feb 12, 2013 at 3:09 am
  • Python's use of namespaces is, as we all quite know, "one honking great idea!"; and i must wholeheartedly agree, however, accessing and declaring variables living in python namespaces is a kludge at ...
    Rick JohnsonRick Johnson
    Feb 8, 2013 at 4:30 am
    Feb 11, 2013 at 9:11 pm
  • I have recently moved all my SQLite3 database-related functions into a class, DatabaseAccess, that lives in a "utilities" module. When the application loads, the namespace of the instance of the ...
    Feb 6, 2013 at 4:40 am
    Feb 9, 2013 at 4:54 am
  • Hi, I'm trying to create this program that counts the occurrences of each digit in a string which the user have to enter. Here is my code: s=input("Enter a string, eg(4856w23874): ") s=list(s) ...
    Feb 5, 2013 at 6:38 pm
    Feb 6, 2013 at 6:32 am
  • Here is something interesting that you pythonistas might be interested in: http://www.primaryobjects.com/CMS/Article149.aspx """This article describes an experiment to produce an AI program, capable ...
    Gisle VanemGisle Vanem
    Feb 22, 2013 at 10:11 am
    Feb 25, 2013 at 12:35 pm
  • I am trying to calculate the coordinates at the end of a line. The length and angle of the line are given and I am using the following formula: x = (math.sin(math.radians(angle)) * length) y = ...
    Kene MeniruKene Meniru
    Feb 15, 2013 at 7:39 pm
    Feb 16, 2013 at 6:24 pm
  • Hi *Monte-Pythons*, x = "this is a simple : text: that has colon" s = x.replace(string.punctuation, ""); OR s = x.replace(string.punctuation, ""); print x # 'this is a simple : text: that has colon' ...
    Joshua RobinsonJoshua Robinson
    Feb 9, 2013 at 11:04 am
    Feb 14, 2013 at 8:02 am
  • Hi folks, I'm pretty unsure of myself when it comes to unicode. As I understand it, you're generally supposed to compare things in a case insensitive manner by case folding, right? So instead of ...
    Devin JeanpierreDevin Jeanpierre
    Feb 23, 2013 at 2:26 pm
    Feb 26, 2013 at 5:53 am
  • Hello, ive been struggling with this for a couple weeks now and was hoping someone might be able to help. I have an older Cognex camera that I need to communicate with via telnet. I can get a ...
    Chris AnninChris Annin
    Feb 25, 2013 at 5:02 pm
    Feb 26, 2013 at 1:44 am
  • I have written a piece of code that will be part of a larger repository of related programs. Within this repository, it is standard to issue a 'make' command to compile any desired program. Is it ...
    Malcolm WhiteMalcolm White
    Feb 13, 2013 at 12:44 am
    Feb 14, 2013 at 6:43 am
  • Hello, I have been using Python for a few months now, so I am still learning a few things here and there. Basically I am creating a program that will stream musical notes into a program called ...
    Feb 6, 2013 at 10:02 pm
    Feb 13, 2013 at 4:09 pm
  • Dear Group, I am looking for a Python implementation of Maximum Likelihood Estimation. If any one can kindly suggest. With a google search it seems scipy,numpy,statsmodels have modules, but as I am ...
    Feb 1, 2013 at 5:17 pm
    Feb 2, 2013 at 9:41 pm
  • Hi folks, When I am trying to understand "yield" expression in Python2.6, I did the following coding. I have difficulty understanding why "val" will be "None" ? What's happening under the hood? It ...
    Ziliang ChenZiliang Chen
    Feb 25, 2013 at 12:36 am
    Feb 26, 2013 at 6:44 pm
  • Hi, could somebody possibly provide a basic listview example? thanks!
    Feb 22, 2013 at 6:03 pm
    Feb 25, 2013 at 4:40 am
  • Dear all, I am wondering what the rules are that determine whether a built-in type is subclassable or not. As examples, why can you base your classes on int or set, but not on bool or range? Also ...
    Wolfgang MaierWolfgang Maier
    Feb 22, 2013 at 9:35 am
    Feb 24, 2013 at 4:38 pm
  • Hi , I have wrote the below code to validate a number using modulus 10 and 11: def is_valid_number(checknum, mod): if mod == 10: if not len(checknum) = 2 and len(checknum) <%: return False number = ...
    Morten EngvoldsenMorten Engvoldsen
    Feb 22, 2013 at 3:09 pm
    Feb 23, 2013 at 9:11 am
  • Hello, Here is what I am trying to do. (Currently, I am doing this in cron but i need much more granularity). I am trying to run program every 20 secs and loop forever. I have several of these types ...
    Feb 21, 2013 at 4:04 am
    Feb 22, 2013 at 12:24 am
  • Hi, i'm new to python and programming with it and so for json format. I have my excel 2010 program with vba that does the following : - read the data flow from http://bitcoincharts.com/t/markets.json ...
    Feb 19, 2013 at 11:48 pm
    Feb 21, 2013 at 8:36 am
  • Hi, I am very new to Python, I am using the e-book "Python Programming for the Absolute Beginner" and am starting with a simple "Game Over" Program. This is the code:which is extremely simple! ...
    Deborah PiotrowskiDeborah Piotrowski
    Feb 15, 2013 at 9:45 pm
    Feb 15, 2013 at 11:52 pm
  • An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20130215/53123b4f/attachment.html
    Bob BrusaBob Brusa
    Feb 15, 2013 at 4:59 pm
    Feb 15, 2013 at 7:40 pm
  • Hi, I am writing some code to manage handball leagues more easy. Problem: MISSON: Get single club ids glued together with the shortest teamname. EXAMPLE: SELECT homenr as nr, home as club FROM ...
    Steffen MutterSteffen Mutter
    Feb 3, 2013 at 9:46 am
    Feb 8, 2013 at 7:59 pm
  • To the good people on comp.lang.python: I have the following Tkinter class (python 2.7.3): from Tkinter import * class ScrolledCanvas(Frame): def __init__(self, master, width, height, bg, cursor) ...
    Saul SpatzSaul Spatz
    Feb 4, 2013 at 1:08 am
    Feb 5, 2013 at 1:00 am
Group Navigation
period‹ prev | Feb 2013 | next ›
Group Overview
grouppython-list @

341 users for February 2013

Chris Angelico: 166 posts Steven D'Aprano: 107 posts Dave Angel: 62 posts Terry Reedy: 61 posts Rick Johnson: 59 posts Michael Torrie: 49 posts MRAB: 44 posts Ian Kelly: 39 posts Oscar Benjamin: 36 posts Mark Lawrence: 33 posts Roy Smith: 30 posts Peter Otten: 29 posts Jean-Michel Pichavant: 20 posts Ethan Furman: 18 posts Morten Engvoldsen: 18 posts Rusi: 18 posts Matt Doolittle33: 17 posts Mitya Sirenef: 16 posts Michael Herman: 15 posts Ferrous Cranus: 14 posts
show more