Search Discussions
-
Hi i have a file which contains data //ACCDJ EXEC DB2UNLDC,DFLID=&DFLID,PARMLIB=&PARMLIB, // UNLDSYST=&UNLDSYST,DATABAS=MBQV1D0A,TABLE='ACCDJ ' //ACCT EXEC DB2UNLDC,DFLID=&DFLID,PARMLIB=&PARMLIB, // ...
Rakesh kumar
Jun 1, 2011 at 7:31 am
Jun 9, 2011 at 2:32 am -
(a lil weekend distraction from comp lang!) in recent years, there came this Colemak layout. The guy who created it, Colemak, has a site, and aggressively market his layout. It's in linuxes distro by ...
Xah Lee
Jun 11, 2011 at 7:50 am
Jun 19, 2011 at 7:19 pm -
When you want to stop execution of a statement body early, for flow control, there is a variety ways you can go, depending on the context. Loops have break and continue. Functions have return. ...
Eric Snow
Jun 14, 2011 at 10:28 pm
Jun 21, 2011 at 12:06 pm -
Sometimes when using class inheritance, I want the overriding methods of the subclass to get the docstring of the matching method in the base class. You can do this with decorators (after the class ...
Eric Snow
Jun 9, 2011 at 6:22 am
Jun 13, 2011 at 6:49 pm -
I'm working on the Project Euler exercises and I'm stumped on problem 3: "What is the largest prime factor of the number 600851475143 ?" Now, I've actually written functions to get a list of the ...
John Salerno
Jun 21, 2011 at 7:48 pm
Jun 23, 2011 at 9:52 am -
Hi, I am looking for an easy way to do significant figure calculations in python (which I want to use with a class that does unit calculations). Significant figure calculations should have the ...
Harold
Jun 24, 2011 at 8:05 pm
Jun 28, 2011 at 9:01 pm -
I am working on some medical image data, and I try to look into specific slice of 3d *.raw image. I know voxels are 16 bit int, and dimensions are 352*470*96. I checked it in some pro medical image ...
Kafooster
Jun 13, 2011 at 6:18 pm
Jun 15, 2011 at 2:13 am -
A python web process is producing files that are given randomized names of the form hhhhhh-YYYYMMDDhhmmss-rrrrrrrr.pdf where rrr.. is a 128bit random number (encoded as base62). The intent of the ...
Robin Becker
Jun 7, 2011 at 10:18 am
Jun 8, 2011 at 11:30 am -
hi, cat test.py #!/usr/bin/env python #-*- coding: utf-8 -*- u = u'mo?ambique' print u.encode("utf-8") print u chmod +x test.py ./test.py mo?ambique mo?ambique ./test.py output.txt Traceback (most ...
Sérgio Monteiro Basto
Jun 9, 2011 at 2:18 am
Jun 13, 2011 at 2:49 pm -
Is there a way to declare a project-wide variable and use that in all downstream modules? -- Gnarlir
Gnarlodious
Jun 23, 2011 at 1:41 pm
Jun 24, 2011 at 9:19 pm -
AFAICT, the python iterator concept only supports readable iterators, not write. Is this true? for example: for e in sequence: do something that reads e e = blah # will do nothing I believe this is ...
Neal Becker
Jun 22, 2011 at 7:28 pm
Jun 24, 2011 at 2:09 am -
With Python 2.7 : "foo" What is this curious syntax on line 2 ? Where is it documented ?
Candide
Jun 19, 2011 at 1:41 pm
Jun 21, 2011 at 11:02 pm -
x=y="some string" And we know that python interprets from left to right. so why it doesnt raise a name error here saying name 'y' is not defined? another example: (1,2) + 3, here, python raises a ...
Chetan Harjani
Jun 24, 2011 at 4:32 am
Jun 25, 2011 at 6:44 pm -
Let's say I'm writing a game (really I'm just practicing OOP) and I want to create a "Character" base class, which more specific classes will subclass, such as Warrior, Wizard, etc. Which of the ...
John Salerno
Jun 18, 2011 at 4:17 am
Jun 20, 2011 at 6:31 pm -
similar_headers = 0 different_headers = 0 source_headers = sorted(source_mapping.headers) target_headers = sorted(target_mapping.headers) # Check if the headers between the two mappings are the same ...
Zachary Dziura
Jun 13, 2011 at 2:58 pm
Jun 13, 2011 at 9:33 pm -
Exceptions are great, but... Sometimes when calling a function, you want to catch some or even all the various exceptions it could raise. What exceptions *are* those? It can be pretty obvious. For ...
Chris Torek
Jun 21, 2011 at 1:43 am
Jun 27, 2011 at 6:52 pm -
How to declare a constant in python 3?
sidRo
Jun 22, 2011 at 6:54 pm
Jun 25, 2011 at 11:24 am -
In my continuing quest for Python Mastery (and because I felt like it ;) I decided to code a Path object so I could dispense with all the os.path.join and os.path.split and os.path.splitext, etc., ...
Ethan Furman
Jun 16, 2011 at 2:00 am
Jun 17, 2011 at 4:24 am -
I started an open source file organizer called Miranda. Miranda is inspired by Belvedere written by Adam Pash of Lifehacker (http:// lifehacker.com/341950/belvedere-automates-your-self+cleaning-pc). ...
Zainul franciscus
Jun 14, 2011 at 3:55 am
Jun 15, 2011 at 10:27 pm -
I was surfing around looking for a way to split a list into equal sections. I came upon this algorithm: ['Hal', 'lo ', 'Wel', 't'] ...
Jyoung79
Jun 4, 2011 at 5:46 pm
Jun 7, 2011 at 2:08 am -
Hi, I'm trying to put together a lot of pieces of source code in matlab, java, perl and python. Im an expert when it comes to matlab, but novice in all the others listed above. However, I have ...
Adam Chapman
Jun 21, 2011 at 5:45 pm
Jun 22, 2011 at 6:50 pm -
Hi All, Please let me know which one is GOOD whether Python 2.6 OR 3.2. Please let me know the difference between them. Please give some refernce site or books to know the difference
Hisan
Jun 9, 2011 at 5:18 pm
Jun 13, 2011 at 11:17 pm -
I am new to Python and Django, was going through the concept of decorators where I came across a special case of using arguments with decorators Below is the code for memoization where I was looking ...
Jigar Tanna
Jun 28, 2011 at 4:52 pm
Jul 1, 2011 at 3:18 pm -
Hello Folks, I am wondering what your strategies are for ensuring that data transmitted to a website via a python program is indeed from that program, and not from someone submitting POST data using ...
Mzagursk
Jun 18, 2011 at 11:34 am
Jun 19, 2011 at 12:18 pm -
I have a script that processes command line arguments def main(argv=None): syslog.syslog("Sparkler stared processing") if argv is None: argv = sys.argv if len(argv) != 2: syslog.syslog(usage()) else: ...
Mark Phillips
Jun 10, 2011 at 5:21 pm
Jun 10, 2011 at 10:03 pm -
Hello All, I want to print some integers in a zero padded fashion, eg. : Testing 0001 but the padding needs to be dynamic eg. sometimes %05i, %02i or some other padding amount. But I can't insert a ...
Friedrich Clausen
Jun 7, 2011 at 9:36 pm
Jun 8, 2011 at 7:00 am -
Hi All, I need to call a function for evry 10 secs how can i achieve this in python
Hisan
Jun 29, 2011 at 5:39 pm
Jul 2, 2011 at 7:49 am -
I'm pretty happy that I can copy variables and their value from one object's namespace to another object's namespace with the same variable names automatically: class simpleObject(): pass a = ...
Andrew Berg
Jun 12, 2011 at 1:32 am
Jun 12, 2011 at 3:20 pm -
I didn't get at least two messages from the "call a function every 10 seconds thread", and possibly some other messages, and I access the group via the mailing list. I use the latest stable ...
Andrew Berg
Jun 29, 2011 at 8:34 pm
Jul 2, 2011 at 2:55 pm -
Hi, What do I have to do under python windows to create a directory with all permissions, such, that new files / directories created below will inherit the permissions. The reason I am asking is, ...
Gelonida
Jun 26, 2011 at 8:57 pm
Jun 27, 2011 at 12:45 pm -
Dear Python Experts, First, I'd like to convey my appreciation to you all for your support and contributions. I am a Python newborn and need help with my function. I commented on my program as to ...
Cathy James
Jun 18, 2011 at 11:21 pm
Jun 26, 2011 at 4:09 pm -
Hello Trying to pop some key from a dict while is iterating over it will cause an exception. How I can remove items when the search result is true. Example: while len(dict): for key in dict.keys(): ...
TheSaint
Jun 19, 2011 at 2:32 pm
Jun 21, 2011 at 2:15 pm -
Hi, I'm just wondering about the complexity of some Python operations to mimic Lisp car and cdr in Python... def length(L) : if not L : return 0 return 1 + length(L[1:]) Should I think of the slice ...
Franck Ditter
Jun 17, 2011 at 2:45 pm
Jun 19, 2011 at 4:38 pm -
Based on what I've read, it seems os.rename is the proper function to use, but I'm a little confused about the syntax. Basically I just want to write a simple script that will back up my saved game ...
John Salerno
Jun 17, 2011 at 5:06 am
Jun 18, 2011 at 8:52 pm -
Hi, I'd like to simplify the following string formatting: solo = 'Han Solo' jabba = 'Jabba the Hutt' print "{solo} was captured by {jabba}".format(solo=solo, jabba=jabba) # Han Solo was captured by ...
Jabba Laci
Jun 6, 2011 at 4:15 pm
Jun 7, 2011 at 7:47 am -
I'm working on an audio/video converter script (moving from bash to Python for some extra functionality), and part of it is chaining the audio decoder (FFmpeg) either into SoX to change the volume ...
Andrew Berg
Jun 28, 2011 at 5:57 am
Jul 2, 2011 at 12:25 pm -
Hi, I am getting following error message while unziping a .zip file. Any help or idea is highly appreciated. Error message Traceback (most recent call last): File "C:\Zip_Process\py\test2_new.py", ...
Ahmed, Shakir
Jun 24, 2011 at 2:55 pm
Jun 24, 2011 at 8:21 pm -
Random rant and not very on-topic. Feel free to hit Delete and move on. I've just spent a day coding in Javascript, and wishing browsers supported Python instead (or as well). All I needed to do was ...
Chris Angelico
Jun 14, 2011 at 6:31 am
Jun 22, 2011 at 4:37 pm -
I'm using the SimPy package to run simulations. Anyone who's used this package knows that the way it simulates process concurrency is through the clever use of yield statements. Some of the code in ...
TommyVee
Jun 4, 2011 at 6:27 pm
Jun 21, 2011 at 3:03 am -
Using Python 2.6.5 on linux. When using MySQLdb I am getting warnings printed to stdout, but I would like to trap, display and log those warnings. In the past I have used _mysql_exceptions.Warning, ...
Tim Johnson
Jun 16, 2011 at 1:58 am
Jun 16, 2011 at 9:56 pm -
Hi All, The following function was showing up in my profiles as a large bottle neck: # Slow version def RMSBand(self, histogram): """Calculates the root-mean-squared value for the given colour stream ...
Keir Rice
Jun 2, 2011 at 10:07 pm
Jun 3, 2011 at 12:11 pm -
hi , I trying to use urllib2 in my script , but the problem is lets say a domains resolves to multiple IPs , If the URL is served by plain http , I can add ?Host: domain? header and check whether all ...
Saurabh verma
Jun 14, 2011 at 6:34 pm
Jun 25, 2011 at 8:27 pm -
Hi, How get all users belongs to a group using python ldap module.
Sajuptpm
Jun 23, 2011 at 1:14 pm
Jun 25, 2011 at 10:20 am -
I'm involved in the construction of an environment that allows end users to supply scripts which will then run on our servers. We need to be able to offer the full flexibility of a scripting ...
Chris Angelico
Jun 22, 2011 at 12:49 am
Jun 22, 2011 at 5:33 pm -
Hello I've a list of tasks to perform. Each of them is a threading.Thread. Basically I have : while task_list : task = task_list[0] task.run() task_list.remove(task) Now I want, in some circumstance ...
Laurent Claessens
Jun 19, 2011 at 2:42 pm
Jun 19, 2011 at 5:04 pm -
There are basically two ways to go about this. One is, to append the new value, and then sort the list. Another is to traverse the list, and insert the new value at the appropriate position. The ...
SherjilOzair
Jun 17, 2011 at 8:53 pm
Jun 19, 2011 at 2:21 pm -
Hi there, I've been looking for 2 days for a way to convert integer to binary number 0-padded, nothing... I need to get numbers converted with a defined number of bits. For example on 8 bits 2 = ...
Olivier LEMAIRE
Jun 15, 2011 at 12:29 pm
Jun 18, 2011 at 9:00 am -
Is there a way to keep the definitions of the high-level functions at the top of the source ? I don't see a way to declare a function in Python. Thanks in advance. -- Andr? Majorel ...
Andre Majorel
Jun 8, 2011 at 1:58 pm
Jun 14, 2011 at 2:03 am -
Hi Guru's, I'm working on a solution to find the prime factor of the number This part of the code works.. http://www.pastie.org/2041584 When the number gets bigger, the range cannot iterate through ...
Ganapathy Subramanium
Jun 9, 2011 at 8:31 am
Jun 10, 2011 at 8:10 am -
Hello I studying some way to print few line in the console that won't scroll down. If was for a single line I've some idea, but several line it may take some vertical tab and find the original first ...
TheSaint
Jun 2, 2011 at 1:22 pm
Jun 7, 2011 at 2:08 pm
Group Overview
group | python-list |
categories | python |
discussions | 329 |
posts | 1,903 |
users | 413 |
website | python.org |
413 users for June 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)