FAQ

Search Discussions

258 discussions - 1,961 posts

  • 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 RobinsonAndrew 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 PiraeusZero 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 PiraeusZero 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 LoewenherzDan 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 StokesVirgil Stokes
    Oct 23, 2012 at 2:31 pm
    Oct 28, 2012 at 10:36 pm
  • 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 HuttoDwight 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 chauhanInshu 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 HixsonCharles 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
    MooremathewlMooremathewl
    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 crottiAndrea 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 RobillardEtienne 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 ...
    MamboknaveMamboknave
    Oct 26, 2012 at 1:46 am
    Oct 28, 2012 at 1:07 pm
  • how to insert random error in a programming?
    Debashish SahaDebashish 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 DavisVincent 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'ApranoSteven 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
    SchneiderSchneider
    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 BanerjeePradipto Banerjee
    Oct 19, 2012 at 5:08 pm
    Oct 22, 2012 at 8:37 am
  • 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 = ...
    Mike20007Mike20007
    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. ProcidaD.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 ...
    SeektimeSeektime
    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 AnthonyKevin 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 ...
    NbvfourNbvfour
    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
    HermanHerman
    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, ...
    SajuptpmSajuptpm
    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 MillerRivka 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 BrechtDemian 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 FriedmanJason 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 EckhardtUlrich 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 HolleranKevin 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 LawrenceMark 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 LysgaardSteen 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 BauerJohannes Bauer
    Oct 29, 2012 at 4:33 pm
    Oct 30, 2012 at 2:15 pm
  • 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 chauhanInshu 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 ...
    Chip9munkChip9munk
    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 VanemGisle 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 PichavantJean-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 DienerEdward 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 Dihedral88888 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 FarrellPeter 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 ...
    GrahamGraham
    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 TypeToken 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 opinionContro 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 ...
    NoydbNoydb
    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 HowellSteve 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 ...
    SatyamSatyam
    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 crottiAndrea 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 ...
    WandererWanderer
    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 ...
    JjmericJjmeric
    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 DavisVincent 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, TylerLittlefield, Tyler
    Oct 4, 2012 at 3:11 am
    Oct 5, 2012 at 1:32 pm
Group Navigation
period‹ prev | Oct 2012 | next ›
Group Overview
grouppython-list @
categoriespython
discussions258
posts1,961
users330
websitepython.org

330 users for October 2012

Chris Angelico: 116 posts Steven D'Aprano: 107 posts Ian Kelly: 88 posts Dwight Hutto: 77 posts Dave Angel: 62 posts Mark Lawrence: 62 posts Terry Reedy: 41 posts Joshua Landau: 38 posts Demian Brecht: 37 posts MRAB: 34 posts Prasad, Ramit: 33 posts Rusi: 32 posts Peter Otten: 30 posts Roy Smith: 27 posts Grant Edwards: 24 posts Alex23: 23 posts Ramchandra Apte: 23 posts Zero Piraeus: 21 posts Cameron Simpson: 20 posts Inshu chauhan: 20 posts
show more
Archives