FAQ

Search Discussions

236 discussions - 1,185 posts

  • Python provides -- the not operator, meaning logical negation -- the in operator, meaning membership On the other hand, Python provides the not in operator meaning non-membership. However, it seems ...
    CandideCandide
    Oct 8, 2011 at 10:42 am
    Nov 6, 2011 at 11:23 pm
  • Hi! I'm looking for a trick or hidden feature to make Python 3 automatically call a "main" function but without programmers writing `if __name__ == "__main__": ...` I found rejected PEP 299, but i ...
    Aivar AnnamaaAivar Annamaa
    Oct 3, 2011 at 4:21 pm
    Oct 9, 2011 at 8:31 pm
  • I realize that built-in types objects don't provide a __dict__ attribute and thereby i can't set an attribute to a such object, for instance Traceback (most recent call last): File "<stdin ", line 1, ...
    CandideCandide
    Oct 27, 2011 at 10:08 am
    Oct 28, 2011 at 3:52 pm
  • Dart is the very new language created by Google to replace Javascript. So Python was not able to do the job? Or may be they don't know about Python at Google ;) ?
    CandideCandide
    Oct 13, 2011 at 9:45 am
    Nov 15, 2011 at 11:14 am
  • Hi, it seems a generator expression can be used only once: 1 4 Is there any way to revive g here? Yingjie
    Yingjie LanYingjie Lan
    Oct 20, 2011 at 1:23 pm
    Oct 25, 2011 at 3:37 am
  • First of all let me say that I have no authority or knowledge of language design or multi-processing except from a user point of view, having a decade or so experience. I would like your opinion and ...
    Martin P. HellwigMartin P. Hellwig
    Oct 13, 2011 at 12:35 pm
    Oct 17, 2011 at 6:52 am
  • Wondering if there's a fast/efficient built-in way to determine if a string has non-ASCII chars outside the range ASCII 32-127, CR, LF, or Tab? I know I can look at the chars of a string individually ...
    PythonPython
    Oct 31, 2011 at 7:54 pm
    Nov 1, 2011 at 11:27 pm
  • I have a list like so: a = [2,4,5,6,3,9,10,34,39,59,20,15,13,14] I would like to get a subset from the list with value between 10 and 20 (inclusive). b = [10,13,15,14,20] Is there a way to do this ...
    MrPinkMrPink
    Oct 14, 2011 at 10:10 pm
    Oct 15, 2011 at 9:00 pm
  • Hello everybody, I have some trouble with a program I run both on a WinXP and on Win 7. It boils down to this several lines: import os vePath = r'C:\Programme\RA Consulting_Webservices\DiagRA-MCD ...
    PropadPropad
    Oct 24, 2011 at 12:43 pm
    Oct 28, 2011 at 8:22 am
  • Hi,? Is it possible to test if two range objects contain the same sequence of integers by the following algorithm in Python 3.2? 1. standardize the ending bound by letting it be the first excluded ...
    Yingjie LanYingjie Lan
    Oct 20, 2011 at 1:19 pm
    Oct 24, 2011 at 2:10 am
  • Is there a function in Python that can be used to test if the value in a string is an integer? I had to make one up for myself and it looks like this: def isInt(s): try: i = int(s) return True except ...
    MrPinkMrPink
    Oct 14, 2011 at 11:44 pm
    Oct 18, 2011 at 3:56 am
  • Hi all This is well known : This is because the division is an "integer division". My question is : how can I evaluate 1/2 to 0.5 ? Is there some non integer division operator ? Up to now I ...
    Laurent ClaessensLaurent Claessens
    Oct 12, 2011 at 10:14 am
    Oct 14, 2011 at 3:20 pm
  • What is the best way (Python 3) to loop through dict keys, examine the string, change them if needed, and save the changes to the same dict? So for input like this: {'Mobile': 'string', 'context': ...
    GnarlodiousGnarlodious
    Oct 15, 2011 at 6:00 pm
    Oct 17, 2011 at 6:50 pm
  • Hi, Anyone knows a framework for webapp development? I'm not talking about javascript/html compilers and ajax frameworks. I need something that does not require javascript knowledge, just pure ...
    Laszlo NagyLaszlo Nagy
    Oct 25, 2011 at 1:50 pm
    Oct 27, 2011 at 6:37 am
  • Bug or misunderstanding? Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. Traceback (most recent call ...
    Patrick MaupinPatrick Maupin
    Oct 27, 2011 at 8:34 pm
    Oct 29, 2011 at 2:43 pm
  • Hello, I wrote a function that works on a numpy matrix and it works fine on Mac OS and GNU/Linux (I didn't test it on python 3) Now I have a problem with numpy: the same python file doesn't work on ...
    Paolo ZaffinoPaolo Zaffino
    Oct 9, 2011 at 8:59 pm
    Oct 19, 2011 at 3:50 pm
  • Hi, (new to python and first message here \o/) I was wondering something : when you do : return value1, value2, value3 It returns a tuple. So if I want to pass these value to a function, the function ...
    FaucheuseFaucheuse
    Oct 5, 2011 at 1:33 pm
    Oct 10, 2011 at 4:09 am
  • H?llo, I would like to fork simplejson [1] and implement serialization rules based on protocols instead of types [2], plus special cases for protocol free objects, that breaks compatibility. The ...
    Amirouche BoubekkiAmirouche Boubekki
    Oct 26, 2011 at 9:14 am
    Feb 10, 2012 at 8:27 pm
  • Dear friends, I have a trouble with understanding the following. I have a very short script (shown below) which works fine if I "run" step by step (or line by line) in Python shell (type the first ...
    SpintronicSpintronic
    Oct 25, 2011 at 3:51 pm
    Oct 26, 2011 at 5:35 pm
  • import os nome = sys.argv[1] final = nome for i in nome: print i if nome[i] = "_": final[i] = " " os.rename(nome, final)
    ApometronApometron
    Oct 23, 2011 at 10:03 am
    Oct 25, 2011 at 10:09 am
  • has anyone invented a system like R*by's ActiveSupport's 5.years.ago, 42.minutes.since ? (Yes, I'm aware the notation will be different!) -- Phlip http://zeekland.zeroplayer.com/
    PhlipPhlip
    Oct 3, 2011 at 2:27 am
    Oct 10, 2011 at 7:26 pm
  • Say this: class tester(): _someList = [0, 1] def __call__(self): someList = self._someList someList += "X" return someList test = tester() But guess what, every call adds to the variable that I am ...
    GnarlodiousGnarlodious
    Oct 23, 2011 at 12:26 am
    Oct 26, 2011 at 2:48 am
  • Good afternoon, I'm looking for a Python library for generating SQL queries [selects, alters, inserts and commits]. I can write them by hand, but thought it would be more useful writing them in ...
    Alec TaylorAlec Taylor
    Oct 11, 2011 at 12:08 pm
    Oct 15, 2011 at 2:44 am
  • I develop the free python-based turtle graphics application pynguin. http://pynguin.googlecode.com/ Lately I have been getting a lot of positive comments from people who use the program, but I am ...
    Lee HarrLee Harr
    Oct 27, 2011 at 7:38 pm
    Oct 30, 2011 at 6:48 pm
  • I'm wondering what the best solution for this problem is. I've got a wxpython app, in one part a user makes some selections then opens a dialog to select where to output. At which point the app ...
    PaulPaul
    Oct 7, 2011 at 8:29 am
    Oct 9, 2011 at 8:34 pm
  • Hi, I am having some encoding problems when I first parse stuff from a non-english website using BeautifulSoup and then write the results to a txt file. I have the text both as a normal (text) and as ...
    GregGreg
    Oct 5, 2011 at 11:35 pm
    Oct 8, 2011 at 3:30 pm
  • I'd like to create a window with a "pause" button and a large plotting area, in which I'd like to draw a polygon, detect the pixel co?rdinates of a mouse click, and then start setting the colors of ...
    Adam FunkAdam Funk
    Oct 4, 2011 at 9:56 am
    Oct 7, 2011 at 8:15 pm
  • I have some XML, with a variable and somewhat unknown structure. I'd like to encapsulate this in a Python class and expose the text of the elements within as properties. How can I dynamically ...
    Andy DingleyAndy Dingley
    Oct 27, 2011 at 7:59 pm
    Oct 30, 2011 at 2:11 pm
  • In response to an issue (#13235) raised on the Python bug tracker, I'm going to deprecate the warn() methods in the Logger and LoggerAdapter classes in the stdlib logging package, as well the ...
    Vinay SajipVinay Sajip
    Oct 22, 2011 at 12:09 pm
    Oct 26, 2011 at 4:20 pm
  • This is a continuing to a post I made in August: http://groups.google.com/group/comp.lang.python/browse_thread/thread/b072cfadf998deae/ce6d4d09911e4107?lnk=gst&q=MrPink#ce6d4d09911e4107 I got some ...
    MrPinkMrPink
    Oct 13, 2011 at 9:59 pm
    Oct 16, 2011 at 10:15 am
  • I am new to python coming from the C/shell side. We have been experimenting with some code samples and now I'm looking at some command line argument processing. I find getopt older optparse new in ...
    Kristen J. WebbKristen J. Webb
    Oct 11, 2011 at 11:04 pm
    Oct 13, 2011 at 2:43 am
  • I'm writing a bunch of classes that have "Interface" in the name and find that the length of the subsequent names is starting to get in the way of readability (I don't really care about saving ...
    Eric SnowEric Snow
    Oct 9, 2011 at 4:21 am
    Oct 9, 2011 at 3:51 pm
  • Hello All, I need a basic example where MVC pattern is used with Python TK. Regards, Emeka -- *Satajanus Nig. Ltd * An HTML attachment was scrubbed... URL: ...
    EmekaEmeka
    Oct 1, 2011 at 12:41 pm
    Oct 3, 2011 at 4:47 pm
  • I am writing a Python CGI and am needing to pass a data value from Python to a javascript function. My understanding is that I should use JSON as the middleman. However, I have not found a good ...
    Bill AllenBill Allen
    Oct 26, 2011 at 9:32 pm
    Aug 9, 2013 at 8:36 am
  • Python 2.7.2 I'm having trouble in a situation where I need to mix-in the functionality of __getattr__ after the object has already been created. Here is a small sample script of the situation: ...
    DhyamsDhyams
    Oct 28, 2011 at 5:34 pm
    Nov 8, 2011 at 5:58 am
  • Hi all, Where does PyExc_TypeError (and alike) points to? I can see its declaration - PyAPI_DATA(PyObject *) PyExc_TypeError; - in pyerrors.h but I cannot figure out what it is its value, where it is ...
    LeeLee
    Oct 23, 2011 at 4:09 am
    Oct 25, 2011 at 8:22 am
  • The OpenGL.Tk module is looking for the Tk module and not finding it. Install the Tk module. Try "sudo easy_install Tk".
    RedcatRedcat
    Oct 7, 2011 at 4:56 pm
    Oct 23, 2011 at 4:34 pm
  • This probably is known, but a potential pitfall (was, for me) nevertheless. I suspect it is due to hash collisions between 's3' and 's13' in this case? It happens only rarely, depending on the ...
    Ganesh GopalakrishnanGanesh Gopalakrishnan
    Oct 16, 2011 at 11:52 pm
    Oct 19, 2011 at 11:17 am
  • Is it possible to specify a zero-length switch? Here's what I mean. I have a use case where some users would have to enter a section name on the command line almost every time, whereas other users ...
    Carl BanksCarl Banks
    Oct 14, 2011 at 6:05 am
    Oct 16, 2011 at 5:27 am
  • Hi, you may found this idea stupid, but nevertheless... - `[]` - used for list comprehension, - `()` - used for generators, - `[start:stop]` / `[start:stop:step]` - used for slices. The idea is to ...
    Valiev SergeyValiev Sergey
    Oct 4, 2011 at 1:50 pm
    Oct 6, 2011 at 1:55 am
  • Hi I am trying to import java method in python. But i am getting the following error. error: ImportError: No module named Calculator Calculator is the name of the class written in java. I am trying ...
    Masood shaikMasood shaik
    Oct 4, 2011 at 6:39 am
    Oct 5, 2011 at 2:23 am
  • Need A script to open a excel file and extract the data using autofilter and write it in a new sheet or new file like I have to select all rows in which all the columns contain pass as status
    PrakashPrakash
    Oct 1, 2011 at 5:25 pm
    Oct 5, 2011 at 1:09 am
  • I'm not sure the subject's wording is the best, but I'll try to explain. I have a main script that imports several modules and I need to be able to call methods from a class instance inside that main ...
    Andrew BergAndrew Berg
    Oct 2, 2011 at 5:12 am
    Oct 3, 2011 at 10:34 pm
  • Hello, I have a question about a csv.writer instance. I have a utility that I want to write a full CSV file from lots of data, but due to performance (and memory) considerations, there's no way I can ...
    Jason SwailsJason Swails
    Oct 24, 2011 at 5:18 am
    Oct 24, 2011 at 9:09 pm
  • An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20111019/b24f66d1/attachment.html A non-text attachment was scrubbed... Name: admin.vcf Type: ...
    Muhammad Bashir Al-NoimiMuhammad Bashir Al-Noimi
    Oct 19, 2011 at 5:14 pm
    Oct 20, 2011 at 11:14 am
  • Test.py #!/usr/bin/python from my_lib import my_function class my_class(my_function.name): def __initial__(self, name); pass def test(): print "this is a test" If __name__ == '__maim__': ...
    Aaabbb16Aaabbb16
    Oct 15, 2011 at 6:20 am
    Oct 15, 2011 at 9:31 pm
  • I've got to write some tests in python which simulate getting a page of HTML from an http server, finding a link, clicking on it, and then examining the HTML on the next page to make sure it has ...
    Roy SmithRoy Smith
    Oct 14, 2011 at 2:19 am
    Oct 14, 2011 at 4:13 am
  • Hello everyone, I'm writing a fairly large app which uses Oauth (python-oauth2). I am trying to generate a public/private key pair on user supplied parameters (whitespaced-delimited strings ...
    Kayode OdeyemiKayode Odeyemi
    Oct 7, 2011 at 5:16 pm
    Oct 8, 2011 at 9:55 am
  • I have a project whereby I need it to write out a file to a different server (that the originating server has write access to). So, say I need to write out from myserver1, where my app is running, ...
    RVinceRVince
    Oct 5, 2011 at 2:34 pm
    Oct 6, 2011 at 1:14 pm
  • Hello, I'm trying to build a menu which provides suggestions to a user based on input to an entry. I have done something like this before using Tcl/Tk, so I expected that it would work without much ...
    GalyleGalyle
    Oct 3, 2011 at 7:55 pm
    Oct 4, 2011 at 6:35 pm
Group Navigation
period‹ prev | Oct 2011 | next ›
Group Overview
grouppython-list @
categoriespython
discussions236
posts1,185
users314
websitepython.org

314 users for October 2011

Steven D'Aprano: 67 posts Chris Angelico: 48 posts Terry Reedy: 41 posts Ian Kelly: 38 posts Chris Rebert: 34 posts Alex23: 29 posts 88888 Dihedral: 20 posts Candide: 20 posts Roy Smith: 20 posts Ben Finney: 19 posts Peter Otten: 18 posts Alec Taylor: 17 posts Westley Martínez: 16 posts MRAB: 15 posts DevPlayer: 14 posts Rusi: 13 posts Tim Golden: 13 posts Gabriel Genellina: 11 posts Gregory Ewing: 11 posts Miki Tebeka: 11 posts
show more
Archives