Re: Nonuniform PRNG?

2022-12-07 Thread Robert E. Beaudoin
m bit stream, but if they fail that should indicate a problem. Robert E. Beaudoin On Wed, 7 Dec 2022 11:05:53 -0500 David Lowry-Duda wrote: > Inspired by the recent thread about pseudorandom number generators on > python-ideas (where I also mistakenly first wrote this message), I > b

I have no clue figuring out how to check dates in workholidays

2020-11-06 Thread J.J. E.
Hi, Thank you for allowing me in this support mailing list. My experience with Python is short due to my new job. My boss told me that I need to create a code that checks yesterday's date. The conditions for returning none are that: - Yesterday happens to be a holiday, - Yesterday turns out

why no camelCase in PEP 8?

2020-05-18 Thread Lance E Sloan
I've been using Python for about 18 years. Several things have changed in the language in those years. I don't disagree with most of it, but one of the things that annoys me is the disapproval of using camelCase to name symbols such as variables, functions, etc. I think PEP 8, the "Style Guid

Re: PyInstaller+ Python3.5 (h5py import error)

2015-09-25 Thread Hedieh E
On Thursday, September 24, 2015 at 1:12:31 PM UTC+2, Laura Creighton wrote: > In a message of Thu, 24 Sep 2015 02:58:35 -0700, Heli Nix writes: > >Thanks Christian, > > > >It turned out that h5py.defs was not the only hidden import that I needed to > >add. > > > >I managed to get it working with

rhythmbox plugin problem

2015-06-24 Thread L E
Hello, I am trying to get some old plugins I wrote to wrote on anewer version of rhythmbox. When I try to load the plugin I see: (rhythmbox:3092): libpeas-WARNING **: nowplaying-lcd: /usr/lib/rhythmbox/plugins/nowplaying-lcd/libnowplaying-lcd.so: cannot open shared object file: No such file or d

Re: Gpg python installer

2015-04-01 Thread E Smitty
On Wednesday, April 1, 2015 at 4:26:40 PM UTC-7, leonardo davinci wrote: > I am using Kleopatra(gpg for win) to verify the 3.4.3 python installer, > Windows x86 MSI > > >. This file does > >not have a email in the digital signaure and I a

Please help - Python role in Emeryville, CA - Full-time - $100K+

2014-12-17 Thread Jared E. Cardon
Hi, I found your Python group on Google+ and I'm searching for someone with 3+ years of Python development experience for a full-time position in California. Salary north of $100K and working for an amazing company. Ideally I'd like to find someone who is nice, plugged into the movie and comi

Re: GCD in Fractions

2014-09-24 Thread Robert E. Beaudoin
On 09/24/14 09:25, blindanagram wrote: On 24/09/2014 12:44, Steven D'Aprano wrote: blindanagram wrote: [snip] - Mathworld says that GCD of two negative numbers is a negative number; - but Mathematica says that GCD of two negative numbers is a positive; - Wikipedia agrees with Mathematica an

Re: comparing alternatives to py2exe

2014-09-06 Thread daniel . e . rossy
I found this: https://pypi.python.org/pypi/py2exe/0.9.2.0 Also, thanks for the spreadsheet, it's very useful. -- https://mail.python.org/mailman/listinfo/python-list

More questions on Python strings

2014-08-31 Thread Dennis E. Evans
Hi I have a function that reads some meta data from a database and builds a default order by and where clause for a table. some details, rows is a list of pyOdbc.Row and will look like this [1, 'ColumnName', 3, 5] there will be one to n elements EmptyString, defaultColumn, default

redirect stderr to syslog?

2014-08-15 Thread Russell E. Owen
We are using the syslog module for logging, and would like to redirect stderr to our log. Is there a practical way to do it? I realize the logging module supports this and has a syslog writer, so that's a fallback. But we were hoping to use the syslog module for performance. -- Russell -- ht

Re: Mac python py2app problem

2014-07-17 Thread Russell E. Owen
In article , Gregory Ewing wrote: > Nicholas Cannon wrote: > > I do like the idea of making a .dmg file > > because i have used them downloading other apps and it works great but i > > dont > > know how to make them! > > In Disk Utility, use File>New>Disk Image from Folder. Or...open Disk Uti

