Search Discussions

302 discussions - 2,140 posts

  • -------------------------------------------------- Summary -------------------------------------------------- As we all know python allows us to use either tabs or spaces but NEVER both in the same ...
    Jul 16, 2011 at 4:51 pm
    Jul 19, 2011 at 5:36 am
  • 2011-07-16 folks, this one will be interesting one. the problem is to write a script that can check a dir of text files (and all subdirs) and reports if a file has any mismatched matching brackets. ? ...
    Xah LeeXah Lee
    Jul 17, 2011 at 7:47 am
    Jul 25, 2011 at 5:57 am
  • What is wrong with them: 1. Designed for other languages, particularly C++, tcl and Java. 2. Bloatware. Qt and wxWidgets are C++ application frameworks. (Python has a standard library!) 3. Unpythonic ...
    Jul 20, 2011 at 2:12 am
    Jul 25, 2011 at 2:06 am
  • Hello fellow programmers, scripters, hackers, and debutantes. I have cross posted this thread to three groups that i believe need to unite under the flag of unity for the benefit of all. Because when ...
    Jul 2, 2011 at 10:59 pm
    Jul 8, 2011 at 7:21 pm
  • Hi all I want to convert '165.0' to an integer. The obvious method does not work - Traceback (most recent call last): File "<stdin ", line 1, in <module ValueError: invalid literal for int() with ...
    Frank MillmanFrank Millman
    Jul 21, 2011 at 9:31 am
    Aug 2, 2011 at 12:42 am
  • Tkinter has a major flaw and this flaw has been with us for many many years. What is the flaw? Well the title says it all folks... IMPLICIT INITIALIZATION IS EVIL. Still confused, well let me ...
    Jul 3, 2011 at 10:11 pm
    Jul 9, 2011 at 4:41 am
  • Ok Guys. I know that most of us have been expiriencing the need for a nice Gui builder tool for RAD and most of us have been googling for it a lot of times. But seriously. Why is the not even one ...
    Ivan KljaicIvan Kljaic
    Jul 10, 2011 at 10:50 pm
    Jul 13, 2011 at 2:59 pm
  • I found a couple things that I think should be tweaked in PEP 8. I don't agree with everything in PEP 8, but I'm not going to debate /those/ points; rather I'm bringing up a couple examples that ...
    Andrew BergAndrew Berg
    Jul 21, 2011 at 5:51 pm
    Aug 1, 2011 at 3:16 pm
  • Pythonistas: Consider this hashing code: import hashlib file = open(path) m = hashlib.md5() m.update(file.read()) digest = m.hexdigest() file.close() If the file were huge, the file.read() would ...
    Jul 6, 2011 at 5:54 am
    Jul 9, 2011 at 4:44 am
  • Is it bad practice to use this Other than the case where a variable isn't a string (format() converts variables to strings, automatically, right?) and when a variable is used a bunch of times, ...
    Andrew BergAndrew Berg
    Jul 8, 2011 at 8:18 pm
    Jul 10, 2011 at 11:24 pm
  • As telling in the subject,because "list" and "tuple" aren't functions,they are types.Is that right?
    Jul 15, 2011 at 1:21 am
    Jul 20, 2011 at 8:53 pm
  • -------------------------------------------------- Overview of Problems: -------------------------------------------------- * Too many methods exported. * Poor choice of method names. * Non public ...
    Jul 29, 2011 at 5:22 pm
    Aug 3, 2011 at 9:52 am
  • Hi, all, Lately I am giving some presentations to my colleagues about the python language. A new internal project is coming up which will require the use of python. One of my colleague asked an ...
    Anthony KongAnthony Kong
    Jul 11, 2011 at 1:51 pm
    Jul 16, 2011 at 4:07 am
  • Consider the following: ## code def test(): """This is my docstring""" print(??) ## can I print the docstring above? ## /code It possible for a function to print it's own docstring? thanks (pointers ...
    Tim JohnsonTim Johnson
    Jul 10, 2011 at 5:41 pm
    Jul 11, 2011 at 10:11 pm
  • Using Python 2.6 on ubuntu 10.04. inspect module : I want to 'inspect' a module and get a list of all functions, classes and global variables in that module. ## A module has been imported, and we ...
    Tim JohnsonTim Johnson
    Jul 4, 2011 at 6:11 pm
    Jul 8, 2011 at 12:36 am
  • I may have found the mother of all inconsitency warts when comparing the zipfile and tarfile modules. Not only are the API's different, but the entry and exits are differnet AND zipfile/tarfile do ...
    Jul 22, 2011 at 3:46 am
    Jul 23, 2011 at 12:31 am
  • Hello folks, I'm designing an API for some lightweight calculator-like statistics functions, such as mean, standard deviation, etc., and I want to support missing values. Missing values should be ...
    Steven D'ApranoSteven D'Aprano
    Jul 15, 2011 at 5:28 am
    Jul 17, 2011 at 12:31 am
  • Hi, I have come across something I don't really understand and would be grateful if someone could shed some light into my understanding of it. In the documentation of the Qt4 libs in the page ...
    Archard LiasArchard Lias
    Jul 25, 2011 at 12:00 pm
    Jul 28, 2011 at 6:26 am
  • 2011-07-11 hi jvt, of course, you are right. But i wasn't criticising functional programing in anyway. was just putting out my tale as a caution, to those of us ? e.g. academic scheme lispers and ...
    Xah LeeXah Lee
    Jul 12, 2011 at 3:37 am
    Jul 14, 2011 at 3:12 am
  • I have a script that does some stuff that I want to run every day for maybe a week, or a month. So far I've been good about running it every night, but is there some way (using Python, of course) ...
    John SalernoJohn Salerno
    Jul 10, 2011 at 12:26 am
    Jul 27, 2011 at 4:03 pm
  • I noticed that if a file is being continuously written to, the file generator does not notice it: def getLines(f): lines = [] for line in f: lines.append(line) return lines with ...
    Billy MaysBilly Mays
    Jul 14, 2011 at 7:46 pm
    Jul 17, 2011 at 7:26 am
  • [python 2.7] I have a (linux) pathname that I'd like to split completely into a list of components, e.g.: '/home/gyoung/hacks/pathhack/foo.py' -- ['home', 'gyoung', 'hacks', 'pathhack', 'foo.py'] ...
    Jul 28, 2011 at 8:18 pm
    Jul 31, 2011 at 6:42 am
  • Probably for the same reason Ellipsis and NotImplemented also can't be instantiated. What that reason is I don't know. Related: http://bugs.python.org/issue6477#msg90641 -- Bill
    Billy MaysBilly Mays
    Jul 28, 2011 at 3:34 pm
    Jul 31, 2011 at 4:28 am
  • I'm very very new with python, and I have some experience with java programming, so probably you guys will notice. Anyway this is my question: I'd like to use class scope vars in method parameter, ...
    Jul 22, 2011 at 11:12 am
    Jul 22, 2011 at 10:22 pm
  • After too much time coding Python scripts and reading Mark Lutz's Python books, I was inspired to write the following lyrics. For those too young to remember, the tune is that of "Pinball Wizard," by ...
    John KeislingJohn Keisling
    Jul 12, 2011 at 4:40 pm
    Jul 13, 2011 at 11:43 pm
  • This is not strictly Python, although it is peripherally relevant. Some month or three ago, I read an article or blog post about API design, specifically the wrong-headedness of insisting that ...
    Steven D'ApranoSteven D'Aprano
    Jul 5, 2011 at 3:26 pm
    Jul 7, 2011 at 3:58 pm
  • Is there a way to have the Python processor look only for bytecode files, not .py files? We are seeing huge numbers of Linux audit messages on production system on which only bytecode files are ...
    Eldon ZieglerEldon Ziegler
    Jul 26, 2011 at 3:19 pm
    Jul 29, 2011 at 3:06 pm
  • Hello Folks, Lately i have been musing over the ideas of method tagging. Specifically i am referring to method identifiers. As most of you know i had proposed to add "syntactical markers" to the ...
    Jul 14, 2011 at 11:02 pm
    Jul 17, 2011 at 5:30 pm
  • In tcl/tk an Entry widget can be set to validate its contents with the validate option. You have to give it a validatecommand (vcmd), which is a tcl script that runs when some action triggers ...
    Saul SpatzSaul Spatz
    Jul 25, 2011 at 12:11 am
    Jul 27, 2011 at 9:24 am
  • Hi, all, If you have read my previous posts to the group, you probably have some idea why I asked this question. I am giving a few presentations on python to my colleagues who are mainly java ...
    Anthony KongAnthony Kong
    Jul 13, 2011 at 10:59 am
    Jul 18, 2011 at 8:02 pm
  • Hi, I am a newbie in python and would like to learn GUI programming. I would like to know what exactly is Partial Function Applicaton (functool.partial())? Or how is it advantageous compared to ...
    Kurian ThayilKurian Thayil
    Jul 18, 2011 at 10:13 am
    Jul 19, 2011 at 5:15 pm
  • I know this isn't specific to Python, but it is somewhat on topic. Way back when I had a simple project, SourceForge was by far the most prominent place to host (and it still is, though to a lesser ...
    Andrew BergAndrew Berg
    Jul 13, 2011 at 6:54 am
    Jul 17, 2011 at 10:28 am
  • Hello I am using the zxJDBC package with jython (similar to python), and I am having "python error PLS-00306: wrong number or types of arguments" error when using the "callproc()" method to execute a ...
    Adeoluwa OdeinAdeoluwa Odein
    Jul 13, 2011 at 5:11 pm
    Jul 13, 2011 at 9:28 pm
  • I thought I had finally grasped decorators, but the error I'm getting ('str' type is not callable) is confusing me. Here is my code. Also, the commented sentence is from the Python docs, which says ...
    John SalernoJohn Salerno
    Jul 2, 2011 at 4:56 pm
    Jul 4, 2011 at 8:22 am
  • It's been many months since I played with Python, and have forgotten how to bring up IDLE. If I simply click on a py file, I see what may be a dos window appear and quickly disappear. If I ...
    W. eWatsonW. eWatson
    Jul 27, 2011 at 3:06 pm
    Jul 29, 2011 at 4:23 am
  • Maybe not to the gurus here, but for me, this is a complex problem and I want to make sure I understand the real problem. All of this is in Python 2.7 and wxPython I have several XML files on a ...
    Josh EnglishJosh English
    Jul 15, 2011 at 7:47 pm
    Jul 18, 2011 at 7:42 pm
  • Hello Folks! In my quest to uncover the many asininities contained within the tkSimpleDialog.py module i found myself contemplating some the very fundamental aspects of the Python language proper. ...
    Jul 3, 2011 at 10:55 pm
    Jul 17, 2011 at 1:45 am
  • i have written code on linux for parsing text files and it works great but when i try to run it on windows it goes crazy, do you have any idea???
    Amir chaoukiAmir chaouki
    Jul 3, 2011 at 11:41 pm
    Jul 5, 2011 at 8:14 am
  • Moving to Python from Ruby, first time poster. Anyone any opinions (non-religious) on investing time in Lettuce (www.lettuce.it) or Freshen (https://github.com/rlisagor/freshen#readme) for their BDD ...
    Mark curpheyMark curphey
    Jul 8, 2011 at 11:41 pm
    Jul 10, 2011 at 9:57 pm
  • I was looking through the python source and noticed that long multiplication is done using the Karatsuba method (O(~n^1.5)) rather than using FFTs O(~n log n). I was wondering if there was a reason ...
    Billy MaysBilly Mays
    Jul 6, 2011 at 7:30 pm
    Jul 8, 2011 at 7:31 am
  • Can it be a problem on my side? I have tried from several different computers. I cannot even ping it.
    Laszlo NagyLaszlo Nagy
    Jul 24, 2011 at 7:43 am
    Jul 25, 2011 at 5:33 pm
  • Hello all, I seem something like this on python code: for .... : for .... : spam[i][eggs] = ham ++i . . . What's the meaning of using i++? Even, does exist ++ operator in python? Bye An HTML ...
    Rafael Durán CastañedaRafael Durán Castañeda
    Jul 15, 2011 at 7:38 am
    Jul 19, 2011 at 7:08 pm
  • I want to make sure that folder exists. '2011-07-03' is really exists. but 'os.path.isdir' say false Does anyone know why? True False
    Jul 19, 2011 at 4:25 am
    Jul 19, 2011 at 5:51 pm
  • maybe this will be of interest. ?What Programing Language Are the Largest Website Written In?? http://xahlee.org/comp/website_lang_popularity.html --------------------------------- i don't remember ...
    Xah LeeXah Lee
    Jul 12, 2011 at 11:54 am
    Aug 12, 2011 at 4:26 pm
  • As part of my muxer/encoder backend module, I need to store data in its main class. While each instance won't typically store a lot of data, but I really want it broken up into distinct categories so ...
    Andrew BergAndrew Berg
    Jul 30, 2011 at 9:57 pm
    Aug 2, 2011 at 9:17 am
  • Hello, I came across the problem that Gwenview moves the photo from the camera memory by renaming them, but later I forgot which where moved. Then I tought about a small script in python, but I ...
    Jul 8, 2011 at 11:29 am
    Jul 12, 2011 at 1:30 am
  • Is xrange not a generator? I know it doesn't return a tuple or list, so what exactly is it? Y doesn't ever complete, but x does. x = (i for i in range(10)) y = xrange(10) print "===X===" while True: ...
    Billy MaysBilly Mays
    Jul 29, 2011 at 7:36 pm
    Jul 31, 2011 at 6:42 am
  • Hello, __all__ = 'api db input output tcl'.split() or __all__ = """ api db input output tcl """.split() for lazy boy ;o). It is readable as well. What do you think? Cheers Karim
    Jul 28, 2011 at 11:32 am
    Jul 29, 2011 at 6:49 pm
  • Hi, [u'174'] Probably newbie question but not sure how suppress the brackets and the 'u' ? I assume pyhon is telling me it's a unicode string in the n variable. I'm using using Idle on winXP, ...
    Jul 24, 2011 at 12:33 am
    Jul 27, 2011 at 11:37 pm
  • Hi Can someone help me with this code below please, For some reason it will not send me the first text file in the directory. I made up an empty file a.txt file with nothing on it and it sends the ...
    Jul 21, 2011 at 5:02 pm
    Jul 22, 2011 at 8:04 pm
Group Navigation
period‹ prev | Jul 2011 | next ›
Group Overview
grouppython-list @

419 users for July 2011

Chris Angelico: 146 posts Rantingrick: 108 posts Steven D'Aprano: 99 posts Andrew Berg: 82 posts Thomas Jollans: 76 posts Terry Reedy: 59 posts Ian Kelly: 57 posts Ben Finney: 40 posts Dan Stromberg: 36 posts Gregory Ewing: 34 posts Ethan Furman: 31 posts Sturlamolden: 30 posts Peter Otten: 27 posts Chris Rebert: 26 posts Thomas 'PointedEars' Lahn: 25 posts Phlip: 24 posts Billy Mays: 22 posts Billy Mays: 21 posts Karim: 20 posts Thorsten Kampe: 20 posts
show more