Search Discussions
-
Chunks of data (about 2MB) are to be stored on machines using a peer-to-peer protocol. The recipient of these chunks can't assume that the payload is benign. While the data senders are supposed to ...
Randall Smith
Jun 23, 2015 at 7:02 pm
Jul 1, 2015 at 10:31 pm -
Hi, I just see the tutorial says Python can return value in function, it does not say multiple data results return situation. In C, it is possible. How about Python on a multiple data return ...
Fl
Jun 2, 2015 at 9:27 pm
Jun 21, 2015 at 12:55 pm -
I wrote a very simple function to test random: def test_random(length, multiplier = 10000): number_list = length * [0] for i in range(length * multiplier): number_list[random.randint(0, length - 1)] ...
Cecil Westerhof
Jun 7, 2015 at 6:27 am
Jun 17, 2015 at 3:01 pm -
Hello, I need some kind of parser and some kind of way to access the data contained in a file like the one below: (text file) ...
Skybuck Flying
Jun 2, 2015 at 12:29 am
Jun 11, 2015 at 3:35 pm -
One of the most annoying problems with py2/3 interoperability is that the pickle formats are not compatible. There must be many who, like myself, often use pickle format for data storage. It ...
Neal Becker
Jun 9, 2015 at 6:08 pm
Jun 11, 2015 at 11:11 am -
I have a function in a module which is intended to be used by importing that name alone, then used interactively: from module import edir edir(args) edir is an enhanced version of dir, and one of the ...
Steven D'Aprano
Jun 15, 2015 at 11:57 pm
Jun 19, 2015 at 12:41 am -
Hello. Very new to Python and looking for some basic help. Would like a set-up where something happens when a key is pressed. Not propose a question, have the user type something, then hit return, ...
John McKenzie
Jun 3, 2015 at 6:22 pm
Jul 16, 2015 at 9:29 pm -
Dear Group, I am trying to learn how to create .exe file for Python. I tried to work around http://www.py2exe.org/index.cgi/Tutorial of Py2exe. The sample program went nice. But if I try to make exe ...
Subhabrata Banerji
Jun 15, 2015 at 11:42 am
Jun 17, 2015 at 3:58 pm -
Sometimes I just want to know how much time a function takes, but at the same time I also want the result of the function. For this I wrote the following function: def time_test(function, *args) ...
Cecil Westerhof
Jun 7, 2015 at 6:39 am
Jun 8, 2015 at 6:32 am -
Hello Python community. I come from a classic background in what refers to OOP. Mostly Java and PHP ( 5.3). I'm used to abstract classes, interfaces, access modifiers and so on. Don't get me wrong. I ...
Jason P.
Jun 17, 2015 at 7:21 pm
Jun 21, 2015 at 8:26 am -
I am thinking about using ipython3 instead of bash. When I want to find a file I can do the following: !find ~ -iname '*python*.pdf' but is there a python way? -- Cecil Westerhof Senior Software ...
Cecil Westerhof
Jun 2, 2015 at 4:13 pm
Jun 7, 2015 at 1:16 pm -
http://jt.node365.se/baseconversion8.html
Jonas Thornvall
Jun 29, 2015 at 10:39 pm
Jun 30, 2015 at 10:27 pm -
The following code produces a plot with a line running from (9:30, 0) to (10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire. If I use timezone None instead of pacific, the plot is as desired, ...
Peter Pearson
Jun 30, 2015 at 12:56 am
Jul 10, 2015 at 4:15 pm -
Greetings, I'm in the process of converting 101 old BASIC games into Python (see link below). http://www.atariarchives.org/basicgames/ The short term goal is to learn the finer aspects of the Python ...
C.D. Reimer
Jun 21, 2015 at 7:32 pm
Jun 22, 2015 at 9:20 am -
Hi, I would like to download a file (http://video.hrt.hr/2906/otv296.mp4) If the connection is OK, I can download the file with: import urllib.request urllib.request.urlretrieve(remote_file, ...
Zljubisic
Jun 30, 2015 at 3:34 pm
Jul 5, 2015 at 5:31 am -
Hi, Consider the following calls, where very_long_path is more than 256 bytes: [1] os.mkdir(very_long_path) [2] os.getsize(very_long_path) [3] shutil.rmtree(very_long_path) I am using Python 2.7 and ...
Albert-Jan Roskam
Jun 24, 2015 at 5:45 pm
Jun 26, 2015 at 5:58 pm -
Good Evening Everyone: I would like to have this JSON object written out to a CSV file so that the keys are header fields (for each of the columns) and the values are values that are associated with ...
Saran Ahluwalia
Jun 17, 2015 at 9:49 pm
Jun 20, 2015 at 5:27 pm -
Greetings, I'm converting 101 BASIC games from an old book (http://www.atariarchives.org/basicgames/) into Python scripts. After a dozen conversions, I've created a helper file for common functions ...
C.D. Reimer
Jun 13, 2015 at 7:10 pm
Jun 14, 2015 at 7:08 am -
Folks, I am developing a program which I'd like to be python 2 and 3 compatible. I am still relatively new to python and I use primarily py3 for development. Every once in a while I use a py2 ...
Fabien
Jun 12, 2015 at 3:00 pm
Jun 13, 2015 at 4:16 pm -
I know that sounds strange: usually we look up values by key, not keys. But suppose you have a strange key type that despite being "equal", is not identical in some fields, and you need to see those ...
Dan Stromberg
Jun 24, 2015 at 12:21 am
Jul 5, 2015 at 6:25 am -
Say in 2014 April to May whole weeks would be 7th, 14th 28th April and May would be 5th, 12th and 19th. So expecting 7 whole weeks in total
Sebastian M Cheung
Jun 10, 2015 at 5:05 pm
Jun 11, 2015 at 3:45 am -
str.split() doesn't seem to respect non-breaking space: Python 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC 4.9.1] on linux Type "help", "copyright", "credits" or "license" for more information ...
Tim Chase
Jun 10, 2015 at 1:28 pm
Jun 11, 2015 at 3:37 am -
Good Evening, I have a conundrum regarding JSON objects and converting them to CSV: Context I am converting XML files to a JSON object (please see snippet below) and then finally producing a CSV ...
Sahlusar
Jun 19, 2015 at 1:47 am
Jun 23, 2015 at 11:32 am -
Hello I am trying to create multiple thread through the below program but I am getting an error #! /usr/bin/python import os import subprocess import thread import threading from thread import ...
Mohan Mohta
Jun 3, 2015 at 8:41 pm
Jun 4, 2015 at 10:58 pm -
Hi, When I search solution of reverse a string/number, I came across a short function online: return str(num) == str(num)[::-1] I thought that it is a general function. And with the following ...
Fl
Jun 1, 2015 at 4:46 am
Jun 2, 2015 at 10:30 pm -
Folks, I am developing a tool which works on individual entities (glaciers) and do a lot of operations on them. There are many tasks to do, one after each other, and each task follows the same ...
Fabien
Jun 19, 2015 at 2:01 pm
Jun 21, 2015 at 8:27 pm -
Greetings, I've revisited my misbegotten childhood by translating the programs from "BASIC Computer Games" by David H. Ahl into Python. This is mostly an exercise in unraveling spaghetti code with ...
C.D. Reimer
Jun 7, 2015 at 5:17 pm
Jun 8, 2015 at 9:44 pm -
12
for...else
Hi, Currently, in various places in my code, I have the equivalent of: for x in it: if complicated_calculation_1(): cleanup() break complicated_calculation_2() if complicated_calculation_3() ...Acdr
Jun 2, 2015 at 11:26 am
Jun 3, 2015 at 4:57 pm -
I would like to have this JSON object written out to a CSV file so that the keys are header fields (for each of the columns) and the values are values that are associated with each header field. Is ...
Saran A
Jun 17, 2015 at 3:00 pm
Jun 21, 2015 at 11:38 pm -
Is there a program what runs on Windows that uses a national blacklist to block phone calls?
Seymore4Head
Jun 12, 2015 at 10:20 pm
Jun 13, 2015 at 7:12 pm -
I have so far ignored the new string formatting (you know, the stuff with all the braces, dots and brackets that make Python strings look like Perl code <wink ). I am still only using Python 2.7, but ...
Skip Montanaro
Jun 8, 2015 at 7:09 pm
Jun 9, 2015 at 3:42 pm -
hey, i really need help, im a straight up beginner in scripting and i need to figure out how to make an inverted particle emitter using python in maya
Stephenppraneel7
Jun 4, 2015 at 11:15 pm
Jun 7, 2015 at 9:18 pm -
I saw somewhere on the net that you can copy a list with slicing. So what's happening when I try it with a numpy array? False array([1, 9, 3])
Paul Appleby
Jun 5, 2015 at 12:46 pm
Jun 5, 2015 at 2:13 pm -
My question can be found here: http://stackoverflow.com/questions/31058100/enumerate-column-headers-in-csv-that-belong-to-the-same-tag-key-in-python Here is an additional sample sample of the XML ...
Kbtyo
Jun 25, 2015 at 6:39 pm
Jun 30, 2015 at 4:32 pm -
Long time lurker. I'm looking to register a python script as the default pdf reader for windows. I assume I can just register the .py in the section windows section for registering default handlers, ...
Naftali
Jun 18, 2015 at 9:04 pm
Jun 23, 2015 at 8:20 pm -
Any idea why a server might be returning the message, in json format, "Malformed Upload"? The image is gzipped as the server requires... Someone on another forum said that he thinks Python requests ...
Paul Hubert
Jun 17, 2015 at 9:55 pm
Jun 18, 2015 at 9:44 pm -
Hi I've been trying to configure Apache and Python 2.7 on Red Hat. I've tried the different configurations i've seen on the web, I've given chmod -R 777 tu my python code but I still get 403 ...
Néstor Boscán
Jun 12, 2015 at 12:51 pm
Jun 17, 2015 at 5:00 pm -
Hello, I don't like the object orientated part of Python. The idea/prospect of having to write "self" everywhere... seems very horrorific and a huge time waster. (Perhaps the module thing of python ...
Skybuck Flying
Jun 11, 2015 at 11:19 am
Jun 11, 2015 at 4:55 pm -
Hi, I want to learn some coding on PDF. After I download and install pyPDF2, it cannot pass unit test, which is coming from the package. I put a screen shot link here to show the console message ...
Fl
Jun 24, 2015 at 4:53 pm
Jun 25, 2015 at 1:20 am -
It actually doesn't fail but it 'cannot open in protected mode' (see here ...
Naftali
Jun 19, 2015 at 5:24 pm
Jun 22, 2015 at 4:13 pm -
[Dr. Bigcock wrote:] That's an awesome idea. It's like a final way to understand and operate with metaclasses. One would have to decide how to merge the two classes, but this could be as ...
Dr. John Q. Hacker
Jun 17, 2015 at 12:24 am
Jun 17, 2015 at 4:48 pm -
I would like to do something like this: class C: def __init__(self,**parms): ... c=C(f1=1,f2=None) I want to have, for the object self.f1=1 self.f2=None for an arbitrary number of parameters. What is ...
Paulo da Silva
Jun 12, 2015 at 3:53 pm
Jun 13, 2015 at 7:49 am -
Hi, I have a list: ['12', '42', '49', '156', '225', '36', '49', '164', '11181', '3100'] I want to access the last two digits. That is: ['12', '42', '49', '56', '25', '36', '49', '64', '81', '00'] ...
Fl
Jun 2, 2015 at 12:23 pm
Jun 4, 2015 at 1:27 pm -
I have the following script for writing out to CSV two items in a list to a CSV in such a format, such that if we have: L = [('A', 1), ('B', 2), ('C', 3), ('D', 4),('A', 5), ('B', 6), ('D', 8)] we ...
Sahlusar
Jun 23, 2015 at 5:15 pm
Jun 25, 2015 at 4:37 pm -
I am trying to find a list of strings in a directory of files. Here is my code: # -*- coding: utf-8 -*- import os import fileinput s2 = os.listdir('/home/malikarumi/Projects/P5/shortstories') with ...
Malik Rumi
Jun 12, 2015 at 7:39 pm
Jun 16, 2015 at 2:51 am -
I have a piece of code written for a Raspberry Pi with no explanation for two of the lines -- and I can't find an explanation I understand. Here are the lines: if os.system('modprobe --first-time -q ...
Grawburg
Jun 12, 2015 at 1:07 pm
Jun 12, 2015 at 2:46 pm -
Hi. I'm a newbie in python. But I want embed it in my C program. There is such method of my class: @staticmethod def install_instr_callback(callback): # set hook for every change of PC ...
Doc Mefisto
Jun 6, 2015 at 6:09 pm
Jun 8, 2015 at 5:44 am -
I am using libturpial to post messages on Twitter. Sometimes I get a libturpial.exceptions.ServiceOverCapacity. It is a good idea to try it again then. For this I wrote the following function: def ...
Cecil Westerhof
Jun 3, 2015 at 12:27 pm
Jun 4, 2015 at 5:13 am -
I'm trying to use a readline binding for both TAB and Ctrl-TAB, but it's not working for me. Whichever I install second seems to over-ride the first. In the Python interactive interpreter under ...
Steven D'Aprano
Jun 28, 2015 at 6:55 pm
Jul 10, 2015 at 4:56 am -
Purely as an exercise I've been converting Grant Jenks' pypatt[1] from 2.7 to 3.4. I've managed to sort out most of the required changes by checking on what I can see with an AST pretty printer[2] ...
Mark Lawrence
Jun 29, 2015 at 1:14 am
Jun 30, 2015 at 11:01 pm
Group Overview
group | python-list |
categories | python |
discussions | 193 |
posts | 1,704 |
users | 225 |
website | python.org |
225 users for June 2015
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)