Re: regex matching rst code block?

2006-09-03 Thread Edward K. Ream
> r"(::\s*\n(\s*\n)*((\s+).*?\n)(((\4).*?\n)|(\s*\n))*)" Thanks for this. I'll try it out. Edward -------- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/ed

ANN: Leo 4.4.1.1 final released

2006-09-08 Thread Edward K. Ream
timonials.html -------- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.python.org/mailman/listinfo/python-list

A static pychecker?

2006-09-08 Thread Edward K. Ream
iler.parse. Unlike the inspect module, it would peruse the code looking for possible problems. Thanks. Edward -------- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/

Problem with operator overloading and inheritance in Python

2006-09-17 Thread Edward A. Waugh
oblem with Python or just the way I am coding it as I admit that I am new to Python? If its my fault then what is the correct way to implement SecondClass?   Thanks, Edward   P.S. Why were slices ([low:high]) implemented to return the low'th to high-1'th values of a sequence?  For exa

newlines and sax.saxutils.quoteattr

2006-09-19 Thread Edward K. Ream
arsers are indeed obliged to ignore newlines in attributes, would it be a good idea to (optionally?) have sax.saxutils.quoteattr perform the substitution of newlines to ' \n' ? Thanks. Edward ---- Edward K. Ream email: [

Re: newlines and sax.saxutils.quoteattr

2006-09-19 Thread Edward K. Ream
Thanks, Fredrik, for the reference to the attribute normalization algorithm. > I guess it's too late to fix OPML. It's too late for OPML 1. I'll check with Dave Winer about OPML 2. Edward -------- Edward K. Rea

sax barfs on unicode filenames

2006-10-04 Thread Edward K. Ream
dea of how to create an InputSource that can handle non-ascii filenames. Any help would be appreciated. Thanks! Edward Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front

How to ask sax for the file encoding

2006-10-04 Thread Edward K. Ream
,silent) parser.setContentHandler(handler) parser.parse(theFile) Can anyone tell me how the content handler can determine the encoding of the file? Can sax provide this info? Thanks! Edward Edward K. Ream email

Re: How to ask sax for the file encoding

2006-10-04 Thread Edward K. Ream
o it should (must) be able to determine the encoding. Furthermore, xml files start with lines like: so it would seem reasonable for sax to be able to return 'utf-8' somehow. Am I missing something? Edward ---- Edward

Re: How to ask sax for the file encoding

2006-10-04 Thread Edward K. Ream
> [The value of the encoding field] _could_ be retained, but for what > purpose? I'm asking this question because my app needs it :-) Imo, there is *no* information in any xml file that can be considered irrelvant. My app will want to know the original encoding when writing the fi

Re: sax barfs on unicode filenames

2006-10-04 Thread Edward K. Ream
ilename to ascii in my code, and got (no surprise) exactly the same crash. I suppose a workaround would be to pass a 'file-like-object to sax instead of an open file, so that theFile.getSystemId won't crash. But this looks like a bug to m

How to invoke a tkinter menu *itself*

