Search Discussions
-
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 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 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 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 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 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 ...
Me
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
Wxjmfauth
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 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'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 ...
Staszek
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 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 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 ...
Lgabiot
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'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 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 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 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 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 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 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 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 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 ...
Rita
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 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 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 ...
Theguy
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 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 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 ...
Xeysxeys
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 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 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ä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 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.
Sam
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 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 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 ...
Km
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'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 ...
Jeremiahvalerio123
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 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 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 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' ...
Wiktor
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 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 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'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 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 ...
Phiwer
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 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 akumbo
Jan 12, 2014 at 2:37 pm
Jan 14, 2014 at 7:41 am
Group Overview
group | python-list |
categories | python |
discussions | 267 |
posts | 2,089 |
users | 313 |
website | python.org |
313 users for January 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)