Re: R.S.I. solutions?

2006-09-27 Thread Eric S. Johansson
Dennis Lee Bieber wrote: > On Tue, 26 Sep 2006 15:03:41 -0400, "Eric S. Johansson" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> What's really strange is that most people think laptop keyboards are >> horrible but I absolutely

Re: Making sure script only runs once instance at a time.

2006-09-27 Thread Eric S. Johansson
the right locking mechanism, and the lock will go away when the process exits which helps on cleanup from abnormal terminations. ---eric -- http://mail.python.org/mailman/listinfo/python-list

another distutils question

2006-09-29 Thread Eric S. Johansson
lt setting for this commandline option as well as a couple of other such as the data default directory. --- eric -- http://mail.python.org/mailman/listinfo/python-list

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
Robert Kern wrote: > Eric S. Johansson wrote: >> is there anyway I can, in a setup.py file, set and internal equivalent >> to the '--install-scripts' commandline option? > > Please don't. Hard-coding that interferes with the user's decision of where &g

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
> install_scripts=/path/to/scripts/directory > thank you thank you thank you. That was the magic bit of missing information. Now I get to puzzle out how to install the CGI plus images plus stylesheets plus plus plus mess. Probably a bit outside of the scope of distutils even if the CGI pro

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
Robert Kern wrote: > Eric S. Johansson wrote: > >> Now I get to puzzle out how to install the CGI plus images plus >> stylesheets plus plus plus mess. Probably a bit outside of the scope of >> distutils even if the CGI programs are Python. ;-) > > I recommend

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
Eric S. Johansson wrote: > So what I have seen so far says that to be able to take data from a > series of directories scatter it to other directories may be out of > scope. It's okay. If I have to write a wrapper, it won't be the first > time. do'h. http://docs.

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
nership with a file is up to you. It might work to use data_files to enumerate files you apply the common perms/owernship. then special case what you need to. hope this gives you some useful ideas. --- eric -- http://mail.python.org/mailman/listinfo/python-list

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
ly ignore the configuration files and focus on what I'm trying to solve. --- eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Making sure script only runs once instance at a time.

2006-10-02 Thread Eric S. Johansson
ements is some form of scoreboard mechanism where you can lock individual records in a file (i.e. dbm). I do something like this in a demon which owns the dbm, mediates database access, and record locking so that I can have multiple readers and writers at the same time using gdbm. But y

Re: httplib and large file uploads

2006-10-02 Thread Eric S. Johansson
quot;real file". obviously, world will be more difficult if you don't have a uniform chunk size or sequential creation of chunks. ---eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Making sure script only runs once instance at a time.

2006-10-03 Thread Eric S. Johansson
MonkeeSage wrote: > Eric S. Johansson wrote: >> the problem with this solution is that it does not handle the read >> nonexclusive/write exclusive locking model. In this model, reads don't >> block, they only register that the request is in process. writes lock

Re: CGI -> mod_python

2006-10-03 Thread Eric S. Johansson
7;t work anymore) I assume this is the library one could use if you were running on Python 2.3 or 2.4 http://cheeseshop.python.org/pypi/wsgiref --- eric -- http://mail.python.org/mailman/listinfo/python-list

differences between ubuntu and fedora python

2006-12-06 Thread Eric S. Johansson
fedora [EMAIL PROTECTED] ~]# file /etc/postfix/transport* /etc/postfix/transport:ASCII English text /etc/postfix/transport.db: Berkeley DB (Hash, version 8, native byte-order) # python /usr/lib/python2.4/whichdb.py /etc/postfix/transport UNKNOWN /etc/postfix/transport # python /usr/l

Re: MoinMoin configuration

2007-06-06 Thread Eric S. Johansson
and grub problems). So if you come up with a solution, feel free to e-mail me directly or if you have any other questions, also, feel free to send me mail. Might not know the answer but at least we can commiserate. :-) ---eric -- http://mail.python.org/mailman/listinfo/python-list

