Re: From JoyceUlysses.txt -- words occurring exactly once

2024-06-04 Thread Edward Teach via Python-list
On Mon, 03 Jun 2024 14:58:26 -0400 (EDT) Grant Edwards wrote: > On 2024-06-03, Edward Teach via Python-list > wrote: > > > The Gutenburg Project publishes "plain text". That's another > > problem, because "plain text" means UTF-8and that m

Re: From JoyceUlysses.txt -- words occurring exactly once

2024-06-03 Thread Edward Teach via Python-list
On Sat, 1 Jun 2024 13:34:11 -0600 Mats Wichmann wrote: > On 5/31/24 11:59, Dieter Maurer via Python-list wrote: > > hmmm, I "sent" this but there was some problem and it remained > unsent. Just in case it hasn't All Been Said Already, here's the > retry: > > > HenHanna wrote at 2024-5-30 13:03

Re: Add a method to list the current named logging levels

2022-03-30 Thread Edward Spencer
在 2022年3月30日星期三 UTC+1 16:38:26, 写道: > > On 30 Mar 2022, at 16:11, Edward Spencer wrote: > > > > 在 2021年9月3日星期五 UTC+1 18:50:51, 写道: > >>>> On 2 Sep 2021, at 23:38, Dieter Maurer wrote: > >>> > >>> Edward Spencer wrote at 2021-9-2

Re: Add a method to list the current named logging levels

2022-03-30 Thread Edward Spencer
在 2021年9月3日星期五 UTC+1 18:50:51, 写道: > > On 2 Sep 2021, at 23:38, Dieter Maurer wrote: > > > > Edward Spencer wrote at 2021-9-2 10:02 -0700: > >> Sometimes I like to pass the logging level up to the command line params > >> so my user can specific what level

Add a method to list the current named logging levels

