FAQ

Search Discussions

43 discussions - 227 posts

  • for formatting a string and adding descriptors: test = 'datetimepart1part2part3the_rest' newtest = 'date=' + test[0:4] + ' time=' + test[4:8] + ' part1=' + test[8:13] + ' part2=' + test[13:18] + ' ...
    Richard kapplerRichard kappler
    Jun 3, 2015 at 7:10 pm
    Jun 4, 2015 at 12:54 am
  • Hello Python Tutors, A student has asked a question that has me stumped. We are using 2.7. Looking at this code: #!/usr/bin/python class MyList(list): def __str__(self): return """Here are your ...
    Marilyn DavisMarilyn Davis
    Jun 30, 2015 at 6:47 am
    Jul 3, 2015 at 4:12 pm
  • Good evening, As you may have noticed i am really struggling with functions and dictionaries. I need to figure out why this program is allowing me to continue entering incorrect data instead of ...
    Stephanie QuilesStephanie Quiles
    Jun 1, 2015 at 11:19 pm
    Jun 2, 2015 at 6:39 pm
  • I have a doubt. I had a list like this [['Varun', 19.0], ['Kakunami', 19.0], ['Harsh', 20.0], ['Beria', 20.0], ['Vikas', 21.0]] I am using a for loop to del the rows with the lowest value like this ...
    Anubhav YadavAnubhav Yadav
    Jun 16, 2015 at 3:45 pm
    Jun 18, 2015 at 10:20 pm
  • I'm using python 3.4 on an ubuntu 14.4 LTS OS and frequently find myself 'off line'. I'd like to download the standard library documentation to have at hand on my hard drive. I tried prompt wget -r ...
    Alex KleiderAlex Kleider
    Jun 14, 2015 at 6:56 pm
    Jun 16, 2015 at 3:09 am
  • Hello, I am working on my second program and its a two part progam that I want to design However, i am not sure what silly mistake I am making on the first part: Here is my code: 3 4 5 6 7 | import ...
    Nym CityNym City
    Jun 28, 2015 at 7:32 pm
    Jul 5, 2015 at 4:02 pm
  • So I wrote this script to go over a large wiki XML dump and pull out the pages I want. However, every time I run it the kernel displays 'Killed' I'm assuming this is a memory issue after reading ...
    Joshua ValdezJoshua Valdez
    Jun 30, 2015 at 3:10 pm
    Jul 2, 2015 at 5:38 pm
  • From: Gupta, Manaswini Kat Sent: Tuesday, June 23, 2015 10:42 PM To: 'tutor-owner at python.org' Subject: FW: query From: Gupta, Manaswini Kat Sent: Tuesday, June 23, 2015 10:40 PM To: 'tutor-owner ...
    Gupta, Manaswini KatGupta, Manaswini Kat
    Jun 23, 2015 at 5:13 pm
    Jun 25, 2015 at 4:08 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 ...
    Saran AhluwaliaSaran Ahluwalia
    Jun 19, 2015 at 1:44 am
    Jun 21, 2015 at 8:41 pm
  • Hi I have a function that compares a set of files with a reference set of files. All files are compared and then, if any differences were found, an exception is raised: class Error(Exception): pass ...
    David AldrichDavid Aldrich
    Jun 17, 2015 at 12:49 pm
    Jun 18, 2015 at 11:46 am
  • Hello, Having trouble figuring out why this program is not running. could someone please take a look and see where I am going wrong? Here is the error message i am getting ...
    Stephanie QuilesStephanie Quiles
    Jun 16, 2015 at 4:45 pm
    Jun 17, 2015 at 11:16 pm
  • Hello. i need serious help. i am a very very new python programmer. I have never done any code in my life. I am lost with these assignments for a class i am taking. I hope someone can assist. below ...
    Stephanie QuilesStephanie Quiles
    Jun 1, 2015 at 4:01 am
    Jun 2, 2015 at 9:48 am
  • Suppose in a given state of a program, function 1 calls function 2. Function 1 includes checks for possible error conditions. If there are no issues, then function 2 should execute with no issues as ...
    boB SteppboB Stepp
    Jun 1, 2015 at 2:27 pm
    Jun 1, 2015 at 8:03 pm
  • I'm having trouble making this script work to scrape information from a series of Wikipedia articles. What I'm trying to do is iterate over a series of wiki URLs and pull out the page links on a wiki ...
    Joshua ValdezJoshua Valdez
    Jun 21, 2015 at 8:04 pm
    Jun 23, 2015 at 12:44 am
  • Hello, I am a new Python user attempting to use bioread ( https://pypi.python.org/pypi/bioread/0.9.5) to convert files from aqknowledge to matlab. I am using a 64-bit PC, and I have downloaded ...
    Ila KumarIla Kumar
    Jun 1, 2015 at 7:50 pm
    Jun 3, 2015 at 4:18 pm
  • Hi Team, what is the standard way of using docstrings? for example (Sphinx) def test(x): """ A dummy method Args: x (int): first argument Returns: "true or false" """ and if the method has no ...
    Sunil TechSunil Tech
    Jun 8, 2015 at 9:34 am
    Jun 9, 2015 at 8:09 am
  • I am trying to create a dictionary of lists as I read a file. I envision it looking like: {key: [float_type],[string_type]} For the first item in the list I am trying to add the value to the existing ...
    Chris StinemetzChris Stinemetz
    Jun 3, 2015 at 4:39 pm
    Jun 4, 2015 at 1:46 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 ...
    Saran AhluwaliaSaran Ahluwalia
    Jun 25, 2015 at 6:42 pm
    Jun 26, 2015 at 3:23 pm
  • Hello,i wanted to know about the gui development ,from where to began developing the apps in python ..?Which IDE is best suitable for me??
    Abhijeet560Abhijeet560
    Jun 13, 2015 at 3:03 pm
    Jun 13, 2015 at 6:40 pm
  • As part of my league secretary program (to which thread I shall reply again shortly), I need to sort a list of lists. I've worked out that I can use sorted() and operator.itemgetter to sort by a ...
    Stephen Nelson-SmithStephen Nelson-Smith
    Jun 5, 2015 at 8:16 pm
    Jun 6, 2015 at 1:54 am
  • hello , sir i wanted to know that how can i show or display a simple image using python 3.4The thing is that i want to know that there is no image module or library located in the library folder ...
    Abhijeet560Abhijeet560
    Jun 4, 2015 at 2:09 pm
    Jun 4, 2015 at 4:12 pm
  • Hi, it's my first time in here. I hope you don't mind if I straight to the question. I do some work in python 2 and my job is to collect some query and then send it to java program via json. We're ...
    Boy Sandy Gladies ArriezonaBoy Sandy Gladies Arriezona
    Jun 1, 2015 at 2:39 am
    Jun 1, 2015 at 4:02 pm
  • Hello all, I'm trying to merge and filter some xml. This is working well, but I'm getting one node that's not in my list to include. Python version is 3.4.0. The goal is to merge multiple xml files ...
    Street SweeperStreet Sweeper
    Jun 27, 2015 at 12:03 am
    Jun 29, 2015 at 8:58 am
  • Dear Sir/MadamI know the difference between static and dynamic linking in C or C++. But what does it mean this in Python? Since it's just an interpreter, and only having one style of import mechanism ...
    Velummaylum KajenthiranVelummaylum Kajenthiran
    Jun 17, 2015 at 7:52 am
    Jun 17, 2015 at 1:55 pm
  • Hi I am a complete newbie but am hoping to learn some python for a particular project. Before I hurl myself in I would like to know if a key element is going to be possible. I will need to be able to ...
    Oliver Mercer-DeadmanOliver Mercer-Deadman
    Jun 17, 2015 at 1:05 am
    Jun 17, 2015 at 12:42 pm
  • Hi I have defined a dictionary in a module: mydir.py: REG_LOOKUP = { 'REG_1' : some_value1, 'REG_2' : some_value2, } How would I import that dictionary from my main() function (which lives in a ...
    David AldrichDavid Aldrich
    Jun 15, 2015 at 11:03 am
    Jun 15, 2015 at 3:07 pm
  • I have come across this syntax in python. Embedding for loop in []. How far can things be stretched using this []. l = [1, 2, 3, 4, 5] q = [i*2 for i in l] print qthanksrakesh
    Rakesh sharmaRakesh sharma
    Jun 10, 2015 at 10:36 am
    Jun 10, 2015 at 3:39 pm
  • Dear All; I have a very silly problem. with open("Dati_differenzialigistvsminigist_solodiff.csv") as p: for i in p: lines = i.strip("\n").split("\t") if lines[8] != "NA": if lines[8] : print lines[8] ...
    Jarod_v6Jarod_v6
    Jun 8, 2015 at 2:50 pm
    Jun 8, 2015 at 4:02 pm
  • Figured out the string delimiters problem, thanks for all the help. Now I've run into another. I've used the re.finditer that I think it was Peter suggested. So I have: for line in file: s = line t = ...
    Richard kapplerRichard kappler
    Jun 4, 2015 at 2:37 am
    Jun 5, 2015 at 4:28 pm
  • Hi. I'm creating a test py app to do a quick crawl of a couple of pages of a psoft class schedule site. Before I start asking questions/pasting/posting code... I wanted to know if this is the kind of ...
    BruceBruce
    Jun 1, 2015 at 11:06 pm
    Jun 2, 2015 at 5:42 am
  • Hello, i am attempting to create a GUI program using Python 3.4. please see the pasted code below. Why is nothing showing up? i am using Pycharm to run the program to see what it does and it says ...
    Stephanie QuilesStephanie Quiles
    Jun 30, 2015 at 5:02 am
    Jun 30, 2015 at 12:45 pm
  • Hi, my name is Nirav.? I have a question about my code. I am a student at a university that does research using a program called VisIt. We use VisIt to help our learning in computational fluid ...
    Nirav PatelNirav Patel
    Jun 24, 2015 at 7:25 pm
    Jun 25, 2015 at 12:54 am
  • I receive several Excel documents each week. I need to delete the first row from each document (multi tabs per document). I don't see a method in the openpyxl library (using Python 3.4). am I missing ...
    Phillip PughPhillip Pugh
    Jun 19, 2015 at 1:28 am
    Jun 19, 2015 at 9:44 am
  • Hi, i studied your book that u said before. now i came up with this code, which i can't now show my words in the list box! ? http://pastebin.com/GpWc8Pnw now, i've got a better idea! , i can use two ...
    Ali MoradiAli Moradi
    Jun 18, 2015 at 2:13 pm
    Jun 18, 2015 at 5:16 pm
  • Hi, you got what i mean thanks, your code (http://pastebin.com/VbaVKJgj) was so good. now i want to do two more things. i want to fill the listbox from my database which contains of one table (Words) ...
    Ali MoradiAli Moradi
    Jun 16, 2015 at 12:47 pm
    Jun 16, 2015 at 6:36 pm
  • let me put it this way: the listbox should be on the same frame under the entry widget and the whole list should be visible, when the user types the word in Entry widger and clicks on search button, ...
    Ali MoradiAli Moradi
    Jun 15, 2015 at 1:41 pm
    Jun 15, 2015 at 3:57 pm
  • let me put it this way: the listbox should be on the same frame under the entry widget and the whole list should be visible, when the user types the word in Entry widger and clicks on search button, ...
    Ali MoradiAli Moradi
    Jun 15, 2015 at 10:38 am
    Jun 15, 2015 at 2:58 pm
  • hi, i use python 2. how can i add a listbox under the entry and button widgets? i want to use database to fill the listbox, both fields in the database (English and Esperanto) listbox should be like ...
    Ali MoradiAli Moradi
    Jun 15, 2015 at 7:11 am
    Jun 15, 2015 at 8:03 am
  • Thanks for the help!! The data I put unfortunately was runcated: ENSG00000267199 11.8156750037 1.7442320912 0.5103558647 3.4176781572 0.0006315774 0.0122038731 ENSG00000267199 NA NA NA ...
    Jarod_v6Jarod_v6
    Jun 8, 2015 at 8:12 pm
    Jun 8, 2015 at 8:24 pm
  • I was trying to install Python 2.7 on my Windows 8.1(x64) PC and got the following error: "There is a problem with this Windows Istaller Package.A DLL required for this install to complete could not ...
    Aditya ShawAditya Shaw
    Jun 5, 2015 at 6:45 am
    Jun 5, 2015 at 7:33 am
  • I'm fairly new to programming and as a result, Python too. I've been researching the Tutor archives trying to find a solution to my need, however, haven't stumbled across the exact example and are ...
    Eric GreyEric Grey
    Jun 3, 2015 at 4:49 pm
    Jun 3, 2015 at 7:58 pm
  • Forwarding to list. Always use ReplyAll (or reply List if you have that option) to include the list. -------- Forwarded Message -------- Subject: Re: [Tutor] Parsing/Crawling test College Class ...
    Alan GauldAlan Gauld
    Jun 2, 2015 at 7:27 am
    Jun 2, 2015 at 10:07 am
  • Missed sending this to the list. Sorry. In a message of Wed, 03 Jun 2015 08:56:48 -0400, Ila Kumar writes: You are most welcome. I am not an expert in bioread, alas. I'm an expert in "ARGH! ...
    Laura CreightonLaura Creighton
    Jun 4, 2015 at 8:50 pm
    Jun 4, 2015 at 8:50 pm
Group Navigation
period‹ prev | Jun 2015 | next ›
Group Overview
grouptutor @
categoriespython
discussions43
posts227
users52
websitepython.org

52 users for June 2015

Alan Gauld: 60 posts Laura Creighton: 22 posts Steven D'Aprano: 13 posts Peter Otten: 12 posts Mark Lawrence: 11 posts Stephanie Quiles: 9 posts Alex Kleider: 7 posts Richard kappler: 7 posts Ali Moradi: 5 posts Cameron Simpson: 5 posts Abhijeet560: 4 posts Anubhav Yadav: 4 posts David Aldrich: 4 posts Chris Stinemetz: 3 posts Danny Yoo: 3 posts Joel Goldstick: 3 posts Sunil Tech: 3 posts Whom Isac: 3 posts Jarod_v6: 2 posts Ben Finney: 2 posts
show more
Archives