FAQ

Search Discussions

176 discussions - 1,440 posts

  • I asked the following as an off-topic aside in a reply on another thread. I got one response which presented a point I had not considered. I would like more viewpoints from 2.7 users. Background ...
    Terry ReedyTerry Reedy
    Jul 18, 2015 at 11:36 pm
    Aug 9, 2015 at 4:29 pm
  • Hi there, First, please forgive me if this is the wrong venue to be suggesting this idea-- I'm just following the PEP workflow page <https://www.python.org/dev/peps/pep-0001/#pep-workflow . I've ...
    Ian BurnetteIan Burnette
    Jul 11, 2015 at 10:20 pm
    Jul 18, 2015 at 10:57 pm
  • Gmail eats Python. We just saw this mail back from Sebastian Luque which says in part: Ow! Gmail is understanding the I stuck in as 'this is from the python console as a quoting marker and thinks it ...
    Laura CreightonLaura Creighton
    Jul 25, 2015 at 4:34 pm
    Jul 30, 2015 at 2:21 am
  • I want to start a project with python. The program must have a (simple) GUI and must run on Linux and Windows. The last one as standalone executable, created with pyinstaller. I have already an ...
    Ulli HorlacherUlli Horlacher
    Jul 11, 2015 at 9:28 am
    Jul 14, 2015 at 7:27 pm
  • Posted by E.D.G. July 25, 2015 This posting involves general interest matters and some specific questions regarding Python code usage. Any help would be appreciated. 1. Program conversion effort 2 ...
    E.D.G.E.D.G.
    Jul 25, 2015 at 9:39 am
    Jul 29, 2015 at 4:50 pm
  • I'm trying to copy some Python code from a PDF book that I'm reading. I want to test out the code, and I can copy it, but when I paste it into the Shell, everything is all screwed up because of the ...
    Ryguy7272Ryguy7272
    Jul 21, 2015 at 2:49 am
    Jul 23, 2015 at 5:39 am
  • Hi, after having spent much time thinking about tail-call elimination in Python (see for instance http://baruchel.github.io/blog/ ), I finally decided to write a module for that. You may find it at ...
    Th. BaruchelTh. Baruchel
    Jul 13, 2015 at 3:44 pm
    Jul 19, 2015 at 6:29 am
  • In Python 2, integer literals with leading zeroes are treated as octal, so 09 is a syntax error and 010 is 8. This is confusing to those not raised on C-style octal literals, so in Python 3 leading ...
    Steven D'ApranoSteven D'Aprano
    Jul 19, 2015 at 5:39 am
    Jul 24, 2015 at 1:16 pm
  • Hi all! I'm working in a little Python exercise with testing since the beginning. So far I'm with my first end to end test (not even finished yet) trying to: 1) Launch a development web server linked ...
    Jason P.Jason P.
    Jul 15, 2015 at 11:44 am
    Jul 21, 2015 at 5:48 pm
  • Despite the title, this is not one of the usual "Why can't Python do maths?" "bug" reports. Can anyone reproduce this behaviour? If so, please reply with the version of Python and your operating ...
    Steven D'ApranoSteven D'Aprano
    Jul 2, 2015 at 2:52 pm
    Jul 6, 2015 at 6:46 pm
  • I need help writing a homework program. I'll write it, but I can't figure out how to incorporate what I have read in the book to work in code. The assignment wants us to take a users first, middle ...
    Craig SirnaCraig Sirna
    Jul 17, 2015 at 2:15 am
    Jul 20, 2015 at 5:25 am
  • Hello, I'm trying to understand and link asyncio with ordinary coroutines. Now I just want to understand how to do this on asyncio: def foo(): data = yield 8 print(data) yield "bye" def bar(): f = ...
    JcarmenaJcarmena
    Jul 21, 2015 at 11:31 am
    Aug 2, 2015 at 12:50 am
  • Out of the lengthy thread on tail call optimization has come one broad theory that might be of interest, so I'm spinning it off into its own thread. The concept is like the Unix exec[vlpe] family of ...
    Chris AngelicoChris Angelico
    Jul 16, 2015 at 11:46 pm
    Jul 21, 2015 at 5:38 pm
  • Dear Programmers, Thank you for your advice regarding giving the console a current address in the code for it to access the html file. The console seems to accept the code to that extent, but when I ...
    Simon EvansSimon Evans
    Jul 11, 2015 at 10:17 pm
    Jul 12, 2015 at 8:48 pm
  • File "<stdin ", line 1 0 + not 0 ^ SyntaxError: invalid syntax What is syntactically wrong with 0 + not 0?
    CandideCandide
    Jul 11, 2015 at 10:26 am
    Jul 12, 2015 at 6:12 am
  • Howdy all, What well-defined data type exists with the following properties: * Mapping, key ? value. * Each key is a sequence (e.g. `tuple`) of items such as text strings. * Items in a key may be the ...
    Ben FinneyBen Finney
    Jul 16, 2015 at 1:51 am
    Jul 16, 2015 at 9:27 am
  • I believe the term is "idempotent" https://en.wikipedia.org/wiki/Idempotent_function#Computer_science_meaning -tkc
    Tim ChaseTim Chase
    Jul 5, 2015 at 8:36 pm
    Jul 10, 2015 at 2:18 pm
  • Hello, I'm experimenting with asyncio. I have composed the following code. There is a server handler and a client handler. I didn't want to split the code into two files so I just used a socketpair, ...
    Adam BartošAdam Bartoš
    Jul 3, 2015 at 10:28 am
    Jul 5, 2015 at 2:29 pm
  • Hello, I'm fairly new to Python, struggling to write in a more object-oriented, functional style. I just wrote a function that takes two arrays representing sine (y) and cosine (x) angle coordinates, ...
    SebSeb
    Jul 25, 2015 at 4:18 am
    Jul 26, 2015 at 10:35 am
  • I'd like to install ALL Python packages on my machine. Even if it takes up 4-5GB, or more, I'd like to get everything, and then use it when I need it. Now, I'd like to import packages, like numpy and ...
    Ryguy7272Ryguy7272
    Jul 21, 2015 at 2:57 am
    Jul 23, 2015 at 4:31 am
  • Hello all, For Each SecurityGroup, how can i convert that into a List that in turn will have a dictionary of the cidr block, protocol type and the port...so from output below, the SecurityGroup ...
    Max scalfMax scalf
    Jul 21, 2015 at 9:12 pm
    Jul 23, 2015 at 9:59 am
  • Hi, Is there a way to know encoding of string (bytes) literal defined in source file? For example, given that source: # -*- coding: utf-8 -*- from library import Entry Entry("?????") Is there any way ...
    Anatoly techtonikAnatoly techtonik
    Jul 22, 2015 at 10:17 am
    Jul 23, 2015 at 8:41 am
  • Not sure what this is called (and I'm sure it's not normalize). Perhaps "scaling"? Anyway, I need to convert various values ranging from around -50 to 50 to an 0 to 12 range (this is part of a MIDI ...
    BvdpBvdp
    Jul 2, 2015 at 12:12 am
    Jul 2, 2015 at 5:03 pm
  • Please help. I am running Python 3.4 on my Mac mini, OS X 10.10.2, using Coderunner 2 as my editor. Here?s the code: #!/usr/bin/env python3 word = (input('Enter a word ?)) When running this inside of ...
    Dwight GoldWindeDwight GoldWinde
    Jul 31, 2015 at 1:22 am
    Aug 3, 2015 at 10:46 pm
  • https://lwn.net/Articles/651967/ Excerpts: He then moved on to Python 3.5, which is due in September. He would have trouble choosing a favorite feature from the release because there are "way too ...
    Paul RubinPaul Rubin
    Jul 31, 2015 at 6:33 am
    Aug 3, 2015 at 4:15 am
  • Hi all! I am about to write an application (python3 in linux) that needs: 1. Display time series graphics dynamically changed as the application runs, i.e. the graphics should reflect some internal ...
    Paulo da SilvaPaulo da Silva
    Jul 24, 2015 at 6:31 pm
    Jul 30, 2015 at 5:16 am
  • Hello List, I have posted a question on stack overflow for better readability ... but is intended for python list.... Please see question below.. ...
    Max scalfMax scalf
    Jul 22, 2015 at 10:09 pm
    Jul 23, 2015 at 5:45 pm
  • Hi, I use pip to install modules and setuptools to install dependencies, and generate a console_script using the entry_point parameter of setup. Here is the issue : my current sources depend on ...
    Cyril ScetbonCyril Scetbon
    Jul 9, 2015 at 7:08 pm
    Jul 10, 2015 at 12:24 am
  • I'm just learning Python, and I've run into trouble trying to change directory to the windows My Documents directory. There's likely a better way to do this, but this is what I've tried so far ...
    Mark StorkampMark Storkamp
    Jul 10, 2015 at 2:27 pm
    Aug 1, 2015 at 6:50 am
  • #!/bin/bash _maillist='pager at email.com' _hname=`hostname` _logdir=/hadoop/logs _dirlog=${_logdir}/directory_check.log _year=$(date -d "-5 hour" +%Y) _month=$(date -d "-5 hour" +%m) _day=$(date -d ...
    Sutanu DasSutanu Das
    Jul 30, 2015 at 6:31 pm
    Aug 1, 2015 at 3:31 am
  • The official doc explains that : Python evaluates expressions from left to right. cf. https://docs.python.org/3.3/reference/expressions.html#evaluation-order But consider the following snippet : [42, ...
    CandideCandide
    Jul 10, 2015 at 12:10 am
    Jul 10, 2015 at 2:49 pm
  • I read this https://docs.python.org/dev/whatsnew/3.5.html which incidentally marks the release as 3.6.0a0 :) but failed to find any details regarding which windows compiler is required. -- Robin ...
    Robin BeckerRobin Becker
    Jul 24, 2015 at 10:20 am
    Jul 25, 2015 at 12:33 am
  • Here is a problem I think I should be able to solve using Python but after having searched the internet for the better part of this evening my head spins and I would apreciate some guidance ...
    Martin SchöönMartin Schöön
    Jul 30, 2015 at 8:31 pm
    Aug 17, 2015 at 9:14 pm
  • Listen I got back the Idle EAditor the other day but I had to install the older, version 2.7, version of Python to get it. So naturally I w onder if I can get Idle for version 3.4.*?
    Steve BurrusSteve Burrus
    Jul 24, 2015 at 1:28 am
    Jul 27, 2015 at 6:37 am
  • I am using libturpial to post things on Twitter. But sometimes I get a ServiceOverCapacity exception. So I wrote the following code ...
    Cecil WesterhofCecil Westerhof
    Jul 19, 2015 at 10:35 am
    Jul 19, 2015 at 11:27 pm
  • Resizing a tkinter window which contains a frame which contains a button widget, will not change the current size of the window, frame or button as recorded in their height and width attributes (at ...
    NickgeovanisNickgeovanis
    Jul 17, 2015 at 6:53 pm
    Jul 18, 2015 at 5:49 am
  • I need some deg4ree of help w ith the Idle Python Editor. I am using 64 bit win 10 beta preview and every time that I try to bring up Idle I cannot! Now I am using both 32 and 64 bit versions of Idle ...
    Steve BurrusSteve Burrus
    Jul 8, 2015 at 6:07 pm
    Jul 8, 2015 at 10:47 pm
  • I have a line that looks like this: 14 *0 330 *0 760 411|0 0 770g 1544g 117g 1414 computedshopcartdb:103.5% 0 30|0 0|1 19m 97m 1538 ComputedCartRS PRI 09:40:26 I'd like to split this line on multiple ...
    Victor HooiVictor Hooi
    Jul 28, 2015 at 1:55 pm
    Jul 29, 2015 at 2:41 am
  • hi: I'm Needing to get python 2.7.10 to cross compile correctly for an ARM embedded device. When I execute python using shell, it comes out this error:ImportError: No module named site.I have setted ...
    ChenchaoChenchao
    Jul 23, 2015 at 10:25 am
    Jul 27, 2015 at 8:00 pm
  • Every time I try to do a python manage.py migrate I get: django.db.utils.OperationalError: FATAL: password authentication failed for user "postgres" FATAL: password authentication failed for user ...
    Gary RoachGary Roach
    Jul 15, 2015 at 5:13 pm
    Jul 24, 2015 at 8:50 pm
  • Morning- With python 2.7.5, pygtk 2.24, gtk 2.24: The following snippet successfully sets the line_width but not the foreground color, and I can't figure-out why. The color human-name and the result ...
    NickgeovanisNickgeovanis
    Jul 7, 2015 at 1:57 pm
    Jul 10, 2015 at 11:06 pm
  • I am using Spyder Python 2.7. I'm running this sample code. import scipy as sp cashflows=[50,40,20,10,50] npv=sp.npv(0.1,cashflows) round(npv,2) Now, I'm trying to get the NPV, and I don't see any ...
    Ryguy7272Ryguy7272
    Jul 29, 2015 at 1:58 pm
    Jul 30, 2015 at 2:18 pm
  • Of course, computing 42**1000000 is not free: # ------------------ import time a=time.clock() N00000 42**N b=time.clock() print("CPU TIME :", b - a) # ------------------ ...
    CandideCandide
    Jul 24, 2015 at 8:54 pm
    Jul 26, 2015 at 4:52 am
  • Hi, Quick question: why does str have both index() and find(), while list only has index()? Is there a reason for that, or is it just an historical accident? Best regards, Roel -- The saddest aspect ...
    Roel SchroevenRoel Schroeven
    Jul 13, 2015 at 4:56 pm
    Jul 14, 2015 at 8:20 am
  • This question is not technical. I know that there is no 'uninstall' Option in a setup.py. I know this discussions and workarounds for that problem, too ...
    C BuhtzC Buhtz
    Jul 5, 2015 at 9:04 am
    Jul 7, 2015 at 9:09 pm
  • I have windows 8 running on my computer and I think I downloaded python 2 and 3 simultaneously or I think my computer has built in python 2 and I downloaded python 3. And now when I ran my code in ...
    JohnJohn
    Jul 29, 2015 at 7:20 am
    Aug 2, 2015 at 4:32 am
  • If I in a cmd-shell (actually it is 4NT), do: c: py -3 -V & python3 -V I get: Requested Python version (3) not installed << ! from py -3 -V Python 3.5.0b2 << ! from the 2nd cmd. What nonsense is ...
    ElChinoElChino
    Jul 30, 2015 at 7:03 am
    Jul 31, 2015 at 4:30 pm
  • 5

    Hi

    Hi. I recently changed my path to be a programmer so I decided to learn python. I downloaded files(Python 2.7.10 - 2015-05-23 <https://www.python.org/downloads/release/python-2710/ ) to setup on your ...
    김지훈김지훈
    Jul 25, 2015 at 5:30 am
    Jul 26, 2015 at 7:46 am
  • I have code like: if (condition): do_something_needing_cleanup code_executed_unconditionally <cleanup has to happen here if required, even if above did return, continue or exception Now, how can I ...
    Neal BeckerNeal Becker
    Jul 24, 2015 at 2:57 pm
    Jul 24, 2015 at 8:44 pm
  • Given a set of arrays within an array how do I find the arrays with the minimum values based on two elements/columns in the array? Those two elements/columns are the destination zip code and ...
    Robert DavisRobert Davis
    Jul 22, 2015 at 10:54 pm
    Jul 24, 2015 at 1:17 pm
Group Navigation
period‹ prev | Jul 2015 | next ›
Group Overview
grouppython-list @
categoriespython
discussions176
posts1,440
users252
websitepython.org

252 users for July 2015

Chris Angelico: 148 posts Mark Lawrence: 86 posts Laura Creighton: 72 posts Terry Reedy: 64 posts Marko Rauhamaa: 49 posts Steven D'Aprano: 49 posts Ian Kelly: 37 posts Rustom Mody: 37 posts Rick Johnson: 36 posts Grant Edwards: 29 posts Antoon Pardon: 28 posts MRAB: 23 posts Michael Torrie: 22 posts Dieter: 21 posts Paul Rubin: 19 posts Gregory Ewing: 17 posts Ryguy7272: 15 posts Ben Finney: 14 posts Steven D'Aprano: 14 posts Cameron Simpson: 13 posts
show more
Archives