2021-09-02 Thread Edward Spencer
Sometimes I like to pass the logging level up to the command line params so my user can specific what level of logging they want. However there is no easy method for pulling the named logging level names. Looking into the code, it would actually be incredibly easy to implement; in `logging.__in

multiprocessing

2020-04-20 Thread Edward Montague
Upon using sympy's rubi_integrate upon my quad core computer, I find that the first CPU is being used 100%, whilst the other three are around 1% and 2% . I'm wondering if you have some code to overcome this limitation. -- https://mail.python.org/mailman/listinfo/python-list

rubi integrate

2020-04-19 Thread Edward Montague
After wrestling with version incompatibilities and incomplete code, I have produced test code and an edited version of rubi.py . For rubi.py I found it necessary to replace exp with rubi_exp, in a few locations; you may want to check this, files are attached. Perhaps this isn't an issue with a m

wxFormBuilder

2020-02-28 Thread Edward Montague
The videos on YouTube by fandangleproductions, have been of some use. However as I also use the Geany editor, I find that I need to append this extra code to the Python script generated from wxFormBuilder. # - extra code --- class MyApp(wx.App): def OnI

Unable to find newly installed Python 3.7.1

2018-11-23 Thread Edward Popko
Snake people: I'm a Java person and thought to try Python for Windows. I installed Python 3.7.1 (64-bit) hoping for an IDE, documentation and even a sample or two. The python-3.7.1-amd64.exe unpacks and installs fine. Only problem is I cannot find it. There was no install option to add an shortcu

os with python[s]

2018-07-13 Thread Edward Montague
I encounter numerous problems when changing between versions of python ; one possible answer , Fedora 28 Labs python . So far this has been fairly reliable , I installed Geany , as this is my preferred editor for Python. -- https://mail.python.org/mailman/listinfo/python-list

matchpy

2017-11-12 Thread Edward Montague
After successfully installing python 3.6.3 and the appropriate version of IDLE , I attempted to run a matchpy example , to no avail . I'm using a debian distribution , 8.x or greater , is there something I need to be aware of . The error report points to a statement containing a ' -> ' character

GUI Designer[s]

2017-06-25 Thread Edward Montague
I've become a bit more familiar with wxglade , wxFormBuilder and to a lesser extent BoaConstructor. There are however numerous other possiblities and extensions . I'd like to eventually have 3D graphics within an application constructed through a GUI Designer ; preferably with quality approach

RE: type hinting backward compatibility with python 3.0 to 3.4

2017-05-19 Thread Edward Ned Harvey (python)
This pattern seems to work: import sys if sys.version_info[0] < 3: raise RuntimeError("Must use at least python version 3") # The 'typing' module, useful for type hints, was introduced in python 3.5 if sys.version_info[1] >= 5: from typing import Optional optional_float = Optional[fl

type hinting backward compatibility with python 3.0 to 3.4

2017-05-19 Thread Edward Ned Harvey (python)
I think it's great that for built-in types such as int and str, backward compatibility of type hinting annotations is baked into python 3.0 to 3.4. In fact, I *thought* python 3.0 to 3.4 would *ignore* annotations, but it doesn't... I'm struggling to create something backward compatible that re

Re: Installing Python 3 on Windows

2016-08-02 Thread Edward Diener
On 8/2/2016 8:11 AM, Uri Even-Chen wrote: Hi, I want to install Python 3 on Windows, but I also need Python 2 for Google App Engine SDK. When I type a name of a Python file in command line, I want it to run with Python 3. However, I checked with "print 3/5" and it printed 0 - Python 2. I have th

mayavi mlab mesh plot3d grid from mesh

2016-06-15 Thread Edward Montague
Hi, I'm wondering if there's any way to overlay a grid upon a mlab.mesh or mlab.surf graph. As an example of what I mean I shall attempt to attach a small file maya2.jpg . -- https://mail.python.org/mailman/listinfo/python-list

Re: Python launcher options

2016-01-10 Thread Edward Diener
On 1/10/2016 6:38 AM, Tim Golden wrote: On 10/01/2016 05:18, Edward Diener wrote: On 1/9/2016 11:03 AM, Tim Golden wrote: On 06/01/2016 00:48, Edward Diener wrote: The Python launcher in Windows is a neat tool for running multiple versions of Python 2 and Python 3 at different times. It

Re: Python launcher options

2016-01-10 Thread Edward Diener
On 1/10/2016 6:38 AM, Tim Golden wrote: On 10/01/2016 05:18, Edward Diener wrote: On 1/9/2016 11:03 AM, Tim Golden wrote: On 06/01/2016 00:48, Edward Diener wrote: The Python launcher in Windows is a neat tool for running multiple versions of Python 2 and Python 3 at different times. It

Re: Python launcher options

2016-01-09 Thread Edward Diener
On 1/9/2016 11:03 AM, Tim Golden wrote: On 06/01/2016 00:48, Edward Diener wrote: The Python launcher in Windows is a neat tool for running multiple versions of Python 2 and Python 3 at different times. It allows as options the ability to specify the latest version of either Python 2 or Python

Python launcher options

2016-01-05 Thread Edward Diener
The Python launcher in Windows is a neat tool for running multiple versions of Python 2 and Python 3 at different times. It allows as options the ability to specify the latest version of either Python 2 or Python 3 defaulting to the 64-bit version if both exist, or a specific 32-bit or 64-bit v

Help with exscript with Cisco asa

2014-12-07 Thread Edward Manning
I am trying to login to enable mode on a Cisco ASA with this script. I can’t seem to get the enable mode to work. Can anyone help. Does anyone know of a good doc for exscript lib. Thank you Ed from Exscript.util.start import quickstart from Exscript.util.file import get_hosts_from_fil

Re: Controlling py.exe launcher on Windows

2014-08-05 Thread Edward Diener
On 8/5/2014 1:27 PM, Edward Diener wrote: I am trying to control the default version of the py.exe launcher on Windows. I have the Python 2.7.8 and 3.4.1 installed with both the 32 bit and 64 bit versions, all in different directories. I assume that .py and .pyw files are associated with the

Re: Python 3.4.1 install does not create a file association for .py files on Windows

2014-08-05 Thread Edward Diener
On 8/5/2014 6:16 PM, Terry Reedy wrote: On 8/5/2014 3:36 PM, Edward Diener wrote: I install Python 3.4.1 64-bit on Windows. After the install I type: I have done the same, on Win 7, but I had previous installs going back 3 years on this machine. assoc .py and I get back: File association

Python 3.4.1 install does not create a file association for .py files on Windows

2014-08-05 Thread Edward Diener
I install Python 3.4.1 64-bit on Windows. After the install I type: assoc .py and I get back: File association not found for extension .py Why does not the Python install to associate extension .py with the Python Launcher for Windows ? -- https://mail.python.org/mailman/listinfo/python-list

Controlling py.exe launcher on Windows

2014-08-05 Thread Edward Diener
I am trying to control the default version of the py.exe launcher on Windows. I have the Python 2.7.8 and 3.4.1 installed with both the 32 bit and 64 bit versions, all in different directories. I assume that .py and .pyw files are associated with the py.exe launcher. I am trying to control whi

Re: gethostbyaddr()

2014-07-28 Thread Edward Manning
Chris Thank you for the info. I figure it out. But thank you again. Ed > On Jul 28, 2014, at 5:42 PM, Chris Kaynor wrote: > > On Mon, Jul 28, 2014 at 2:33 PM, Edward Manning wrote: > I wrote this code, but it seem to work fine if I only have one ip in the > file. When I hav

gethostbyaddr()

2014-07-28 Thread Edward Manning
I wrote this code, but it seem to work fine if I only have one ip in the file. When I have more than one IP in the file I get a error. Does anyone have an idea why. import socket def main(): # get file names infileName = input ("What file our the IP adderss in? ") outfile

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-05 Thread Edward Diener
On 10/5/2012 5:32 PM, Dennis Lee Bieber wrote: On Fri, 05 Oct 2012 08:15:30 -0400, Edward Diener declaimed the following in gmane.comp.python.general: Windows installs of Python do not distinguish releases by Pythonx(.x) but just install different versions of Python in different directories

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-05 Thread Edward Diener
On 9/30/2012 3:38 PM, Andrew Berg wrote: On 2012.09.30 14:14, Edward Diener wrote: The situation is so confusing on Windows, where the file associations, registry entries, and other internal software which allows a given Python release to work properly when invoking Python is so complicated

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-05 Thread Edward Diener
On 10/1/2012 12:02 PM, Alister wrote: On Sun, 30 Sep 2012 15:14:17 -0400, Edward Diener wrote: Has there been any official software that allows both the Python 2.x and 3.x releases to coexist on the same OS so that the end-user can easily switch between them when invoking Python scripts after

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-05 Thread Edward Diener
On 10/1/2012 1:32 PM, Dennis Lee Bieber wrote: On Sun, 30 Sep 2012 23:06:04 -0400, Edward Diener declaimed the following in gmane.comp.python.general: My thought is a program distributed by Python which finds the versions of Python on an OS, lets the end-user choose which version should be

Re: Coexistence of Python 2.x and 3.x on same OS

2012-09-30 Thread Edward Diener
On 9/30/2012 3:38 PM, Andrew Berg wrote: On 2012.09.30 14:14, Edward Diener wrote: The situation is so confusing on Windows, where the file associations, registry entries, and other internal software which allows a given Python release to work properly when invoking Python is so complicated

Coexistence of Python 2.x and 3.x on same OS

2012-09-30 Thread Edward Diener
Has there been any official software that allows both the Python 2.x and 3.x releases to coexist on the same OS so that the end-user can easily switch between them when invoking Python scripts after each has been installed to their own directories/folders ? I know of some unoffical solutions,

Re: Python equivalent to the "A" or "a" output conversions in C

2012-06-19 Thread Edward C. Jones
On 06/19/2012 12:41 PM, Hemanth H.M wrote: >>> float.hex(x) '0x1.5p+3' Some days I don't ask the brightest questions. Suppose x was a numpy floating scalar (types numpy.float16, numpy.float32, numpy.float64, or numpy.float128). Is there an easy way to write x in binary or hex?

Python equivalent to the "A" or "a" output conversions in C

2012-06-19 Thread Edward C. Jones
Consider the following line in C: printf('%a\n', x); where x is a float or double. This outputs a hexadecimal representation of x. Can I do this in Python? -- http://mail.python.org/mailman/listinfo/python-list

Hashable object with self references OR how to create a tuple that refers to itself

2012-06-15 Thread Edward C. Jones
I am trying to create a collection of hashable objects, where each object contains references to other objects in the collection. The references may be circular. To simplify, one can define x= list() x.append(x) which satisfies x == [x]. Can I create a similar object for tuples which sa

Re: Using modules from Debian "python3-..." packages with locally compiled Python 3.3

2012-05-08 Thread Edward C. Jones
Terry Reedy said: > Question 1: if you use the .pth method, do you get the same result? (I expect you will, but good to > check.) Recompiled Pyhton 3.3 without the SITEPATH change. Same result: > python3.3 Python 3.3.0a3 (default, May 8 2012, 19:57:45) [GCC 4.6.3] on linux Type "help", "cop

Using modules from Debian "python3-..." packages with locally compiled Python 3.3

2012-05-08 Thread Edward C. Jones
I use up-to-date Debian testing (wheezy), amd64 architecture. I downloaded, compiled and installed Python 3.3.0 alpha 3 (from python.org) using "altinstall". Debian wheezy comes with python3.2 (and 2.6 and 2.7). I installed the Debian package "python3-bs4" (BeautifulSoup4 for Python3). Note: De

Re: How to determine if IO redirection is occurring with the output from a Python program?

2012-04-17 Thread Edward d'Auvergne
what happens when the ansi escape characters are not supported. Cheers, Edward On 17 April 2012 16:29, pat wrote: > Check os.isatty(fd). It will return True if fd is a terminal-like device. > > On Tue, Apr 17, 2012 at 5:21 PM, Edward d'Auvergne > wrote: >> >> Hi, &g

How to determine if IO redirection is occurring with the output from a Python program?

2012-04-17 Thread Edward d'Auvergne
output is solely to the terminal, and in all other cases (redirection to file via '>', pipes via '|', or more complex redirections) the ascii escape characters are suppressed. Any ideas would be appreciated! Cheers, Edward -- Edward d'Auvergne, PhD Lead develope

ANN: Leo 4.10 final released

2012-04-02 Thread Edward K. Ream
eo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream ------ Edward K. Ream email: edream...@gmail.com Leo: http://webpages.charter.net/edreamleo/front.html -

ANN: Leo 4.10 b1 released

2012-03-22 Thread Edward K. Ream
Leo 4.10 b1 is now available at: http://sourceforge.net/projects/leo/files/ Leo is a text editor, data organizer, project manager and much more. http://webpages.charter.net/edreamleo/intro.html Leo 4.10 contains 9 months of intense work on Leo. Several very important features are subtle; you coul

Please critique my script

2011-07-14 Thread Ellerbee, Edward
tt = "destination-pattern %s" % line.rstrip() o.write(destpatt) o.write('\n') port = "port " + p o.write(port) o.write('\n') if line[0:3] == y and q == "y": o.write("forward-digits 7") o.write('\n') o.write('\n') count3 = count3 + 1 o.close() #--- Thanks! Edward Ellerbee -- http://mail.python.org/mailman/listinfo/python-list

RE: Suppressing newline writing to file after variable

2011-07-14 Thread Ellerbee, Edward
Holy cow, that's perfect! Thanks so much :) Would it be alright if I post my code on the list for critiquing? I'm learning python to supplement my voice engineering position - time consuming tasks that can be automated will take less time. Edward Ellerbee -Original Message

RE: I don't know list, I not good at list.

2011-07-14 Thread Ellerbee, Edward
s there a way to determine the common (first-5 digits) denominator among a list (or file) of data? 3. and... Could those common numbers be inserted in a dict for processing? Sorry for the book! thanks Edward Ellerbee -Original Message- From: python-list-bounces+eellerbee=bbandt@

I don't know list, I not good at list.

2011-07-13 Thread Ellerbee, Edward
I've been beating my head against the desk trying to figure out a method to accomplish this: Take a list (this example is 5 items, It could be 150 or more - i.e. it's variable length depending on the city/local calling zones) The first 6 digits of phone numbers(NPA/NXX) in a local calling area. I

RE: Suppressing newline writing to file after variable

2011-06-28 Thread Ellerbee, Edward
04799 (all numbers listed individually in a file) Condense to: 25220[568] 25222[0-3] (or 25222[0123] is fine too) 9197[248]5 7047[0-9][0-9] Any recommendations on where to start, a method or function to research? Thanks! Edward Ellerbee -Original Message- From: Noah Hall [mailto:enali...

Suppressing newline writing to file after variable

2011-06-28 Thread Ellerbee, Edward
Hi all, newbie question here. I'm using python 2.7. I've built my first program to pull some info off the web, process it, and build dialpeers for a cisco router. I have 2 problems - the first is the formatting of printing the gathered information to a file. It seems to be inserting a new line afte

ANN: Leo 4.9 final released

2011-06-21 Thread Edward K. Ream
ogle.com/group/leo-editor Download: http://sourceforge.net/projects/leo/files/ Bzr: http://code.launchpad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream June 21, 2011 -- http://mail.python.org/mailman/listinfo/python-list

Leo 4.9 b4 released

2011-06-14 Thread Edward K. Ream
ad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream June 14, 2011 -- http://mail.python.org/mailman/listinfo/python-list

Switching between Python releases under Windows

2011-03-08 Thread Edward Diener
I have multiple versions of Python installed under Vista. Is there any easy way of switching between them so that invoking python and file associations for Python extensions files work automatically ? -- 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: completely implicit interpolation based on a frame object (nn)

2010-12-09 Thread Edward Peschko
>> a bit closer here, but I'm not sure if they are >> workable (or usable) with 2.5... which is where I need to work. >> >> Ed > > One of the solutions from here might work for you: > > http://wiki.python.org/moin/Templating > Ok, cool. A couple of followups - I'd be interested in knowing which of

Re: completely implicit interpolation based on a frame object

2010-12-08 Thread Edward Peschko
>> Any ideas would be great on this, including pitfalls that people see >> in implementing it. >> > http://docs.python.org/library/string.html#template-strings > > regards >  Steve Steve, Thanks for the tip, I did look at templates and decided that they weren't quite completely what I was looking

completely implicit interpolation based on a frame object

2010-12-07 Thread Edward Peschko
All, Ok, it looks like in order to implement a tracer that does interpolation, I'm going to have to hack around with frames. Perl's interpolation is fairly straightforward, to do interpolation of $a == 1 all you need to do is put quotes around "$a == 1" to have $a evaluated. So, I'd like to do t

using trace to do 'in place' evaluation of variables

2010-12-07 Thread Edward Peschko
All, I've been using the trace module for python (as per http://www.dalkescientific.com/writings/diary/archive/2005/04/20/tracing_python_code.html), and would very much like to have a feature there that I've implemented for perl already. Namely, I would like output in the format as described on t

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

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 beta 1 released

2010-11-05 Thread Edward K. Ream
Leo 4.8 beta 1 is now available at: http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106 Leo is a text editor, data organizer, project manager and much more. See: http://webpages.charter.net/edreamleo/intro.html The highlights of Leo 4.8: -- - Leo n

Re: That interesting notation used to describe how long a loop will take.

2010-10-04 Thread Edward A. Falk
In article , Roy Smith wrote: >In article , > Tobiah wrote: > >Google for "Big-O notation". Depending on your level of interest, >expect to spend anywhere from an hour to the next four years reading >what pops out :-) Yeah, that's my problem with Wikipedia too. Plus, they like to just roll

Re: Frustrating segfaults with Shelf

2010-09-13 Thread Edward Grefenstette
Dear Emile, Thank you for your response. Upgrading python and starting with a blank database somehow did the trick! Best, Edward On Sep 13, 7:09 pm, Emile van Sebille wrote: > On 9/13/2010 10:05 AM Edward Grefenstette said... > > > Dear Pythonistas, > > > Below is a sim

Frustrating segfaults with Shelf

2010-09-13 Thread Edward Grefenstette
)] = rels" with "print rels" it works just fine. However every time I try to run it just inexplicably segfaults. Help, anyone? Best, Edward from WNvectorBuilder import relBuilder import sys import cPickle as pickle import shelve def main(argv

Database problems

2010-09-06 Thread Edward Grefenstette
with very large sets of data? If not, is there a more optimal tool for my needs? Or is the problem unrelated and has something to do with my lab computer? Best, Edward -- http://mail.python.org/mailman/listinfo/python-list

Re: Help needed with Windows Service in Python

2010-09-02 Thread Edward Kozlowski
On Sep 2, 2:38 pm, Ian wrote: >   On 02/09/2010 20:06, Edward Kozlowski wrote: > > > > > On Sep 2, 10:22 am, Ian Hobson  wrote: > >> Hi All, > > >> I am attempting to create a Windows Service in Python. > > >> I have the framework (from Mark Ha

Re: Help needed with Windows Service in Python

2010-09-02 Thread Edward Kozlowski
main__': >    win32serviceutil.HandleCommandLine(PythonService) Looks to me like there may be a typo in your code. You probably meant win32event.SetEvent(self.hWaitStop), not wind32event. Regards, -Edward Kozlowski -- http://mail.python.org/mailman/listinfo/python-list

Re: urgent requirement at Hyderabad

2010-08-11 Thread Edward A. Falk
In article , Stefan Behnel wrote: >In case anyone wondered: Hyderabad is likely referring to some place in Asia: It's one of the high-tech cities in India. A lot of out-sourcing winds up there. -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspot.com/ -- http://m

Re: Why is python not written in C++ ?

2010-08-05 Thread Edward Diener
On 8/2/2010 5:42 PM, Mark Lawrence wrote: On 02/08/2010 00:08, candide wrote: Python is an object oriented langage (OOL). The Python main implementation is written in pure and "old" C90. Is it for historical reasons? C is not an OOL and C++ strongly is. I wonder if it wouldn't be more suitable

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 10:42 PM, David Robinow wrote: On Sun, Jul 25, 2010 at 8:40 PM, Edward Diener wrote: On 7/25/2010 5:57 PM, Thomas Jollans wrote: So if a standard library module ( or distributed library ) executes a call internally to 'python xxx yyy' or executes a call int

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 8:41 PM, Steven D'Aprano wrote: On Sun, 25 Jul 2010 15:19:53 -0400, Edward Diener wrote: On 7/25/2010 10:03 AM, Thomas Jollans wrote: On 07/25/2010 02:46 PM, Edward Diener wrote: The problem with this is that you forget that a script can invoke Python internally. So whethe

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 5:57 PM, Thomas Jollans wrote: On 07/25/2010 11:10 PM, Edward Diener wrote: On 7/25/2010 3:39 PM, Christian Heimes wrote: Am 25.07.2010 21:32, schrieb Thomas Jollans: If a script uses sys.executable instead of "python", there is no problem, at all. It's true that

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 4:26 PM, News123 wrote: On 07/25/2010 10:18 PM, Thomas Jollans wrote: On 07/25/2010 10:04 PM, News123 wrote: sOn 07/25/2010 09:39 PM, Christian Heimes wrote: Am 25.07.2010 21:32, schrieb Thomas Jollans: If a script uses sys.executable instead of "python", there is no problem, at

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 4:22 PM, News123 wrote: On 07/25/2010 09:33 PM, Edward Diener wrote: On 7/25/2010 10:31 AM, News123 wrote: On 07/25/2010 02:46 PM, Edward Diener wrote: On 7/25/2010 6:07 AM, Gelonida wrote: How does a 'pystarter' program know where the file's location is

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 3:39 PM, Christian Heimes wrote: Am 25.07.2010 21:32, schrieb Thomas Jollans: If a script uses sys.executable instead of "python", there is no problem, at all. It's true that sys.executable is the best way if you have to start a new Python interpreter. However sys.executable may n

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 3:32 PM, Thomas Jollans wrote: On 07/25/2010 09:19 PM, Edward Diener wrote: On 7/25/2010 10:03 AM, Thomas Jollans wrote: On 07/25/2010 02:46 PM, Edward Diener wrote: The problem with this is that you forget that a script can invoke Python internally. So whether one uses the

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 10:31 AM, News123 wrote: On 07/25/2010 02:46 PM, Edward Diener wrote: On 7/25/2010 6:07 AM, Gelonida wrote: There the windows solution could be something like a small 'pystarter' program, which would decide depending on the file's location / the file's fir

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 10:03 AM, Thomas Jollans wrote: On 07/25/2010 02:46 PM, Edward Diener wrote: The problem with this is that you forget that a script can invoke Python internally. So whether one uses the console or file association method of invoking Python externally, any already written script can

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 1:51 PM, Joel Goldstick wrote: Edward Diener wrote: Are there any documents about multiple versionsof Python coexisting in the same OS ( Windows in my case ) and what pitfalls to look out for ? I have already run into a number of them. I installed Python 2.7 and 3.1.2 into

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 2:20 AM, Steven D'Aprano wrote: On Sat, 24 Jul 2010 22:03:48 -0700, Chris Rebert wrote: Are the .py and .pyc extensions the only ones which are associated with Python or are there others, for a normal Python installation in Windows ? There's also .pyw Also .pyo .py = Python so

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread Edward Diener
On 7/25/2010 6:07 AM, Gelonida wrote: Hi Edward, On 07/25/2010 04:40 AM, Edward Diener wrote: I found the solutions too exotic for actual use, and completely ineffectual for the cases I originally cited. The people in that thread seem to have completely forgotten that Python can be invoked

Re: Multiple versions of Python coexisting in the same OS

2010-07-24 Thread Edward Diener
On 7/24/2010 6:25 AM, Mark Lawrence wrote: On 24/07/2010 04:17, Edward Diener wrote: Are there any documents about multiple versionsof Python coexisting in the same OS ( Windows in my case ) and what pitfalls to look out for ? I have already run into a number of them. I installed Python 2.7 and

Re: Multiple versions of Python coexisting in the same OS

2010-07-24 Thread Edward Diener
On 7/24/2010 6:25 AM, Mark Lawrence wrote: On 24/07/2010 04:17, Edward Diener wrote: Are there any documents about multiple versionsof Python coexisting in the same OS ( Windows in my case ) and what pitfalls to look out for ? I have already run into a number of them. I installed Python 2.7 and

Multiple versions of Python coexisting in the same OS

2010-07-23 Thread Edward Diener
Are there any documents about multiple versionsof Python coexisting in the same OS ( Windows in my case ) and what pitfalls to look out for ? I have already run into a number of them. I installed Python 2.7 and 3.1.2 into completely folders, but immediately ran into serious problems executing a

Re: Different python versions confusion under Windows Vista x64

2010-07-19 Thread Edward Diener
On 7/19/2010 5:45 PM, Edward Diener wrote: On 7/19/2010 9:15 AM, Alf P. Steinbach /Usenet wrote: * Edward Diener, on 19.07.2010 14:53: In Windows Vista x64 I have installed python 2.6 64-bit version and python 3.1 64-bit version to separate folders. Within the command interpreter I add python

Re: Different python versions confusion under Windows Vista x64

2010-07-19 Thread Edward Diener
On 7/19/2010 9:15 AM, Alf P. Steinbach /Usenet wrote: * Edward Diener, on 19.07.2010 14:53: In Windows Vista x64 I have installed python 2.6 64-bit version and python 3.1 64-bit version to separate folders. Within the command interpreter I add python 2.6 to the PATH. In the command interpreter

Different python versions confusion under Windows Vista x64

2010-07-19 Thread Edward Diener
In Windows Vista x64 I have installed python 2.6 64-bit version and python 3.1 64-bit version to separate folders. Within the command interpreter I add python 2.6 to the PATH. In the command interpreter, When I type python somescript.py with an import sys print (sys.version) in the script, it

Difference between import in script and from interpreter

2010-07-18 Thread Edward Diener
In a python script a: from xxx.yyy.zzz import aaa fails with the message: "ImportError: No module named xxx.yyy.zzz" but from within the python interpreter the same line succeeds. What would be the causes of that ? From within the python interpreter I have looked at sys.path and xxx.yyy.zz

Re: why is this group being spammed?

2010-07-18 Thread Edward A. Falk
In article , Alf P. Steinbach /Usenet wrote: > >Consider, there would be almost no spam if spamming didn't pay. Or if ISPs refused to tolerate it from their customers. -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspot.com/ -- http://mail.python.org/mailman/listi

Re: why is this group being spammed?

2010-07-18 Thread Edward A. Falk
In article <334170d5-a336-4506-bda1-279b40908...@k1g2000prl.googlegroups.com>, be.krul wrote: >why is this group being spammed? They're *all* being spammed. Why? Because they can, and because Google doesn't care. -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspo

Re: I strongly dislike Python 3

2010-06-29 Thread Edward A. Falk
In article , Stephen Hansen wrote: >> >> Uhmm, just add the parenthesis to your old scripts. You can >> do that without breaking on 2.x. > >Only sort of. But in Python 2.6+, you only need to "from __future__ >import print_function" to make code work in both 2.x and 3.x (at least >insofar as the

Re: I strongly dislike Python 3

2010-06-28 Thread Edward A. Falk
In article , Stephen Hansen wrote: > >Any other use, I basically operate on a file object. I use file objects all the time. I use print with them. -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: I strongly dislike Python 3

2010-06-28 Thread Edward A. Falk
In article , Stephen Hansen wrote: > >No one said otherwise, or that print was useless and never used in such >contexts. I was responding to the question "Also, do you use print *that* much? Really?" The implication being that in the majority of useful python programs, you don't really need to

Re: I strongly dislike Python 3

2010-06-28 Thread Edward A. Falk
In article , Grant Edwards wrote: > >Maybe it's just me, but I find both debugging and small scripts to be >very useful. Ditto. I've also written a number of large scripts, and I *always* use print in them. -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspot.com/

Re: I strongly dislike Python 3

2010-06-28 Thread Edward A. Falk
In article , Thomas Jollans wrote: >There is no reason for print not being a function. Also, do you use >print *that* much? Really? I use it all the time. Who doesn't? What do you use instead? -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspot.com/ -- http://

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

Re: [Edu-sig] [ANNC] pynguin-0.7 (python turtle graphics application)

2010-04-11 Thread Edward Cherlin
ow much of the Standard Library turtle model gets used here. > Is the turtle stuff all rewritten from scratch. > > Kirby > ___ > Edu-sig mailing list > edu-...@python.org > http://mail.python.org/mailman/listinfo/edu-sig > -- Ed

Re: [Edu-sig] [ANNC] pynguin-0.7 (python turtle graphics application)

2010-04-11 Thread Edward Cherlin
t; > Changes in pynguin-0.5: >     - catch errors when processing graphic move queue >     - capture and hold stdout and stderr >     - call str() on argument to write >     - guard against sending non-int to color > > > _ > Hotmail: Trusted email with Mic

Re: [Edu-sig] Method / Functions - What are the differences?

2010-03-10 Thread Edward Cherlin
mailing list > edu-...@python.org > http://mail.python.org/mailman/listinfo/edu-sig > -- Edward Mokurai (默雷/धर्ममेघशब्दगर्ज/دھرممیگھشبدگر ج) Cherlin Silent Thunder is my name, and Children are my nation. The Cosmos is my dwelling place, the Truth my destination. http://www.earthtreasury.org/ -- http://mail.python.org/mailman/listinfo/python-list

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 -,

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: 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

  1   2   3   4   5   6   >