Python editors again (it's not the same old request)

2007-06-10 Thread Eric S. Johansson
I upgraded to version 9.5 and all of my tools which enabled me to program by voice in Emacs are broken. it's one of those dagnabbit a moment's of life. What I am looking for is a Windows based Python Smart editor that uses specific rich text edit controls as specified here: http://knowledgebas

Python in the Mozilla world

2007-06-10 Thread Eric S. Johansson
this morning I was looking at Python and XUL. I was impressed by the very interesting projects that were happening around 2005 but it seems like they have all died. Integrating Python at the Mozilla was also very intriguing as it held the promise of eliminating JavaScript for extension devel

Re: Python editors again (it's not the same old request)

2007-06-10 Thread Eric S. Johansson
Chris Mellon wrote: > wx does (in large part), but most likely the problem is that the "rich > text" control used in most editors is not the win32 rich text control, > but instead Scintilla, which is designed for source editing and is > much easier to use. Very few editors, of any kind, use the nat

Re: Python in the Mozilla world

2007-06-10 Thread Eric S. Johansson
Steve Howell wrote: > --- "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > I would not completely give up on the idea of Python > itself running in the browser, although obviously > there have been lots of false starts. > > http://www.voidspace.org.uk/python/we

Re: Python in the Mozilla world

2007-06-10 Thread Eric S. Johansson
Steve Howell wrote: > --- "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > http://www.voidspace.org.uk/python/weblog/arch_d7_2007_04_28.shtml#e702 >> interesting. Very interesting but I suspect the >> message is "don't hold your >> breath but don

Re: Python in the Mozilla world

2007-06-10 Thread Eric S. Johansson
Steve Howell wrote: > --- "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > >> Steve Howell wrote: >>> --- "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: >>> > http://www.voidspace.org.uk/python/weblog/arch_d7_2007_04_28.shtml#e702 &

in a bit of a quandary about an SMTP receiver

2007-07-15 Thread Eric S. Johansson
I have wasted way too much time on this problem already and I'm hoping it's just that I'm missing some bit of information somewhere. I need an SMTP receiver so I can handle filter requests from a postfix mail server. the asyncore version works fine for one request at a time. This is great ex

Re: Is PEP-8 a Code or More of a Guideline?

2007-05-28 Thread Eric S. Johansson
(kind of). Others, like I said, dropout. Tools to make programming by voice easier and not as damaging to the throat as unenhanced speech recognition with bumpy caps symbols, would significantly improve the lives of people you probably know and possibly your own life in the future. Feel free

Re: Is PEP-8 a Code or More of a Guideline?

2007-05-29 Thread Eric S. Johansson
Warren Stringer wrote: > Hi Eric, > > You make a compelling argument for underscores. I sometimes help a visually > impaired friend with setting up his computers. > > I'm wondering about the aural output to you second example: > > link.set_parse_action(emit_link_

Re: Is PEP-8 a Code or More of a Guideline?

2007-05-31 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > FWIW, even though I think proper-case-with-seperators is greatly > preferrable to camelCase, I certainly don't think that speaking the > names is a really major point. unless you or someone with working hands helps fix up voicecoder, it is a major point for people like

unifying many packages under one name

2007-08-23 Thread Eric S. Johansson
I have a collection of packages and I want to put them under single unifying name. my goal is to reduce namespace pollution and make all these packages accessible as 'import vvv.aaa'. In more detail, if I have packages 'aaa' and 'bbb', what do I do to put those packages under unifying name such

setup.py question

2007-08-28 Thread Eric S. Johansson
I have an environment where I have a bunch of data files or use would like Python application. I want to use the data_files specification of set up to distribute those files. But I also need to change ownership and permissions. I know there's some way to do this because I've done it once bef

Re: IDE for Python

2007-08-29 Thread Eric S. Johansson
Ben Finney wrote: > Stefan Behnel <[EMAIL PROTECTED]> writes: > "Neither"? Emacs is both editor *and* IDE. I think of it more as feature full but somehow unsatisfying. For example, for those of us PRDs ( Politely Referred to as Disabled) who are trying to program by voice could use an enumerat

fine grain logging cotrol

2007-03-22 Thread Eric S. Johansson
how to use signals to cause a long-running process to reload external data. Any good pointers? --- eric -- http://mail.python.org/mailman/listinfo/python-list

Re: fine grain logging cotrol

2007-03-22 Thread Eric S. Johansson
Peter Otten wrote: > Eric S. Johansson wrote: > >> I need to to be able to conditionally log based on the method the log >> statement is in and one other factor like a log level. in order to do >> so, I need to be able to automatically find out the name of the metho

Re: fine grain logging cotrol

2007-03-23 Thread Eric S. Johansson
Peter Otten wrote: > Eric S. Johansson wrote: > > [in private mail -- please don't, Eric] sorry. my preference is for private mail. it's my way of trying to be kind to others by reducing list clutter. > I don't understand. The logging package detects the f

Re: fine grain logging cotrol

2007-03-23 Thread Eric S. Johansson
Peter Otten wrote: > Eric S. Johansson wrote: > > Here is yet another revision of my example then: it's making more and more sense although I don't quite follow 'property' quite yet. But I see that get_logger is invoked prior to the __logger.info call. I was lo

Re: fine grain logging cotrol

2007-03-23 Thread Eric S. Johansson
Gabriel Genellina wrote: > I don't get all the details of what's all that stuff for, but from the > error and traceback, I think you forgot to create the filter_test > instance. That is, change lgr.addFilter(filter_test) to > lgr.addFilter(filter_test()) do'h . for some reason, I thought a

Re: fine grain logging cotrol

2007-03-24 Thread Eric S. Johansson
Dennis Lee Bieber wrote: > On Fri, 23 Mar 2007 21:15:56 -0400, "Eric S. Johansson" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> Gabriel Genellina wrote: >> >>> I don't get all the details of what's all that stuff

Re: fine grain logging cotrol

2007-03-24 Thread Eric S. Johansson
Dennis Lee Bieber wrote: > On Sat, 24 Mar 2007 11:29:34 -0400, "Eric S. Johansson" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >> yes. here is the code that fails. I don't understand why the unbound >> method. what is r

Re: fine grain logging cotrol

2007-03-24 Thread Eric S. Johansson
too many _ on the init, > meaning the initialization never took place, AND the references to > "test_names" needs to be prefixed with "self." my most common brain fades. I also miss tt/ttt, ss/sss, 1l and probably a few others. I sometimes think IDE's should have a &quo

organizing collections of small modules

2007-03-25 Thread Eric S. Johansson
are all up to date, I'm considering putting them all into one collection (rcsoc a.k.a. random cross-section of code[1]) so it's easier to load, install, and manage. Are there better techniques for managing collections of modules in 2.4 or later? ---eric [1] derives from the

Re: organizing collections of small modules

2007-03-25 Thread Eric S. Johansson
Jorge Godoy wrote: > "Eric S. Johansson" <[EMAIL PROTECTED]> writes: > >> I have a bunch of small modules that I use within my application. Most of >> these modules are single file modules. Currently, I have them set up as >> stand-alone modules but becau

wxPython, Syntax highlighting

2007-03-27 Thread Eric von Horst
Hi, I am looking for wx widget that has the ability to show text, edit the text (like a TextCtrl) but also does syntax highlighting (if the text is e.g. XML or HTML). I have been looking in the latest wxPython version but I could not really find anything. Any suggestions? (I need this because my

Re: Using Python To Change The World :)

2007-11-14 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > Hello, I'm a teen trying to do my part in improving the world, and me > and my pal came up with some concepts to improve the transportation > system. > > I have googled up and down for examples of using python to create a > city street but I can not find any. http://www

Re: Looking for a good Python environment

2007-11-14 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > Hey, I'm looking for a good Python environment. That is, at least an editor > and a debugger, and it should run on Windows. Does anyone have any idea? I've been looking for the equivalent although I want the IDE to run on Windows and to be able to edit/debug/bzr files on

Looking for a event-message-qeue framework

2007-11-18 Thread Eric von Horst
re destined for the agent. The agent should also be able to send events. Some queue mechanism would also be nice. Is there something like this in Python? (I really want to avoid Java or MQ series) Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python really a scripting language?

2007-12-15 Thread Eric S. Johansson
John Nagle wrote: > Yes. One of the basic design flaws of UNIX was that interprocess > communication was originally almost nonexistent, and it's still not all that > great. It's easy to run other programs, and easy to send command line > parameters, but all you get back is a status code, plu

Re: Is Python really a scripting language?

2007-12-15 Thread Eric S. Johansson
John Nagle wrote: > Eric S. Johansson wrote: >> John Nagle wrote: >>> Yes. One of the basic design flaws of UNIX was that interprocess >>> communication was originally almost nonexistent, and it's still not >>> all that >>> great. It'

mini component distribution question

2006-04-19 Thread Eric S. Johansson
o manually download? Two? Five? 100? I'd like to know if I'm missing something. Mini modules management and distribution should be possible without too much headache. --- eric -- http://mail.python.org/mailman/listinfo/python-list

Re: mini component distribution question

2006-04-19 Thread Eric S. Johansson
Ben Finney wrote: > "Eric S. Johansson" <[EMAIL PROTECTED]> writes: > >> as one would expect when creating a body of software, eventually you >> create a series of relatively generic components you find yourself using >> over and over again. As a re

Re: mini component distribution question

2006-04-19 Thread Eric S. Johansson
Ben Finney wrote: > "Eric S. Johansson" <[EMAIL PROTECTED]> writes: >> Ben Finney wrote: > setuptools allows downloads and/or installs from any specified > location. The Cheeseshop is just a convenient default location. > >>> - use easy_install

Re: How should multiple (related) projects be arranged (structured) and configured so that they can share code, have a related package structure and enable proper unittesting, and ensuring no namesp

2006-04-20 Thread Eric S. Johansson
sanely into non-Microsoft applications, I must jump through hoops to write Python on a UNIX box (NT Emacs + Webdrive). As a result my perspective is colored by my handicap in the same way the TABS experience colors your perception. ---eric -- http://mail.python.org/mailman/listinfo/python-list

Re: mini component distribution question

2006-04-20 Thread Eric S. Johansson
ion of which modules it uses including the meta tag "latest". It shouldn't be difficult either building a complete module template if you use some relatively simple form that "all" single file modules could work with. on the other hand, I may have just reinvented parts of eggs. :-) ---eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Progamming python without a keyboard

2006-05-05 Thread Eric S. Johansson
tifiable difference in the life of people with upper extremity disabilities. I hope people can help. --- eric -- http://mail.python.org/mailman/listinfo/python-list

converting to scgi

2006-05-08 Thread Eric S. Johansson
I'm looking for a scgi modules that make it easy to convert a CGI using the standard Python CGI module. I'm hoping for something that will run my program either as scgi or cgi. I did find something called paste which purports to be some sort of CGI Bridge framework but from the documentation,

first time use of swig, python and c++ .. it's a mess ... please advice

2008-02-26 Thread Eric von Horst
Hi, we have a third-party product that has a C++ api on HP-UX. I would like be able to use the API in Python (as I remember Python is good at doing this). I have no experience with this so I Googled and tried to find some info on what I had to do. So, I installed Python 2.4.4 and Swig 1.3.33 T

Re: first time use of swig, python and c++ .. it's a mess ... please advice

2008-02-28 Thread Eric von Horst
ll > (hopefully) compile. > > I'd focus on doing it manually, then getting distutils to work properly. > > -Original Message- > From: Hyuga [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 27, 2008 10:01 AM > To: [EMAIL PROTECTED] > Subject: Re: first time use

Re: anydbm safe for simultaneous writes?

2008-02-29 Thread Eric S. Johansson
ad to compare notes with you if you care to go the same route. Just let me know off list. I wish you the best of luck in your project. ---eric -- Speech-recognition in use. It makes mistakes, I correct some. -- http://mail.python.org/mailman/listinfo/python-list

Re: Backup Script over ssh

2008-02-29 Thread Eric S. Johansson
p?module=pagemaster&PAGE_user_op=view_page&PAGE_id=6&MMN_position=23:23 or google cwrsync I use in conjunction with rsnapshot for backing up xp and vista machines --- eric -- Speech-recognition in use. It makes mistakes, I correct some. -- http://mail.python.org/mailman/listinfo/python-list

[email protected]

2008-03-10 Thread Eric von Horst
Hi, I need some advice on Drag&Drop. What I want to achieve is the following: - I have a window that is divided in two : on the left hand I have a wx.TreeCtlr and on the other hand a wx.StaticBitmap I want to be able to drag an item from the tree onto the static bitmap. I know how to d

Python and 3D

2008-03-15 Thread Eric von Horst
to do some manipulations in bulk on a set of OBJs Any help much appreciated Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: special editor support for indentation needed.

2008-11-26 Thread Eric S. Johansson
Andreas Roehler wrote: > > with python-mode.el from > > http://sourceforge.net/projects/python-mode/ I think there's something wrong with the site because it tells me it's version 1.0 from year 2005. > Meanwhile I'll reflect a draft addressing your needs. there is a rather sizable set of thin

Re: I built a nice html templater!

2008-10-06 Thread Eric S. Johansson
Steve Holden wrote: > Tim Roberts wrote: >> Derick van Niekerk <[EMAIL PROTECTED]> wrote: >>> Ok - so it's not really an awesome achievement and only handles basic >>> templating needs (no loops and other programming constructs) but maybe >>> someone will find it useful. >> >> Sure, that's what th

special editor support for indentation needed.

2008-11-14 Thread Eric S. Johansson
in trying to make programming in Python more accessible to disabled programmers (specifically mobility impaired speech recognition users), and hitting a bit of a wall. The wall (for today) is indentation. I need a method of getting the "right indentation" without having to speak a bunch of unnece

Re: special editor support for indentation needed.

2008-11-14 Thread Eric S. Johansson
Almar Klein wrote: > Hi Eric, > > First of all, I like your initiative. there's nothing like self interest to drive one's initiative. :-) 14 years with speech recognition and counting. I'm so looking to my 15th anniversary of being injured next year another ini

Re: special editor support for indentation needed.

2008-11-14 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > On Nov 14, 4:08 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: >> Almar Klein wrote: >>> Hi Eric, >>> First of all, I like your initiative. >> there's nothing like self interest to drive one's initiative

Re: special editor support for indentation needed.

2008-11-14 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > I don't understand. If you don't want to terminate the "if", why do > you hit backspace? What is it that you would like to have happen? the goal is to make some aspects of indentation behave the same without context dependency. this goal exists for many features of pr

Re: special editor support for indentation needed.

2008-11-14 Thread Eric S. Johansson
Aaron Brady wrote: > On Nov 14, 8:01 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >>> I don't understand. If you don't want to terminate the "if", why do >>> you hit backspace? What is it that you wo

Re: special editor support for indentation needed.

2008-11-15 Thread Eric S. Johansson
u left,' etc. to which I would reply, "no need to be jealous. She wants to spend some private time with you too." But that really has nothing to do with editing by voice. :-) > >> I can >> almost guarantee it would drive you mad > > Perhaps it does. Honest curiosity and vicious curiosity are only > distinguishable after time. true. You know, if you live anywhere near Boston MA, I would like to spend a few hours with you, have you train up a voice model and try editing by voice. It would be interesting to watch you learn the environment. (If others are interested in this offer, e-mail me privately) ---eric -- http://mail.python.org/mailman/listinfo/python-list

Re: special editor support for indentation needed.

2008-11-15 Thread Eric S. Johansson
John Yeung wrote: > This is such a fascinating and compelling thread that it has pulled me > out of lurker mode. > > Eric, I would like to say I also admire your initiative, but even more > so your patience. You seem to handle comments of all types > gracefully. Should have se

Re: special editor support for indentation needed.

2008-11-15 Thread Eric S. Johansson
speech recognition users need from editors are these smart navigation commands so that one can perform more complex operations without worrying about indentation or position or things of that nature. my voice is wearing out. More later ---eric -- http://mail.python.org/mailman/listinfo/python-list

Re: special editor support for indentation needed.

2008-11-17 Thread Eric S. Johansson
Jeremiah Dodds wrote: > Eric, I don't have a good readily available solution to what you're > trying to do, but it seems to me that it would be worth your time to get > comfortable with elisp, and how it's used in emacs. The emacs > documentation is pretty good, even if

Re: special editor support for indentation needed.

2008-11-17 Thread Eric S. Johansson
John Yeung wrote: > On Nov 15, 8:50 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: >> well, therein lies the rub. I don't know lisp, >> I don't know Emacs internals let alone python mode. > > Unfortunately, neither do I. Actually, I haven'

Re: special editor support for indentation needed.

2008-11-18 Thread Eric S. Johansson
Andreas Roehler wrote: > IMO Jeremiah Dodds is right. With all the time spent on this discussion, you > could write the needed function in elisp probably. BTW your request seems > reasonable. Other python programmers may use it too. I tried learning lisp about 15 years ago. even bought a copy of

Modifying the value of a float-like object

2009-04-14 Thread Eric . Le . Bigot
Hello, Is there a way to easily build an object that behaves exactly like a float, but whose value can be changed? The goal is to maintain a list [x, y,…] of these float-like objects, and to modify their value on the fly (with something like x.value = 3.14) so that any expression like "x +y" uses

Re: Modifying the value of a float-like object

2009-04-14 Thread Eric . Le . Bigot
It looks like what is needed here are a kind of "mutable float". Is there a simple way of creating such a type? I don't mind changing the value through x.value = 1.23 instead of x = 1.23... :) On Apr 14, 3:03 pm, [email protected] wrote: > Hello, > > Is there a way to easily build

Re: Modifying the value of a float-like object

2009-04-14 Thread Eric . Le . Bigot
Thank you all for your input. It is not yet obvious how to achieve the goal/need that I had in mind in the original post. Basically, I would need to be able to calculate the derive() function of Peter, but without knowing what arguments are passed to the function f under study. Here is why: I'

Re: Modifying the value of a float-like object

2009-04-14 Thread Eric . Le . Bigot
Thanks Dave for your thoughtful remarks, which you sent right when I was writing a response to the previous posts. I was wondering about a kind "mutable float"; so you're right, it's not fully a float, because it's mutable. I'd like to have an object that behaves like a float in numerical calcula

Re: Modifying the value of a float-like object

2009-04-15 Thread Eric . Le . Bigot
ote: > > > The goal is to maintain a list [x, y,…] of these float-like > > > objects, and to modify their value on the fly (with something like > > > x.value = 3.14) so that any expression like "x > > > +y" uses the new value. > > > Why is that

Re: Modifying the value of a float-like object

2009-04-15 Thread Eric . Le . Bigot
To Peter: What I had in mind was to implement your calc() function; you could do something similar with your loop in the previous post by replacing "for f.shift..." by "f.shift = 1"; this would give you 2 values, which you can combine with your unused variable in order to obtain the same value as w

Re: Modifying the value of a float-like object

2009-04-15 Thread Eric . Le . Bigot
> Is there a way to easily build an object that behaves exactly like a > > float, but whose value can be changed?  The goal is to maintain a list > > [x, y,…] of these float-like objects, and to modify their value on the > > fly (with something like x.value = 3.14) so that any ex

Re: Modifying the value of a float-like object

2009-04-15 Thread Eric . Le . Bigot
Steven, I'd appreciate if you could refrain from criticizing so bluntly so many points. I'd be great if you trusted me more for knowing what I'm talking about; I've been a programmer for 25 years, now, and I pretty well know what my own code looks like! I appreciate your input, but please soften

Re: Modifying the value of a float-like object

2009-04-15 Thread Eric . Le . Bigot
To Dave A. and Piet: I appreciate your taking the time to make suggestions. I understand that there is a hitch in the approach that you describe, which I would like to insist on: how do you handle functions that use math.sin(), for instance? numpy does this kind of magic, but I'm not sure it's wi

Re: Modifying the value of a float-like object

2009-04-15 Thread Eric . Le . Bigot
ke x.value = 3.14) so that any expression like "x > > +y" uses the new value. > > Hi Eric, > > Numpy's array object can do something like what you want: > > In [27]: x=array(0.0) > > In [28]: print x, sin(x) > 0.0 0.0 > > In [29]: x.itemset(pi/2)

Re: Modifying the value of a float-like object

2009-04-15 Thread Eric . Le . Bigot
Arnaud, your code is very interesting! On Apr 15, 1:00 pm, Arnaud Delobelle wrote: > I still don't understand why you need mutable floats. Here is why: the code that your proposed (or any code that does straightforward error propagation, for that matter) does not generally calculate uncertaintie

Re: Modifying the value of a float-like object

2009-04-15 Thread Eric . Le . Bigot
Thanks, Piet! Before reading your post, I did not know that defining __float__() was enough for math.sin() to be able to calculate something! To summarize my current understanding for the original problem: - Mutable floats seem to be the only way of performing (correct) uncertainty calculations

Re: Modifying the value of a float-like object

2009-04-16 Thread Eric . Le . Bigot
Th^H^H On Apr 16, 5:51 am, [email protected] (Aahz) wrote: > In article <[email protected]>, > >   wrote: > > >Steven, I'd appreciate if you could refrain from criticizing so > >bluntly so many points.  I'd be great if you trusted me more for > >kn

Re: Modifying the value of a float-like object

2009-04-18 Thread Eric . Le . Bigot
On Apr 15, 5:33 pm, Arnaud Delobelle wrote: > I still don't think mutable floats are necessary.  Here is an approach > below - I'll let the code speak because I have to do some shopping! Hats off to you, Arnaud! I'm very impressed by the ideas found in your code. :) Your UExpr object is almost

Unicode conversion problem (codec can't decode)

2008-04-03 Thread Eric S. Johansson
g because it does the right things for my project. It takes strings or Unicode, stores everything as Unicode and then returns everything as Unicode. Quite frankly, I love to have my entire system run using Unicode strings but again, I missing some knowledge on how to force all of my modules to

Re: Unicode conversion problem (codec can't decode)

2008-04-04 Thread Eric S. Johansson
t it should and should not accept as text. Now that I've gotten through my particular "crisis" I need to sit down and generate a test case so the problem can be fixed. thanks again. ---eric -- Speech-recognition in use. It makes mistakes, I correct some. -- http://mail.python.org/mailman/listinfo/python-list

gdbm threadsafeness

2008-10-05 Thread Eric S. Johansson
how thread safe is the gdbm module? -- http://mail.python.org/mailman/listinfo/python-list

Re: [fcntl]how to lock a file

2006-04-07 Thread Eric S. Johansson
marcello wrote: > Hello > I need to do this: > 1 opening a file for writing/appending > 2 to lock the file as for writing (i mean: the program > that lock can keep writing, all others programs can't ) > 3 wtite and close/unlock http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203 been

drag and drop to icon

2006-04-12 Thread Eric S. Johansson
to start creating a test case. I would appreciate pointers to documentation (and yes I did Google before asking) how to create an icon on a desktop (Macintosh and Windows) and have that icon act on something which has been dropped on it. many thanks for any assistance ---eric -- http://mail.

Re: drag and drop to icon

2006-04-12 Thread Eric S. Johansson
Diez B. Roggisch wrote: > Eric S. Johansson wrote: > Drag'n'Drop is highly OS-dependand and clearly out of scope for > standard-out-of-the-box python. If you are on macintosh, pyobjc and > > http://www.cocoadev.com/index.pl?DragAndDrop > > will certainly help. i

Re: New Karrigel page in Wikipedia

2006-04-12 Thread Eric S. Johansson
kasha is not perfect, it's not full-featured, it doesn't have any databases associated with it (thank god), but for me it's a dream to use in contrast to the half a dozen web frameworks I tried. if you want to play with it, let me know and I will update CVS at https://savannah.nong

Re: New Karrigel page in Wikipedia

2006-04-12 Thread Eric S. Johansson
ll to medium scale web application environment, I do have enough visions of grandeur to think it might go bigger. ;-) ---eric -- http://mail.python.org/mailman/listinfo/python-list

Help with suds: HTTP Error 401

2010-06-11 Thread Eric von Horst
Hi, I am trying to do a very simple thing with SUDS but I think I am missing the obvious (first time I use suds) I have small program that tries to open a wsdl. When I execute the program I am getting 'suds.transport.TransportError: HTTP Error 401: Unauthorized' Seems obvious but I specify userna

Re: pep 8 constants

2009-06-28 Thread Eric S. Johansson
Bruno Desthuilliers wrote: > Brendan Miller a écrit : >> PEP 8 doesn't mention anything about using all caps to indicate a >> constant. >> >> Is all caps meaning "don't reassign this var" a strong enough >> convention to not be considered violating good python style? I see a >> lot of people using

Re: pep 8 constants

2009-06-28 Thread Eric S. Johansson
Rhodri James wrote: > Reject away, but I'm afraid you've still got some work to do to > convince me that PEP 8 is more work for an SR system than any other > convention. Name name higher than normal recognition error rate. can require multiple tries or hand correction MultiWordName

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
Peter Otten wrote: > Eric S. Johansson wrote: > >> MultiWordName mulitwordname >> very high error rate. many retries or hand hurting typing. > > Can you define macros in your speech recognition software? > > multiwordname > > might slightly lower the erro

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
alex23 wrote: > "Eric S. Johansson" wrote: >> no, I know the value if convention when editors can't tell you anything about >> the name in question. I would like to see more support for disabled >> programmers >> like myself and the thousands of pr

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
Tim Chase wrote: It sounds like the issue should be one of making your screen-reader > smarter, not dumbing down Python conventions. I don't know what SR > you're using (Jaws? Window Eyes? yasr? screeder? speakup? Naturally speaking is speech recognition (speech in text out) it is not text

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
Ethan Furman wrote: > Eric S. Johansson wrote: >> >> yup how long will i[t] be before you become disablesd? maybe not as >> badly as I am >> but you should start feeling some hand problems in your later 40's to >> early 50's >> and it goes down h

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
Rhodri James wrote: > On Mon, 29 Jun 2009 06:07:19 +0100, Eric S. Johansson > wrote: > >> Rhodri James wrote: >> >>> Reject away, but I'm afraid you've still got some work to do to >>> convince me that PEP 8 is more work for an SR system th

<    5   6   7   8   9   10   11   >