Search Discussions
-
Ok, hopefully this is better. I love my own e-mail editor... I can see that the slice() function can pass in arbitrary arguments. I'm not sure for lists, which is what the range is applied to, why an ...
Andrew Robinson
Oct 29, 2012 at 2:31 am
Nov 2, 2012 at 10:48 am -
: Not sure exactly how to put this ... I'm a mostly passive subscriber to this list - my posts here over the years could probably be counted without having to take my socks off - so perhaps I have no ...
Zero Piraeus
Oct 13, 2012 at 3:21 pm
Oct 18, 2012 at 4:09 pm -
: Okay, so, first thing vaguely Python-related that comes to mind [so probably not even slightly original, but then that's not really the point]: What are people's preferred strategies for dealing ...
Zero Piraeus
Oct 18, 2012 at 6:06 am
Oct 24, 2012 at 12:04 am -
Hi all, This is my first post to this group--I'm not subscribed, so please CC me in responses. So I'm sure a lot of you have run into the following pattern. I use it all the time and it always has ...
Dan Loewenherz
Oct 24, 2012 at 8:40 pm
Oct 27, 2012 at 7:15 pm -
I am working with some rather large data files ( 100GB) that contain time series data. The data (t_k,y(t_k)), k = 0,1,...,N are stored in ASCII format. I perform various types of processing on these ...
Virgil Stokes
Oct 23, 2012 at 2:31 pm
Oct 28, 2012 at 10:36 pm -
32
OT Questions
Like a lot of people here, I'm trying to build a web development business. I'm starting off by building a profile on a freelance site. I would like some honest opinions(don't be too harsh), about my ...Dwight Hutto
Oct 16, 2012 at 4:05 am
Oct 28, 2012 at 5:57 pm -
can we append a list with another list in Python ? using the normal routine syntax but with a for loop ?? An HTML attachment was scrubbed... URL ...
Inshu chauhan
Oct 23, 2012 at 7:36 am
Oct 25, 2012 at 10:19 am -
In Python3 is there any good way to count the number of on bits in an integer (after an & operation)? Alternatively, is there any VERY light-weight implementation of a bit set? I'd prefer to use ...
Charles Hixson
Oct 25, 2012 at 2:19 am
Oct 26, 2012 at 4:30 pm -
['insertme', 1, 'insertme', 2, 'insertme', 3] I appreciate any and all feedback. --Matt
Mooremathewl
Oct 8, 2012 at 7:28 pm
Oct 12, 2012 at 5:14 pm -
I have a philosofical doubt about immutability, that arised while doing the SCALA functional programming course. Now suppose I have a simple NumWrapper class, that very stupidly does: class ...
Andrea crotti
Oct 29, 2012 at 3:20 pm
Oct 30, 2012 at 8:45 pm -
Dear list, Due to lack of energy and resources i'm really sad to announce the removal of notmm from pypi and bitbucket. I deleted also my account from bitbucket as it was not really useful for me ...
Etienne Robillard
Oct 4, 2012 at 6:10 pm
Oct 8, 2012 at 4:18 am -
[nan, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] Traceback (most recent call last): File "<stdin ", line 1, in <module ValueError: list.index(x): x not in list That means, the function .index() cannot detect ...
Mamboknave
Oct 26, 2012 at 1:46 am
Oct 28, 2012 at 1:07 pm -
how to insert random error in a programming?
Debashish Saha
Oct 15, 2012 at 1:55 pm
Oct 16, 2012 at 3:46 am -
I am looking for a good way to get every pair from a string. For example, input: x = 'apple' output 'ap' 'pp' 'pl' 'le' I am not seeing a obvious way to do this without multiple for loops, but maybe ...
Vincent Davis
Oct 21, 2012 at 6:33 pm
Oct 24, 2012 at 12:14 pm -
I'm working with the readline module, and I'm trying to set a key combination to process the current command line by calling a known function, *and* enter the command line. Something along the lines ...
Steven D'Aprano
Oct 13, 2012 at 1:30 pm
Oct 16, 2012 at 8:44 pm -
Hi Folkz, how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers. greatz Johannes
Schneider
Oct 25, 2012 at 10:16 am
Oct 29, 2012 at 10:08 pm -
Hi, I am trying to read a file into memory. The size of the file is around 1 GB. I have a 3GB memory PC and the Windows Task Manager shows 2.3 GB available physical memory when I was trying to read ...
Pradipto Banerjee
Oct 19, 2012 at 5:08 pm
Oct 22, 2012 at 8:37 am -
21
sum function
Hi All, I am new to python and am getting the data from hbase. I am trying to do sum on the column as below scanner = client.scannerOpenWithStop("tab", "10", "1000", ["cf:col1"]) total = 0.0 r = ...Mike20007
Oct 4, 2012 at 8:52 pm
Oct 6, 2012 at 12:38 pm -
What exactly is the point of a private method? Why or when would I want to use one? Daniele
D.M. Procida
Oct 9, 2012 at 1:24 pm
Nov 1, 2012 at 10:45 pm -
Here's some example code. The input is a list which is a "matrix" of letters: a b a b b a and I'd like to turn this into a Python array: 1 2 1 2 2 1 so 1 replaces a, and 2 replaces b. Here's the code ...
Seektime
Oct 24, 2012 at 5:23 am
Oct 25, 2012 at 9:27 pm -
I've been teaching myself list comprehension, and i've run across something i'm not able to convert. here's the original code for matrix multiplcation retmatrix = Matrix(self.__row,other.__col) for m ...
Kevin Anthony
Oct 17, 2012 at 1:54 am
Oct 17, 2012 at 10:34 pm -
http://giotto.readthedocs.org/en/latest/tutorial.html Can someone give me some feedback on what they think of this framework? I came up with the idea of this framework a few months ago. I gave a talk ...
Nbvfour
Oct 13, 2012 at 4:49 am
Oct 15, 2012 at 5:29 pm -
python -c "import os; while True: print('hello')" File "<string ", line 1 import os; while True: print('hello') ^ SyntaxError: invalid syntax
Herman
Oct 12, 2012 at 10:51 pm
Oct 15, 2012 at 9:24 pm -
Hi, I am using python 2.6. I need a way to make following code working without any ValueError . Note: Number of values in the tuple will change dynamically. I know in python 3, you can do `a, b, c, ...
Sajuptpm
Oct 6, 2012 at 10:09 am
Nov 19, 2012 at 1:56 am -
Hello Programmers, I am looking for a regexp for a string not at the beginning of the line. For example, I want to find $hello$ that does not occur at the beginning of the string, ie all $hello$ that ...
Rivka Miller
Oct 25, 2012 at 8:53 pm
Oct 26, 2012 at 12:53 pm -
I'm curious as to the implementation (I'd be happy to dig through the source, just don't have the time right now). I've seen various implementations across interpreters in the past (some which have ...
Demian Brecht
Oct 18, 2012 at 5:23 pm
Feb 8, 2013 at 3:52 pm -
$ crontab -l * * * * * env This produces mail with the following contents: HOME=/home/spjsf LOGNAME=spjsf PATH=/usr/bin:/bin PWD=/home/spjsf SHELL=/bin/sh SHLVL=1 USER=spjsf _=/usr/bin/env On the ...
Jason Friedman
Oct 1, 2012 at 12:11 am
Oct 6, 2012 at 5:33 pm -
Greetings! I'm trying to unittest a class hierachy using Python 2.7. I have a common baseclass Base and derived classes D1 and D2 that I want to test. The baseclass in not instantiatable on its own ...
Ulrich Eckhardt
Oct 2, 2012 at 12:27 pm
Oct 3, 2012 at 8:14 pm -
Hi, I have written a script to poll some registry values but remote registry is turned off through GPO on the network I need to run it against. The account running the script is an admin on these ...
Kevin Holleran
Oct 19, 2012 at 7:59 pm
Oct 24, 2012 at 2:12 pm -
Good morning/afternoon/evening all, Is there any possibility that we could find a way to prevent the double spaced rubbish that comes from G$ infiltrating this ng/ml? For example, does Python have ...
Mark Lawrence
Oct 20, 2012 at 12:43 am
Oct 22, 2012 at 9:59 pm -
Hi, I am looking for a clever way to compute all combinations of two lists. Look at this example: h = ['A','A','B','B'] m = ['a','b'] the resulting combinations should be of the same length as h and ...
Steen Lysgaard
Oct 3, 2012 at 2:26 pm
Oct 6, 2012 at 3:31 pm -
Hi there, I'm currently looking for a good solution to the following problem: I have two classes A and B, which interact with each other and which interact with the user. Instances of B are always ...
Johannes Bauer
Oct 29, 2012 at 4:33 pm
Oct 30, 2012 at 2:15 pm -
14
classes
I was just trying out a programme for learning classes in python The prog below is showing an error which it should not show : class Bag: def __init__(self, x): self.data = [] def add(self, x) ...Inshu chauhan
Oct 24, 2012 at 12:11 pm
Oct 24, 2012 at 4:29 pm -
Hello all! Please help me start learning about this thing. Sorry for my inexperience! Here is what I need to do: on some webpage (done in php, or any other different technology), user inputs some ...
Chip9munk
Oct 18, 2012 at 7:18 am
Oct 23, 2012 at 9:17 am -
Hello list. I'm a newbie when it comes to Python. I'm trying to turn this: def print_sys_path(): i = 0 for p in sys.path: print ('sys.path[%2d]: %s' % (i, p)) i += 1 into a one-line python command ...
Gisle Vanem
Oct 11, 2012 at 11:24 am
Oct 11, 2012 at 9:00 pm -
Greetings, I'm trying to generate C++ code from an XML file. I'd like to use a template engine, which imo produce something readable and maintainable. My google search about this subject has been ...
Jean-Michel Pichavant
Oct 9, 2012 at 4:00 pm
Oct 11, 2012 at 10:00 am -
The problem with that is that one has to already being using 3.3 to use this facility. I was hoping for a solution which was backwards compatible with Python 2.x. My thought is a program distributed ...
Edward Diener
Oct 1, 2012 at 3:06 am
Oct 7, 2012 at 3:13 am -
Your question seems vague to me. If you know you are storing only immutable tuples in a list, then the way to iterate is simple. For example: data = [('foo', 1), ('foo', 2), ('bar', 3), ('bar', 2)] # ...
88888 Dihedral
Oct 1, 2012 at 12:58 am
Oct 3, 2012 at 3:21 am -
Thanks for trying to help, everybody. Sorry I didn't post the whole error message. Now my problem is I just installed VPython and I'm trying to run the very first example, bounce.py which I located ...
Peter Farrell
Oct 1, 2012 at 12:35 am
Oct 1, 2012 at 8:36 am -
Downloaded and installed Python 2.7.3 for windows (an XP machine). Entered the Python interactive interpreter/command line and typed the following: and I get the error message "No module named ...
Graham
Oct 16, 2012 at 11:29 am
Oct 20, 2012 at 12:47 pm -
In order to solve the following question, http://nltk.googlecode.com/svn/trunk/doc/book/ch02.html: ? Use one of the predefined similarity measures to score the similarity of each of the following ...
Token Type
Oct 7, 2012 at 4:15 pm
Oct 9, 2012 at 4:00 pm -
<_sre.SRE_Match object at 0xb7354db0 <_sre.SRE_Match object at 0xb7337f38 Traceback (most recent call last): File "<stdin ", line 1, in <module File "/usr/lib/python2.6/re.py", line 137, in match ...
Contro opinion
Oct 4, 2012 at 3:01 am
Oct 9, 2012 at 11:29 am -
All, I need help with a date and time comparison. Say a user enters a date-n-time and a file on disk. I want to compare the date and time of the file to the entered date-n-time; if the file is newer ...
Noydb
Oct 29, 2012 at 11:13 pm
Nov 2, 2012 at 11:22 am -
I have been reading the thread "while expression feature proposal," and one of the interesting outcomes of the thread is the idea that Python could allow you to attach names to subexpressions, much ...
Steve Howell
Oct 27, 2012 at 2:42 am
Oct 29, 2012 at 11:53 am -
I have a text file like this A1980JE39300007 2732 4195 12.527000 A1980JE39300007 3465 9720 22.000000 A1980JE39300007 1853 3278 12.500000 A1980JE39300007 2732 2732 187.500000 A1980JE39300007 19 4688 ...
Satyam
Oct 24, 2012 at 3:01 am
Oct 24, 2012 at 8:17 am -
I'm trying to understand how I can lock a file while writing on it, because I might have multiple processes working on it at the same time. I found the fcntl.lockf function but if I do this: In ...
Andrea crotti
Oct 18, 2012 at 1:14 pm
Oct 19, 2012 at 2:36 pm -
How do you get Exceptions to print messages? I have an exception defined like this class PvCamError(Exception): def __init__(self, msg): self.msg = msg But when the error is raised I get this ...
Wanderer
Oct 15, 2012 at 4:00 pm
Oct 16, 2012 at 12:47 am -
Hi everybody ! Our language lab at INALCO is using a nice language parsing and analysis program written in Python. As you well know a lot of languages use characters that can only be handled by ...
Jjmeric
Oct 14, 2012 at 4:55 pm
Oct 15, 2012 at 11:45 am -
I am working on a script to find bad image files. I am using PIL and specifically image.verify() I have a set of known to be bad image files to test. I also what to be able to test any file for ...
Vincent Davis
Oct 14, 2012 at 4:23 am
Oct 14, 2012 at 7:31 pm -
pHello all: I've seen frameworks like django reload files when it detects that they've been changed; how hard would it be to make my engine reload files that it detects were changed? I'm also curious ...
Littlefield, Tyler
Oct 4, 2012 at 3:11 am
Oct 5, 2012 at 1:32 pm
Group Overview
group | python-list |
categories | python |
discussions | 258 |
posts | 1,961 |
users | 330 |
website | python.org |
330 users for October 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)