Re: python newbie

2014-06-18 Thread Maura E Monville
On Wednesday, June 18, 2014 1:50:54 PM UTC+1, Steven D'Aprano wrote: > On Wed, 18 Jun 2014 05:10:03 -0700, Maura E Monville wrote: > > > > > My supervisor has palmed me off with a python code, written by a > > > collaborator, which implements an algor

python newbie

2014-06-18 Thread Maura E Monville
My supervisor has palmed me off with a python code, written by a collaborator, which implements an algorithm aimed at denoising the dose distribution (energy per unit mass) output from a radiation transport Monte Carlo code. My task is to translate the python code into a MatLab code. A colleague

Re: Can global variable be passed into Python function?

2014-02-24 Thread j . e . haque
On Sunday, February 23, 2014 5:01:25 AM UTC-6, Marko Rauhamaa wrote: > Chris Angelico : > > > That's the exact line of thinking that leads to problems. You are not > > > placing a number at the address "xyz", you are pointing the name "xyz" > > > to the number 3. That number still exists elsewhe

bw2ui installation failure

2014-02-02 Thread e-letter
Readers, Firstly, sorry for the cross-post: https://groups.google.com/d/topic/brightway2/-akB-OQBZi4 Any advice about forcing installation of a later version of a software please? -- https://mail.python.org/mailman/listinfo/python-list

scipy error invalid path

2014-01-31 Thread e-letter
Readers, Used the community edition service of activepython web site to install python27. Within the 'bin' directory, received the following error: $ ./easy_install-2.7 scipy Searching for scipy Reading https://pypi.python.org/simple/scipy/ Best match: scipy 0.13.2 Downloading https://pypi.pytho

Suggested GUI framework for Mac and unix?

2014-01-06 Thread Russell E. Owen
I have a free cross-platform Python GUI application that has to run on Mac and linux. It is presently written in Tkinter, but for various reasons* it may be time to switch. I've heard many good things about wxpython and qt, but not used either, and am wondering if somebody could tell me if eith

Re: Running python's own unit tests?

2013-11-15 Thread Russell E. Owen
In article <5285223d.50...@timgolden.me.uk>, Tim Golden wrote: > http://docs.python.org/devguide/ Thank you and the other responders. I was expecting to find the information here under Building Python. The developer's guide is a nice resource. -- Ru

Running python's own unit tests?

2013-11-14 Thread Russell E. Owen
I'm building python from source and trying to figure out how to test the result. I must be overlooking something obvious, but I looked through the documentation and source and tried some google searches (which turn up plenty about writing unit tests in python, but nothing about testing a python

Re: Getting a list in user defined selection order

2013-03-14 Thread e . tekinalp
Am Donnerstag, 14. März 2013 10:34:31 UTC+1 schrieb e.tek...@gmx.de: > Hello everybody, > > > > I want to select components(vertices) in a particular Order with python. > > So when I create a list the main problem is, that maya is not listing the > verts in the correct selected order as I did.

Re: Getting a list in user defined selection order

2013-03-14 Thread e . tekinalp
Ah sorry this is the correct snippet cmds.selectPref(tso = 1) vtx = cmds.ls(os = 1, flatten = 1) print vtx the other one wouldn't make any sense. :) -- http://mail.python.org/mailman/listinfo/python-list

Getting a list in user defined selection order

2013-03-14 Thread e . tekinalp
Hello everybody, I want to select components(vertices) in a particular Order with python. So when I create a list the main problem is, that maya is not listing the verts in the correct selected order as I did. Here an example: I have selected from a polySphere the following vtx [sphere.vtx400

Re: Why is Ruby on Rails more popular than Django?

2013-03-07 Thread Russell E. Owen
In article <3d9fe0b2-7931-4ab6-8929-235460729...@q9g2000pbf.googlegroups.com>, rusi wrote: > On Mar 6, 11:03 pm, Jason Hsu wrote: > > I'm currently in the process of learning Ruby on Rails.  I'm going through > > the Rails for Zombies tutorial, and I'm seeing the power of Rails. > > > > I sti

Re: Keeping a Tkinter GUI alive during a long running process

2012-12-26 Thread Russell E. Owen
In article , Kevin Walzer wrote: > I maintain a Tkinter application that's a front-end to to a package > manger, and I have never been able to find a way to keep the app from > locking up at some point during the piping in of the package manager's > build output into a text widget. At some po

Re: Tkinter bug in Entry widgets on OS X

2012-09-13 Thread Russell E. Owen
In article , Kevin Walzer wrote: > On 8/31/12 6:18 AM, Arnaud Delobelle wrote: > > I'm very inexperienced with Tkinter (I've never used it before). All > > I'm looking for is a workaround, i.e. a way to somehow suppress that > > output. > > What are you trying to do? Navigate the focus to anot

