Search Discussions
-
This has probably been discussed before, but why is there an implicit conversion to a boolean in if and while statements? if not None: print('hi') prints 'hi' since bool(None) is False. If this was ...
Andrew Berg
Jul 15, 2012 at 8:34 am
Feb 16, 2013 at 12:12 am -
Pythoners Python 2.7.3 Ubuntu Linux 12.04 LTS I've been taking a brief look at Python. From the tutorial documentation I get the following 'Python is an easy to learn, powerful programming language ...
Lipska the Kat
Jul 17, 2012 at 8:45 am
Aug 19, 2012 at 12:06 pm -
the meaning of r?.......?? An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20120720/5b003186/attachment-0001.html
Levi nie
Jul 20, 2012 at 7:56 am
Aug 29, 2012 at 4:04 am -
funcs = [ lambda x: x**i for i in range( 5 ) ] print funcs[0]( 2 ) print funcs[1]( 2 ) print funcs[2]( 2 ) This gives me 16 16 16 When I was excepting 1 2 4 Does anyone know why? Cheers, Daniel -- ...
Daniel Fetchinson
Jul 11, 2012 at 6:41 am
Aug 16, 2012 at 12:26 am -
Hi! I just had an idea, it occurred to me that the pass statement is pretty similar to the print statement, and similarly to the print() function, there could be a pass() function that does and ...
Ulrich Eckhardt
Jul 25, 2012 at 8:40 am
Jul 27, 2012 at 6:39 am -
Hello, I want my script to generate a ~1KB status file several times a second. The script may be terminated at any time but the status file must not be corrupted. When the script is started next time ...
Richard Baron Penman
Jul 8, 2012 at 11:29 am
Jul 14, 2012 at 12:38 pm -
Pythoners Firstly, thanks to those on the tutor list who answered my questions. I'm trying to understand where Python fits into the set of commonly available, commercially used languages of the ...
Lipska the kat
Jul 29, 2012 at 4:01 pm
Aug 24, 2012 at 6:46 pm -
Getting closer to a stable release. Latest version has a simpler, cleaner API, and works on PyPy (and hopefully the other implementations as well ;), as well as CPython. Get your copy at ...
Ethan Furman
Jul 20, 2012 at 11:59 pm
Aug 3, 2012 at 1:17 pm -
Greetings Pythoners A short while back I posted a message that described a task I had set myself. I wanted to implement the following bash shell script in Python Here's the script sort -nr $1 | head ...
Lipska the Kat
Jul 21, 2012 at 7:08 pm
Jul 24, 2012 at 11:34 am -
I'm writing a program which has to interact with many external resources, at least: - mysql database - perforce - shared mounts - files on disk And the logic is quite complex, because there are many ...
Andrea crotti
Jul 4, 2012 at 9:42 am
Jul 13, 2012 at 5:24 pm -
Has anybody else noticed the sudden double-posting of nearly all messages in the python mailing list? Previously, I've seen some messages double posted, and it was nearly always a newbie, presumably ...
Dave Angel
Jul 21, 2012 at 10:48 am
Jul 22, 2012 at 3:12 pm -
21
2 + 2 = 5
I just came across this (https://gist.github.com/1208215): import sys import ctypes pyint_p = ctypes.POINTER(ctypes.c_byte*sys.getsizeof(5)) five = ctypes.cast(id(5), pyint_p) print(2 + 2 == 5) # ...Paul Rubin
Jul 4, 2012 at 7:37 pm
Jul 15, 2012 at 3:19 pm -
My current preference is SciTE, available on Linux and Windows both. It's configured using Lua, has lexers (and thus syntax highlighters and auto-indenters) for a huge list of languages (including ...
Chris Angelico
Jul 28, 2012 at 3:51 pm
Jul 29, 2012 at 9:41 pm -
I'm trying to do something rather tricky, in which a program imports a module that starts a thread that exec's a (possibly altered) copy of the source in the original program, and the module doesn't ...
Bruce Sherwood
Jul 18, 2012 at 11:03 pm
Jul 24, 2012 at 3:33 am -
Dear Group, I am Sri Subhabrata Banerjee trying to write from Gurgaon, India to discuss some coding issues. If any one of this learned room can shower some light I would be helpful enough. I got to ...
Subhabangalore
Jul 4, 2012 at 11:21 pm
Jul 16, 2012 at 2:17 pm -
I have an interesting problem I'm trying to solve. I have a solution almost working, but it's super ugly, and know there has to be a better, cleaner way to do it. I have a list of path names that ...
Larry Martell
Jul 18, 2012 at 10:20 pm
Jul 20, 2012 at 3:45 pm -
Hi all, I'd like to ask about the possibilities to do some basic manipulation on timestamps - such as incrementing a given time (hour.minute - string) by some minutes. Very basic notion of "time" is ...
Vlastimil Brom
Jul 5, 2012 at 12:29 am
Jul 6, 2012 at 9:48 pm -
I wish to extract the bit fields from a Python float, call it x. First I cast the float to 8-bytes: s = struct.pack('=d', x) i = struct.unpack('=q', s)[0] Then I extract the bit fields from the int, ...
Steven D'Aprano
Jul 30, 2012 at 12:44 am
Jul 30, 2012 at 8:50 pm -
Hi widget wizards, The manual describes the "event" attribute "widget" as "The widget which generated this event. This is a valid Tkinter widget instance, not a name. This attribute is set for all ...
Frederic Rentsch
Jul 8, 2012 at 9:19 pm
Jul 16, 2012 at 10:32 am -
Hello, very often I have the following problem: I write a program that processes many files which it assumes to be encoded in utf-8. Then, some day, I there is a non-utf-8 character in one of several ...
Jaroslav Dobrek
Jul 25, 2012 at 11:05 am
Aug 30, 2012 at 5:50 am -
Do you participate in StackOverflow discussions? As a part of a joint on-going research effort of the Brunel University (UK) and Eindhoven University of Technology (The Netherlands) on the impact of ...
Alexander Serebrenik
Jul 23, 2012 at 12:51 pm
Jul 24, 2012 at 8:33 am -
Hi all I'm new to Python but soon after a few days of studying its features I find it my favourite mean of programming scripts to allow for data storing and mining. My idea would be to inplement ...
Maurizio Spadaccino
Jul 5, 2012 at 7:22 am
Jul 7, 2012 at 2:31 pm -
13
Python Error
Dear Group, I was trying to convert the list to a set, with the following code: set1=set(list1) the code was running fine, but all on a sudden started to give the following error, set1=set(list1) ...Subhabangalore
Jul 29, 2012 at 9:27 am
Jul 30, 2012 at 11:15 am -
I'm totally confused by this code: Code: I'm expecting the code as: What's wrong? And this question made my GUI program totally out of control. Thanks[?] An HTML attachment was scrubbed... URL ...
Stone Li
Jul 23, 2012 at 2:50 pm
Jul 24, 2012 at 10:05 am -
In Foxpro if you do a GOTO 7 with deleted off and record 7 is deleted, the record pointer doesn't move (at least in version 6). I don't like that. I see four other options: 0) don't move the pointer ...
Ethan Furman
Jul 17, 2012 at 10:57 pm
Jul 18, 2012 at 7:13 pm -
I created py2c ( http://code.google.com/p/py2c )- an open source Python to C/C++ translator! py2c is looking for developers! To join create a posting in the py2c-discuss Google Group or email me! ...
Maniandram01
Jul 30, 2012 at 1:27 pm
Jan 9, 2015 at 9:24 am -
I have a program that creates various database objects in PostgreSQL. There is a DOM, and for each element in the DOM, a database object is created (schema, table, field, index and tablespace). I do ...
Laszlo Nagy
Jul 26, 2012 at 12:26 pm
Jul 27, 2012 at 9:59 am -
In article <3rCdnUCiWpP1gZHNnZ2dnUVZ7vQAAAAA at giganews.com , Tony the Tiger wrote: To answer the question you asked, to convert a list of strings to a list of ints, you want to do something like ...
Roy Smith
Jul 22, 2012 at 3:39 pm
Jul 23, 2012 at 3:31 pm -
I found that the behaviour of assertRaises used as a context manager a bit surprising. This small example doesn't fail, but the OSError exception is cathed even if not declared.. Is this the expected ...
Andrea crotti
Jul 16, 2012 at 1:38 pm
Jul 17, 2012 at 11:31 pm -
Dear friends, I just joined the group. I was trying porting from bash shell to python. let me know if someone has tried to implement (grep and PIPE) ?shell commands in python `lspci | grep Q | grep ...
Vikas Kumar Choudhary
Jul 30, 2012 at 7:05 am
Jul 30, 2012 at 11:46 pm -
Hi, I just want to use a beep command that works cross platform. I tried the simplest approach (just printing the BEL character '\a' chr(7) to the console. This fails on my Ubuntu 12.04 host, as the ...
Gelonida N
Jul 14, 2012 at 1:00 am
Jul 24, 2012 at 10:19 pm -
Is there any software to help understand python code ? Thanks hamilton
Hamilton
Jul 16, 2012 at 1:26 am
Jul 17, 2012 at 2:11 pm -
I've been using unittest for many years, but have steadfastly (perhaps stubbornly) avoided newfangled improvements like nose. I finally decided to take a serious look at nose. There were a few pain ...
Roy Smith
Jul 13, 2012 at 12:42 pm
Jul 27, 2012 at 2:51 pm -
Hello, I have a daemon process that runs for a considerable amount of time (weeks on end) without any problems. At some point I start getting the exception: Exception info: Traceback (most recent ...
Ivdneut
Jul 24, 2012 at 11:48 am
Jul 24, 2012 at 8:08 pm -
Hello Pythonlist, I have one very basic question about speed,memory friendly coding, and coding style of the following easy "if"-statement in Python 2.7, but Im sure its also the same in Python 3.x ...
Jan Riechers
Jul 21, 2012 at 7:33 am
Jul 23, 2012 at 9:48 pm -
Hello Someone I know with no computer knowledge has a studio appartment to rent in Paris and spent four months building a small site in Joomla to find short-time renters. The site is just... - a few ...
Gilles
Jul 4, 2012 at 9:30 am
Jul 13, 2012 at 1:07 pm -
hi all, are there any information about upcoming availability of parallel computations in CPython without modules like multiprocessing? I mean something like parallel "for" loops, or, at least, ...
Dmitrey
Jul 1, 2012 at 5:51 pm
Jul 4, 2012 at 3:16 am -
as some folks may remember, I have been working on making Python and its tool base more accessible to disabled programmers. I've finally come up with a really simple technique which should solve 80% ...
Eric S. Johansson
Jul 29, 2012 at 11:21 pm
Aug 3, 2012 at 8:04 pm -
Hi group, I have a question of which I'm unsure if the specification guarantees it. With an arbitrary dictionaty d, are d.keys() and d.values() guaraneed to be in the same order? I.e. what I mean ...
Henrik Faber
Jul 23, 2012 at 11:23 am
Jul 26, 2012 at 9:13 pm -
I'm trying to combine python-code made with QT4 designer with plain python statements like file = open("test","w") Can anyone tell me what I have to add to the following code just to open a file when ...
Jean Dubois
Jul 11, 2012 at 3:37 pm
Jul 16, 2012 at 1:56 pm -
Hi all I have a situation where I thought using weakrefs would save me a bit of effort. I have a basic publish/subscribe scenario. The publisher maintains a list of listener objects, and has a method ...
Frank Millman
Jul 4, 2012 at 1:46 pm
Jul 7, 2012 at 5:41 am -
aList is a list.i want to get the output seem this "aList is [x,x,x,x,x,x,x,x,x]" how can i get this? it's wrong when i write this, print "aList is "+[x,x,x,x,x,x,x,x,x] An HTML attachment was ...
Levi nie
Jul 4, 2012 at 4:12 am
Jul 4, 2012 at 8:24 am -
Hi, would like to take eliminate a specific number in an array and its correspondent in an other array, and vice-versa. given a=np.array([1,2,4,4,5,4,1,4,1,1,2,4]) ...
Giuseppe Amatulli
Jul 24, 2012 at 6:27 pm
Aug 10, 2012 at 8:47 am -
Hello again pythoners I'm trying to understand the python package stuff I have the following directory /home/lipska/python/dev/mods In this directory I have two files, both executable ...
Lipska the Kat
Jul 23, 2012 at 10:02 am
Jul 24, 2012 at 7:49 am -
Hi, This is a general question, loosely related to python since it will be the implementation language. I would like some suggestions as to manage simulation results data from my ASIC design. For my ...
Moogyd
Jul 14, 2012 at 5:50 am
Jul 17, 2012 at 8:20 am -
All, I am trying to figure out how to send a image in the body of a email when Making a Meeting Request. Below is my current code. Thanks, Bruce # code below is mainly from ...
Bruceg113355
Jul 23, 2012 at 5:19 pm
Jul 24, 2012 at 12:42 am -
If a class has defined its own __repr__ method, is there a way of getting the default repr output for that class anyway? I'm attempting to graph some objects by digging around in the garbage ...
Dan Stromberg
Jul 22, 2012 at 10:48 pm
Jul 23, 2012 at 1:14 pm -
tim at laptop:~/tmp$ python Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. ['Emai', ''] I get the same ...
Tim Chase
Jul 19, 2012 at 11:21 am
Jul 20, 2012 at 4:59 pm -
COPY THIS MESSAGE FAST BECAUSE JEWS AND TRAITORS DELETE IT FAST! After Jews created Israel illegally, Israel became the main base of criminal operations for the most insane type of Jews called ...
Suzi Mrezutttii
Jul 15, 2012 at 7:06 pm
Jul 20, 2012 at 1:58 pm -
I've held off announcing this until I was sure it was really stable; it's been 19 days since I made the last change to it, so here goes. PollyReports is my Python module for report generation. It is ...
Chris Gonnerman
Jul 11, 2012 at 2:06 pm
Jul 12, 2012 at 2:10 pm
Group Overview
group | python-list |
categories | python |
discussions | 193 |
posts | 1,577 |
users | 298 |
website | python.org |
298 users for July 2012
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)