"Don't rebind built-in names*" - it confuses readers202 (6/11/2013 12:14:55 AM) comp.lang.python Many long-time posters have advised "Don't rebind built-in names*.
* Unless you really mean to mask it, or more likely wrap it, such as
wrapping print to modify some aspect of its operation than one cannot... Terry
Building importable _tkinter on Windows019 (3/10/2013 12:41:08 AM) comp.lang.python If you have tried to build _tkinter on Windows from the cpython
repository, and have 'import tkinter' work, please share your
experience, successful or not. I and another person have both failed.
Followi... Terry
Python Speed #2215 (2/27/2013 10:24:10 PM) comp.lang.python On 2/27/2013 3:21 AM, jmfauth hijacked yet another thread:
> Some are building, some are destroying.
We are still waiting for you to help build a better 3.3+, instead of=20
trying to 'destroy' it with mos... Terry
Hitting send by mistake -- a solution020 (2/5/2013 7:41:21 PM) comp.lang.python [comment about a double post]
> He must have hit the send button too early by mistake.
I used to do that occasionally. The reason is that the default position
of [send] was on the left, under [File] and ... Terry
Understanding while...else...014 (1/22/2013 5:44:05 PM) comp.lang.python Several people have trouble understanding Python's while-else and
for-else constructs. It is actually quite simple if one starts with
if-else, which few have any trouble with.
Start with, for example
... Terry
Why 'Flat is better than nested'043 (7/31/2012 9:04:44 PM) comp.lang.python >>> import this
prints 'The Zen of Python', a poem by Tim Peters that consists of python
proverbs such as "Flat is better than nested." (Others things being
equal) why? Because it is a restatement of th... Terry
Idioms combining 'next(items)' and 'for item in items:'234 (9/10/2011 7:36:42 PM) comp.lang.python Python's iterator protocol for an iterator 'items' allows combinations of explicit "next(items)" calls with the implicit calls of a "for item in items:" loop. There are at least three situations in which this... Terry
Why Python31237 (6/28/2010 12:12:10 AM) comp.lang.python Some people appear to not understand the purpose of Python3 or more specifically, of the changes that break Python2 code. I attempt here to give a relatively full explanation. SUMMARY: Python3 completes (or ... Terry
Understanding the CPython dict implementation638 (3/14/2010 11:39:46 PM) comp.lang.python I found this PyCon2010 presentation to be excellent: The Mighty Dictionary, Branden Craig Rhodes, 30 min. http://pycon.blip.tv/file/3264041/ Even knowing Python for over a decade, I learned a few things. Terr... Terry
Python + twisted = Raindrop (in part)152 (10/27/2009 6:32:37 PM) comp.lang.python Rrom: First look: inside Mozilla's Raindrop messaging platform http://arstechnica.com/open-source/news/2009/10/first-look-inside-mozillas-raindrop-messaging-platform.ars "The backend components that are respo... Terry
Pattern Search Regular Expression212 (6/15/2013 9:42:55 AM) comp.lang.python Dear Group,
I am trying to search the following pattern in Python.
I have following strings:
(i)"In the ocean"
(ii)"On the ocean"
(iii) "By the ocean"
(iv) "In this group"
(v) "In this group"
... subhabangalore(127)
collecting variable assignments through settrace11 (6/18/2013 6:38:23 PM) comp.lang.python Hi,
I'm writing a custom profiler that uses sys.settrace. I was wondering if=
there was any way of tracing the assignments of variables inside a functio=
n as its executed, without looking at locals() at... skunkwerk(26)
Timsort in Cpython141 (6/15/2013 7:44:01 PM) comp.lang.python I'm currently trying to make sense of Python's Timsort function. From the wikipedia page I was told the algorithm is located somewhere here: http://hg.python.org/cpython/file/default/Objects/listobject.c
So ... alphonse23(5)
A Beginner's Doubt90 (6/19/2013 1:58:19 PM) comp.lang.python Hello!
This is my first post in this group and the reason why I came across here i=
s that, despite my complete lack of knowledge in the programming area, I re=
ceived an order from my teacher to develop a v... augustofec(1)
Why is regex so slow?221 (6/18/2013 4:45:29 PM) comp.lang.python I've got a 170 MB file I want to search for lines that look like:
[2010-10-20 16:47:50.339229 -04:00] INFO (6): songza.amie.history - ENQUEUEING: /listen/the-station-one
This code runs in 1.3 seconds:
... roy(2044)
Version Control Software512 (6/12/2013 11:27:22 PM) comp.lang.python I am looking for an appropriate version control software for python develop=
ment, and need professionals' help to make a good decision. Currently I am =
considering four software: git, SVN, CVS, and Mercuria... ms2597(2)
os.putenv() has no effect71 (6/18/2013 4:49:31 PM) comp.lang.python Hi group,
I've tracked down a bug in my application to a rather strange
phaenomenon: os.putenv() doesn't seem to have any effect on my platform
(x86-64 Gentoo Linux, Python 3.2.3):
>>> os.getenv("PATH")... dfnsonfsduifb(1169)
Split a list into two parts based on a filter?372 (6/10/2013 8:34:54 PM) comp.lang.python I have a list, songs, which I want to divide into two groups.
Essentially, I want:
new_songs = [s for s in songs if s.is_new()]
old_songs = [s for s in songs if not s.is_new()]
but I don't want to make ... roy(2044)