Re: Single leading dash in member variable names?

2012-09-12 Thread e . doxtator
On Tuesday, September 11, 2012 5:02:31 PM UTC-5, Erik Max Francis wrote: > On 09/11/2012 01:53 PM, me wrote: > > > On Tuesday, September 11, 2012 2:06:45 PM UTC-5, Ian wrote: > > >> On Tue, Sep 11, 2012 at 12:45 PM, I wrote: > > >>> What is the significance of the leading underscore in "self._b

Re: Single leading dash in member variable names?

2012-09-11 Thread e . doxtator
On Tuesday, September 11, 2012 2:06:45 PM UTC-5, Ian wrote: > On Tue, Sep 11, 2012 at 12:45 PM, I wrote: > > > All > > > > > > Python noob here. Trying to understand a particular syntax: > > > > > > class stuff: > > > def __init__(self): > > > self._bongo = "BongoWorld" > > >

Single leading dash in member variable names?

2012-09-11 Thread e . doxtator
All Python noob here. Trying to understand a particular syntax: class stuff: def __init__(self): self._bongo = "BongoWorld" --- What is the significance of the leading underscore in "self._bongo"? I've seen this a few times and, after looking through PEP 8, I didn't see

Re: What's wrong with this code?

2012-07-23 Thread Russell E. Owen
In article , Chris Angelico wrote: > On Tue, Jul 24, 2012 at 12:50 AM, Stone Li wrote: > > > > I'm totally confused by this code: > > > > Code: > > Boiling it down to just the bit that matters: > > c = None > d = None > x = [c,d] > e,f =

Re: can someone teach me this?

2012-07-23 Thread E.
e complete code with all sources. Everything is > open to everyone since I change this from another expert. > > http://dl.dropbox.com/u/63928380/blackjack.rar > > Thanks for your help and instructions. > > Best regards, > > menghsiu Maybe you want to show us

what do these mean

2012-05-20 Thread e-mail mgbg25171
There's a little forth program written in python here #http://openbookproject.net/py4fun/forth/forth.py I'm struggling to understand what these lines mean. def rJnz (cod,p) : return (cod[p],p+1)[ds.pop()] def rJz (cod,p) : return (p+1,cod[p])[ds.pop()==0] Specifically I'm stuck on what (code[p],

what does newP = func(code,p) do?

2012-05-16 Thread e-mail mgbg25171
It's been a long time since I did any Python and I've never done that In C I'm used to storing function ptrs and then having to use some other constructs to call them. To be able to store func and then use func to call itself like that threw me...it's very elegant. Thank you very much for your very

what does newP = func(code,p) do?

2012-05-16 Thread e-mail mgbg25171
def execute (code) : p = 0 while p < len(code) : func = code[p] p += 1 newP = func(code,p) if newP != None : p = newP I'm trying to work out what this does code is a list of function addresses and numbers What on earth is funct(code,p) doing

Re: pickle question: sequencing of operations

2012-05-09 Thread Russell E. Owen
In article , Ian Kelly wrote: > On Tue, May 8, 2012 at 1:19 PM, Russell E. Owen wrote: > > In article , > >  "Russell E. Owen" wrote: > > > >> What is the sequence of calls when unpickling a class with __setstate__? > > I believe it jus

Re: pickle question: sequencing of operations

2012-05-08 Thread Russell E. Owen
In article , "Russell E. Owen" wrote: > What is the sequence of calls when unpickling a class with __setstate__? > > >From experimentation I see that __setstate__ is called and __init__ is > not, but I think I need more info. > > I'm trying to pickle an in

