Search Discussions

246 discussions - 1,442 posts

  • Here is a grep from the month of September 2011 showing the rampantly egregious misuse of the following words and phrases: * pretty * hard * right * used to * supposed to "Pretty" is the most ...
    Rick JohnsonRick Johnson
    Jan 24, 2012 at 5:57 am
    Jan 27, 2012 at 7:42 pm
  • Someone seems to be spamming PyPI by uploading multiple stupid packages. Not sure if it's some form of advertising spam or just idiocy. Don't know if we should care though... maybe policing uploads ...
    Matt ChaputMatt Chaput
    Jan 1, 2012 at 10:18 pm
    Jan 6, 2012 at 5:58 am
  • I wonder whether this is normal behaviour. I would expect equal sign to copy values from right to left. However, it seems there is a copy-on-write mechanism that is not working. Anyone can explain ...
    Eduardo Suarez-SantanaEduardo Suarez-Santana
    Jan 13, 2012 at 11:33 am
    Feb 5, 2012 at 2:09 pm
  • Hi! The topic explains pretty much what I'm trying to do under Python 2.7[1]. The reason for this is that I want dir(SomeType) to show the attributes in the order of their declaration. This in turn ...
    Ulrich EckhardtUlrich Eckhardt
    Jan 6, 2012 at 9:48 am
    Jan 18, 2012 at 10:29 am
  • in my xp ,python26,easy_install installed. i want to install lxml in window xp 1.c:\python26\scripts\easy_install lxml what i get is: Reading http://codespeak.net/lxml Best match: lxml 2.3.3 ...
    Jan 9, 2012 at 9:18 am
    Jan 14, 2012 at 1:44 pm
  • Hello everybody, I'm a happy pythonista newly subscribed to the group. How is it going? I have a theoretical / philosophical question regarding strong vs duck typing in Python. Let's say we wanted to ...
    Sean WolfeSean Wolfe
    Jan 3, 2012 at 6:13 pm
    Jan 13, 2012 at 5:30 pm
  • I see sometimes in other people code "while 1" instead of "while True". I think using True is more pythonic, but I wanted to check if there is any difference in practice. So I tried to do the ...
    Andrea CrottiAndrea Crotti
    Jan 21, 2012 at 1:47 pm
    Jan 24, 2012 at 3:37 am
  • To catch more than one exception type in an except block, one writes except (A, B, C) as e: I'm wondering why it was decided to match tuples, but not lists: except [A, B, C] as e: The latter makes ...
    Charles YeomansCharles Yeomans
    Jan 30, 2012 at 5:41 pm
    Feb 1, 2012 at 4:39 am
  • Hi all. When a subprocess is running, it can be sent a signal with the send_signal method : process = Popen( args) process.send_signal(signal.SIGINT) If the SIGINT is sent while the process has ...
    Jan 2, 2012 at 11:09 pm
    Jan 3, 2012 at 6:45 pm
  • Every so often (typically when refactoring), I'll remove a .py file and forget to remove the corresponding .pyc file. If I then import the module, python finds the orphaned .pyc and happily imports ...
    Roy SmithRoy Smith
    Jan 30, 2012 at 9:30 pm
    Feb 12, 2012 at 6:53 pm
  • In particular i find the "extension notation" syntax to be woefully inadequate. You should be able to infer the action of the extension syntax intuitively, simply from looking at its signature. I ...
    Rick JohnsonRick Johnson
    Jan 25, 2012 at 5:16 pm
    Jan 26, 2012 at 5:38 am
  • I have a pretty complicated bit of code that I'm trying to convert to more clean OOP. Without getting too heavy into the details I have an object which I am trying to make available inside another ...
    Jan 23, 2012 at 7:44 pm
    Jan 23, 2012 at 11:32 pm
  • On the Python Dev mailing list, there is a discussion going on about the stability of the hash function for strings. How many people rely on hash(some_string) being stable across Python versions? ...
    Steven D'ApranoSteven D'Aprano
    Jan 14, 2012 at 4:42 am
    Jan 16, 2012 at 9:15 am
  • Hopefully this will be a step up from Rick's threads in usefulness, but I'm aware it's not of particularly great value! How do you pronounce PyPI? Is it: * Pie-Pie? * Pie-Pip, but without the last p? ...
    Chris AngelicoChris Angelico
    Jan 28, 2012 at 7:48 am
    Jan 30, 2012 at 9:50 pm
  • It turns out that installing Python 2.7.2 on CentOS 6.0 is a lot of work. Here are the official CentOS install instructions: http://www.centos.org/modules/newbb/viewtopic.php?topic_id4515&forumA Not ...
    John NagleJohn Nagle
    Jan 18, 2012 at 6:00 pm
    Jan 23, 2012 at 12:42 pm
  • Hi. I am new to python and wanted to search the python-list archives for answers to my many questions but i can't seem to get the archive files to uncompressed? What gives? From what i understand ...
    Random joeRandom joe
    Jan 5, 2012 at 10:44 pm
    Jan 10, 2012 at 2:47 pm
  • Hi, We are running are running Python program on Redhat 5.5. When executing our program we get the following error ( see below). Any ideas what this is due to? br, //mike /pysibelius/lib/common/ ...
    Jan 11, 2012 at 11:19 am
    Feb 5, 2013 at 3:10 pm
  • Hi all, I have a text file approximately 20mb in size and contains about one million lines. I was doing some processing on the data but then the data rate increased and it takes very long time to ...
    Yigit TurgutYigit Turgut
    Jan 22, 2012 at 2:32 pm
    Jan 22, 2012 at 8:55 pm
  • The interface for these modules is not intuitive. Instead of creating true OOP objects we have lists and strings. Any calendar object should expose string names of both: days of the week and months ...
    Rick JohnsonRick Johnson
    Jan 14, 2012 at 6:54 pm
    Jan 16, 2012 at 2:50 am
  • ================================ dataset = cursor.fetchall() for row in dataset: print ( "<tr " ) for item in row: print ( "<td <b <font color=yellow %s </td " % item ) ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Jan 9, 2012 at 11:23 pm
    Jan 11, 2012 at 10:50 pm
  • Hi all. Like others before me, I'd like to show you my first python attempt, in the hope in can get advices on how to improve my coding. I started learning python and pyGTK last november. I had had a ...
    Jan 17, 2012 at 2:16 pm
    Jan 26, 2012 at 6:39 pm
  • What does Python do when presented with this code? py [line.strip('\n') for line in f.readlines()] If Python reads all the file lines first and THEN iterates AGAIN to do the strip; we are driving a ...
    Rick JohnsonRick Johnson
    Jan 22, 2012 at 3:50 pm
    Jan 24, 2012 at 8:14 am
  • UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character Can anybody explain why the compile statement tries to convert the unicode filename using mbcs? I know ...
    Jan 10, 2012 at 4:24 am
    Jan 11, 2012 at 12:14 pm
  • python has builtin zip, but not unzip A bit of googling found my answer for my decorate/sort/undecorate problem: a, b = zip (*sorted ((c,d) for c,d in zip (x,y))) That zip (*sorted... does the ...
    Neal BeckerNeal Becker
    Jan 18, 2012 at 2:33 pm
    Feb 3, 2012 at 12:53 am
  • Hi Vinay, It looks like this was intentional, so why was it decided that filters would only be passed messages logged to the logger they're attached to rather than the all messages that end up ...
    Chris WithersChris Withers
    Jan 16, 2012 at 1:10 pm
    Jan 29, 2012 at 10:07 am
  • I'm having a disagreement with a buddy on the packaging of a program we're doing in Python. It's got a number of modules and large number of library files. The library stuff is data, not code. I'd ...
    Jan 25, 2012 at 5:26 pm
    Jan 28, 2012 at 3:13 am
  • Hello, I am having some trouble with a serial stream on a project I am working on. I have an external board that is attached to a set of sensors. The board polls the sensors, filters them, formats ...
    Jan 23, 2012 at 9:48 pm
    Jan 24, 2012 at 1:04 pm
  • can some one help me?? def average(bin): num=[] total = 0.0 count=0 for number in bin: while True: if number!='end': number=float(number) total += float(number) count+=1 avg = total/count if ...
    Tamanna SultanaTamanna Sultana
    Jan 20, 2012 at 6:49 pm
    Jan 23, 2012 at 1:47 pm
  • I'm a somewhat-satisfied openoffice.org user. I mean it works, but if it weren't in Java I'd be doing some of my own tweaking. But since it's in Java I stay away... no likey. Has there been any talk ...
    Sean WolfeSean Wolfe
    Jan 10, 2012 at 9:43 pm
    Jan 14, 2012 at 6:25 pm
  • Is this possible please? I have done some searching but it is hard to narrow down Google searches to this question. What I would like to do is, for example: 1) define a class Foo in file test.py... ...
    Jan 25, 2012 at 3:54 am
    Jan 26, 2012 at 2:41 pm
  • Hi, I'm new to Python and recently completed my first project. I used wxPython with wxGlade to generate the GUI bits.The application seems to work well, but I am entirely self-taught, so have ...
    Jan 10, 2012 at 11:44 pm
    Jan 12, 2012 at 12:24 am
  • Dear community, Let me ask here please. I'm a first-year PhD student in Ireland. My background is in mathematics, though I'm going to stream my career into programming with Python, Java and C++ ...
    Sophie SpernerSophie Sperner
    Jan 7, 2012 at 10:59 am
    Jan 10, 2012 at 7:52 am
  • Hello, I have a class and i return both a key list and dictionary from the class. Is it good form to do this? The print helo.__dict__ shows both the list and dictionary. ... def __init__(self): ... ...
    David GarveyDavid Garvey
    Jan 9, 2012 at 10:51 pm
    Jan 10, 2012 at 2:30 am
  • Hi, I am new using Python, although I have experience using other programming languages like Pascal, FORTRAN, C, Prolog, etc. I am using IDLE Editor for Python in coordination with the command line ...
    Andres SotoAndres Soto
    Jan 4, 2012 at 11:25 pm
    Jan 5, 2012 at 7:53 pm
  • I'm trying to write a context manager to handle database connections, under the principle that I should not rely on CPython's reference-counting semantics to clean up scarce resources, like ...
    Jan 11, 2012 at 3:45 pm
    Feb 1, 2012 at 2:15 am
  • Window never stops to surprise me, I've been banging my head since yesterday and only now I now what is the problem. So suppose I have something like from os import path print path.expanduser('~') If ...
    Andrea CrottiAndrea Crotti
    Jan 24, 2012 at 2:56 pm
    Jan 24, 2012 at 4:50 pm
  • I have a problem which ought to have an obvious solution, but I haven't found one despite searching for many hours. The problem occurs on Windows. This is a version of my problem reduced to its ...
    Jacob HallénJacob Hallén
    Jan 22, 2012 at 8:08 pm
    Jan 23, 2012 at 8:17 am
  • Q0. Why do thousand-line religious posts appear in comp.lang.python?
    John LadaskyJohn Ladasky
    Jan 3, 2012 at 5:57 pm
    Jan 8, 2012 at 5:43 am
  • I normally didn't bother too much when reading from files, and for example I always did a content = open(filename).readlines() But now I have the doubt that it's not a good idea, does the file ...
    Andrea CrottiAndrea Crotti
    Jan 20, 2012 at 3:44 pm
    Jan 25, 2012 at 6:22 pm
  • Please don't use "setuptools", the so-called "easy" installation system in your packages. It just makes things more complicated, adds dependencies, and needs too many weird options if things aren't ...
    John NagleJohn Nagle
    Jan 18, 2012 at 6:24 pm
    Jan 22, 2012 at 9:38 am
  • You may know about the change of focus in recent months to LibreOffice <URL:https://www.libreoffice.org/ . The Document Foundation is where the majority of the project's institutional knowledge, ...
    Ben FinneyBen Finney
    Jan 10, 2012 at 10:29 pm
    Jan 21, 2012 at 2:34 am
  • Hi, In a unit test, I want to verify that a function returns a cookielib.LWPCookieJar object. What is the correct way of doing that? 1) First I tried to figure out its type with type(return_value) ...
    Jabba LaciJabba Laci
    Jan 19, 2012 at 8:45 pm
    Jan 20, 2012 at 8:42 pm
  • An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20120107/599f986c/attachment.html
    Jan 7, 2012 at 12:10 pm
    Jan 11, 2012 at 7:14 pm
  • Hi all, I am trying to run two functions at the same time with Parallel Processing (pp) as following ; import pygame import sys import time import math import pp screen = pygame.display.set_mode((0, ...
    Yigit TurgutYigit Turgut
    Jan 8, 2012 at 1:23 pm
    Jan 9, 2012 at 2:46 am
  • hi all, how to get id(func) for each func in stack? (I mean memory address, to compare it with id(some known funcs)) Thank you in advance, D.
    Jan 6, 2012 at 6:02 pm
    Jan 7, 2012 at 10:39 am
  • I'm missing something about tkinter updates. How can I give tkinter a chance to run? Here's some code: import time import tkinter import tkinter.scrolledtext tk = tkinter.Tk() f = ...
    Jan 24, 2012 at 1:09 am
    Jan 29, 2012 at 5:34 pm
  • Is there any book or site on python algorithms which asks more and teaches less, I don't want to get bored, and at the same time I want to learn and act more. I use ubuntu. (just in case if its ...
    Chetan HarjaniChetan Harjani
    Jan 25, 2012 at 10:06 am
    Jan 26, 2012 at 2:20 pm
  • Hi I'm trying to write a script that determines the version of OpenSSL that python is linked against, using python-2.7 this is easy as I can use: import ssl ssl.OPENSSL_VERSION but unfortunately I ...
    Adam MercerAdam Mercer
    Jan 23, 2012 at 8:01 pm
    Jan 25, 2012 at 9:40 pm
  • Python 2 can intern 'str' (bytes) strings (with the eponymous builtin, and with C API functions), though not unicode. Python 3 does not have that builtin, nor the C API; I can't find any support for ...
    Chris AngelicoChris Angelico
    Jan 24, 2012 at 12:38 am
    Jan 24, 2012 at 8:33 am
  • With NaN, it is possible to get a list that will not properly sort: -- NaN = float('nan') -- spam = [1, 2, NaN, 3, NaN, 4, 5, 7, NaN] -- sorted(spam) [1, 2, nan, 3, nan, 4, 5, 7, nan] I'm ...
    Ethan FurmanEthan Furman
    Jan 13, 2012 at 7:04 pm
    Jan 16, 2012 at 11:07 am
Group Navigation
period‹ prev | Jan 2012 | next ›
Group Overview
grouppython-list @

307 users for January 2012

Steven D'Aprano: 74 posts Chris Angelico: 70 posts Ian Kelly: 51 posts Terry Reedy: 42 posts Rick Johnson: 40 posts Devin Jeanpierre: 35 posts Peter Otten: 30 posts Chris Rebert: 29 posts Andrea Crotti: 25 posts Ben Finney: 24 posts MRAB: 24 posts Alex23: 23 posts Stefan Behnel: 23 posts Roy Smith: 21 posts Dave Angel: 20 posts Lie Ryan: 20 posts Contro opinion: 18 posts Νικόλαος Κούρας: 18 posts 88888 Dihedral: 17 posts Evan Driscoll: 16 posts
show more