[no subject]

2011-05-22 Thread Chris Jones
-- http://mail.python.org/mailman/listinfo/python-list

[no subject]

2011-05-22 Thread Chris Jones
-- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-03 Thread Chris Jones
On Thu, Mar 03, 2011 at 02:29:54PM EST, Emile van Sebille wrote: > On 3/1/2011 3:59 PM Chris Jones said... >> On Tue, Mar 01, 2011 at 12:03:02PM EST, Emile van Sebille wrote: >>> On 3/1/2011 12:43 AM Erik de Castro Lopo said... >> >>>> Why Python? >

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread Chris Jones
it or maintained it.. so it takes a bit of digging to make it.. sort of work in current GNU/linux distributions.. especially since it knows nothing about Unicode. Here's the X/A+ map I came up with: // A+ keyboard layout: /usr/share/X11/xkb/symbols/apl // Chris Jones - 18/12/2010 // Enable v

Re: OT: Code Examples

2011-03-01 Thread Chris Jones
On Tue, Mar 01, 2011 at 12:03:02PM EST, Emile van Sebille wrote: > On 3/1/2011 12:43 AM Erik de Castro Lopo said... >> Why Python? > > For me? Because it's executable pseudocode Not for nothing, Emile.. hey.. you could end up with pseudo bugs and pseudo headaches .. cj -- http://mail.python.or

Re: How to use Python well?

