Search Discussions
-
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 ...
Candide
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 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, ...
Candide
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 ;) ?
Candide
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 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. Hellwig
Oct 13, 2011 at 12:35 pm
Oct 17, 2011 at 6:52 am -
19
Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?
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 ...Python
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 ...
MrPink
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 ...
Propad
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 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 ...
MrPink
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 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': ...
Gnarlodious
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 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 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 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 ...
Faucheuse
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 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 ...
Spintronic
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)
Apometron
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/
Phlip
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 ...
Gnarlodious
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 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 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 ...
Paul
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 ...
Greg
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 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 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 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 ...
MrPink
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. 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 Snow
Oct 9, 2011 at 4:21 am
Oct 9, 2011 at 3:51 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 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: ...
Dhyams
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 ...
Lee
Oct 23, 2011 at 4:09 am
Oct 25, 2011 at 8:22 am -
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 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 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 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 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
Prakash
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 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 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-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__': ...
Aaabbb16
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 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 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, ...
RVince
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 ...
Galyle
Oct 3, 2011 at 7:55 pm
Oct 4, 2011 at 6:35 pm
Group Overview
group | python-list |
categories | python |
discussions | 236 |
posts | 1,185 |
users | 314 |
website | python.org |
314 users for October 2011
Archives
- September 2015 (591)
- August 2015 (1,058)
- July 2015 (1,440)
- June 2015 (1,704)
- May 2015 (1,841)
- April 2015 (1,231)
- March 2015 (1,717)
- February 2015 (1,612)
- January 2015 (889)
- December 2014 (1,283)
- November 2014 (1,600)
- October 2014 (1,447)
- September 2014 (1,031)
- August 2014 (1,867)
- July 2014 (1,618)
- June 2014 (1,357)
- May 2014 (1,431)
- April 2014 (1,285)
- March 2014 (2,093)
- February 2014 (1,999)
- January 2014 (2,089)
- December 2013 (2,060)
- November 2013 (2,507)
- October 2013 (1,932)
- September 2013 (1,634)
- August 2013 (1,532)
- July 2013 (2,062)
- June 2013 (2,795)
- May 2013 (1,935)
- April 2013 (1,980)
- March 2013 (1,953)
- February 2013 (1,789)
- January 2013 (1,924)
- December 2012 (1,569)
- November 2012 (1,579)
- October 2012 (1,961)
- September 2012 (2,311)
- August 2012 (1,808)
- July 2012 (1,577)
- June 2012 (1,199)
- May 2012 (1,197)
- April 2012 (1,416)
- March 2012 (1,373)
- February 2012 (1,442)
- January 2012 (1,446)
- December 2011 (1,895)
- November 2011 (1,291)
- October 2011 (1,188)
- September 2011 (1,587)
- August 2011 (2,069)
- July 2011 (2,140)
- June 2011 (1,908)
- May 2011 (2,475)
- April 2011 (2,098)
- March 2011 (1,761)
- February 2011 (1,746)
- January 2011 (2,123)
- December 2010 (1,671)
- November 2010 (2,355)
- October 2010 (2,518)
- September 2010 (2,187)
- August 2010 (3,098)
- July 2010 (2,579)
- June 2010 (3,238)
- May 2010 (2,458)
- April 2010 (2,356)
- March 2010 (2,759)
- February 2010 (3,486)
- January 2010 (3,294)
- December 2009 (2,899)
- November 2009 (3,396)
- October 2009 (3,346)
- September 2009 (3,087)
- August 2009 (3,903)
- July 2009 (3,761)
- June 2009 (3,321)
- May 2009 (3,370)
- April 2009 (4,272)
- March 2009 (4,228)
- February 2009 (3,965)
- January 2009 (4,732)
- December 2008 (4,335)
- November 2008 (3,799)
- October 2008 (4,123)
- September 2008 (3,816)
- August 2008 (4,056)
- July 2008 (4,238)
- June 2008 (3,737)
- May 2008 (4,976)
- April 2008 (4,708)
- March 2008 (4,122)
- February 2008 (4,132)
- January 2008 (4,145)
- December 2007 (3,686)
- November 2007 (3,419)
- October 2007 (4,234)
- September 2007 (4,332)
- August 2007 (4,189)
- July 2007 (3,771)
- June 2007 (4,142)
- May 2007 (5,018)
- April 2007 (4,912)
- March 2007 (4,365)
- February 2007 (3,951)
- January 2007 (3,864)
- December 2006 (4,449)
- November 2006 (4,229)
- October 2006 (5,506)
- September 2006 (5,244)
- August 2006 (4,829)
- July 2006 (4,720)
- June 2006 (5,054)
- May 2006 (5,302)
- April 2006 (4,845)
- March 2006 (5,729)
- February 2006 (4,839)
- January 2006 (5,249)
- December 2005 (5,011)
- November 2005 (5,677)
- October 2005 (5,387)
- September 2005 (4,458)
- August 2005 (4,428)
- July 2005 (4,472)
- June 2005 (4,562)
- May 2005 (4,269)
- April 2005 (5,019)
- March 2005 (5,070)
- February 2005 (5,159)
- January 2005 (5,194)
- December 2004 (5,211)
- November 2004 (4,048)
- October 2004 (5,191)
- September 2004 (5,534)
- August 2004 (6,168)
- July 2004 (4,217)
- June 2004 (4,202)
- May 2004 (3,890)
- April 2004 (4,285)
- March 2004 (5,077)
- February 2004 (4,213)
- January 2004 (3,988)
- December 2003 (3,818)
- November 2003 (4,940)
- October 2003 (6,297)
- September 2003 (4,299)
- August 2003 (5,654)
- July 2003 (4,912)
- June 2003 (4,933)
- May 2003 (4,938)
- April 2003 (5,017)
- March 2003 (5,031)
- February 2003 (7,701)
- January 2003 (6,229)
- December 2002 (4,102)
- November 2002 (4,346)
- October 2002 (3,307)
- September 2002 (4,206)
- August 2002 (4,919)
- July 2002 (4,826)
- June 2002 (4,215)
- May 2002 (5,295)
- April 2002 (5,967)
- March 2002 (5,323)
- February 2002 (5,245)
- January 2002 (5,617)
- December 2001 (4,443)
- November 2001 (4,565)
- October 2001 (3,669)
- September 2001 (3,719)
- August 2001 (5,208)
- July 2001 (6,528)
- June 2001 (4,905)
- May 2001 (5,492)
- April 2001 (4,713)
- March 2001 (4,478)
- February 2001 (3,871)
- January 2001 (4,187)
- December 2000 (3,099)
- November 2000 (2,336)
- October 2000 (3,820)
- September 2000 (3,933)
- August 2000 (4,253)
- July 2000 (4,199)
- June 2000 (4,089)
- May 2000 (4,269)
- April 2000 (3,217)
- March 2000 (3,719)
- February 2000 (4,000)
- January 2000 (2,682)
- December 1999 (2,283)
- November 1999 (1,896)
- October 1999 (2,048)
- September 1999 (2,001)
- August 1999 (2,151)
- July 1999 (2,351)
- June 1999 (2,386)
- May 1999 (2,201)
- April 1999 (1,706)
- March 1999 (6)
- February 1999 (1)