Search Discussions
-
108
Why Python 3?
Hello Everyone, So I've been working with Python for a while and I'm starting to take on more and more serious projects with it. I've been reading a lot about Python 2 vs Python 3 and the community ...Anthony Papillion
Apr 19, 2014 at 3:28 am
May 8, 2014 at 6:04 am -
104
threading
Hello, I've been using threading library to run some experiments parallel. There is no message passing between my threads but still it messes up somehow. The results are different than running it ...Onder Hazaroglu
Apr 7, 2014 at 2:54 am
Apr 11, 2014 at 7:27 pm -
I'm using Python 2.7 I have a bunch of floating point values. For example, here's a few (printed as reprs): 38.0 41.2586 40.75280000000001 49.25 33.795199999999994 36.837199999999996 34.1489 45.5 ...
Roy Smith
Apr 28, 2014 at 4:00 pm
May 8, 2014 at 7:58 pm -
http://blog.startifact.com/posts/the-call-of-python-28.html so in response to the last line, who *IS* going to do all of the required work? -- My fellow Pythonistas, ask not what our language can do ...
Mark Lawrence
Apr 14, 2014 at 12:56 pm
Apr 16, 2014 at 8:42 am -
Dear List Recently I was requested to teach python to a group of students of GIS (Geographic Information Systems). Their knowledge of programming is zero. The objective is to enable them to write ...
Lalitha Prasad K
Apr 10, 2014 at 3:54 pm
Apr 14, 2014 at 7:32 am -
I'm sure there will be a substantial amount of arrogance perceived from this question, but frankly I don't think that I have anything to learn from my co-workers, which saddens me because I really ...
James Brewer
Apr 8, 2014 at 7:07 am
Apr 13, 2014 at 2:04 pm -
Hi all, Does python has any good obfuscate? Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. I googled for a while but ...
Wesley
Apr 11, 2014 at 1:29 am
Apr 13, 2014 at 4:58 am -
Hi all. I would proposeto you all a switch-case syntax for Python. I already read PEP 3103 and I'm not completely satisfied by any of the proposed solutions. This is my proposal: switch_stmt ::= ...
Lucas Malor
Apr 2, 2014 at 2:53 pm
Apr 10, 2014 at 9:15 pm -
Personally, I use the sequence of one-line comments. But, hey, Guido [1] himself likes the triple-quoted string as comment feature [2], so feel free to use it yourself if you like. -- ~Ethan~ [1] ...
Ethan Furman
Apr 1, 2014 at 12:30 am
Apr 1, 2014 at 8:56 am -
I frequently use this pattern to keep track of incoming data (for example, to sum up sales of a specific brand): ===================================== # read a brand record from a db ... # keep track ...
Giuliano Bertoletti
Apr 6, 2014 at 7:44 am
Apr 9, 2014 at 9:51 am -
I am workin on a solaris 11 machine. The python version is 2.7.6 path to python is /opt/local/bin/python. These are the 15 first lines of the script: #! /opt/local/bin/python class vslice(object) ...
Antoon Pardon
Apr 22, 2014 at 10:29 am
Apr 23, 2014 at 1:42 am -
Today in Montreal Canada, there was a Language Summit to discuss the future of Python. Some highlights: PyPy is only three bug fixes away from shipping support for Python 3.2! Guido confirms that ...
Steven D'Aprano
Apr 10, 2014 at 12:07 pm
Apr 14, 2014 at 8:03 am -
Hello, I am currently writting a program called subuser(subuser.org), which is written as classically imperative code. Subuser is, essentially, a package manager. It installs and updates programs ...
Tim Thelion
Apr 23, 2014 at 8:57 pm
Apr 25, 2014 at 5:21 pm -
For anyone in the unenviable position of needing [1] to run Python scripts with the setuid bit on, there is an suid-python wrapper [2] that makes this possible. When I compiled it I was given a ...
Ethan Furman
Apr 14, 2014 at 9:13 pm
Apr 15, 2014 at 3:05 pm -
Hi, all. I've just started to learn Python (I'm reading Mark Lutz's 'Learning Python' from O'Reilly) & I'm confused as to this part: ' 0.1 + 0.1 + 0.1 - 0.3 5.55111.....' Using 'import Decimal' you ...
Phil Dobbin
Apr 15, 2014 at 6:18 pm
Apr 16, 2014 at 6:03 am -
Hi All, I'm in need of some encoding/decoding help for a situation for a Windows Path that contains Unicode characters in it. ---- CODE ---- import os.path import codecs import sys All_Tests = ...
Steve
Apr 2, 2014 at 11:27 pm
Apr 4, 2014 at 7:07 am -
I wrote the following code that works in Python 2.7 that takes the variables passed to the function into a dictionary. The following call: strA = 'a' intA = 1 dctA = makeDict(strA, intA) produces the ...
Andrew Konstantaras
Apr 26, 2014 at 5:50 am
Apr 28, 2014 at 10:41 pm -
What is the proper way to delete selected items during iteration of a map? What I want to do is: for (k, v) in m.items(): if f(k): # do some processing of v and save result elsewhere del m[k] But ...
Charles Hixson
Apr 25, 2014 at 5:53 pm
Apr 28, 2014 at 10:48 am -
I find this programming pattern to be useful... but can it cause problems? Python 3.3.2+ (default, Feb 28 2014, 00:52:16) [GCC 4.8.1] on linux Type "help", "copyright", "credits" or "license" for ...
John Ladasky
Apr 6, 2014 at 6:53 am
Apr 8, 2014 at 2:53 am -
Hello Everyone, I'm working with historical earthquake data and I have a tab delimited file. I'm using the csv module with the \t delimiter to denote it's tab separated and it's working fine. I've ...
Anthony Papillion
Apr 6, 2014 at 3:52 am
Apr 6, 2014 at 12:42 pm -
Hello, I am taking a cryptography class and am having a tough time with an assignment similar to this. Given plain text message 1 and cipher 1 compute cipher 2 for message 2 Work flow will be: - ...
Dave em
Apr 4, 2014 at 2:10 am
Apr 4, 2014 at 11:00 pm -
I have a long text, which should be splitted into some sections, where all sections have a pattern like following with different KEY. And the /n/r can not be used to split I don't know whether this ...
Oyster
Apr 25, 2014 at 1:07 pm
Apr 27, 2014 at 2:49 am -
The code attached below produces in one of the two IMHO similar cases (excepting the sizes of the lists involved) MemoryError. Could experts kindly tell why that's so and whether there is any ...
Mok-Kong Shen
Apr 14, 2014 at 1:46 am
Apr 15, 2014 at 12:08 pm -
How to extract files from U-Boot image file, LZMA-compressed? Is there a Python script that can do this properly?
Trewio
Apr 9, 2014 at 4:06 pm
Apr 11, 2014 at 4:02 pm -
If I use the interpreter I get: Python 3.3.5 (default, Apr 12 2014, 23:34:20) [GCC 4.6.3] on linux Type "help", "copyright", "credits" or "license" for more information. <module 'mptt' from ...
Egon Frerich
Apr 16, 2014 at 10:38 am
Apr 19, 2014 at 2:55 pm -
I have a big hairy data structure which is a tree of nested dicts. I have a sequence of strings which represents a path through the tree. Different leaves in the tree will be at different depths ...
Roy Smith
Apr 2, 2014 at 5:58 pm
Apr 3, 2014 at 4:46 pm -
hi all, i have simple programming task: [quot] If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all ...
Ivan Ivanivich
Apr 20, 2014 at 6:43 pm
Apr 21, 2014 at 1:43 pm -
Hi, Anyone knows open source streaming media server written by Python? I am trying to setup a streaming media server in python, wanna find an existing one and have a look. Thanks. Wesley
Wesley
Apr 5, 2014 at 10:11 am
Apr 7, 2014 at 3:32 am -
Normally my Python development is done on FreeBSD and Linux. I know that on *ix I simply have to make foo.py executable (the shebang line is present, of course) to make it runnable. For my son's ...
Walter Hurry
Apr 3, 2014 at 5:06 pm
Apr 5, 2014 at 9:57 pm -
Hi all, So I was reading about default values for functions and spied this: Important warning: The default value is evaluated only once. This makes a difference when the default is a mutable object ...
Fbicknel
Apr 3, 2014 at 6:49 pm
Apr 5, 2014 at 2:21 am -
I've run into a threading error in some code when I run it on MacOS that works flawlessly on a *BSD system running the same version of python. I'm running the python 2.7.6 for MacOS distribution from ...
Matthew Pounsett
Apr 25, 2014 at 1:43 pm
Apr 28, 2014 at 11:00 pm -
Whilst translating some javascript code I find that this A=re.compile('.{1,+3}').findall(p) doesn't give any error, but doesn't manage to find the strings in p that I want len(A)== 0, the correct ...
Robin Becker
Apr 25, 2014 at 4:30 pm
Apr 28, 2014 at 1:06 pm -
There are some basics about Python objects I don't understand. Consider this snippet: ... ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', ...
Pavel Volkov
Apr 23, 2014 at 5:39 am
Apr 23, 2014 at 8:25 pm -
Hi, I have read the book 'a byte of python' and now I want to read another book. But I just get confused about which one to read next. There is a book list below? 1, pro python 2, python algorithms ...
Lee
Apr 21, 2014 at 2:13 pm
Apr 21, 2014 at 9:32 pm -
Hi, I am trying to understand how to get the TeX "\times" symbol to work. It is in the title() string in the code I pasted in. The "\circ" symbol seems fine, by comparison. "\times" ends up as "imes" ...
Gwhite
Apr 18, 2014 at 4:18 pm
Apr 19, 2014 at 2:26 pm -
Hi guys, (Python 2.7, Windows 7 64-bit) Here's a bit of code stress-testing a method addUpdate_special_to_cart. The test adds and updates random "specials" (multiple products bundled at an ...
Nick Mellor
Apr 15, 2014 at 3:54 pm
Apr 16, 2014 at 4:32 am -
Hi All I am probably doing something wrong but don't know what Any help would great Code below the calc_total does not return a estimated_total_weight if add the estimated_total_weight the rest of ...
Anthony Smith
Apr 14, 2014 at 7:43 am
Apr 15, 2014 at 8:44 am -
Connecting to Exchange server fails like this: File "/usr/lib64/python2.7/imaplib.py", line 1148, in __init__ IMAP4.__init__(self, host, port) SSLError: [Errno 1] _ssl.c:1419: error:1408F10B:SSL ...
Grant Edwards
Apr 9, 2014 at 8:12 pm
Apr 10, 2014 at 7:57 pm -
I've probably used the wrong term - I'm thinking of what I do when writing PLC code - so I can't find how to do this in my reference books. This is part of a project I'm working on with a Raspberry ...
Grawburg
Apr 8, 2014 at 8:09 pm
Apr 9, 2014 at 3:43 pm -
Hi, ALL, I need to perform a subj. Looking at the Google I found following thread with explanation: http://stackoverflow.com/questions/36139/how-do-i-sort-a-list-of-strings-in-python However, doing ...
Igor Korot
Apr 27, 2014 at 9:38 am
Apr 29, 2014 at 6:02 am -
Seems the soap list is a little quiet and the moderator is mia regardless. Are there many soap users on this list familiar with Spyne or does anyone know the most optimal place to post such ...
Joseph L. Casale
Apr 17, 2014 at 5:58 pm
Apr 28, 2014 at 9:59 pm -
['c', 'd'] ['a', 'b', 'c', ['c', 'd'], 'e'] ['a', 'b', 'c', 'd', ['c', 'd'], 'e'] ['a', 'b', 'c', 'd', 'e'] maybe there is a more smart way to do. An HTML attachment was scrubbed... URL ...
Length power
Apr 10, 2014 at 5:14 am
Apr 10, 2014 at 5:36 pm -
How can I get Python to represent a value of a function in degrees, i.e., with values between 0 and 360, by taking the (non-integer) function expression mod 360? That is, I have a function with ...
Kim Plofker
Apr 10, 2014 at 4:32 am
Apr 10, 2014 at 7:25 am -
April Fools =D Bye, Skybuck =D
Skybuck Flying
Apr 1, 2014 at 8:20 am
Apr 2, 2014 at 2:20 pm -
I have built and installed Python on AIX as well as installed a stack of Python tools. The version I installed is 2.7.2. Everything is working fine but I want to install Python 2.7.6 and the tool ...
Brent S. Elmer Ph.D.
Apr 29, 2014 at 3:28 pm
Apr 29, 2014 at 7:57 pm -
['', 'x1', 'x2', 'x3', ' '] ok ok ok [None, None, None] i understand there are three 'ok' in the output,but why i have the output of [None, None, None] An HTML attachment was scrubbed... URL ...
Length power
Apr 10, 2014 at 1:54 pm
Apr 10, 2014 at 6:00 pm -
Hi, In Pylint you can change the spacing multiplier from 4 spaces to two in its pylintrc, but for the life of me I cannot find a way to do this with the flake8 / pep8 utilities. I want to avoid ...
Dennis
Apr 8, 2014 at 3:06 am
Apr 8, 2014 at 2:06 pm -
I have a numpy array consisting of 1s and zeros for representing binary numbers: e.g. array([ 1., 0., 1., 0.]) I wish the array to be in the form 1010, so it can be manipulated. I do not want to use ...
Mboyd02255
Apr 28, 2014 at 1:04 pm
May 1, 2014 at 1:26 pm -
I am having a problem building a connect string for pyodbc. It works when everything is hard coded, but if I build the connect string it fails. This works: pyodbc.connect('DRIVER=FreeTDS;' ...
Larry Martell
Apr 30, 2014 at 12:57 am
Apr 30, 2014 at 1:25 am
Group Overview
group | python-list |
categories | python |
discussions | 160 |
posts | 1,285 |
users | 225 |
website | python.org |
225 users for April 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)