Search Discussions

209 discussions - 1,618 posts

  • Coworker takes PEP8 as gospel and uses 4 spaces to indent. I prefer tabs. Boss want's us to unify. The sole thing you get with spaces as far as I can tell, is that someone loading the code into ...
    Jul 3, 2014 at 5:31 pm
    Jul 9, 2014 at 8:19 am
  • Most people don't need to deal with NaN's in Python at all, fortunately. They just don't appear in normal computation, because the interpreter raises an exception instead. It happens in my work I ...
    Anders J. MunchAnders J. Munch
    Jul 8, 2014 at 2:53 pm
    Jul 18, 2014 at 7:49 pm
  • Are there any circumstances where merely *opening* a file (before reading it) can raise EOFError? -- Steven
    Steven D'ApranoSteven D'Aprano
    Jul 7, 2014 at 3:20 am
    Jul 10, 2014 at 7:40 pm
  • Given the ongoing hub-bub about Google Groups and some recent long threads where I *really* wanted to be able to mute/ignore certain individuals/subjects... I started looking into other choices for ...
    Jul 18, 2014 at 7:10 pm
    Jul 24, 2014 at 9:58 am
  • ============================================================ BUG 1: FileDialog Duplicity: ============================================================ If you open the IDLE application (either ...
    Rick JohnsonRick Johnson
    Jul 20, 2014 at 9:14 pm
    Aug 19, 2014 at 1:10 pm
  • At the moment, Python has two (in)equality operators, == and != which call __eq__ and __ne__ methods. Some problems with those: * Many people expect == to always be reflexive (that is, x == x for ...
    Steven D'ApranoSteven D'Aprano
    Jul 9, 2014 at 7:00 am
    Jul 13, 2014 at 4:48 am
  • I am exploring the idea of creating my next desktop GUI project in Python and would like a little advice from you folks about a couple of requirements. My requirements will be: 1. Needs to be ...
    Noble BellNoble Bell
    Jul 24, 2014 at 3:57 pm
    Jul 29, 2014 at 7:47 pm
  • Hi, This Question may sound lame ,but I am searching for .Net Like Gui Builder for Python. I tried PyQt Designer' and 'Glade', No doubt its great but it created only interface. I have to code all the ...
    Jul 25, 2014 at 2:55 pm
    Jul 28, 2014 at 10:14 am
  • Hi, I learn Python function call on tutorial. There is a link on this subject. http://robertheaton.com/2014/02/09/pythons-pass-by-object-reference-as-explained-by-philip-k-dick/ Although it explains ...
    Jul 22, 2014 at 7:04 pm
    Jul 25, 2014 at 5:20 am
  • So... this is a fairly general / hypothetical question, and I'm more looking for direction than specifics - though it may be useful as well. I need to create a particular application for ...
    Monte MilanukMonte Milanuk
    Jul 21, 2014 at 4:07 pm
    Jul 23, 2014 at 3:38 pm
  • Hi all This is not important, but I would appreciate it if someone could explain the following, run from cmd.exe on Windows Server 2003 - C:\ python Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, ...
    Frank MillmanFrank Millman
    Jul 22, 2014 at 6:18 am
    Jul 23, 2014 at 7:35 am
  • I'm looking for a programmatic way to get a list of all Python modules and packages. Not just those already imported, but all those which *could* be imported. I have a quick-and-dirty function which ...
    Steven D'ApranoSteven D'Aprano
    Jul 30, 2014 at 7:43 am
    Aug 3, 2014 at 1:38 pm
  • Ok I would say I am almost a intermediate python programer. I have made 2 programs(with GUI). And basically they are quite boring(a text editor and calculator). I love programming but i am lost of ...
    Nicholas CannonNicholas Cannon
    Jul 17, 2014 at 9:59 am
    Jul 18, 2014 at 3:42 pm
  • pedro at microboard:~$ /usr/bin/python3 Python 3.3.2+ (default, Feb 28 2014, 00:52:16) [GCC 4.8.1] on linux Type "help", "copyright", "credits" or "license" for more information. 0.050000000000000044 ...
    Pedro IzecksohnPedro Izecksohn
    Jul 1, 2014 at 9:17 pm
    Jul 3, 2014 at 11:17 am
  • Hi, I type the following sample codes on Python, but it echoes differently. Regular expressions are compiled into pattern objects, which have methods for various operations such as searching for ...
    Jul 6, 2014 at 12:13 pm
    Jul 6, 2014 at 8:42 pm
  • We are using Python in a large setup. Individual users are running Debian machines. When I want to install/upgrade Python for all users, I really want to do it centrally rather than every user having ...
    Jul 22, 2014 at 8:49 pm
    Jul 24, 2014 at 3:40 am
  • Hi, I just begin to learn Python. I do not see the usefulness of '*' in its description below: The first metacharacter for repeating things that we'll look at is *. * doesn't match the literal ...
    Jul 6, 2014 at 11:51 am
    Jul 7, 2014 at 9:50 pm
  • My coding is slowly (*) progress at the moment. Looking at my more or less horrible efforts so far one (well that's understatement) questions pops up. How do you pass data from one function to many? ...
    Martin SMartin S
    Jul 24, 2014 at 6:36 am
    Jul 30, 2014 at 12:09 pm
  • I have a python cx_Oracle script that does a delete from a table. Usually this takes well under 1 second. But sometimes it takes 1 to 2 minutes. I wanted to monitor that delete and if it's taking too ...
    Larry MartellLarry Martell
    Jul 17, 2014 at 4:26 pm
    Jul 17, 2014 at 7:01 pm
  • Hi Pythonistas I often heard people mention use help(ob) as a way of documentation look up. Personally I seldom/never do that. My normal workflow is use ipython, obj? or obj?? for quick look up or ...
    Shiyao MaShiyao Ma
    Jul 6, 2014 at 4:36 pm
    Jul 7, 2014 at 11:36 am
  • Ok so i am trying to learn this and i do not understand some of it. I also tried to searched the web but i couldnt find any answers. 1. I dont understand when i will need to use a function that ...
    Jerry luJerry lu
    Jul 19, 2014 at 10:52 am
    Jul 21, 2014 at 7:45 am
  • Can you all stop already with the non python US bashing? Please? Deb in WA, USA Protect your computer files with professional cloud backup. Get PCRx Backup and upload unlimited files automatically ...
    Deb WyattDeb Wyatt
    Jul 16, 2014 at 5:32 pm
    Jul 17, 2014 at 2:13 pm
  • Hi, This example is from the link: https://wiki.python.org/moin/RegularExpression I have thought about it quite a while without a clue yet. I notice that it uses double quote ", in contrast to ' ...
    Jul 10, 2014 at 3:37 pm
    Jul 11, 2014 at 3:18 pm
  • I gather that Python is compiled with Windows Studio 2008. Unfortunately, the MS Download link points to a Studio 2010 advertising .ppx Could someone point to an alternative please? Colin W. PS I ...
    Colin J. WilliamsColin J. Williams
    Jul 28, 2014 at 2:40 pm
    Jul 29, 2014 at 8:05 pm
  • Hi, I have read a lot about Python, but it still has a problem now on a simple exercise. For example, I want to generate a sine curve. First, I get a time sequence: index=range(100) I import math ...
    Jul 24, 2014 at 12:53 pm
    Jul 26, 2014 at 2:17 am
  • I have some code which sets up a logger instance, then installs it as sys.excepthook to capture any uncaught exceptions: import logging import logging.handlers import sys FACILITY = ...
    Steven D'ApranoSteven D'Aprano
    Jul 23, 2014 at 7:14 am
    Jul 24, 2014 at 10:20 am
  • Hello, Pardon me for not using the proper Python language terms, but I hope that people can still understand the question: The problem: I'm writing a large Python program and I have a bunch of ...
    Catherine M MoroneyCatherine M Moroney
    Jul 14, 2014 at 10:24 pm
    Jul 17, 2014 at 4:43 am
  • Cut a long story short... I'm trying to debug a Tkinter app written in Python. The author of this app designed it as a maze of twisty dependencies, all alike, and his idea of source control was to ...
    Steven D'ApranoSteven D'Aprano
    Jul 7, 2014 at 7:57 am
    Jul 7, 2014 at 2:25 pm
  • i work in a group of developers (15 or so) who are located globally. I would like to know what modules everyone is uses if I ever have to upgrade my python. Is there mechanism which will let me see ...
    Jul 1, 2014 at 10:38 am
    Jul 4, 2014 at 5:10 pm
  • What I am trying to do is to reformat a csv file into something more usable. currently the file has no headers, multiple lines with varying columns that are not related. This is a sample ...
    Jul 1, 2014 at 2:04 pm
    Jul 4, 2014 at 1:24 pm
  • Hi, I read web tutorial at: http://nedbatchelder.com/blog/201308/names_and_values_making_a_game_board.html I enter the example lines of that website: import pprint board = [ [0]*8 ] * 8 pprint(board) ...
    Jul 22, 2014 at 9:42 pm
    Aug 3, 2014 at 10:49 pm
  • Hello all, I downloaded some code accompanying the book "Programming the Semantic Web." This question is not Semantic Web related and I doubt that one needs to know anything about the Semantic Web to ...
    Bruce WhealtonBruce Whealton
    Jul 26, 2014 at 12:06 am
    Jul 29, 2014 at 12:57 am
  • I have this snippet in my web application. Question is why doesn't the stupid thing loop ten times? It loops exactly 1 time. # Reset counter counter = 0 while counter <= 10: #if test != '' ...
    Martin SMartin S
    Jul 27, 2014 at 5:53 pm
    Jul 28, 2014 at 7:54 am
  • Greetings, I typically write a Python 2.7 string function in my library like this: def getCompletedTime(start, end): return "Time completed:", str(end - start) And called it like this: print ...
    C.D. ReimerC.D. Reimer
    Jul 19, 2014 at 5:38 pm
    Jul 20, 2014 at 1:41 am
  • Hello! The condensed version of the question would probably be: How does one deal with multiple interpreters and one package where you want to try some changes? The background: I made a trivial ...
    Joep van DelftJoep van Delft
    Jul 17, 2014 at 3:32 pm
    Jul 18, 2014 at 2:42 am
  • I'm trying to write a boolean function that takes two Mytime objects, t1 and t2 as arguments, and returns True if the object falls inbetween the two times. This is a question from the How to Think ...
    Jul 2, 2014 at 7:20 pm
    Jul 3, 2014 at 4:23 pm
  • I am mentoring a GSOC student, Saimadhav Heblikar, who is working on adding the following feature to Idle: submit the editor text to an external program, such as pyflakes, and display the result in ...
    Terry ReedyTerry Reedy
    Jul 1, 2014 at 9:05 pm
    Jul 3, 2014 at 9:22 am
  • Hello, I am a Ruby developer and I want to program in Python. I know how to do simple things like create classes, methods, variables and all the basics. I want to know more. I want to know what is ...
    Guirec CorbelGuirec Corbel
    Jul 30, 2014 at 8:20 pm
    Aug 1, 2014 at 12:35 pm
  • A little known feature of Python: you can wrap your Python application in a zip file and distribute it as a single file. The trick to make it runnable is to put your main function inside a file ...
    Steven D'ApranoSteven D'Aprano
    Jul 23, 2014 at 4:23 am
    Jul 24, 2014 at 12:19 pm
  • I have some code that reads files in a leafnode2 news spool & needs to check for new files periodically. The full paths are all like '/var/spool/news/message.id/345/<123456 at example.com ' with a ...
    Adam FunkAdam Funk
    Jul 1, 2014 at 11:26 am
    Jul 2, 2014 at 12:30 pm
  • This is only Python-related because the package in question (lockfile at PyPI) is written in Python and hosted (at least in part) on PyPI. I have not had any interest in maintaining this package for ...
    Skip MontanaroSkip Montanaro
    Jul 1, 2014 at 5:30 pm
    Jul 2, 2014 at 4:57 am
  • Hi, I want to write some test code. Some on-line tutorials have such codes: from unnecessary_math import multiply When it runs, it has errors: Traceback (most recent call last): File "<interactive ...
    Jul 24, 2014 at 5:33 pm
    Jul 24, 2014 at 6:25 pm
  • Hi, The example in question is https://docs.python.org/3/library/asyncio-task.html#example-hello-world-coroutine. I'd like to learn the purpose of the statement "yield from asyncio.sleep(2)" in that ...
    Saimadhav HeblikarSaimadhav Heblikar
    Jul 23, 2014 at 10:43 am
    Jul 24, 2014 at 5:07 pm
  • The version given on Python.org is "Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AMD64)] on win32". This question is prompted by difficulties installing PyScripter ...
    Jul 18, 2014 at 1:29 pm
    Jul 19, 2014 at 9:24 am
  • Hello! I'm @dtvd88 on Twitter and very new here. I read from python.org that anything Python-related can be discussed, and not sure if I can share my OSS package here to get feedback or not ? I just ...
    Jul 13, 2014 at 6:00 pm
    Jul 16, 2014 at 3:30 am
  • Hello, I have working code - but looking for better/improved code. Better coding practices, better algorithm :) Problem: Given sequence of increasing integers, print blocks of consecutive integers ...
    Jul 9, 2014 at 2:27 pm
    Jul 10, 2014 at 6:38 pm
  • I run python33 scrupt SVtxt.py from Windows command line I want to print out the file contents to stdout. File contents: "Vi kan inte l?ngre underordna den vinster..." Python script sentences i have ...
    Jul 6, 2014 at 8:45 am
    Jul 7, 2014 at 6:58 am
  • Hi, What does "return Wrapper" do in the following piece of code? Which method does it invoke? I mean "return Wrapper" invokes __init__ method? def Tracer(aClass): class Wrapper: def __init__(self, ...
    Satish MLSatish ML
    Jul 26, 2014 at 6:29 pm
    Jul 26, 2014 at 7:21 pm
  • Just quickly i am quite stuck on OOP and i really need like a good video and i cant find any. If anyone knows any please link it i really need it because i know OOP is important.
    Nicholas CannonNicholas Cannon
    Jul 18, 2014 at 11:40 am
    Jul 19, 2014 at 4:48 pm
  • Hi there, While reading up on a previous thread 'open() and EOFError' I saw the following (with minor changes to help make my question clearer) block suggested as a canonical way to open files and do ...
    Alex BurkeAlex Burke
    Jul 7, 2014 at 11:49 pm
    Jul 9, 2014 at 7:59 pm
Group Navigation
period‹ prev | Jul 2014 | next ›
Group Overview
grouppython-list @

240 users for July 2014

Chris Angelico: 228 posts Mark Lawrence: 76 posts Steven D'Aprano: 62 posts Terry Reedy: 56 posts Fl: 49 posts Marko Rauhamaa: 48 posts Steven D'Aprano: 47 posts Ian Kelly: 44 posts Rick Johnson: 44 posts Roy Smith: 41 posts Wxjmfauth: 27 posts MRAB: 26 posts Shieldfire: 24 posts Grant Edwards: 21 posts Peter Otten: 20 posts Ethan Furman: 19 posts Ben Finney: 18 posts Gregory Ewing: 17 posts Nicholas Cannon: 17 posts Anders J. Munch: 16 posts
show more