Search Discussions
-
I get the impression that most Pythonistas aren't as habituated with assert statements as I am. Is that just a misimpression on my part? If not, is there a good reason to assert less with Python than ...
Peter Cacioppi
Nov 11, 2014 at 7:40 pm
Nov 29, 2014 at 10:33 pm -
Hello, My application is using gettext module to do the translation stuff. Translated messages are unicode on both python 2 and 3 (with python2.7 I had to explicitely asked for unicode). A problem ...
Francis Moreau
Nov 20, 2014 at 9:40 am
Nov 25, 2014 at 2:26 pm -
Python's attempt to solve the "external dependencies problem" has yet to produce the results that many people, including myself, would like. Actually, Python is not alone in this deficiency, no, ...
Rick Johnson
Nov 16, 2014 at 5:01 am
Nov 24, 2014 at 10:34 pm -
I have taught Python to several students over the past few years. As I have worked with my students, I find myself bothered by the programming idiom that we use to determine whether a module is being ...
John Ladasky
Nov 12, 2014 at 9:02 pm
Dec 2, 2014 at 8:47 pm -
A problem for your consideration: We are given a tuple of delimiter string pairs to quote or comment text, possibly over multiple lines. Something like this: delims = (('"', '"'), ("'", "'"), ('#', ...
Tim Daneliuk
Nov 26, 2014 at 12:18 am
Nov 26, 2014 at 8:24 pm -
BASTARDO CRIMINALE ASSASSINO DAVIDE SERRA TWITTER, ALGEBRIS E NAZI LEOPOLDA DI MERDA! LAVA EURO DI MAFIE DI MEZZO MONDO! INFILTRA & UCCIDE IL PD VIA CORROTTO MATTEO RENZI SU ORDINE (E MAZZETTE) DI ...
MICHELE CALZOLARI CREDIT SUISSE ASSOSIM
Nov 25, 2014 at 11:13 am
Jan 17, 2015 at 8:35 pm -
I have this simple code that load any Qt Designer .UI file: from PySide.QtCore import QFile from PySide.QtGui import QApplication from PySide.QtUiTools import QUiLoader def loadui(file_name): loader ...
Juan Christian
Nov 18, 2014 at 12:18 pm
Nov 23, 2014 at 2:15 am -
Hello everyone, I'm a Python beginner and just getting familiar with it. (I need it for my EE B.Sc. project) For the learning purposes I use IDLE and (Learning Python by written by Mark Lutz). Let's ...
Ivan Evstegneev
Nov 5, 2014 at 11:00 am
Nov 7, 2014 at 3:03 pm -
[A complementary info of my previous comment about "Leo 5.0 beta 2" not working] The single (not too buggy) GUI toolkit for CPython [*], which works smoothly, coherently and *SAFELY* is one of the Qt ...
Wxjmfauth
Nov 20, 2014 at 7:59 am
Nov 27, 2014 at 3:19 am -
What do I need to do to make a and b have different values? import random class RPS: throw=random.randrange(3) a=RPS b=RPS print ("a ",a.throw) print ("b ",b.throw) if a.throw == b.throw ...
Seymore4Head
Nov 23, 2014 at 2:47 am
Nov 24, 2014 at 1:48 pm -
This list is for the development _of_ Python, not development _with_ Python. Try asking on Python List. (forwarding...) In 2.7 that would be a classic class, about which I know little. In 3.x you ...
Ethan Furman
Nov 4, 2014 at 6:23 pm
Nov 13, 2014 at 3:28 pm -
I've finally found a use for Python. When, in the course of my genealogy research, I look at census or burial records, I often want to work out a person's date of birth from their age. It's a simple ...
Steve Hayes
Nov 21, 2014 at 8:35 am
Nov 22, 2014 at 5:34 am -
I intend to write in lowest level of computer programming as a hobby. It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code? What is ...
Françai s
Nov 4, 2014 at 4:45 pm
Nov 6, 2014 at 5:24 pm -
I have a PHP app that I want to convert to django. But I want to do it stages. All the heavy lifting is in the PHP code, so first, I want to just use templates and views to generate the HTML, but ...
Larry Martell
Nov 11, 2014 at 3:48 pm
Nov 13, 2014 at 7:41 pm -
And the award for the most gratuitous comments before an import goes to one of my (former) workmates, who wrote this piece of code: # Used for base64-decoding. import base64 # Used for ungzipping ...
Steven D'Aprano
Nov 20, 2014 at 4:58 am
Dec 4, 2014 at 5:12 pm -
This is a continuation of my other topic "How to access Qt components loaded from file", it was getting big and the focus changed completely, the real question there was already answered, and we were ...
Juan Christian
Nov 23, 2014 at 1:44 pm
Nov 28, 2014 at 4:38 pm -
Now, I'm getting these errors: ImportError: cannot import name ... and AttributeError: 'module' object has no attribute ... (what is 'module'?) Is there a way to resolve this without having to ...
Charles T. Smith
Nov 15, 2014 at 10:52 pm
Nov 18, 2014 at 10:58 pm -
I've built a database in SQLite3 to be embedded into a python application using wxPython 2.8.12 and Python 2.7.6. I'm using Sqliteman to manage the database directly and make changes to the structure ...
Llanitedave
Nov 23, 2014 at 2:11 am
Nov 25, 2014 at 6:40 am -
Please help me this assignment is due in an hour. Don't give me hints, just give me the answer because I only want a grade. I'm not actually interested in learning how to program, but I know software ...
Sohcahtoa82
Nov 10, 2014 at 6:56 pm
Nov 14, 2014 at 11:15 am -
Hi Programmers, I have downloaded, installed, and can access the LXMLTreeBuilder/lxml, from Python2.7. however I have also downloaded HTMLTreeBuilder/html5lib but cannot get console to recognize the ...
Simon Evans
Nov 1, 2014 at 2:17 pm
Nov 3, 2014 at 9:42 pm -
I have line 'pythonpythonpyth'. How do I know which word is the foundation line?. Other examples: "pythonpythonpyth" is python "DOLORIUMD" is DOLORIUM "HELLOLHELLO" is HELLOL "thewordword" is ...
Lordvital21
Nov 5, 2014 at 11:58 am
Nov 7, 2014 at 1:42 am -
def __str__(self): s = "Hand contains " for x in self.hand: s = s + str(x) + " " return s This is part of a Hand class. I need a hand for the dealer and a hand for the player. dealer=Hand() ...
Seymore4Head
Nov 28, 2014 at 1:26 am
Dec 4, 2014 at 7:52 pm -
There is an algorithm for calculating the integer square root of any positive integer using only integer operations: def isqrt(n): if n < 0: raise ValueError if n == 0: return 0 bits = n.bit_length() ...
Steven D'Aprano
Nov 1, 2014 at 1:29 am
Nov 26, 2014 at 4:24 pm -
If I create a module with imp.new_module(name), how can I unload it so that all the references contained in it are set to zero and the module is deleted? deleting the reference that is returned ...
Patrick Stinson
Nov 23, 2014 at 6:49 am
Nov 25, 2014 at 6:56 am -
Hello guys, I would like to ask you for some explanations on comprehensions. (Don't be scared, it just some particular example ^_^) I found this little "find prime number" example over the internet ...
Ivan Evstegneev
Nov 23, 2014 at 2:56 pm
Nov 25, 2014 at 12:42 am -
[[...]] The list appears to be ... infinitely nested: True Similar things can be done with non-empty list and dict: [1, [...]] True {0: {...}} True How is this behavior implemented under the hood? ...
Gill Shen
Nov 21, 2014 at 5:54 am
Nov 23, 2014 at 6:39 am -
Hello, I'm walking through an example that goes as follows: from PIL import Image import os for inputfile in filelist outputfile = os.path.splitext(inputfile)[0]+".jpg" if inputfile != outputfile ...
Abdul Abdul
Nov 16, 2014 at 9:32 pm
Nov 21, 2014 at 10:21 am -
i will finish the python course on codecademy soon,i dont konw how to improve my skill and what can i do to use it ,some projects ? should i learn others course ?
Fanhuhuai
Nov 1, 2014 at 3:01 pm
Nov 2, 2014 at 10:12 pm -
I don't understand the following phenomenon. Could someone kindly explain it? Thanks in advance. M. K. Shen ------------------------------------------------- count=5 def test(): print(count) if ...
Mok-Kong Shen
Nov 10, 2014 at 11:07 am
Nov 11, 2014 at 9:04 am -
Hi, I want to generate a unique variable name for list using python. list1=... list2=... . . . listx=... where x is a number. You can remember it from saving a file in a directory. If you have ...
Fatih Güven
Nov 4, 2014 at 11:29 am
Nov 4, 2014 at 5:15 pm -
14
Python IDE.
Can someone suggest a good python IDE.Dvenkatj2eedev
Nov 20, 2014 at 7:01 pm
Nov 22, 2014 at 12:17 am -
Hello, I'm new to Python, and just have a small question, and thought you might have an idea on it. I came across the following example that uses the Python Imaging Library (PIL): from PIL import ...
Abdul Abdul
Nov 16, 2014 at 7:36 pm
Nov 20, 2014 at 4:53 pm -
I am developing a python application as a contractor. I would like to know if someone can provide me with some insight into the problems that then infrastructure team has been having. The scope of ...
Pythonista
Nov 15, 2014 at 3:01 am
Nov 16, 2014 at 10:16 pm -
In the Rosetta code I come across this part of LU-decomposition. def pivotize(m): """Creates the pivoting matrix for m.""" n = len(m) ID = [[float(i == j) for i in xrange(n)] for j in xrange(n)] for ...
Albert van der Horst
Nov 27, 2014 at 5:34 pm
Dec 4, 2014 at 3:47 pm -
Hi all This is a little bit OT for this newsgroup, but I intend to use python for prototyping at least, and I know there are a lot of knowledgeable people using Python in a Network context here... I ...
Jkn
Nov 16, 2014 at 12:02 pm
Nov 17, 2014 at 4:56 pm -
Hi all, I have a feeling that I should solve this by a context manager but since I've never used them I'm not sure what the optimal (in the python sense) solution is. So basically what I do all the ...
Fetchinson .
Nov 28, 2014 at 3:04 pm
Nov 29, 2014 at 8:00 am -
import sys for stream in (sys.stdin, sys.stdout, sys.stderr): print(stream.fileno()) io.UnsupportedOperation: fileno Is there a workaround?
Satishmlmlml
Nov 13, 2014 at 11:48 pm
Nov 16, 2014 at 5:29 am -
Python script that does batch find and replace in txt files Need a python script that opens all .txt files in a folder find replace/delete text and save files. I have text files and I need to perform ...
Syed Khalid
Nov 9, 2014 at 7:58 pm
Nov 11, 2014 at 8:04 pm -
Hello, I came across an example that showed the following: Wxy**2 What do ** mean here? Thanks. An HTML attachment was scrubbed... URL ...
Abdul Abdul
Nov 24, 2014 at 12:33 am
Dec 15, 2014 at 11:31 am -
I'm in the process of developing an automated solution to allow users to quickly set up a Windows box so that it can be used to compile Python extensions and build wheels. While it can obviously be ...
Paul Moore
Nov 7, 2014 at 3:46 pm
Nov 20, 2014 at 9:51 pm -
11
Using map()
I checked my modules with pylint and saw the following warning: W: 25,29: Used builtin function 'map' (bad-builtin) Why is the use of map() discouraged? It' such a useful thing.Pavel Volkov
Nov 16, 2014 at 1:01 pm
Nov 17, 2014 at 6:56 am -
https://github.com/Veek/Python/tree/master/junk/hello doesn't work. I have: hello.c which contains: int hello(void); hello.h To wrap that up, i have: hello.py - _hello (c extension) - pyhello.c - ...
Veek M
Nov 4, 2014 at 9:52 am
Nov 4, 2014 at 6:28 pm -
Just in case that subject line is not perfectly clear: ;) My wife (using a Win7 machine) will be on a web page that has a link to mail somebody. She clicks on it, and it opens the currently installed ...
Ethan Furman
Nov 12, 2014 at 1:04 am
Dec 3, 2014 at 5:09 am -
Hi, I do agree with Raymond H. about the relative merits of cmp= and key= in sort/sorted, but I decided to also not let natural uses of cmp= pass silently. In answering this question, ...
Paddy
Nov 10, 2014 at 6:45 pm
Nov 12, 2014 at 8:09 am -
I am having trouble understanding the Multiprocessing module. I need to run three different files 'Worker1' , 'Worker2', 'Worker3' all at once. Currently I am doing this : from multiprocessing import ...
Anurag
Nov 13, 2014 at 6:07 pm
Nov 24, 2014 at 8:58 pm -
import sys for stream in (sys.stdin, sys.stdout, sys.stderr): print(stream.fileno()) io.UnsupportedOperation: fileno
Satishmlmlml
Nov 13, 2014 at 11:23 pm
Nov 14, 2014 at 11:29 am -
What does zip return in the following piece of code? curs.execute('select * from people') colnames = [desc[0] for desc in curs.description] rowdicts = [] for row in curs.fetchall() ...
Satishmlmlml
Nov 9, 2014 at 10:44 am
Nov 14, 2014 at 11:06 am -
Hi, I need to generate all variants of a 2D array with variable dimension sizes which fit a specific rule. (up to 200*1000) The rules are: - Values are only 0 or 1 - the sum of each line bust be 1 - ...
Robert Voigtländer
Nov 7, 2014 at 3:39 pm
Nov 8, 2014 at 1:10 am -
Hi all I just learned something about database transactions, locking, and DB-API 2.0. I wondered why a PostgreSQL statement was hanging. On investigation, it was waiting to acquire a lock. On further ...
Frank Millman
Nov 27, 2014 at 10:24 am
Nov 28, 2014 at 3:44 pm -
Hi, Here are two programs both executed with Python 2.7 with the enum34 backport and their output. Is this a bug or intended behavior? (It may well be intended to help ensure that the class name is ...
Mark Summerfield
Nov 26, 2014 at 11:29 am
Nov 26, 2014 at 9:16 pm
Group Overview
group | python-list |
categories | python |
discussions | 192 |
posts | 1,600 |
users | 249 |
website | python.org |
249 users for November 2014
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)