2006-02-10 Thread Edward K. Ream
x and menu.winfo_rootx are always 0, presumably be cause the menu isn't packed. And I haven't been able to use menu.invoke(??) to invoke the menu *itself*. One would think this would be a basic Tk functionality. Any ideas? Thanks. Edward P.S. Here is my best so far. (It must be run from

Re: How to invoke a tkinter menu *itself*

2006-02-11 Thread Edward K. Ream
orms the anchor for the menu. This button *is* (or should be) packed (or placed), so it should know its own location. Anyone know how to do find a menu's button? Edward -------- Edward K. Ream email: [EMAIL PROTECTED] Leo: htt

How to tell an object's class?

2006-02-24 Thread Edward K. Ream
Hi, I would like to create a dictionary of all the classes that exist while my app is running. This is the best I can do: def defineClassesDict (self): self.allClassesDict = {} for z in gc.get_objects(): t = type(z) if t == types.ClassType: name

ANN: Leo 4.4a7 released

2006-02-28 Thread Edward K. Ream
.net/edreamleo/testimonials.html Edward -------- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.python.org/ma

ANN: Leo 4.3-b1

2005-05-04 Thread Edward K. Ream
http://sourceforge.net/cvs/?group_id=3458 Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream email: [EMAIL PROTECTED] Leo: Literate Editor with Outlines Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.python.org/mailman/listinfo/python-list

ANN: Leo 4.3 final

2005-05-24 Thread Edward K. Ream
s: -- Leo: http://webpages.charter.net/edreamleo/front.html Home: http://sourceforge.net/projects/leo/ Download: http://sourceforge.net/project/showfiles.php?group_id=3458 CVS: http://sourceforge.net/cvs/?group_id=3458 Quotes: http://webpages.charter.net/edreamleo/testimoni

Leo 4.4.3 beta 2 released

2007-06-12 Thread Edward K Ream
leo/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -

Leo 4.4.3 beta 3 released

2007-06-23 Thread Edward K Ream
leo/ Download: http://sourceforge.net/project/showfiles.php?group_id=3458 CVS: http://leo.tigris.org/source/browse/leo/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [EMAIL P

Leo 4.4.3 final released

2007-06-26 Thread Edward K Ream
3458 CVS: http://leo.tigris.org/source/browse/leo/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/e

ANN: Leo 4.4.3.1 released

2007-07-03 Thread Edward K Ream
CVS: http://leo.tigris.org/source/browse/leo/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.

Where are the strings in gc.get_objects?

2007-05-04 Thread Edward K Ream
ere the strings are? I expect at least twice the number of strings as there are leoNodes.vnode objects. Edward ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: htt

Re: Where are the strings in gc.get_objects?

2007-05-04 Thread Edward K Ream
eoTkTextWidget id: 25543704 n ame: head-4, 19), '27563728:0.': (leoTkTextWidget id: 27627608 name: head-12, 54)} 81 43373312 * large item 82 43373456 {'stack': [], 'v': None} 83 43373600 {'stack': [], 'v'

Leo 4.4.3 beta 1 released

2007-05-21 Thread Edward K Ream
o/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.python.org/mailman/listinfo/python-list

Bug? exec converts '\n' to newline in docstrings!?

2007-07-30 Thread Edward K Ream
("\n") ''' >>> print s strings = 'abc'.split(" ") I see this in my own calls to exec and execfile. Is this a bug or am I missing something? Edward --

Re: Bug? exec converts '\n' to newline in docstrings!?

2007-07-30 Thread Edward K Ream
> The problem is because you are trying to represent a Python program as a Python string literal, and doing it incorrectly. Yes, that is exactly the problem. Thanks to all who replied. Changing changing '\n' to '\\n' fix

Leo 4.4.4 beta 1 released

2007-08-10 Thread Edward K Ream
html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.python.org/mailman/listinfo/python-list

Leo 4.4.4 beta 3 released

2007-10-23 Thread Edward K Ream
ttp://sourceforge.net/project/showfiles.php?group_id=3458 CVS: http://leo.tigris.org/source/browse/leo/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://w

ANN: Leo 4.4.4 beta 4 released

2007-10-27 Thread Edward K Ream
eamleo/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Leo 4.4.4 Final released

2007-11-02 Thread Edward K Ream
ront.html Home: http://sourceforge.net/projects/leo/ Download: http://sourceforge.net/project/showfiles.php?group_id=3458 CVS: http://leo.tigris.org/source/browse/leo/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html -----

Pep 3105: the end of print?

2007-02-15 Thread Edward K Ream
thon 2.x print statement. In short, pep 3105 will *discourage* rather than encourage the use of the name 'print'. Rather than invalidating most Python 2.x programs, it would seem more graceful for Python 3.x to define a [your name here] function that can be used in addition to, rat

Re: Pep 3105: the end of print?

2007-02-15 Thread Edward K Ream
Precisely my point: pep 3105 will force the elimination of the name 'print'. Edward ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.

Re: Pep 3105: the end of print?

2007-02-15 Thread Edward K Ream
In other words, the consequence of pep 3105 will be that *nobody* who wants their app to be portable will be able to use print until *everybody* has converted to Python 3.x. I doubt that is what Guido had in mind, but I may be

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
It will be interesting to see how this plays out. Users, not developers, will determine when Python 2.x becomes extinct. Edward ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
> There are a tool called "2to3" that translates things like "print foo" to > print(foo). The point of my original post was that if I want to maintain a common code base the tool must translate 'print

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
ido wanted to improve print in such a way that *more* people would use it. But the effect of the pep is that *less* people will be able to use print, *regardless* of how backward compatible Python 3.x is 'allowed' to be. Edward ----

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
ed way, with a change in major > version number, it's a reasonable way (probably the *only* reasonable way) > to remove particular kinds of cruft from any application. Agreed. Edward ---- Edward K. Ream ema

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
oof that the converter must change print to print2 (or some other name) in order to maintain a common code base. How much clearer can I be? If a common code base is desired, it *is* the end of print Edward ---- Edward K. Ream em

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
> There could be something like from __future__ import print_function To repeat: this would be compatible only with Python 2.6. Edward ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edream

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
27;line',)\nafter"). print ('line',) print ('after') 3. print ('line',end='') produces a syntax error in Python 2.x: print ('line',end='') ^ SyntaxError: invalid syntax That&#x

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
> print is only a problem if you expect your code to work under both Python > 2.x and 3.x. Exactly. Edward ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/fron

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
> It looks your main issue is that you're complaining that Python 3000 is going to break things in a non-backward compatible way. No. My complaint is *only* that changing the meaning of 'print' is needl

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
f the Python 3.0 code were considered the 'master' code, the developer would need a 3to2 translater. Either disprove the theorum or give up the notion of having a common code base that uses print. Edward ---- Edwa

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
than two characters, that does not conflict with either an existing global function or module. Edward ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html ---

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
eed, Leo's startup code already runs unchanged under CPython and IronPython. I expect minimal changes will be needed to run Leo's core under Jython. And I *am* talking about a single code base: no translator needed. Edward ----

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
se no needless problems for anyone. Having an official print function is a *good* idea, provided it isn't called print :-) Edward ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/e

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
and for the most part IronPython 'just works' with those libs. So all of Leo's core, being free of any gui code, just worked. That is, until it started to load the IronPython plugin :-) At which point I started to have newbie problems w

Leo 4.4.5 beta 1 released

2007-11-16 Thread Edward K Ream
edreamleo/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.python.org/mailman

Leo 4.4.5 beta 2 released

2007-12-07 Thread Edward K Ream
oad: http://sourceforge.net/project/showfiles.php?group_id=3458 CVS: http://leo.tigris.org/source/browse/leo/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED]

Leo 4.4.5 final released

2007-12-11 Thread Edward K Ream
s: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.p

ANN: Leo 4.4.6 beta 1 released

2007-12-17 Thread Edward K Ream
.net/projects/leo/ Download: http://sourceforge.net/project/showfiles.php?group_id=3458 CVS: http://leo.tigris.org/source/browse/leo/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [E

ANN: Leo 4.4 b4 released

2006-04-21 Thread Edward K. Ream
.net/edreamleo/front.html Home: http://sourceforge.net/projects/leo/ Download: http://sourceforge.net/project/showfiles.php?group_id=3458 CVS: http://sourceforge.net/cvs/?group_id=3458 Quotes: http://webpages.charter.net/edreamleo/testimonials.html Ed

Re: Leo 4.4 b4 released

2006-04-21 Thread Edward K. Ream
Correction: Leo's cvs repository has been moved to tigris: http://leo.tigris.org/source/browse/leo/ Edward Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front

ANN: Leo 4.4 rc1 released

2006-04-28 Thread Edward K. Ream
.net/edreamleo/testimonials.html Edward ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html --

ANN: Leo 4.4 Final released

2006-05-11 Thread Edward K. Ream
html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.python.org/mailman/listinfo/python-list

Modifying a variable in a non-global outer scope?

2006-05-19 Thread Edward C. Jones
#! /usr/bin/env python """ When I run the following program I get the error message: UnboundLocalError: local variable 'x' referenced before assignment Can "inner" change the value of a variable defined in "outer"? Where is this explained in the docs? """ def outer(): def inner(): x

Two idle questions

2006-05-25 Thread Edward K. Ream
dle's debugging console and get all of Idle's nice debugging features. Thanks. Edward P.S. I've studied Idle's debugger code for several hours and the answers are not exactly jumping out at me :-) Perhaps it would be good to create wrapper functions (no idea where) to make

Leo 4.4.6 beta 2 released

2008-01-15 Thread Edward K Ream
.net/projects/leo/ Download: http://sourceforge.net/project/showfiles.php?group_id=3458 CVS: http://leo.tigris.org/source/browse/leo/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [E

ANN: Leo 4.4.6 final released

2008-01-27 Thread Edward K Ream
.net/projects/leo/ Download: http://sourceforge.net/project/showfiles.php?group_id=3458 CVS: http://leo.tigris.org/source/browse/leo/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [E

ANN: Leo 4.4.7 beta 1 released

2008-02-13 Thread Edward K Ream
ials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.python.org/mailman/listinfo/python-list

Is there a way to "link" a python program from several files?

2008-02-16 Thread Edward A. Falk
IOW, is there a "linker" for python? I've written a program comprised of about five .py files. I'd like to find a way to combine them into a single executable. Obviously, I could hand-edit them into a single .py file, but I'm looking for a way to keep them as seperate files for development but d

Re: Is there a way to "link" a python program from several files?

2008-02-20 Thread Edward A. Falk
In article <[EMAIL PROTECTED]>, BlueBird <[EMAIL PROTECTED]> wrote: > >I wrote a small wiki page to sum-up my findings about such typical >problem: > >http://www.freehackers.org/Packaging_a_python_program > Excellent references, but maybe a bit of overkill. Everybody in my target audience has py

Re: ILeo (IPython-Leo bridge); a marriage made in heaven?

2008-02-23 Thread Edward K Ream
Your ideas are destined to be of great importance to both the IPython and Leo communities. I shall continue this discussion at: http://groups.google.com/group/leo-editor/browse_thread/thread/3747a122f913cd7f Edward ---- Edward K

Answer: Is there a way to "link" a python program from several files?

2008-03-03 Thread Edward A. Falk
In article <[EMAIL PROTECTED]>, George Sakkis <[EMAIL PROTECTED]> wrote: > >What's so complicated about "python setup.py install" ? Even that is >not strictly necessary for pure python packages; a user may just >unpack the archive, cd to the extracted directory and execute the >appropriate .py fil

ANN: Leo 4.4.8 beta 2 released

2008-03-14 Thread Edward K Ream
p://sourceforge.net/project/showfiles.php?group_id=3458 Bzr: http://code.launchpad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://w

Re: Does python hate cathy?

2008-03-24 Thread Edward A. Falk
Interestingly, if you change swaroop = Person('Swaroop', 'M') swaroop.sayHi() swaroop.howMany() kalam = Person('Abdul Kalam', 'M') kalam.sayHi() kalam.howMany() cathy = Person('Catherine', 'F') cathy.sayHi() cathy.howMany() swaroop.sayHi() swaroop.howMany() to def main()

Re: Does python hate cathy?

2008-03-25 Thread Edward A. Falk
In article <[EMAIL PROTECTED]>, Patrick Mullen <[EMAIL PROTECTED]> wrote: >Then again, I can count the number of times I have ever needed __del__ >with no fingers (never used it!). Still, quite interesting to >explore. I used it once, for an object that had a doubly-linked list. The __del__() me

ANN: Leo 4.4.8 b3 released

2008-03-28 Thread Edward K Ream
net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html -------- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edream

Leo 4.6 beta 1 released

2009-03-25 Thread Edward K Ream
com/group/leo-editor Download: http://sourceforge.net/project/showfiles.php?group_id=3458 Bzr: http://code.launchpad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email

ANN: Leo 4.5 b1 released

2008-06-28 Thread Edward K Ream
itor Download: http://sourceforge.net/project/showfiles.php?group_id=3458 Bzr: http://code.launchpad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [EMAIL P

Re: very rare python expression

2008-08-12 Thread Edward A. Falk
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: >"ðÏ" <[EMAIL PROTECTED]> writes: >> I saw a strange python code in pygame project. What does "while >> not(x&528or x in l):" mean? Below code works in python2.5, so "x&528" >> is not HTML strings. > >It parses as "x & 52

ANN: Leo 4.4.8 rc1 released

2008-04-03 Thread Edward K Ream
net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html -------- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edream

ANN: Leo 4.4.8 final

2008-04-06 Thread Edward K Ream
net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html -------- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edream

ANN: Leo 4.5 beta 3 released

2008-08-15 Thread Edward K Ream
eamleo/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.python.org/mailman/listinfo/python-list

ANN: Leo 4.5 beta 4 released

2008-08-25 Thread Edward K Ream
o-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -

ANN: Leo 4.5 rc1 released

2008-08-28 Thread Edward K Ream
eamleo/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- http://mail.python.org/mailman/listinfo/python-list

Leo 4.5 final released

2008-09-02 Thread Edward K Ream
//code.launchpad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html ---- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.

Re: Python Programming Challenges for beginners?

2009-11-30 Thread Edward A. Falk
In article <09ea817f-57a9-44a6-b815-299ae3ce7...@x5g2000prf.googlegroups.com>, alex23 wrote: >On Nov 27, 1:24 pm, astral orange <457r0...@gmail.com> wrote: >> I would like to test out what I know so far by solving programming >> challenges. > >Project Euler can be a lot of fun: http://projecteule

Re: parsing json data

2009-11-30 Thread Edward A. Falk
There's a json parsing library in 2.6. (Sadly, 2.6 is not out for Ubuntu yet.) -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Which is more pythonic?

2009-12-03 Thread Edward A. Falk
In article , Filip GruszczyÅ ski wrote: > >for choice in self.__choices: > choicesBox.addItem(choice) This is the easiest to read. I'm guessing that this is not inner-loop stuff that needs to be optimized, so you should favor readability over performance. -- -Ed Falk, f...@despam

Re: When will Python 3 be fully deployed

2009-12-06 Thread Edward A. Falk
In article , vsoler wrote: >I recently read that many libraries, including Numpy have not been >ported to Python 3. > >When do you think that Python 3 will be fully deployed? It will never be fully deployed. There will always be people out there who haven't felt it necessary to upgrade their sy

Re: myths about python 3

2010-01-27 Thread Edward A. Falk
In article , Daniel Fetchinson wrote: >Hi folks, > >1. Print statement/function creates incompatibility between 2.x and 3.x! > >Certainly false or misleading, if one uses 2.6 and 3.x the >incompatibility is not there. Print as a function works in 2.6: Yes, but does print as a statement work? Yo

Re: myths about python 3

2010-01-27 Thread Edward A. Falk
In article , Grant Edwards wrote: > >That said, I don't expect to start using Python 3 until library >availability or my Linux distro forces me to. If python 3 is much more efficient than python 2, or it has features I really need for some application I'll write in the future, I might be tempted

Re: How to set up web service by python?

2009-10-24 Thread Edward A. Falk
In article <7kh22qf38i28...@mid.uni-berlin.de>, Diez B. Roggisch wrote: > >As you don't show us the code, I can only guess - but experience tells >me that you try & bind your service to a priviledged (<=1024) port, >which *nix only allows with root-privileges. Concur. You need root privileges

Re: transpose array

2009-10-27 Thread Edward A. Falk
In article , yoshco wrote: >hello everyone >i have 3 arrays >xVec=[a1,a2,a3,a4,a5] >yVec=[b1.b2.b3.b4.b5] >zVec=[c1,c2,c3,c4,c5] > >and i want to output them to a ascii file like so > >a1,b1,c1 >a2,b2,c2 >a3,b3,c3 >... Elegant or obfuscated, you be the judge: vv = [xVec, yVec, zVec] for i

Re: python simply not scaleable enough for google?

2009-11-14 Thread Edward A. Falk
In article , Terry Reedy wrote: > >I can imagine a day when code compiled from Python is routinely >time-competitive with hand-written C. I can't. Too much about the language is dynamic. The untyped variables alone are a killer. int a,b,c; ... a = b + c; In C, this c

Re: python simply not scaleable enough for google?

2009-11-15 Thread Edward A. Falk
In article , Robert Brown wrote: > >It's hard to refute your assertion. You're claiming that some future >hypothetical Python implementation will have excellent performance via a JIT. >On top of that you say that you're willing to change the definition of the >Python language, say by adding type

Re: Language mavens: Is there a programming with "if then else ENDIF" syntax?

2009-11-16 Thread Edward A. Falk
In article , Steve Ferg wrote: >I've often thought that a language with this kind of block-free syntax >would be nice and intuitive: > >if then >do stuff >elif then >do stuff >else >do stuff >endif > >Note that you do not need block delimiters. "then", "

Re: Code for finding the 1000th prime

2009-11-17 Thread Edward A. Falk
In article , mrholtsr wrote: >I am absolutely new to python and barely past beginner in programming. >Also I am not a mathematician. Can some one give me pointers for >finding the 1000th. prime for a course I am taking over the internet >on Introduction to Computer Science and Programming. Thanks

ANN: Leo 4.7 b3 released

2010-02-02 Thread Edward K Ream
including new command line options and new plugins. - Dozens of bug fixes. Edward K. Ream Links: -- Leo: http://webpages.charter.net/edreamleo/front.html Forum:http://groups.google.com/group/leo-editor Download: http://sourceforge.net/project/showfiles.php?group_id=3458

ANN: Leo 4.7 rc1 released

2010-02-12 Thread Edward K Ream
eo-editor Download: http://sourceforge.net/project/showfiles.php?group_id=3458 Bzr: http://code.launchpad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream February 12, 2010 -- http://mail.python.org/mailman/listinfo/python-list

Re: When will Python go mainstream like Java?

2010-02-22 Thread Edward A. Falk
You mean it's not? -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

ANN: Leo 4.7 final released

2010-02-23 Thread Edward K Ream
Leo 4.7 finalFebruary 23, 2009 Leo 4.7 final is now available at: http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106 Leo 4.7 final fixes all known bugs in Leo. Leo is a text editor, data organizer, project manager and much more. See: http://webpages.

Re: ANN: Leo 4.7 final released

2010-02-24 Thread Edward K Ream
On Tue, 23 Feb 2010 07:53:44 -0600, Edward K Ream wrote: A critical bug has been reported against Leo 4.7 final, and indeed all previous versions of Leo 4.7. The bug can cause loss of data in @file nodes when Leo 4.7 saves .leo files created with older versions of Leo. This bug will be fixed

ANN: Leo 4.7.1 released

2010-02-26 Thread Edward K Ream
Leo 4.7.1 final is now available at: http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106 Leo 4.7.1 fixes a dangerous bug in Leo 4.7. When converting file-like sentinels to thin-like sentinels in an external file, Leo now issues a warning and sets the corresponding @file nod

Re: DOS Follies (Was: Docstrings...)

2010-03-03 Thread Edward A. Falk
In article , D'Arcy J.M. Cain wrote: >On Wed, 03 Mar 2010 20:44:08 +0100 >mk wrote: >> It reminds me of why Windows uses backslashes for path separation >> instead of slashes: what I've *heard*, and do not know if it's true, >> it's because Gates fancied using / for options switch instead of -,

Leo 4.8 rc1 released

2010-11-15 Thread Edward K. Ream
ttp://groups.google.com/group/leo-editor Download: http://sourceforge.net/project/showfiles.php?group_id=3458 Bzr: http://code.launchpad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream November 15, 2010 -- http://mail.python.org/mailman/listinfo/python-list

ANN: Leo 4.8 final

2010-11-26 Thread Edward K. Ream
groups.google.com/group/leo-editor Download: http://sourceforge.net/project/showfiles.php?group_id=3458 Bzr: http://code.launchpad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream November 26, 2010 -- http://mail.python.org/mailman/listinfo/python-list

Re: python only prints integers

2011-01-06 Thread Edward A. Falk
In article , Ian wrote: > >In Python 3, the '/' operator always performs true division. How can I get integer division? -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: INCONTROVERTIBLE PROOF of the Incompetence of FBI

2010-06-15 Thread Edward A. Falk
In article <25a8c044-c361-4851-bbb4-58c195733...@g19g2000yqc.googlegroups.com>, nanothermite911fbibustards wrote: >This is all due to DISINFORMATION - FBI bustards are the cause of it. Dude, seriously. Get your dosage adjusted. And find a different newsgroup. -- -Ed Falk, f...@despams

<    1   2   3   4   5   6   >