pickle question: sequencing of operations

2012-05-04 Thread Russell E. Owen
What is the sequence of calls when unpickling a class with __setstate__? >From experimentation I see that __setstate__ is called and __init__ is not, but I think I need more info. I'm trying to pickle an instance of a class that is a subclass of another class that contains unpickleable objects.

From the crest of Olivet...

2012-04-28 Thread E Bmums
"From the crest of Olivet, Jesus looked upon Jerusalem. Fair and peaceful was the scene spread out before Him. It was the season of the Passover, and from all lands the children of Jacob had gathered there to celebrate the great national festival. In the midst of gardens and vineyards, and gre

From the crest of Olivet...

2012-04-16 Thread E Bmums
"From the crest of Olivet, Jesus looked upon Jerusalem. Fair and peaceful was the scene spread out before Him. It was the season of the Passover, and from all lands the children of Jacob had gathered there to celebrate the great national festival. In the midst of gardens and vineyards, and gre

[Click the star to watch this topic] HOT LINKS FOR YOUTH ONLY

2012-04-11 Thread e kartheeka
[Click the star to watch this topic]HOT LINKS FOR YOUTH ONLY -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it necessary to call Tk() when writing a GUI app with Tkinter?

2012-03-05 Thread Russell E. Owen
In article <3d0bf288-fa5d-48e5-9529-db92d420a...@1g2000yqv.googlegroups.com>, Rick Johnson wrote: > On Feb 29, 11:24 pm, Terry Reedy wrote: > > On 2/29/2012 10:22 PM, Rick Johnson wrote: > > > > PS: I would highly suggest against using the "from Tkinter import *". > > > Instead, use "import T

Generator problem: parent class not seen

2012-02-01 Thread Russell E. Owen
I have an odd and very intermittent problem in Python script. Occasionally it fails with this error: Traceback (most recent call last): File "/Applications/APO/TTUI.app/Contents/Resources/lib/python2.7/TUI/Base/Bas eFocusScript.py", line 884, in run File "/Applications/APO/TTUI.app/Contents/R

Re: Decorator question: prefer class, but only function works

2011-11-14 Thread Russell E. Owen
In article , Ian Kelly wrote: > On Thu, Nov 10, 2011 at 2:52 PM, Russell E. Owen wrote: > > I am trying to write a decorator that times an instance method and > > writes the results to a class member variable. For example: > > > > def timeMethod(func): >

Decorator question: prefer class, but only function works

2011-11-10 Thread Russell E. Owen
I am trying to write a decorator that times an instance method and writes the results to a class member variable. For example: def timeMethod(func): def wrapper(self, *args, **keyArgs): t1 = time.time() res = func(self, *args, **keyArgs) duration = time.time() - t1

Re: Python interactive terminal in Ubuntu Linux : some keys fouled up

2010-01-06 Thread t r z e w i c z e k
e thing! cheers, trzewiczek -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Validating cells of a table PyQt

2010-01-06 Thread t r z e w i c z e k
here was a part with validators that looked pretty nice. You can easly and legally download this book from various sites. Best from Poland, trzewiczek -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- http://mail.python.org/mailman/listinfo/python-list

Re: setting Referer for urllib.urlretrieve

2009-09-04 Thread E
rievals are done.  (Or > maybe I just don't understand wget's full array of options well > enough.)  This means that my referrer changes as I bounce up and down > the hierarchy, which makes this less convenient.  Still, it does seem > more convenient that re-writing the module from scratch. Just wanted to add a note. I used the sample code posted above, and I would get this syntax error: NameError: global name 'addheader' is not defined The fix for the code is to change the line that references addheader to say this: self.addheader('Referer', url) ~E -- http://mail.python.org/mailman/listinfo/python-list

Re: Natural Language Processing in Python

2009-08-15 Thread Alejandro E. Ciniglio
nltk is a good start, we used it in my Computational Linguistics course in school. www.nltk.org --Alejandro -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.6.2

2009-04-17 Thread Russell E. Owen
In article , Ned Deily wrote: > In article , > Russell Owen wrote: > > I installed the Mac binary on my Intel 10.5.6 system and it works, > > except it still uses Apple's system Tcl/Tk 8.4.7 instead of my > > ActiveState 8.4.19 (which is in /Library/Frameworks where one would > > expect)

