FAQ

Search Discussions

267 discussions - 2,089 posts

  • http://lucumr.pocoo.org/2014/1/5/unicode-in-2-and-3/ Please don't shoot the messenger :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark ...
    Mark LawrenceMark Lawrence
    Jan 5, 2014 at 1:14 pm
    Jan 8, 2014 at 11:53 pm
  • http://blog.startifact.com/posts/python-2-gravity.html "A Way Forward - How to go forward then? I think it makes sense to work as hard as possible to lift those Python 2 codebases out of the gravity ...
    Mark LawrenceMark Lawrence
    Jan 6, 2014 at 7:26 pm
    Jan 11, 2014 at 11:14 am
  • Hi, I want to show a code for review but afraid of plagiarism issues. Kindly, suggest how can I post it for review here without masking it visible for public
    Indar kumarIndar kumar
    Jan 18, 2014 at 10:21 pm
    Jan 24, 2014 at 11:42 pm
  • Hi I'm developing a sort of language extension for writing GUI programs called guilang, right now it's written in Lua but I'm considreing Python instead (because it's more tailored to alone ...
    Sergio Tortosa BeneditoSergio Tortosa Benedito
    Jan 15, 2014 at 5:02 pm
    Feb 3, 2014 at 2:17 am
  • Hello, $ python Python 2.7.4 (default, Sep 26 2013, 03:20:26) [GCC 4.7.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. False True True What am I missing here ? T.
    Thibault LangloisThibault Langlois
    Jan 30, 2014 at 11:36 am
    Jan 31, 2014 at 12:32 am
  • I'm writing a linux daemon in python 2.x to process batches of GPS/GIS data and I'm running into something that seems to break the expected program flow in a REALLY BAD WAY. Consider the attached ...
    MeMe
    Jan 27, 2014 at 3:42 am
    Jan 30, 2014 at 9:44 am
  • 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] jmf
    WxjmfauthWxjmfauth
    Jan 12, 2014 at 7:50 am
    Jan 16, 2014 at 9:30 pm
  • Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework problem?
    Roy SmithRoy Smith
    Jan 18, 2014 at 6:30 pm
    Jan 19, 2014 at 8:22 pm
  • I have a function which guesses the likely encoding used by text files by reading the BOM (byte order mark) at the beginning of the file. A simplified version: def guess_encoding_from_bom(filename, ...
    Steven D'ApranoSteven D'Aprano
    Jan 16, 2014 at 2:13 am
    Jan 18, 2014 at 10:10 am
  • Hi What's the problem with Python 3.x? It was first released in 2008, but web hosting companies still seem to offer Python 2.x rather. For example, Google App Engine only offers Python 2.7. What's ...
    StaszekStaszek
    Jan 14, 2014 at 7:33 pm
    Jan 21, 2014 at 7:25 pm
  • Hi, This is my debut on this list. In many languages, such as C, one can use assignments in conditionals and expressions. The most common, and useful case turns up when you have if/else if/else ...
    John AllsupJohn Allsup
    Jan 2, 2014 at 5:20 pm
    Jan 3, 2014 at 3:46 pm
  • My son sent me a link to an essay about highlighting program data instead of keywords: https://medium.com/p/3a6db2743a1e/ I think this might have value, especially if to could bounce back and forth ...
    Skip MontanaroSkip Montanaro
    Jan 27, 2014 at 12:31 am
    Jan 29, 2014 at 1:30 pm
  • Hello, I'm building an application using a simple sqlite3 database. At some point, I need to select rows (more precisely some fields in rows) that have the following property: their field max_level ...
    LgabiotLgabiot
    Jan 23, 2014 at 2:32 am
    Jan 24, 2014 at 1:03 am
  • Does anyone know what the rationale behind making byte-string indexing return an int rather than a byte-string of length one? That is, given b = b'xyz', b[1] returns 121 rather than b'y'. This is ...
    Steven D'ApranoSteven D'Aprano
    Jan 7, 2014 at 11:13 am
    Jan 9, 2014 at 7:36 pm
  • I think I know the answer is no, but is there any package that allows creating a list with holes in it? E.g. I'd want to do something like: x[10] = 12 x[20] = 30 I'm thinking of something like ...
    Larry MartellLarry Martell
    Jan 3, 2014 at 3:19 pm
    Jan 4, 2014 at 7:00 am
  • According ato the pytz doc (http://pytz.sourceforge.net/): "?UTC? is Universal Time, also known as Greenwich Mean Time or GMT in the United Kingdom." If they are equal, why don't timezone objects ...
    Skip MontanaroSkip Montanaro
    Jan 29, 2014 at 5:29 pm
    Feb 2, 2014 at 4:03 pm
  • Hi, ALL, I'm trying to process a file which has following lines: 192.168.1.6 192.168.1.7: ICMP echo request, id 100, seq 200, length 30 (this is the text file out of tcpdump) Now I can esily split ...
    Igor KorotIgor Korot
    Jan 14, 2014 at 8:46 am
    Jan 15, 2014 at 6:00 am
  • http://regebro.wordpress.com/2014/01/23/the-potential-for-a-python-2-8/ I pretty much agree with the author. In fact, the sooner this whole ludicrous idea of Python 2.8 has been buried under a ...
    Mark LawrenceMark Lawrence
    Jan 23, 2014 at 9:57 pm
    Jan 25, 2014 at 2:24 am
  • I have an python app that queries a MySQL DB. The query has this form: SELECT a, b, c, d, AVG(e), STD(e), CONCAT(x, ',', y) as f FROM t GROUP BY a, b, c, d, f x and y are numbers (378.18, 2213.797 or ...
    Larry MartellLarry Martell
    Jan 12, 2014 at 7:23 pm
    Jan 14, 2014 at 4:37 pm
  • For reference, Wikipedia entry for De Bruijn sequence http://en.wikipedia.org/wiki/De_Bruijn_sequence At the above link is a python algorithm for generating De Brujin sequences. It works fine but ...
    Vincent DavisVincent Davis
    Jan 23, 2014 at 2:23 pm
    Jan 25, 2014 at 5:11 am
  • I'm trying to learn about socket, how to create and handle connections in python. This is the best I could come up with on my own, please take a look and give me critique: Server script ...
    Paul PittlersonPaul Pittlerson
    Jan 8, 2014 at 10:27 pm
    Jan 15, 2014 at 5:07 pm
  • Hello, I am beginner to python and i am writing following code from pytesser import * and i am getting an error as follow Traceback (most recent call last): File "<stdin ", line 1, in <module File ...
    Raj kumarRaj kumar
    Jan 2, 2014 at 4:31 pm
    Jan 3, 2014 at 9:17 pm
  • I would like to do some data validation when its going to a class. class Foo(object): def __init__(self): pass I know its frowned upon to do work in the __init__() method and only declarations should ...
    RitaRita
    Jan 16, 2014 at 1:09 am
    Jan 16, 2014 at 4:58 pm
  • First let me say I have not done much python programming! I am running Python 2.7.3. I am trying to use python as a front end to a simple oscilloscope. Ultimately I intend to use it with my ...
    Norman ElliottNorman Elliott
    Jan 13, 2014 at 8:15 am
    Jan 14, 2014 at 5:06 pm
  • Hi everyone, I have been around this group for some time and i saw that we have very helpful people here. i have been learning python just for about 5 months now and i have been given a task to do ...
    Ngangsia akumboNgangsia akumbo
    Jan 11, 2014 at 4:18 am
    Jan 12, 2014 at 6:50 pm
  • I have a science project that involves designing a program which can examine a bit of text with the author's name given, then figure out who the author is if another piece of example text without the ...
    TheguyTheguy
    Jan 24, 2014 at 10:05 am
    Jan 28, 2014 at 7:31 am
  • Dear all, I made a simple gui with tkinter. I can imagine there are things which I did which are "not optimal". So what I ask is to comment on my code preferable with snippets of code which show how ...
    Jean DupontJean Dupont
    Jan 17, 2014 at 1:20 pm
    Jan 27, 2014 at 8:28 am
  • I have the need to check for a files existence against a string, but I need to do case-insensitively. I cannot efficiently get the name of every file in the dir and compare each with my string using ...
    Larry MartellLarry Martell
    Jan 23, 2014 at 12:58 am
    Jan 23, 2014 at 7:02 pm
  • Well, I retired early, and I guess now I've got some spare time to learn about programming, which always seemed rather mysterious. I am using an old mac as my main computer, and it runs os x 10.4 is ...
    XeysxeysXeysxeys
    Jan 21, 2014 at 8:00 am
    Jan 22, 2014 at 9:54 pm
  • Hello, I need to randomly access a bzip2 or gzip file. How can I set the offset for a line and later retreive the line from the file using the offset. Pointers in this direction will help.
    Ayushi DalmiaAyushi Dalmia
    Jan 30, 2014 at 10:50 am
    Feb 4, 2014 at 12:39 pm
  • Hi, I am looking for an elegant way to write the following code as a list comprehension: labels = [] for then, name in mylist: _, mn, dy, _, _, _, wd, _, = localtime(then) labels.append(somefunc(mn, ...
    Piet van OostrumPiet van Oostrum
    Jan 17, 2014 at 11:19 pm
    Jan 20, 2014 at 11:47 am
  • Hi, which would be the best data structure to use for the following case? I have objects like this: class Node(object): def __init__(self, pos, parent, g , h): self.pos = pos self.parent = parent ...
    Robert VoigtländerRobert Voigtländer
    Jan 21, 2014 at 11:17 am
    Jan 22, 2014 at 9:38 am
  • Hi! I am using a python3 script to produce a bash script from lots of filenames got using os.walk. I have a template string for each bash command in which I replace a special string with the filename ...
    Paulo da SilvaPaulo da Silva
    Jan 12, 2014 at 3:36 pm
    Jan 13, 2014 at 6:44 pm
  • I would like to use python to retrieve the mac address of the ethernet port. Can this be done? Thank you.
    SamSam
    Jan 11, 2014 at 2:26 pm
    Jan 13, 2014 at 4:47 pm
  • Hi, I've just begun to learn programming, I have an open question for the group: Is the Python language an all in one computer language which could replace C, C++, Java etc.. I only ask becuase I am ...
    Pintreo mardiPintreo mardi
    Jan 11, 2014 at 8:07 am
    Jan 12, 2014 at 6:53 pm
  • I have the following sample from a data set and I am looking to split the address number and name into separate headings as seen below. FarmID Address 1 1067 Niagara Stone 2 4260 Mountainview 3 25 ...
    Shane KoningsShane Konings
    Jan 21, 2014 at 11:49 pm
    Jan 23, 2014 at 6:11 pm
  • I am trying to find sub sequence patterns but constrained by the order in which they occur For example [('CAA', 'TCT', 'TA')] But I instead find only one instance of the CAA/TCT/TA in that order. How ...
    KmKm
    Jan 20, 2014 at 10:44 am
    Jan 20, 2014 at 5:33 pm
  • Over on the Python-Dev mailing list, there is an ENORMOUS multi-thread discussion involving at least two PEPs, about bytes/str compatibility. But I don't want to talk about that. (Oh gods, I *really* ...
    Steven D'ApranoSteven D'Aprano
    Jan 15, 2014 at 1:27 am
    Jan 16, 2014 at 6:30 am
  • Hi, hows it going I've been self teaching myself python, and i typed up this small script now i know its not the best the coding is not the best but i would like to know of ways to make a small ...
    Jeremiahvalerio123Jeremiahvalerio123
    Jan 9, 2014 at 5:56 am
    Jan 10, 2014 at 9:24 pm
  • I have been working on a python script that separates mailing addresses into different components. Here is my code: inFile = "directory" outFile = "directory" inHandler = open(inFile, 'r') outHandler ...
    Matt S MarottaMatt S Marotta
    Jan 26, 2014 at 9:46 pm
    Jan 27, 2014 at 1:32 pm
  • Hi Inspired by "Modifying the default argument of function" https://groups.google.com/forum/#!topic/comp.lang.python/1xtFE6uScaI is it possible to create singleton using construct below : def ...
    Asaf LasAsaf Las
    Jan 22, 2014 at 4:07 pm
    Jan 24, 2014 at 8:20 am
  • I realize the subject line is kind of meaningless, so let me explain :-) I've got some unit tests that look like: class Foo(TestCase): def test_t1(self): RECEIPT = "some string" def test_t2(self) ...
    Roy SmithRoy Smith
    Jan 16, 2014 at 3:46 am
    Jan 16, 2014 at 4:29 pm
  • Hi, it's my first post on this newsgroup so welcome everyone. :) I'm still learning Python (v3.3), and today I had idea to design (my first) recursive function, that generates board to 'Towers' ...
    WiktorWiktor
    Jan 4, 2014 at 12:13 am
    Jan 4, 2014 at 11:11 pm
  • Hello all. This is a newly question. But I wish to understand why the below code is providing different results. import os, sys if len(sys.argv) 2: filenames = sys.argv[1:] else print ("no parameters ...
    Sean MurphySean Murphy
    Jan 4, 2014 at 4:03 am
    Jan 4, 2014 at 10:20 pm
  • I found something like this in a StackOverflow discussion. ... try: ... raise Exception("Exception raised during try") ... except: ... print "Except after try" ... return True ... finally: ... print ...
    Jessica RossJessica Ross
    Jan 30, 2014 at 5:56 am
    Feb 1, 2014 at 1:58 am
  • I have an unexpected display error when dealing with Unicode strings, and I cannot understand where the error is occurring. I suspect it's not actually a Python issue, but I thought I'd ask here to ...
    Steven D'ApranoSteven D'Aprano
    Jan 25, 2014 at 4:37 am
    Jan 26, 2014 at 3:31 am
  • Hi everyone. First of all sorry if my english is not good. I have a question about something in Python I can not explain: in every programming language I know (e.g. C#) if you exceed the max-value of ...
    Philip RedPhilip Red
    Jan 22, 2014 at 6:09 pm
    Jan 23, 2014 at 9:36 am
  • My problem is as follows: I'm developing an online game with the requirement of being able to handle thousands of requests every second. The frontend consists of web server(s) exposing a rest api ...
    PhiwerPhiwer
    Jan 15, 2014 at 6:37 pm
    Jan 21, 2014 at 9:59 am
  • I have some problems making some doctests for python2 code compatible with python3. The problem is that as part of our approach we are converting the code to use unicode internally. So we allow ...
    Robin BeckerRobin Becker
    Jan 17, 2014 at 11:16 am
    Jan 20, 2014 at 10:07 am
  • where can i find example source code by topic? Any help please
    Ngangsia akumboNgangsia akumbo
    Jan 12, 2014 at 2:37 pm
    Jan 14, 2014 at 7:41 am
Group Navigation
period‹ prev | Jan 2014 | next ›
Group Overview
grouppython-list @
categoriespython
discussions267
posts2,089
users313
websitepython.org

313 users for January 2014

Chris Angelico: 301 posts Mark Lawrence: 136 posts Roy Smith: 86 posts Terry Reedy: 85 posts Steven D'Aprano: 69 posts Ethan Furman: 51 posts Peter Otten: 51 posts Rustom Mody: 45 posts Ben Finney: 43 posts Dave Angel: 38 posts Ned Batchelder: 37 posts Asaf Las: 33 posts Larry Martell: 30 posts Grant Edwards: 29 posts Tim Chase: 28 posts MRAB: 26 posts Wxjmfauth: 23 posts Denis McMahon: 23 posts Indar kumar: 21 posts Robin Becker: 19 posts
show more
Archives