Search Discussions
-
I have spent some time searching for a bug in my code, it was due to different work of "is" with () and []: True False (Python 2.7.2+ (default, Oct 4 2011, 20:03:08) [GCC 4.6.1] ) Is this what it ...
Dmitrey
Apr 20, 2012 at 7:10 pm
May 1, 2012 at 10:49 am -
103
Python Gotcha's?
Greetings, I'm going to give a "Python Gotcha's" talk at work. If you have an interesting/common "Gotcha" (warts/dark corners ...) please share. (Note that I want over ...Miki Tebeka
Apr 4, 2012 at 10:34 pm
Apr 19, 2012 at 1:11 pm -
Hi, Notice cross-post, I hope you bear over with me for doing that (and I imagine that some of you also like python in the matlab-group like myself)... ------------------------------------------ ...
Someone
Apr 29, 2012 at 10:17 pm
May 4, 2012 at 1:36 pm -
I'm sorry, I don't see how this is a code block. Where is the code in the block, and how can you pass it to another object to execute it? -- Steven From kiuhnm03.4t.yahoo.it Fri Apr 27 17:01:03 2012 ...
Steven D'Aprano
Apr 27, 2012 at 2:09 pm
May 4, 2012 at 4:53 pm -
I am new to python and only have read the Byte of Python ebook, but want to move to the web. I am tired of being a CMS tweaker and after I tried python, ruby and php, the python language makes more ...
Biofobico
Apr 11, 2012 at 8:11 pm
Apr 20, 2012 at 9:21 am -
Let's say I have a function which takes a list of words. I might write the docstring for it something like: def foo(words): "Foo-ify words (which must be a list)" What if I want words to be the more ...
Roy Smith
Apr 19, 2012 at 12:21 pm
Apr 21, 2012 at 8:10 am -
Ok, this is my dillema, not only am I new to this programming buisness, before the last few days, I did not even know what python was, and besides opening up the internet or word documents, that is ...
Someone
Apr 21, 2012 at 5:28 pm
Apr 23, 2012 at 10:27 am -
I have a multi-threaded CPython program, which has up to four threads. One thread is simply a wait loop monitoring the other three and waiting for them to finish, so it can give them more work to ...
John Nagle
Apr 27, 2012 at 6:54 pm
Apr 29, 2012 at 7:19 pm -
Learn Technical Writing from Unix Man in 10 Days Quote from man apt-get: remove remove is identical to install except that packages are removed instead of installed. Translation: kicking kicking is ...
Xah Lee
Apr 28, 2012 at 9:55 pm
Apr 30, 2012 at 6:03 am -
hi all, can I somehow overload operators like "= ", "- " or something like that? (I'm searching for appropriate overload for logical implication "if a then b") Thank you in advance, D.
Dmitrey
Apr 19, 2012 at 7:28 pm
Apr 20, 2012 at 9:52 pm -
John Carmack glorifying functional programing in 3k words http://www.altdevblogaday.com/2012/04/26/functional-programming-in-c/ where was he ten years ago? O, and btw, i heard that Common Lispers ...
Xah Lee
Apr 27, 2012 at 2:11 am
May 3, 2012 at 8:06 am -
On a *nix box this is a reasonable bit of Python : cmd = "ssh -o StrictHostKeyChecking=no -i %s %s@%s '%s' %s" % (key, user, dns, "echo CONNECTION READY", tmp_file) result = os.system(cmd) ... on a ...
Richard Shea
Apr 18, 2012 at 1:35 pm
Apr 20, 2012 at 6:27 pm -
Hi, I've got a server process written in C++ running on Unix machine. On the same box I'd like to run multiple Python scripts that will communicate with this server. Can you please suggest what would ...
Kenk
Apr 29, 2012 at 12:45 am
Mar 23, 2013 at 10:07 am -
I'm not seriously suggesting this as a language addition, just an interesting idea to simplify some code I'm writing now: x = [a for a in iterable while a] which equates to: x = [] for a in ...
Roy Smith
Apr 26, 2012 at 5:02 pm
Apr 27, 2012 at 1:14 pm -
One of the biggest nuisances for programmers, just beneath date/time APIs in the pantheon of annoyances, is that we are constantly dealing with escaping/encoding/formatting issues. I wrote this ...
Steve Howell
Apr 6, 2012 at 1:56 am
May 23, 2012 at 6:19 pm -
Can you explain why there is a difference between the following two statements? [1] None Best regards, Jan Sipke
Jan Sipke
Apr 20, 2012 at 8:03 pm
Apr 25, 2012 at 6:44 pm -
Hi, So I am trying to get the number of casualties in a text. After 'death toll' in the text the number I need is presented as you can see from the variable called text. Here is my code I'm pretty ...
Sania
Apr 19, 2012 at 6:11 am
Apr 19, 2012 at 8:58 pm -
Hi All, I'm pleased to announce the release of xlrd 0.7.4. This release features the following changes: - Fixed a bug where xlrd was silently truncating long text formula results - Avoid parsing ...
Chris Withers
Apr 3, 2012 at 7:04 am
Apr 7, 2012 at 2:27 am -
Hi, I would like to automate some simple tasks I'm doing by hand. Given a text file foobar.fo: 073 1.819 085 2.132 100 2.456 115 2.789 I need to create the directories 073, 085, 100, 115, and copy in ...
Deltaquattro
Apr 30, 2012 at 11:24 pm
Jun 12, 2012 at 8:57 pm -
Hello! I have this problem with my script exiting randomly with Linux OS status code -9 (most often) or -15 (also sometimes, but much more rarely). As far as I understand -9 corresponds to Bad file ...
Janis
Apr 9, 2012 at 10:01 am
Apr 10, 2012 at 10:42 am -
Hi all For a while now I have been using Google Groups to read this group, but on the odd occasion when I want to post a message, I use Outlook Express, as I know that some people reject all messages ...
Frank Millman
Apr 30, 2012 at 6:20 am
Jun 9, 2012 at 3:27 am -
http://porn-extreme.2304310.n4.nabble.com/ http://porn-extreme.2304310.n4.nabble.com/ -- View this message in context: http://python.6.n6.nabble.com/AMPUTEE-INCEST-MIDGET-2012-tp4708963p4864079.html ...
Jimmy970
Apr 12, 2012 at 8:45 pm
May 20, 2012 at 6:29 am -
G'day, I want to extend an embedded interpreter so that calls to print() are automagically sent to a C++ gui (windows exe) via a callback function in the DLL. Then I'll be able to do this ...
Peter Faulks
Apr 26, 2012 at 5:57 pm
Apr 28, 2012 at 6:56 pm -
Hi all, here's a problem I don't know how to solve. I'm using Python 2.7.2. I'm doing some stuff in Python which means I have cause to call functions that take a while to return. Since I often want ...
Rotwang
Apr 20, 2012 at 3:57 pm
Apr 21, 2012 at 2:15 pm -
I came across this case while debugging some Python code that contained an error stemming from the use of multiline strings as comments. The code contained a very long list of objects, and I had ...
Jordan Perr
Apr 19, 2012 at 2:07 am
Apr 19, 2012 at 12:39 pm -
10
escaping
A little more context would help. The quadruple-toothpick idiom predates Python. It's a little hard on the fingers and eyes at first, but it's pretty expressive--most people will clearly see that you ...Steve Howell
Apr 15, 2012 at 9:13 pm
Apr 17, 2012 at 7:40 am -
This is so common in Python that it is hardly worth sneezing about. map(f, iterable) filter(f, iterable) functools.wraps(f, args) --- Sometimes it is a bit hidden. @deco def f(): pass is equivalent ...
Terry Reedy
Apr 9, 2012 at 8:34 pm
Apr 13, 2012 at 1:23 pm -
I can connect to an IMAP server using Python 2.6: steve at runes:~$ python2.6 Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" ...
Steven D'Aprano
Apr 5, 2012 at 4:49 am
Apr 7, 2012 at 2:35 am -
10
inheritance
Hello, I am new to python (or to any programming language). My first post on this list, so please go easy. Apologies if its a FAQ. Here is what I have -------------------------------- #! /usr/bin/env ...Yag
Apr 5, 2012 at 4:50 pm
Apr 5, 2012 at 6:17 pm -
Is there an other way to do this? What to decode hex '0xC0A8' and return signed short int. (-16216,) Above works just wondering if there is cleaner way without writing a function. Bill
Python
Apr 27, 2012 at 6:42 pm
Apr 28, 2012 at 2:06 pm -
I need to use global var across files/modules: # file_1.py a = 0 def funct_1() : a = 1 # a is global print(a) # file_2.py from file_1 import * def main() : funct_1() a = 2 # a is local, it's not ...
Mamboknave
Apr 22, 2012 at 7:39 pm
Apr 25, 2012 at 8:13 am -
HI. is there a way to convert the graphical output of a pygame application to a mpeg file or better an animated gif? i mean, not using an external capture program... bye
Superpollo
Apr 16, 2012 at 9:34 am
Apr 18, 2012 at 6:48 am -
I wrote about a straightforward way to program D. E. Knuth in Python, and received an excellent communcation about programming Deterministic Finite Automata (Finite State Machines) in Python. The ...
Antti J Ylikoski
Apr 11, 2012 at 1:03 pm
Apr 16, 2012 at 7:53 pm -
Hi, I would like to automate the following task under Linux. I need to create a set of directories such as 075 095 100 125 The directory names may be read from a text file foobar, which also contains ...
Deltaquattro
Apr 30, 2012 at 3:19 pm
May 8, 2012 at 4:50 am -
I'm just learning Python. The python doc about mutable and hashable is confusing to me. In my understanding, there is no directly relation between mutable and hashable in Python. Any class with ...
Laymanzheng
Apr 28, 2012 at 6:09 pm
Apr 29, 2012 at 10:09 am -
i have download file (gpg4win-2.1.0.exe from http://www.gpg4win.org/download.html) when i run : Type "help", "copyright", "credits" or "license" for 'd41d8cd98f00b204e9800998ecf8427e' it is not = ...
Contro opinion
Apr 19, 2012 at 1:31 am
Apr 19, 2012 at 8:16 am -
Hello, I wrote a `Connection` class that can be found at [1]. A `Connection` object has a method `put_bytes(data)` which returns a "future" [2]. The data will be sent asynchronously by a thread ...
Stefan Schwarzer
Apr 14, 2012 at 10:22 pm
Apr 16, 2012 at 10:54 pm -
I've found myself using a Python gotcha as a feature. I've got a budding mail filter program which keeps rule state in a little class instance. Slightly paraphrased: class RuleState(object): def ...
Cameron Simpson
Apr 12, 2012 at 9:35 am
Apr 12, 2012 at 10:51 pm -
Okay, I've been trying for days to figure this out, posting on forums, Googling, whatever. I have yet to find a solution that has worked for me. (I'm using Python 3.2.2, Ubuntu 11.04.) Everything ...
Bunslow
Apr 6, 2012 at 6:57 am
Apr 7, 2012 at 6:08 am -
Hello, First of all..I am very new to python with no background in development area! :) Ok, here is my problem.....I have opened a file and I need to check each line of that file. I have done it with ...
Nibin V M
Apr 15, 2012 at 9:15 am
Apr 17, 2012 at 2:47 pm -
Hello, I'm coming from PHP background ant totally new to Python, I just started using scrapy, but has some generic question in python. 1. How can I write the following code in easier way in Python ? ...
Mahmoud Abdel-Fattah
Apr 14, 2012 at 10:16 pm
Apr 16, 2012 at 9:51 am -
I using Python 3.2 and have a dictionary whose values are lists I would like to zip into a list of tuples. If I explicitly write: [(1, 1, 1), (2, 2, 2)] I get exactly what I want. On the other hand, ...
Tkpmep
Apr 12, 2012 at 4:28 pm
Apr 14, 2012 at 9:35 pm -
How may I get a fresh Python shell with Idle 3.2 ? I have to run the same modules several times with all variables cleared. Thanks, franck
Franck Ditter
Apr 8, 2012 at 6:09 pm
Apr 10, 2012 at 11:29 pm -
hi, please, what am i doing wrong here? the docs say http://docs.python.org/release/3.1.3/library/stdtypes.html#comparisons "in general, __lt__() and __eq__() are sufficient, if you want the ...
Andrew cooke
Apr 7, 2012 at 12:23 pm
Apr 9, 2012 at 4:21 pm -
the escaping could be removed by use of the following: In Python 3, however, the only way I can see to achieve the same result is to convert into a byte stream and then back: This seems very ugly ...
Nicholas Cole
Apr 6, 2012 at 5:52 pm
Apr 7, 2012 at 3:59 pm -
When I use os.system() function, script waits for termination of the windows that is opened by os.system() to continue thus throwing errors and etc. How can i tell Python to let it go and keep on ...
Yigit Turgut
Apr 19, 2012 at 6:09 pm
Apr 20, 2012 at 6:10 pm -
I have a function 'f' and a list 'l'. I want a dictionary where the keys are evaluations of 'f(thing from l)' and the values are lists of stuff from 'l' that matches. So for instance, if 'f = lambda ...
Evan Driscoll
Apr 14, 2012 at 3:33 am
Apr 16, 2012 at 10:04 pm -
win7HomePremium: Greetings, 1) I installed portablePython(pP) here: C:\Users\vmars\Python3 ?Does that look ok? 2) I would like to try pyWin, but it won't let me install because there is no pP3.2 in ...
Vmars316
Apr 14, 2012 at 6:25 pm
Apr 15, 2012 at 5:29 pm -
Is there a simple way to deep merge two dicts? I'm looking for Perl's Hash::Merge (http://search.cpan.org/~dmuey/Hash-Merge-0.12/Merge.pm) in Python.
Roy Smith
Apr 12, 2012 at 5:41 pm
Apr 14, 2012 at 4:58 am
Group Overview
group | python-list |
categories | python |
discussions | 227 |
posts | 1,414 |
users | 353 |
website | python.org |
353 users for April 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)