Re: RELEASED Python 2.6.2

2009-04-15 Thread Russell E. Owen
Thank you for 2.6.2. I see the Mac binary installer isn't out yet (at least it is not listed on the downloads page). Any chance that it will be compatible with 3rd party Tcl/Tk? Most recent releases have not been; the only way I know to make a compatible build is to build the installer on a ma

Re: Counter Class -- Bag/Multiset

2009-01-23 Thread msrachel . e
On Jan 23, 12:27 am, bearophileh...@lycos.com wrote: > bearophile: > > > Are keys restricted to be long and int values only? Or are they > > general (referenced) objects + a control of their integral nature? > > Here I meant values, sorry. > Also: what's the rationale of allowing negative values to

Re: Counter Class -- Bag/Multiset

2009-01-22 Thread msrachel . e
On Jan 22, 5:54 pm, Paul Rubin wrote: > Giovanni Bajo writes: > > * I'm not a native speaker, but why use the word "Counter"? > > I agree with this, the new functionality is welcome but I think > the traditional term "multiset" or "bag" would have been better. The t

Re: Counter Class -- Bag/Multiset

2009-01-22 Thread msrachel . e
On Jan 22, 5:41 pm, Giovanni Bajo wrote: > * I find it *very* confusing c.items() vs c.elements(). Items and > elements are synonymous (again, in my understanding of English). Would have used the term "items" but that term has a different meaning in the context of dictionaries where "items" means

Version upgrade blocked mentally

2008-11-29 Thread Adam E
I have read in my copy of Programming Python that all strings will be Unicode and there will be a byte type. This is mentally keeping me from upgrading to 2.6 . I'm curious, but are there still some who prefer Python 2.5? I don't mind constructive criticsm. -- http://mail.python.org/mailman/listi

Re: Texas Python Regional Unconference Reminders

2008-10-01 Thread Travis E. Oliphant
yourself to the Attendees page if you're able to make it. Also, if you're planning to attend, please send me the following information (to [EMAIL PROTECTED]) so I can request wireless access for you during the meeting: - Full Name - Phone or email - Address - Affiliation

Re: Attachment Size and SMTP EMail

2008-09-23 Thread Eric E
On Sep 23, 9:52 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-09-23, Eric E <[EMAIL PROTECTED]> wrote: > > > I am using python to send an email with a large zip file as an > > attachment. I successfully sent a 52M attachment. If I try > > to send a 6

Attachment Size and SMTP EMail

2008-09-23 Thread Eric E
Hello All - I am using python to send an email with a large zip file as an attachment. I successfully sent a 52M attachment. If I try to send a 63M attachment or larger, the message never gets through. I do not get any errors in my python code. I pasted my python code below. from email.MIMEBa

Python, Factset, and Excel - Oh my!

2008-09-18 Thread Desmond Scott E
ld be greatly appreciated! Scott E. Desmond Director & Manager Equity Systems Development IT Integration Lead Mellon Capital Management Corporation 500 Grant Street, Suite 4200 Pittsburgh, PA 15258 T 412.236.0405 | F 412.236.1703 [EMAIL PROTECTED] | www.mcm.com The information contained in th

wx

2008-09-11 Thread Desmond Scott E
_AUTOSIZE)) idx = self.GetNextItem(idx, wx.LIST_NEXT_ALL, wx.LIST_STATE_DONTCARE) Any help would be greatly appreciated! I do have Shrubbery! Scott Scott E. Desmond Director & Manager Equity Systems Development IT Integration Lead Mellon Capital Management Corporation 500 Grant Street, Suite

Re: Tkinter event loop question

2008-08-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, gordon <[EMAIL PROTECTED]> wrote: > On Aug 29, 4:45 am, "Russell E. Owen" <[EMAIL PROTECTED]> wrote: > >your Controller object should not create root nor should > > it call mainloop to start the event loop. > >

Re: Tkinter event loop question

2008-08-28 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, gordon <[EMAIL PROTECTED]> wrote: > On Aug 27, 10:42 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > so I guess the question here is from where you expect to call that > > method, and what you expect Tkinter to do when you call it... > > thanks for the reply >

