FAQ

Search Discussions

160 discussions - 1,285 posts

  • 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 PapillionAnthony Papillion
    Apr 19, 2014 at 3:28 am
    May 8, 2014 at 6:04 am
  • 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 HazarogluOnder 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 SmithRoy 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 LawrenceMark Lawrence
    Apr 14, 2014 at 12:56 pm
    Apr 16, 2014 at 8:42 am
  • Let see how Python is ready for the next Unicode version (Unicode 7.0.0.Beta). [1.4027834829454946, 1.38714224331963, 1.3822586635296261] [5.462776291480395, 5.4479432055423445, 5.447874284053398] ...
    WxjmfauthWxjmfauth
    Apr 29, 2014 at 5:37 pm
    May 3, 2014 at 2:19 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 KLalitha 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 BrewerJames 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 ...
    WesleyWesley
    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 MalorLucas 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 FurmanEthan 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 BertolettiGiuliano 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 PardonAntoon 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'ApranoSteven 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 ThelionTim 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 FurmanEthan 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 DobbinPhil 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 = ...
    SteveSteve
    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 KonstantarasAndrew 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 HixsonCharles 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 LadaskyJohn 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 PapillionAnthony 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 emDave 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 ...
    OysterOyster
    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 ShenMok-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?
    TrewioTrewio
    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 FrerichEgon 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 SmithRoy 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 IvanivichIvan 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
    WesleyWesley
    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 HurryWalter 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 ...
    FbicknelFbicknel
    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 PounsettMatthew 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 BeckerRobin 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 VolkovPavel 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 ...
    LeeLee
    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" ...
    GwhiteGwhite
    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 MellorNick 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 SmithAnthony 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 EdwardsGrant 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 ...
    GrawburgGrawburg
    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 KorotIgor 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. CasaleJoseph 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 powerLength 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 PlofkerKim Plofker
    Apr 10, 2014 at 4:32 am
    Apr 10, 2014 at 7:25 am
  • April Fools =D Bye, Skybuck =D
    Skybuck FlyingSkybuck 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.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 powerLength 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 ...
    DennisDennis
    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 ...
    Mboyd02255Mboyd02255
    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 MartellLarry Martell
    Apr 30, 2014 at 12:57 am
    Apr 30, 2014 at 1:25 am
Group Navigation
period‹ prev | Apr 2014 | next ›
Group Overview
grouppython-list @
categoriespython
discussions160
posts1,285
users225
websitepython.org

225 users for April 2014

Chris Angelico: 200 posts Steven D'Aprano: 58 posts Rustom Mody: 54 posts Terry Reedy: 52 posts Ian Kelly: 45 posts Mark Lawrence: 43 posts Mark H Harris: 42 posts Marko Rauhamaa: 36 posts Sturla Molden: 33 posts Roy Smith: 29 posts Gregory Ewing: 25 posts Steven D'Aprano: 25 posts Ben Finney: 21 posts Tim Chase: 21 posts Peter Otten: 20 posts Wxjmfauth: 18 posts Ethan Furman: 16 posts Wesley: 16 posts Dave Angel: 15 posts Grant Edwards: 15 posts
show more
Archives