FAQ

Search Discussions

154 discussions - 1,058 posts

  • Hi Everyone, What is the list equivalent to line 12: ncount.sort(reverse=True) count = dict() fname = raw_input("Enter file name: ")# handle = open (fname, 'r')# for line in handle: if ...
    Ltc HotspotLtc Hotspot
    Aug 12, 2015 at 12:01 am
    Aug 13, 2015 at 11:08 am
  • Python has an extensive test suite run after each 'batch' of commits on a variety of buildbots. However, the Linux buildbots all (AFAIK) run 'headless', with gui's disabled. Hence the following ...
    Terry ReedyTerry Reedy
    Aug 7, 2015 at 2:07 am
    Aug 29, 2015 at 4:48 am
  • There are a lot of ways to store configuration information: - conf file - xml file - database - json file - and possible a lot of other ways I want to write a Python program to display cleaned log ...
    Cecil WesterhofCecil Westerhof
    Aug 2, 2015 at 10:11 am
    Aug 6, 2015 at 7:51 am
  • 1 2 3 4 I have never seen this syntax before. Is it documented. Is there a name for that ? thx
    AstAst
    Aug 25, 2015 at 2:16 pm
    Aug 27, 2015 at 4:29 pm
  • There have been discussions, such as today on Idle-sig , about who uses Idle and who we should design it for. If you use Idle in any way, or know of or teach classes using Idle, please answer as many ...
    Terry ReedyTerry Reedy
    Aug 6, 2015 at 1:06 am
    Aug 10, 2015 at 10:19 am
  • Hi! I have a list of numbers that I treat as "circular", i.e. [1,2,3] and [2,3,1] should be the same. Now I want to rotate these to a well defined status, so that I can can compare them. If all ...
    Lukas BarthLukas Barth
    Aug 1, 2015 at 8:34 pm
    Aug 3, 2015 at 7:56 pm
  • I created a simple application with bottle: https://github.com/CecilWesterhof/PublishedPhotos But sometimes it needs a lot of time. For example: 127.0.0.1 - - [21/Aug/2015 23:16:40] "GET / HTTP/1.1" ...
    Cecil WesterhofCecil Westerhof
    Aug 21, 2015 at 9:22 pm
    Aug 24, 2015 at 12:01 am
  • What I know about an interpreter and a compiler is: they both convert source code to machine code and the only difference is, an interpreter convert it, line by line while compiler convert the whole ...
    Mahan MarwatMahan Marwat
    Aug 31, 2015 at 8:35 am
    Sep 2, 2015 at 7:09 am
  • 23

    Pipes

    Just learning Python and have a question. Is it possible for Python to pass information to another program (in Windows), wait for that program to finish and then resume operating? It's called a pipe ...
    Rogerh906Rogerh906
    Aug 9, 2015 at 2:10 pm
    Aug 11, 2015 at 10:15 am
  • I am both new to Python and I haven?t even touched Django yet. I understand I that I need Django or something like it to develop my website. Is that true? Or is there another development platform ...
    Dwight GoldWindeDwight GoldWinde
    Aug 9, 2015 at 4:08 am
    Aug 14, 2015 at 4:23 am
  • Hello, all. I am hoping some people here are familiar with the RPi.GPIO python module for the Raspberry Pi. Very new to Python and electronics. Not to computing in general though. I posted for help ...
    John McKenzieJohn McKenzie
    Aug 16, 2015 at 7:40 pm
    Sep 11, 2015 at 7:24 pm
  • How do I uninstall Python from a Mac?
    BillBill
    Aug 4, 2015 at 2:37 am
    Aug 6, 2015 at 6:10 am
  • Dear All, I experienced an incomprehensible behavior (I've spent already many hours on this subject): the `file.write('string')` provides an error in run mode and not when interpreted at the ...
    RAHRAH
    Aug 25, 2015 at 9:19 pm
    Aug 27, 2015 at 2:01 pm
  • Hello, I am running one and the same unit tests that test some web application. I would like to execute them against different servers that may host different instances of the application. So far I ...
    RambiusRambius
    Aug 21, 2015 at 3:17 pm
    Aug 30, 2015 at 4:34 am
  • I'm reading JSON output from an input file, and extracting values. Many of the fields are meant to be numerical, however, some fields are wrapped in a "floatApprox" dict, which messed with my ...
    Victor HooiVictor Hooi
    Aug 28, 2015 at 4:57 am
    Aug 30, 2015 at 12:55 pm
  • 14

    Bug!

    hello, python3.5rc1 when trying to install , the installer did not show the button to start installing , to click in the middle he started ; after installing I thought that everything would work fine ...
    Miguel Alejandro FernandezMiguel Alejandro Fernandez
    Aug 21, 2015 at 7:31 pm
    Aug 23, 2015 at 1:35 am
  • Dear All, I am working on an optimization problem, where we are trying to minimize some indicators like energy usage, energy cost, CO2 emission. In this problem, we have a bunch of energy conversion ...
    Ping LiuPing Liu
    Aug 14, 2015 at 11:41 pm
    Aug 18, 2015 at 9:52 pm
  • Hi everybody, is there something like a hook that a Python module could register to in order to 'trace' the entering and leaving of arbitrary try blocks? What is this good for? I am the maintainer of ...
    Sven R. KunzeSven R. Kunze
    Aug 11, 2015 at 9:47 pm
    Aug 14, 2015 at 12:57 am
  • Hello everyone. I use bisect module. bisect module developer give us c extension as _bisect. If Python3.3 use _bisect, _bisect override his functions in bisect.py. now, I use id() function to ...
    UmedoblockUmedoblock
    Aug 3, 2015 at 5:47 am
    Aug 4, 2015 at 1:59 pm
  • At the moment I serve a AngularJS web application with: python3 -m http-server This only servers static html pages with the data contained in js files, like: $scope.links = [ { desc: 'Album', url ...
    Cecil WesterhofCecil Westerhof
    Aug 21, 2015 at 6:11 am
    Aug 22, 2015 at 12:23 pm
  • Hi, I recently found interesting GOTCHA while doing list comprehension in python 2.6: [True, 1, 2, 3] I was wondering why this list comprehension returns incorrect results and finally found a typo in ...
    Pavel SPavel S
    Aug 5, 2015 at 6:48 am
    Aug 7, 2015 at 1:08 pm
  • I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list): [{'AccountNumber': N, 'Amount': '0', 'Answer': '12:00:00 PM', 'ID': None, 'Type': 'WriteLetters', ...
    KbtyoKbtyo
    Aug 30, 2015 at 2:05 am
    Aug 30, 2015 at 9:47 pm
  • Hi I am new to linux. I tried various things in attempt to install kivy. I installed python 2.7.10 (I think python3 was already installed in ubuntu 14.04). Then i downloaded kivy from ...
    Shiva upretiShiva upreti
    Aug 16, 2015 at 7:16 pm
    Aug 17, 2015 at 11:35 pm
  • It's like the desktop folder/directory model where you can create unlimited folders and put folders within other folders. Instead of folders, I want to use government organizations. Example: Let user ...
    Alex GlarosAlex Glaros
    Aug 13, 2015 at 7:10 pm
    Aug 17, 2015 at 8:37 pm
  • The documentation at https://docs.python.org/3.5/reference/expressions.html#not-in says : "For user-defined classes which do not define __contains__() but do define __iter__(), x in y is true if some ...
    Pierre QuentelPierre Quentel
    Aug 9, 2015 at 9:06 am
    Aug 9, 2015 at 1:49 pm
  • I am trying to learn differences between tail recursion and non tail recursion. Is the following recursive code tail recursive? If it is not how to convert it to tail recursion? If it is how to ...
    Jennyfurtado2Jennyfurtado2
    Aug 5, 2015 at 3:13 pm
    Aug 5, 2015 at 5:10 pm
  • How can I ensure incidental names don't end up in the class definition, with code that works on both Python 2 and Python 3? With the following class definition, the incidental names `foo` and `bar`, ...
    Ben FinneyBen Finney
    Aug 12, 2015 at 9:01 am
    Aug 14, 2015 at 6:37 am
  • To Python developers, Are you familiar with pyjs <http://pyjs.org/ ? I saw the website and I see that the latest stable release is from May 2012. Is it possible to use pyjs to compile Python to ...
    Uri Even-ChenUri Even-Chen
    Aug 7, 2015 at 11:00 am
    Aug 12, 2015 at 3:35 pm
  • execute commands as su on remote server Postby hariram ? Mon Aug 17, 2015 4:02 am Needed: I need to execute commands after doing su to other user on remote server(not sudo which doesn't require ...
    Harirammanohar159Harirammanohar159
    Aug 18, 2015 at 2:57 am
    Sep 2, 2015 at 7:05 am
  • Probably a silly question. Let's say I have a dictionary mydict and I need to test if a dictionary is empty. I would use if not mydict: """do something""" But I just came across a line of code like ...
    AntonAnton
    Aug 19, 2015 at 10:57 pm
    Aug 20, 2015 at 6:40 pm
  • Can anyone please help me with the following please? My question is in a while loop; how do l sum all the numbers in the given list (list_a)? list_a = [8, 5, 2, 4] sum_a = 0 # for storing the sum of ...
    Chubasco DirangaChubasco Diranga
    Aug 31, 2015 at 11:27 pm
    Sep 9, 2015 at 11:16 pm
  • Hello all, I have stuck with some issue and can't solve it myself, your help will be highly appreciated. A bit of background: In my project I work with MySQL DB and SQLAlchemy. One of its tasks is to ...
    Ivan EvstegneevIvan Evstegneev
    Aug 27, 2015 at 6:25 pm
    Aug 29, 2015 at 4:20 pm
  • I'm running into some strangeness trying to work with the bitfield module from my ctypes-bitfield package (on PyPi). I'm trying to use isinstance (), and it's kinda sorta lying to me. ----- IPython ...
    Rob GaddiRob Gaddi
    Aug 26, 2015 at 9:21 pm
    Aug 28, 2015 at 3:25 am
  • I was always led to believe that the subject was a difficult thing to do, but here https://www.reddit.com/r/learnpython/comments/3huz4x/how_to_do_math_inside_raw_input/ is a safe solution in only 23 ...
    Mark LawrenceMark Lawrence
    Aug 22, 2015 at 11:25 pm
    Aug 24, 2015 at 2:40 pm
  • I've run into strange behavior involving a blocking call to a socket accept() on the main thread and thread.interrupt_main() being called on a worker thread. Here's my code: # BEGIN exception_test.py ...
    Sohcahtoa82Sohcahtoa82
    Aug 7, 2015 at 12:34 am
    Aug 8, 2015 at 9:02 am
  • I was able to install various versions of Python (3.5.0b4 32bit being the most recent) multiple times (uninstalling in between) and they worked ("python --version" at the command line worked) ...
    Rick SmithRick Smith
    Aug 5, 2015 at 4:12 pm
    Aug 6, 2015 at 1:54 pm
  • Under Linux I like to get the most expensive processes. The two most useful commands are: ps -eo pid,user,pcpu,args --sort=-pcpu and: ps -eo pid,user,pcpu,args --sort=-vsize In my case I am only ...
    Cecil WesterhofCecil Westerhof
    Aug 4, 2015 at 8:19 pm
    Aug 6, 2015 at 4:06 am
  • rr should have a field day with this one http://nafiulis.me/python-3-may-become-relevant-now.html -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our ...
    Mark LawrenceMark Lawrence
    Aug 3, 2015 at 12:25 am
    Aug 4, 2015 at 5:22 am
  • I'm trying to get R to download the data from here: http://www.usda.gov/oce/commodity/wasde/report_format/latest-July-2015-New-Format.xml # install and load the necessary package ...
    Ryguy7272Ryguy7272
    Aug 19, 2015 at 11:57 am
    Aug 19, 2015 at 6:43 pm
  • Presumption ------------------------------------------------------------------------ 1. Lists are mutable sequences. 2. There is a subtlety when the sequence is being modified by the FOR loop (this ...
    John DoeJohn Doe
    Aug 5, 2015 at 8:00 pm
    Aug 6, 2015 at 3:53 pm
  • Hi All, Maybe this should be over in python-ideas, since there is a proposal down the bottom of this message. But first the background... I've just wasted a silly amount of time debugging an issue ...
    Cameron SimpsonCameron Simpson
    Aug 2, 2015 at 3:53 am
    Aug 4, 2015 at 12:42 pm
  • Please help? Using this code: import nltk nltk.download('maxent_treebank_pos_tagger?) I get this error: [nltk_data] Downloading package maxent_treebank_pos_tagger to [nltk_data] ...
    Dwight GoldWindeDwight GoldWinde
    Aug 19, 2015 at 6:57 am
    Sep 8, 2015 at 12:01 pm
  • Hi, Hope you are doing well !!! My name is Siva and I'm a recruiter at TheAppliedthought , a global staffing and IT consulting company. Please find the below job description which may suits any of ...
    Malladisivaramakrishna88Malladisivaramakrishna88
    Aug 7, 2015 at 3:59 pm
    Aug 24, 2015 at 9:07 pm
  • Anyone know how to handle "#N/A" in Excel from win32com.client. I'm extracting data from an Excel file using win32com.client. Everything works fine except for when the value "#N/A" is entered in ...
    Sven BodenSven Boden
    Aug 16, 2015 at 4:53 pm
    Aug 16, 2015 at 9:39 pm
  • I'm having a problem trying to access OpenDAP files using netCDF4. The netCDF4 is installed from the Anaconda package. According to their changelog, openDAP is supposed to be supported ...
    Tom PTom P
    Aug 13, 2015 at 10:32 am
    Aug 15, 2015 at 12:02 am
  • Hi, In my code I often use my own home-brewed object for passing bunch of data between functions. Something like: class Data(object): def __init__ (self, **kwargs): self.__dict__ = kwargs .... return ...
    Vladimir IgnatovVladimir Ignatov
    Aug 11, 2015 at 3:22 am
    Aug 11, 2015 at 12:11 pm
  • Can anyone compare PyNum calculation speed to Fortran? This is for a number crunching program working with large files. Roger
    Rogerh906Rogerh906
    Aug 7, 2015 at 2:08 pm
    Aug 7, 2015 at 11:57 pm
  • I am using Jupyter notebooks, with Python 3.4. The error below references the Anaconda distribution package. This error occurred quite precipitously (only 2 minutes before I was able to import the ...
    KbtyoKbtyo
    Aug 31, 2015 at 7:29 pm
    Sep 1, 2015 at 4:07 am
  • Hello All, I tried to update Python in terminal on my Mac book pro to v3.5 using this website: https://wolfpaulus.com/journal/mac/installing_python_osx/ Sadly I must have made a large mistake since ...
    Sam MillerSam Miller
    Aug 28, 2015 at 11:52 pm
    Aug 30, 2015 at 10:45 pm
  • I have the following with sqlite3: urls = c.execute('SELECT URL FROM LINKS WHERE URL = ?', url).fetchall() But this gives: Traceback (most recent call last): File "./createDB.py", line 52, in <module ...
    Cecil WesterhofCecil Westerhof
    Aug 21, 2015 at 4:39 pm
    Aug 22, 2015 at 9:45 am
Group Navigation
period‹ prev | Aug 2015 | next ›
Group Overview
grouppython-list @
categoriespython
discussions154
posts1,058
users231
websitepython.org

231 users for August 2015

Chris Angelico: 100 posts Laura Creighton: 63 posts Mark Lawrence: 48 posts Cecil Westerhof: 43 posts Terry Reedy: 38 posts MRAB: 27 posts Rustom Mody: 26 posts Steven D'Aprano: 26 posts Ben Finney: 25 posts Michael Torrie: 21 posts Emile van Sebille: 20 posts Cameron Simpson: 18 posts Peter Otten: 18 posts Marko Rauhamaa: 15 posts Dwight GoldWinde: 14 posts Ltc Hotspot: 14 posts Ian Kelly: 13 posts Joel Goldstick: 12 posts Jmp: 11 posts Saran Ahluwalia: 10 posts
show more
Archives