Re: rules of thumb for cross os code

2008-08-22 Thread Adam E
On Aug 22, 9:55 am, DwBear75 <[EMAIL PROTECTED]> wrote: > I am considering using python as a replacement for a lot of bash > scripting that I have been doing. I would like to be as cross platform > as possible, writing scripts for both windows and linux. Are there any > guides are general rules of

Re: Tkinter, toplevel and images

2008-08-22 Thread Adam E
On Aug 22, 9:17 am, Pedro <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to build a small application that can display some images > in a toplevel window. I have this code: > > def Results(master): > from Tkinter import Toplevel, Button, Label > from PIL import ImageTk > > figures = ['f

Re: ActiveState Python v2.5 doesn't come with Tkinter or Tk installed.

2008-08-14 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Dudeja, Rajat" <[EMAIL PROTECTED]> wrote: > Hi, > > So, now I've finally started using Eclipse and PyDev as an IDE for my > GUI Application. I just wrote some sample programs as an hands on. > > Now I would like to take up Tkinter. I'm using Active State Python

Can't seem to build python against custom tcl/tk

2008-08-13 Thread Russell E. Owen
I'm trying to build a non-framework python on MacOS X 10.5 using a custom tcl/tk that lives in an arbitrary directory. (For complicated reasons we don't want the system tcl/tk). It is easy to build an X11 tcl/tk this way (and we are content with X11) so I did that. Unfortunately I can't seem to

Could someone please review patch 799428: fix Tkinter tk_focusNext?

2008-08-01 Thread Russell E. Owen
Patch is a trivial (one word) fix to a long-standing issue with Tkinter: calls to the widget method tk_focusNext() fail with "unsubscriptable object" error. Admittedly we've lived a long time with this bug. But the fix is so simple and so obviously safe that

Re: like py2exe, but on a mac

2008-07-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Tommy Nordgren <[EMAIL PROTECTED]> wrote: > On 28 jul 2008, at 03.59, William McBrine wrote: > > > On Sun, 13 Jul 2008 00:58:59 +0200, Python.Arno wrote: > > > >> http://undefined.org/python/py2app.html > > > > py2app bundles Python itself into the app, right? I w

Re: like py2exe, but on a mac

2008-07-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, William McBrine <[EMAIL PROTECTED]> wrote: > On Sun, 13 Jul 2008 00:58:59 +0200, Python.Arno wrote: > > > http://undefined.org/python/py2app.html > > py2app bundles Python itself into the app, right? I wonder, is there no > way to create an app bundle that relie

Re: graphing lifelines

2008-07-15 Thread E. J. Gold is the Hi-Tech Shaman
On Jul 15, 3:38 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > > Certainly a "Hi-Tech Shaman" can whip something up to do this, right? > Yes, well E.J. Gold is the Hi-Tech Shaman. I'm Terrence Brannon, stating that fact :) So, maybe EJ could whip up such a thing :) I like the sci.math answer I go

graphing lifelines

2008-07-15 Thread E. J. Gold is the Hi-Tech Shaman
(crossposted to sci.math) I'm looking for a tool which will take a dataset of tuples indicating the year of birth and death of a person: (1872, 1950, "Sri Aurobindo") (1821, 1910, "Mary Baker Eddy") (1831, 1891, "HP. Blavatksy") And graph them out, in bars, annotating them with the person's name

Re: Brand New!

2008-06-11 Thread agent E 10
k that's wonderful! > > I think problem solving language independent. As long as you can break down > what you need to do and conceptualize. You must have learned to do with with > botany, so programming came natural :) > > -- > Nick Stinemates ([EMAIL PROTECTED])http://ni

Re: Pass data from Python to C++

2008-05-15 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, brad <[EMAIL PROTECTED]> wrote: > I have some c++ binaries that do rather intense number computations. > They do it well and rather quickly compared to other languages (not just > Python). ... > > However, other components can be written in a more user friendly,

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Torsten Bronger <[EMAIL PROTECTED]> wrote: > Hallöchen! > > Russell E. Owen writes: > > > [...] > > > > So...to repeat the original question, is there any simpler > > unicode-safe replacement for str(exception)? &

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Donn Cave <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > > >> I have code like this: > > >> except Exception, e: > > >

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Bjoern Schliessmann <[EMAIL PROTECTED]> wrote: > "Martin v. Löwis" wrote: > > > e is an exception object, not a Unicode object. > > Er, sure, thanks for pointing that out. At first sight he should > substitute