2011-02-20 Thread Chris Jones
On Sat, Feb 19, 2011 at 05:27:24PM EST, Cameron Simpson wrote: [..] > Any yet I (and others, based on stuff I've seen) find info to be a > disaster. Why? > > - it forces the reader to use a non-standard pager to look >at info, typically the utterly weird one that comes with the info >co

Re: Problem with giant font sizes in tkinter

2011-02-18 Thread Chris Jones
On Fri, Feb 11, 2011 at 09:35:56PM EST, Steven D'Aprano wrote: > On Fri, 11 Feb 2011 01:29:02 -0500, Chris Jones wrote: > > >> >> labelfont = '-Adobe-Helvetica-Bold-R-Normal-*-140-*' > > [...] > > First of all, you need to know pre

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Chris Jones
On Fri, Feb 18, 2011 at 06:40:17AM EST, Steven D'Aprano wrote: > On Fri, 18 Feb 2011 02:50:11 -0500, Chris Jones wrote: > > Always struck me as odd that a country like Japan for instance, with > > all its achievements in the industrial realm, never came up with one >

Re: Problems of Symbol Congestion in Computer Languages

2011-02-17 Thread Chris Jones
On Fri, Feb 18, 2011 at 12:43:37AM EST, John Nagle wrote: > On 2/17/2011 6:55 PM, Cor Gest wrote: [..] >> At least it should try to mimick a space-cadet keyboard, shouldn't >> it? > I've used both the "MIT Space Cadet" keyboard on a Symbolics LISP > machine, and the Stanford SAIL keyboard. The

Re: Problems of Symbol Congestion in Computer Languages

2011-02-17 Thread Chris Jones
On Fri, Feb 18, 2011 at 01:30:04AM EST, Westley Martínez wrote: > On Thu, 2011-02-17 at 22:28 -0500, Chris Jones wrote: > > On Thu, Feb 17, 2011 at 09:55:47PM EST, Cor Gest wrote: > > > Some entity, AKA Cthun , > > > > [..] > > > > > > And yo

Re: Problems of Symbol Congestion in Computer Languages

2011-02-17 Thread Chris Jones
On Thu, Feb 17, 2011 at 09:55:47PM EST, Cor Gest wrote: > Some entity, AKA Cthun , [..] > > And you omitted the #1 most serious objection to Xah's proposal, > > rantingrick, which is that to implement it would require unrealistic > > things such as replacing every 101-key keyboard with 10001-key

Re: Problem with giant font sizes in tkinter

2011-02-10 Thread Chris Jones
On Thu, Feb 10, 2011 at 09:08:01PM EST, Steven D'Aprano wrote: > On Thu, 10 Feb 2011 15:48:47 +, Cousin Stanley wrote: > > > Steven D'Aprano wrote: > > > >> I have a tkinter application under Python 2.6 which is shows text in a > >> giant font, about twenty(?) times larger than expected. > >>

Re: Using dictionary key as a regular expression class

2010-01-23 Thread Chris Jones
On Sat, Jan 23, 2010 at 02:45:41AM EST, Terry Reedy wrote: > On 1/22/2010 9:58 PM, Chris Jones wrote: >> Do you mean I should just read the file one character at a time? > > Whoops, my misdirection (you can .read(1), but this is s l o w. > I meant to suggest processing i

Re: Using dictionary key as a regular expression class

2010-01-22 Thread Chris Jones
On Fri, Jan 22, 2010 at 08:46:35PM EST, Terry Reedy wrote: > On 1/22/2010 4:47 PM, Chris Jones wrote: >> I was writing a script that counts occurrences of characters in source code >> files: >> >> #!/usr/bin/python >> import codecs >> tcounters = {} >>

Re: Using dictionary key as a regular expression class

2010-01-22 Thread Chris Jones
On Fri, Jan 22, 2010 at 05:07:13PM EST, Arnaud Delobelle wrote: [..] > import codecs > from collections import defaultdict > > tcounters = defaultdict(int) > f = codecs.open('/home/gavron/git/screen/src/screen.c', 'r', "utf-8") > > for c in f.read(): > tcounters[c] += 1 > > for c, n in tco

Using dictionary key as a regular expression class

2010-01-22 Thread Chris Jones
I was writing a script that counts occurrences of characters in source code files: #!/usr/bin/python import codecs tcounters = {} f = codecs.open('/home/gavron/git/screen/src/screen.c', 'r', "utf-8") for uline in f: lline = [] for char in uline[:-1]: lline += [char] counters = {} for

Re: twenty years ago Guido created Python

2010-01-03 Thread Chris Jones
On Sun, Jan 03, 2010 at 10:18:18PM EST, Ben Finney wrote: > Chris Jones writes: [..] > > Sorry you missed my point. > > I didn't, since I attempted to bring it back on topic by expunging the > off-topic part of your message. Er.. what's 'off-topic' about

Re: twenty years ago Guido created Python

2010-01-03 Thread Chris Jones
On Sun, Jan 03, 2010 at 04:19:02PM EST, Ben Finney wrote: > Chris Jones writes: > > Interesting to note that Guido's achievements prompt much less > > response, and get much less coverage […] > > The entirety of ‘comp.lang.python’ is an ongoing response to Guido van &g

Re: twenty years ago Guido created Python

2010-01-03 Thread Chris Jones
On Thu, Dec 31, 2009 at 05:06:24PM EST, Steve Howell wrote: > FYI: > > http://twitter.com/gvanrossum > > Python is a truly awesome programming language. Not only is Guido a > genius language designer, but he is also a great project leader. What > an accomplishment. Congratulations to everybod

Re: UnicodeDecodeError? Argh! Nothing works! I'm tired and hurting and...

2009-12-03 Thread Chris Jones
On Thu, Dec 03, 2009 at 07:59:30PM EST, David Robinow wrote: > On Thu, Dec 3, 2009 at 7:33 PM, Steven D'Aprano > wrote: > > On Fri, 04 Dec 2009 00:52:35 +0100, Michael Ströder wrote: > > > >> Aahz wrote: > >>> Just to be contrary, I *like* mbox. > >> > >> Me too. :-) > > > > > > Why? What features

Re: UnicodeDecodeError? Argh! Nothing works! I'm tired and hurting and...

2009-11-24 Thread Chris Jones
On Tue, Nov 24, 2009 at 05:43:32PM EST, Steven D'Aprano wrote: > On Tue, 24 Nov 2009 13:19:10 -0500, Chris Jones wrote: > > > On Tue, Nov 24, 2009 at 08:02:09AM EST, Steven D'Aprano wrote: > > > >> Good grief, it's about six weeks away from 2010 an

Re: UnicodeDecodeError? Argh! Nothing works! I'm tired and hurting and...

2009-11-24 Thread Chris Jones
On Tue, Nov 24, 2009 at 08:02:09AM EST, Steven D'Aprano wrote: > Good grief, it's about six weeks away from 2010 and Thunderbird still > uses mbox as it's default mail box format. Hello, the nineties called, > they want their mail formats back! Are the tbird developers on crack or > something?

Re: ANN: Urwid 0.9.9 - Console UI Library

2009-11-18 Thread Chris Jones
I noticed that when run on a 256-color capable xterm, upon exiting the demo programs the colors in the bash shell are modified - e.g the bash prompt, the output of colored ls commands. For instance, due to my fiddling with dircolors, a file with executable flags on is normally displayed in light

Re: a simple unicode question

2009-10-27 Thread Chris Jones
On Tue, Oct 27, 2009 at 06:21:11AM EDT, Lie Ryan wrote: > Chris Jones wrote: [..] >> Best part of Unicode is that there are multiple encodings, right? ;-) > > No, the best part about Unicode is there is no encoding! > Unicode does not define any encoding; RFC 3629: "IS

Re: a simple unicode question

2009-10-22 Thread Chris Jones
On Wed, Oct 21, 2009 at 12:35:11PM EDT, Nobody wrote: [..] > Characters outside the 16-bit range aren't supported on all builds. > They won't be supported on most Windows builds, as Windows uses 16-bit > Unicode extensively: I knew nothing about UTF-16 & friends before this thread. Best part of

Re: a simple unicode question

2009-10-21 Thread Chris Jones
On Wed, Oct 21, 2009 at 12:20:35AM EDT, Nobody wrote: > On Tue, 20 Oct 2009 17:56:21 +, George Trojan wrote: [..] > > Where are the literals (i.e. u'\N{DEGREE SIGN}') defined? > > You can get them from the unicodedata module, e.g.: > > import unicodedata > for i in xrange(0x100

Re: Are there any modules for IRC, that work with Python 3.1?

2009-10-15 Thread Chris Jones
On Sat, Oct 10, 2009 at 01:39:48AM EDT, TerryP wrote: [..] > Having recently been put into search for a new IRC client, and > everything I've thrown in the cauldron having become a > disappointment... OT as always, but I'm surprised you found weechat-curses disappointing. CJ -- http://mail.py

[OT] vim clientserver [was: best vi / emacs python features]

2009-10-10 Thread Chris Jones
On Thu, Oct 08, 2009 at 12:59:00AM EDT, TerryP wrote: > On Oct 8, 3:29 am, Chris Jones wrote: [..] > It's most valuable for sending data to an existing instance of vim, by > name. Both files and keystrokes can be sent fwiw. [..] > On top of that, I sometimes group inst

Re: best vi / emacs python features

2009-10-07 Thread Chris Jones
On Wed, Oct 07, 2009 at 07:06:08PM EDT, TerryP wrote: [..] > I am a freak: I do not use nor want syntax highlighting. I don't want > my editor to understand mail, irc, or the www either, I want it to > edit text efficiently so I can go on with the rest of my life as soon > as possible. Given the

Re: A new Internet-search website written in Python

2009-10-01 Thread Chris Jones
On Thu, Oct 01, 2009 at 05:22:50AM EDT, hrg...@gmail.com wrote: > On 10/1/09, Paul Rubin wrote: ... > By the way, I have noticed that the address in the "from" field in > your e-mail is set to "http://phr...@nospam.invalid";. Is this supposed > to imply that my prev

Re: An assessment of the Unicode standard

2009-09-03 Thread Chris Jones
On Tue, Sep 01, 2009 at 03:16:03PM EDT, r wrote: [..] > Bring on the metric system Terry, i have been waiting all my life!! > > Now, if we can only convince those 800 million Mandarin Chinese > speakers... *ahem* Do we have a Chinese translator in the house? > > :-) "Between the idea And the

Re: An assessment of the Unicode standard

2009-08-29 Thread Chris Jones
On Sat, Aug 29, 2009 at 11:07:17PM EDT, Neil Hodgson wrote: > Benjamin Peterson: > > Like Sanskrit or Snowman language? > Sanskrit is mostly written in Devanagari these days which is also > useful for selling things to people who speak Hindi and other Indian > languages. Is the implication that

Re: An assessment of the Unicode standard

2009-08-29 Thread Chris Jones
On Sat, Aug 29, 2009 at 07:12:26PM EDT, Stephen Hansen wrote: > > > > Unicode (*puke*) seems nothing more than a brain fart of morons. And > > sadly it was created by CS majors who i assumed used logic and > > deductive reasoning but i must be wrong. Why should the larger world > > keep supporting

[OT] From: header - WAS: Python docs disappointing - group effort to hire writers?

2009-08-11 Thread Chris Jones
Hello Paul, This is strictly OT, but when you get a chance, could you contact me off list at the above address? I need your help with the From: email address specified in your posts to the list. Thanks, CJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python docs disappointing

2009-07-31 Thread Chris Jones
On Fri, Jul 31, 2009 at 06:03:25PM EDT, Carl Banks wrote: > On Jul 31, 2:28 pm, kj wrote: > > In Carl > > Banks writes: > > > > >(omg you have to use a > > >*mouse*) > > > > That's precisely the point.  There's a huge number of programmers > > out there who, like me, *hate* to use the mouse whi

Re: Good books in computer science?

2009-06-21 Thread Chris Jones
On Sun, Jun 14, 2009 at 06:42:50PM EDT, Lawrence D'Oliveiro wrote: > In message , Chris > Jones wrote: > > Vivaldi vs. Mozart > > > > And the latter especially had definitely mastered his editor. Just > > think of the sheer volume of the coding he managed duri

Re: Good books in computer science?

2009-06-14 Thread Chris Jones
On Sun, Jun 14, 2009 at 09:04:02AM EDT, Steven D'Aprano wrote: > Nathan Stoddard wrote: > > > The best way to become a good programmer is to program. Write a lot of > > code; work on some large projects. This will improve your skill more than > > anything else. > > I think there are about 100 mil

Re: decoding keyboard input when using curses

2009-05-31 Thread Chris Jones
On Sun, May 31, 2009 at 02:30:54PM EDT, Arnaud Delobelle wrote: > Chris Jones writes: > [...] > > Try this: > > > > #include > > #include > > #include > > #include > > #include > > /* Here I need to add the following include to get wi

Re: decoding keyboard input when using curses

2009-05-31 Thread Chris Jones
On Sun, May 31, 2009 at 04:05:20AM EDT, Arnaud Delobelle wrote: [..] > Thanks for this. When I test it on my machine (BTW it is MacOS 10.5.7), > if I type an ASCII character (e.g. 'A'), I get its ASCII code (0x41), > but if I type a non-ascii character (e.g. '§') I get back to the prompt > immed

Re: decoding keyboard input when using curses

2009-05-30 Thread Chris Jones
On Sat, May 30, 2009 at 04:55:19PM EDT, Arnaud Delobelle wrote: > Hi all, Disclaimer: I am not familiar with the curses python implementation and I'm neither an ncurses nor a "unicode" expert by a long shot. :-) > I am looking for advice on how to use unicode with curses. First I will > explai

Re: What text editor is everyone using for Python

2009-05-28 Thread Chris Jones
On Thu, May 28, 2009 at 07:38:33AM EDT, Steven D'Aprano wrote: > Your point is? notepad, otoh.. > *ducks and runs* .. likewise. -- http://mail.python.org/mailman/listinfo/python-list

Re: What text editor is everyone using for Python

2009-05-28 Thread Chris Jones
On Thu, May 28, 2009 at 12:06:25AM EDT, Steven D'Aprano wrote: > On Wed, 27 May 2009 22:34:45 -0400, Chris Jones wrote: > > I'm unsure about a python editor for everyone but since acquiring > > habits takes time, I'm in favor of sticking to one editor for > &g

Re: What text editor is everyone using for Python

2009-05-27 Thread Chris Jones
I'm unsure about a python editor for everyone but since acquiring habits takes time, I'm in favor of sticking to one editor for everything. CJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a programming language that is combination of PythonandBasic?

2009-04-19 Thread Chris Jones
On Sun, Apr 19, 2009 at 04:35:27AM EDT, Hendrik van Rooyen wrote: > Brian Blais wrote: > > >On Apr 18, 2009, at 5:44 , Hendrik van Rooyen wrote: > >>to untangle some spaghetti code. He did not mention if the > >>spaghetti was actually doing it's job, bug free, which IMO is the > >>only ration

Re: can python access OS level features like bash scripting?

2009-04-19 Thread Chris Jones
On Sun, Apr 19, 2009 at 09:55:08AM EDT, Krishnakant wrote: > hi very sorry for that > > On Sun, 2009-04-19 at 14:50 +0200, News123 wrote: > > Hi, > > > > I think you got lost in the wrong thread. > > Though your subject line is correct your post threads under "Is there a > > programming language

Re: Tab completion

2009-04-02 Thread Chris Jones
On Thu, Apr 02, 2009 at 10:59:29AM EDT, Steven D'Aprano wrote: > Does anyone use the tab-completion recipe in the docs? > > http://docs.python.org/library/rlcompleter.html#module-rlcompleter > > suggests using this to enable tab-completion: > > try: > import readline > except ImportError: >

Re: Can python quickly display results like bash?

2009-03-17 Thread Chris Jones
On Tue, Mar 17, 2009 at 02:10:36PM EDT, Chris Rebert wrote: > On Mon, Mar 16, 2009 at 6:05 PM, robert song > wrote: > > Hello, everyone. > > python can be debugged with pdb, but if there anyway to get a quick > > view of the python execution. > > Just like sh -x of bash command. > > I didn't find

Ipython - Do they have a separate mailing list or newsgroup?

2009-02-12 Thread Chris Jones
Just wondering if ipython is supported elsewhere. Thanks, CJ -- http://mail.python.org/mailman/listinfo/python-list

Re: what IDE is the best to write python?

2009-02-01 Thread Chris Jones
On Sun, Feb 01, 2009 at 07:26:24PM EST, Ben Finney wrote: > a...@pythoncraft.com (Aahz) writes: > > > Just to register a contrary opinion: I *hate* syntax highlighting > > On what basis? Real men hate syntax highlighting. -- http://mail.python.org/mailman/listinfo/python-list

Re: Rewriting a bash script in python

2008-11-08 Thread Chris Jones
On Wed, Nov 05, 2008 at 09:23:02PM EST, Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Chris > Jones wrote: > > > But then I started thinking .. what if for instance I had to scale my > > effort from my single system to a large "data cente

Re: Rewriting a bash script in python

2008-11-05 Thread Chris Jones
On Wed, Nov 05, 2008 at 09:21:38PM EST, Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch > wrote: > > > Well, if it handles your backups it doesn't work. It just pretends until > > you really *need* the backed up data. ;-) > > That's why a backup system need

Re: Rewriting a bash script in python

2008-11-05 Thread Chris Jones
On Wed, Nov 05, 2008 at 08:12:40PM EST, Tim Rowe wrote: > 2008/11/6 Chris Jones <[EMAIL PROTECTED]>: > > > Begs the question .. how do I tell what is an object-oriented vs. a > > procedural problem? > > Practice, largely, so you're doing the right thing (pr

Re: Rewriting a bash script in python

2008-11-05 Thread Chris Jones
On Tue, Nov 04, 2008 at 11:11:17PM EST, Ben Finney wrote: > Chris Jones <[EMAIL PROTECTED]> writes: > > > I am thinking of rewriting it in python using OOP tactics/strategy. > > > > Please advise. > > I advise you not to have the object-oriented programming

Rewriting a bash script in python

2008-11-04 Thread Chris Jones
I wrote a trivial backup script that does the following: If tonight is the first day of the month: save last month's archive do a full backup of the system else: save last night's differential backup back up all changes relative to the current month's full backup endif I wrote

Re: using vim as a python class/module/function etc.. browser

2006-04-11 Thread Chris Jones
Daniel Nogradi wrote: Of course, modern versions of Exuberant Ctags also support Python, too. >>> >>>I apt-installed this package but the man page is rather intimidating so >>>I thought I might as well make sure I was going in the right direction. >> >>You will probably want to read the vim doc

Re: using vim as a python class/module/function etc.. browser

2006-04-10 Thread Chris Jones
Robert Kern wrote: > Chris Jones wrote: > >>I'm trying to make sense of a python program and was wondering if vim >>has any python-oriented functionalities (apart from syntax highlighting) >>that would make it somewhat easier to browse the source code. >> >

using vim as a python class/module/function etc.. browser

2006-04-10 Thread Chris Jones
I'm trying to make sense of a python program and was wondering if vim has any python-oriented functionalities (apart from syntax highlighting) that would make it somewhat easier to browse the source code. What I had in mind is something that would let me use CTRL+] to automatically display what