Search Discussions

288 discussions - 1,980 posts

  • Hello I just tried python 3.3 with some simple script meant for unit test. How can python authors be so arrogant to impose their tabs and spaces options on me ? It should be my choice if I want to ...
    Apr 5, 2013 at 9:41 pm
    Apr 10, 2013 at 2:14 am
  • Hello, I'm new to the list and hoping this might be the right place to introduce something that has provoked a bit of an argument in my programming community. I'm from the Python programming ...
    Mark JanssenMark Janssen
    Apr 15, 2013 at 3:48 am
    May 2, 2013 at 1:13 am
  • Hello, iam still trying to alter the code form python 2.6 = 3.3 Everyrging its setup except that unicode error that you can see if you go to http://superhost.gr Can anyone help with this? I even ...
    Νίκος Γκρ33κΝίκος Γκρ33κ
    Apr 9, 2013 at 9:10 pm
    Apr 19, 2013 at 7:16 pm
  • Hey Usenetites! I have a horrible Python program to allow two people to chat with each other. It has horribly any functionality, but it is meant for the public to work on, not necessarily me ...
    Jake DJake D
    Apr 6, 2013 at 12:16 am
    Apr 12, 2013 at 9:48 pm
  • Hi, Here's my data: ----------------------- 20130315T071500 39000. 10 26 48000. 1 40 20130315T071501 39000. 10 26 48000. 2 42 20130315T071501 39000. 10 26 47520. 15 69 20130315T071501 39000. 10 26 ...
    Apr 10, 2013 at 10:06 pm
    Apr 15, 2013 at 12:28 pm
  • Okay peeps, I'm re-opening this thread, because despite being hijacked by naysayers, the merit of the underlying idea I think still has not been communicated or perceived adequately. As a personal ...
    Mark JanssenMark Janssen
    Apr 12, 2013 at 1:57 am
    May 14, 2013 at 8:11 pm
  • Am I mistaken in my belief that tkinter is a non-optional part of the Python language? I installed the "python3" package on Ubuntu, and tkinter is not included--it's an optional package "python3-tk" ...
    Apr 19, 2013 at 5:17 pm
    Apr 23, 2013 at 12:01 pm
  • I would be grateful for any advice people can offer on the fastest way to count items in a sub-sequence of a large list. I have a list of boolean values that can contain many hundreds of millions of ...
    Blind AnagramBlind Anagram
    Apr 22, 2013 at 11:58 am
    Apr 24, 2013 at 9:01 am
  • Using Python 2.7.2 on OSX, I have created a file in temp space, then use the function "shutil.copyfile(fn,loc+fname)" from "fn" to "loc+fname". At the destination location, the file is truncated ...
    Rob SchneiderRob Schneider
    Apr 11, 2013 at 6:12 pm
    Apr 13, 2013 at 3:43 am
  • I'm new to learning python and creating a basic program to convert units of measurement which I will eventually expand upon but im trying to figure out how to loop the entire program. When I insert a ...
    Apr 9, 2013 at 1:32 pm
    Apr 11, 2013 at 3:00 am
  • Although PEP 8 is only compulsory for the Python standard library, many users like to stick to PEP 8 for external projects. http://www.python.org/dev/peps/pep-0008/ With perhaps one glaring ...
    Steven D'ApranoSteven D'Aprano
    Apr 4, 2013 at 1:36 am
    Apr 5, 2013 at 12:14 am
  • Greetings, I'm trying to find a way to have json emit float('NaN') as 'N/A'. I can't seem to find a way since NaN is a float, which means overriding "default" won't help. Any simple way to do this? ...
    Miki TebekaMiki Tebeka
    Apr 17, 2013 at 12:21 am
    Apr 22, 2013 at 6:53 pm
  • These are terms that appear in section 5 (Expressions) of the Python online documentation. I'm having some trouble understanding what, precisely, these terms mean. I'd appreciate the forum's thoughts ...
    Bruce McGoveranBruce McGoveran
    Apr 17, 2013 at 2:57 am
    Apr 18, 2013 at 5:04 pm
  • Hi, I came across a problem that when i deal with int data with ',' as thousand separator, such as 12,916, i can not change it into int() or float(). How can i remove the comma in int data? Any reply ...
    Apr 14, 2013 at 6:57 pm
    Apr 19, 2013 at 3:04 pm
  • 19


    Apr 1, 2013 at 9:42 pm
    Apr 2, 2013 at 11:41 pm
  • hello, I am a beginner programmer. I started learning programming about a year and a half ago, using C. I picked up python a few months ago, but only wrote very few scripts. I am currently trying to ...
    Apr 16, 2013 at 3:37 pm
    Apr 18, 2013 at 2:27 pm
  • Below is part of a script which shows the changes made to permit the script to run on either Python 2.7 or Python 3.2. I was surprised to see that the CSV next method is no longer available ...
    Colin J. WilliamsColin J. Williams
    Apr 20, 2013 at 11:46 pm
    Apr 23, 2013 at 3:02 pm
  • I do not have admin rights on my machine and I am trying to build Python directly from source code. After running: ./configure --prefix=/some/path --enable-shared and then make I get the following: I ...
    Apr 16, 2013 at 2:30 pm
    Apr 22, 2013 at 2:24 pm
  • I'm revisiting a project that I haven't touched in over a year. It was written in Python 2.6, and executed on 32-bit Ubuntu 10.10. I experienced a 20% performance increase when I used Psyco, because ...
    John LadaskyJohn Ladasky
    Apr 5, 2013 at 2:29 am
    Apr 6, 2013 at 7:41 pm
  • I would like some feedback on possible solutions to make this script run faster. The system is pegged at 100% CPU and it takes a long time to complete. #!/usr/bin/env python import gzip import re ...
    Rodrick BrownRodrick Brown
    Apr 23, 2013 at 1:19 am
    Apr 23, 2013 at 3:44 pm
  • Dear pythonistas, I am writing a tiny utility to produce a file consisting of a specified number of lines of a given length of random ascii characters. I am hoping to find a more time and memory ...
    Apr 11, 2013 at 1:21 am
    Apr 11, 2013 at 1:56 pm
  • Was trying os.execl() and got a "python.exe has stopped working" on my Windows 7 Ultimate SP1 x64 desktop. I'm using Python 2.7.4 and that happens when the second arg is ''. For example ...
    Apr 28, 2013 at 12:22 am
    May 2, 2013 at 12:50 pm
  • In reviewing somebody else's code today, I found the following construct (eliding some details): f = open(filename) for line in f: if re.search(pattern1, line): outer_line = f.next() for inner_line ...
    Roy SmithRoy Smith
    Apr 23, 2013 at 3:40 pm
    Apr 23, 2013 at 10:42 pm
  • Dear Group, I was looking to split a string in a particular interval, like, If I have a string, string="The Sun rises in the east of our earth" I like to see it as, words=["The Sun","rises in","in ...
    Apr 7, 2013 at 8:25 pm
    Apr 9, 2013 at 6:28 am
  • Hi everyone, I'm trying to use multiprocessing to avoid Python's GIL but with Tkinter, instead of running my main function, it spawns new windows. In fact, my fuction is used everytime I press a ...
    Apr 28, 2013 at 6:33 pm
    Apr 30, 2013 at 1:17 am
  • In a previous post, http://groups.google.com/group/comp.lang.python/browse_thread/thread/6aec70817705c226# , Chris ?Kwpolska? Warrick wrote: ?Is Unicode support so hard, especially in the 21st ...
    Apr 20, 2013 at 5:12 pm
    Apr 21, 2013 at 12:03 pm
  • Hello! I have a CSV file with 20 rows and 12 columns and I need to store it as a matrix. I already created an array with zeros, but I don't know how to fill it with the data from the csv file. I have ...
    Ana DionísioAna Dionísio
    Apr 12, 2013 at 2:22 pm
    Apr 13, 2013 at 7:01 pm
  • Could anyone tell me how to make the program tell me how many games are left before the first game and second game? For example, after one game of guess the number, I want it to tell me that i get ...
    Apr 10, 2013 at 9:39 am
    Apr 11, 2013 at 12:31 pm
  • PSF [Beaverton, OR] 1 April 2013 -- At a news conference held earlier today, Guido van Rossum announced that he is quitting Python to develop a new language. "Python just makes programming too damn ...
    Pierre O'DeePierre O'Dee
    Apr 1, 2013 at 3:30 pm
    Apr 2, 2013 at 5:04 am
  • When I run the readbmp on an example.bmp(about 100k),the Shell is become to "No respose",when I change f.read() to f.read(1000),it is ok,could someone tell me the excat reason for this? Thank you in ...
    Jimmie HeJimmie He
    Apr 27, 2013 at 3:57 am
    Apr 28, 2013 at 1:32 pm
  • Given that s = some static value i = a value incremented during a loop I'm used to comparing them as if i == s: # some code But for some unknown reason I did a switch if s == i: # same code It didn't ...
    Apr 25, 2013 at 5:49 am
    Apr 27, 2013 at 9:40 pm
  • [[ Resending under a more appropriate subject line... sorry about that, ignore the other one as it'll only confuse matters ]] Spin-off thread from python-ideas to discuss a more general question of ...
    Chris AngelicoChris Angelico
    Apr 26, 2013 at 4:54 pm
    Apr 27, 2013 at 2:20 am
  • I came across this article which sums up some of the issues I have with modern programming languages. I've never really looked at Javascript for anything serious or Node itself but I found this ...
    Rodrick BrownRodrick Brown
    Apr 16, 2013 at 4:02 pm
    Apr 17, 2013 at 4:47 pm
  • I am I've developed an application in Python 3.3.1 (on an up-to-date 64-bit Arch Linux system) and am attempting to use pdb to debug it. I am getting incorrect stack traces. I've made up a little ...
    Apr 9, 2013 at 3:25 pm
    Apr 13, 2013 at 6:11 pm
  • I am debugging some code that creates a static HTML gallery from a directory hierarchy full of images. It's this package:- https://pypi.python.org/pypi/Gallery2.py/2.0 It's basically working and does ...
    Apr 29, 2013 at 9:47 am
    May 1, 2013 at 11:36 pm
  • I discovered something really neat today. We've got a system with a bunch of rules. Each rule is a method which returns True or False. At some point, we need to know if all the rules are True ...
    Roy SmithRoy Smith
    Apr 24, 2013 at 11:50 pm
    Apr 28, 2013 at 9:14 pm
  • Hey, Let me explain what my program is supposed to do... I am using a macro program in conjunction with a python script I am writing. The macro inputs data into a database we use at my job, blah blah ...
    Apr 26, 2013 at 2:26 pm
    Apr 26, 2013 at 7:25 pm
  • Hi all, I want to use spline interpolation function from SciPy in an application and at the same time, I don't want the end user to have to install SciPy separately. Is there a way around this ...
    Apr 24, 2013 at 9:13 am
    Apr 24, 2013 at 7:18 pm
  • I have a file such as: $ cat my_data Starting a new group a b c Starting a new group 1 2 3 4 Starting a new group X Y Z Starting a new group I am wanting a list of lists: ['a', 'b', 'c'] ['1', '2', ...
    Jason FriedmanJason Friedman
    Apr 20, 2013 at 5:09 pm
    Apr 22, 2013 at 3:14 pm
  • Hi! I would like to create a list containing lists. I need each list to have a differente name and i would like to use a loop to name the list. But as the name, is a string, i cannot asign it to a ...
    Apr 10, 2013 at 8:40 am
    Apr 11, 2013 at 2:33 pm
  • i have to implement the below line in one of my code: for p in sorted(segments.iterkeys()) and for k in sorted(class_count.iterkeys()) and for j in sorted(pixel_count.iterkeys()): Its giving me a ...
    Inshu chauhanInshu chauhan
    Apr 23, 2013 at 6:40 am
    Apr 23, 2013 at 12:23 pm
  • Can someone please explain the following behaviour? I downloaded and compiled the Python 2.7.2 code base. I then created this simple c:\temp\test.py macro: import sys def main(): print("Please Input ...
    Apr 22, 2013 at 12:37 am
    Apr 23, 2013 at 12:31 am
  • Hi all! I'm trying to make a simple program that essentially do this: 1) open a html file (extracted epub file) 2) search for occurrences like "ita-ly" 3) put them on a simple GUI: 1 text field and ...
    Apr 18, 2013 at 9:24 pm
    Apr 20, 2013 at 2:19 am
  • Hi guys, I'm having a lot of trouble with this. My understanding of python is very basic and I was wondering how I can return this table as a list of lists. 1 2 3 4 5 3 4 5 6 5 6 7 7 8 9 The function ...
    Apr 25, 2013 at 3:01 pm
    Apr 26, 2013 at 2:12 am
  • Hi everybody, I am new to python and I am discovering it. I know C well, and want to know if python knows how to manage Pointers like pointer to function here is a C example how to write it in python ...
    Abdelkader belahceneAbdelkader belahcene
    Apr 18, 2013 at 5:06 pm
    Apr 18, 2013 at 7:54 pm
  • Hello. I am new to this group. I've done a search for the topic about which I'm posting, and while I have found some threads that are relevant, I haven't found anything exactly on point that I can ...
    Bruce McGoveranBruce McGoveran
    Apr 16, 2013 at 10:19 pm
    Apr 17, 2013 at 9:32 am
  • Say I have a tuple I want to expand assigning to variables: tup = *func() var = tup[0] lst.append(tup[1]) Or could I do it in one line? var, lst.append() = *func() So I want to append one variable to ...
    Apr 15, 2013 at 6:25 pm
    Apr 15, 2013 at 11:46 pm
  • First, here's a sample test program: <code import sys from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler class MyRequestHandler(BaseHTTPRequestHandler, object): def do_GET(self): top_self ...
    Tom PTom P
    Apr 5, 2013 at 11:02 am
    Apr 7, 2013 at 1:51 am
  • Hello everyone, I have this part of my code where I am trying to traverse over an image by running a for loop for both x and y co-ordinate axis. But the loop is terminating by just reading first ...
    Inshu chauhanInshu chauhan
    Apr 26, 2013 at 8:48 am
    Apr 26, 2013 at 1:20 pm
  • I run a bit of python code that monitors my connection to the greater Internet. It checks connectivity to the requested target IP addresses, logging both successes and failures, once every 15 ...
    William Ray WingWilliam Ray Wing
    Apr 24, 2013 at 7:25 pm
    Apr 25, 2013 at 12:37 pm
Group Navigation
period‹ prev | Apr 2013 | next ›
Group Overview
grouppython-list @

356 users for April 2013

Chris Angelico: 176 posts Steven D'Aprano: 138 posts Dave Angel: 82 posts Rusi: 58 posts Roy Smith: 54 posts Mark Lawrence: 50 posts Terry Reedy: 49 posts Ian Kelly: 48 posts Zipher: 38 posts Peter Otten: 35 posts Neil Cerutti: 30 posts Oscar Benjamin: 26 posts Pierre O'Dee: 26 posts Someone: 22 posts Nikos: 20 posts John Gordon: 19 posts MRAB: 19 posts Ethan Furman: 18 posts Andrew Berg: 17 posts Blind Anagram: 17 posts
show more