Simple unicode-safe version of str(exception)?

2008-04-28 Thread Russell E. Owen
I have code like this: except Exception, e: self.setState(self.Failed, str(e)) which fails if the exception contains a unicode argument. I did, of course, try unicode(e) but that fails. The following works, but seems rather messy: except Exception, e: errStr = ",".join([unicod

Re: Brand New!

2008-04-15 Thread agent E 10
On Apr 14, 8:37 pm, Benjamin <[EMAIL PROTECTED]> wrote: > On Apr 14, 9:00 pm, agent E 10 <[EMAIL PROTECTED]> wrote:>    Hi, I'm brand > new to programming. Have any suggestions? I'm young. > > Was it a good idea to start with python? I was planning on creating

Brand New!

2008-04-14 Thread agent E 10
Hi, I'm brand new to programming. Have any suggestions? I'm young. Was it a good idea to start with python? I was planning on creating a very simple program that asked yes/no questions for a school project. -Thanks! -- http://mail.python.org/mailman/listinfo/python-list

RE: Do any of you recommend Python as a first programming language?

2008-03-26 Thread Carnell, James E
I vote a strong yes! I went through a MIS major and learned java first. This was a disaster for me typing these long nonsense lines (I didn't understand how classes and their members worked). Next was C and we had to use a command line and notepad to do all our programs. I really didn't learn much

Python for Palm OS

2008-03-15 Thread E-Lo
Is there any other edition of Python for Palm OS instead of Pippy? -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: Missing the last piece of the puzzle

2008-02-27 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Simon Forman wrote: > > yes! check out > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/464635 > > > > HTH, > > ~Simon > > Thanks, Simon. Looks like that will do it. > > Actually, it looks like that will overdo it. I'll be

Re: Truncated postings

2008-02-13 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Hello, Over the past 24 hours or so, all of my Python-List e-mails have been > truncated to subject list only. No posts. Are others experiencing this > problem? Or is it just on my end? Thanks, Lloyd R. Prentice

Re: pyinstall and matplotlib

2008-02-13 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, John Henry <[EMAIL PROTECTED]> wrote: > On Feb 9, 2:53 pm, John Henry <[EMAIL PROTECTED]> wrote: > > Has anybody been able to create an exe of their python applications > > involving matplotlib using pyinstall (ver 1.3)? I am getting a: > > > > RuntimeError:

Re: Tkinter equiv for setPalette

2008-02-11 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Helmut Jarausch <[EMAIL PROTECTED]> wrote: > Hi, > > I am to convert an old Perl-Tk script to Python. > It starts by > my $MW= new MainWindow; > $MW->setPalette(background => 'AntiqueWhite1', foreground => 'blue'); > > Is there an equivalent for Tkinter? How can

Re: Running files with the associated program...

2008-02-06 Thread E-Lo
On Feb 6, 6:09 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 05 Feb 2008 22:34:59 -0200, E-Lo <[EMAIL PROTECTED]> escribió: > > > How can I start a file (on Windows) with the associated program, > > http://docs.python.org/lib/os-process.html

Running files with the associated program...

2008-02-05 Thread E-Lo
Hello all, How can I start a file (on Windows) with the associated program, Like if I want to open a bmp file, I want to to be shown in the program that all bmp files are associated with. I need a python code to do this. Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with Tkinter scrollbar callback

2008-01-25 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Ivan Van Laningham" <[EMAIL PROTECTED]> wrote: > Hi All-- > That helps. Doing a get() on the scrollbar before a set(0.0,0.0) > returns a 4-tuple: (0.0, 0.0, 0.0, 0.0) ! I did the set(0.0,0.0) > and now the callback gets the correct number of arguments. > > Ho

Re: looking for a light weighted library/tool to write simple GUI above the text based application

2008-01-25 Thread Lorenzo E. Danielsson
[EMAIL PROTECTED] wrote: >>> is already solved). >> what you are looking for is curse :) >> http://docs.python.org/lib/module-curses.html >> http://www.ibm.com/developerworks/linux/library/l-python6.html >> >> renaud > > Renaud, thanks for your reply. > > I think I was not specific/clear enough i

Re: Problem with Tkinter scrollbar callback

2008-01-24 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Ivan Van Laningham" <[EMAIL PROTECTED]> wrote: > Hi All-- > I'm having two problems with the scrollbar callback on linux systems > (Fedora 7, Suse 10.1,2 and 3 all exhibit the issues). > > Problem one: on Windows, the callback is called with the arguments as > s

Re: When is min(a, b) != min(b, a)?

2008-01-23 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Christian Heimes <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: > > In many applications (e.g. process control) propogating NaN > > values are way too useful to avoid. Avoiding NaN would make a > > lot of code far more complicated than would using them. > > Na

Re: Printing user input?

2007-11-15 Thread Lorenzo E. Danielsson
On Thu, 2007-11-15 at 09:03 -0800, Mohammed_M wrote: > Hi, > I'm v.new to Python, so please don't be too harsh :) > I get a NameError with the code below - All I want to do is store some > input taken from the user in a variable called name, & then print name > > # START CODE

Re: Using python as primary language

2007-11-13 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Michel Albert <[EMAIL PROTECTED]> wrote: > In our company we are looking for one language to be used as default > language. So far Python looks like a good choice (slacking behind > Java). A few requirements that the language should be able cope with > are: > > *

Re: Valgrind and Python

2007-11-10 Thread Esa A E Peuha
Jean-Paul Calderone <[EMAIL PROTECTED]> writes: > Did you use the suppression file? No, I didn't, because I was testing Valgrind on binaries that happened to be installed on a Linux machine, and had no reason to treat Python specifically. I see that README.valgrind explains why Python reads memo

Valgrind and Python

2007-11-09 Thread Esa A E Peuha
Running Python 2.5.1 under Valgrind is interesting; just starting it and then pressing Ctrl-D produces this: ==27082== ERROR SUMMARY: 713 errors from 56 contexts (suppressed: 10 from 1) ==27082== malloc/free: in use at exit: 1,243,153 bytes in 508 blocks. ==27082== malloc/free: 3,002 allocs, 2,494

Re: Build Python 2.5 against Tk 8.5

2007-10-16 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Kevin Walzer <[EMAIL PROTECTED]> wrote: > Martin v. Löwis wrote: > >> I'd like to experiment with Tk 8.5 (now in beta) in my Python > >> application, but Python 2.5 requires Tk 8.4.x. > > > > Why do you say that? AFAIK, that's not the case. > > It's been a while,

Re: List append

2007-09-15 Thread Rob E
On Sat, 15 Sep 2007 03:25:27 +, mouseit wrote: > I'm trying to add an element to a list which is a property of an > object, stored in an array. When I append to one element, all of the > lists are appended! > > Example Code: > > class Test: > array = [] > > myTests = [Test() , Test() ,

Re: An ordered dictionary for the Python library?

2007-09-12 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Wed, 12 Sep 2007 07:33:45 +, Mark Summerfield wrote: > > > I feel that Python lacks one useful data structure: an ordered > > dictionary. > > > > I find such data structures v. useful in C++. > [snip] > > > Pe

Re: Tkinter pack difficulty

2007-09-12 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Simon Forman <[EMAIL PROTECTED]> wrote: > Hi all, > > I realize this is more of a Tk question than a python one, but since > I'm using python and don't know Tcl/Tk I figured I'd ask here first > before bugging the Tcl folks. > > I am having a terrible time trying

Calling a matlab script from python

2007-09-05 Thread n o s p a m p l e a s e
Suppose I have a matlab script mymatlab.m. How can I call this script from a python script? Thanx/NSP -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling a dos batch file from python

2007-09-05 Thread n o s p a m p l e a s e
On Sep 4, 5:01 pm, [EMAIL PROTECTED] wrote: > On Sep 4, 8:42 am, n o s p a m p l e a s e <[EMAIL PROTECTED]> > wrote: > > > Suppose I have a batch file called mybatch.bat and I want to run it > > from a python script. How can I call this batch file in python scri

  1   2   3   >