Re: Python and STL efficiency

2006-08-23 Thread Ray
Mc Osten wrote: > In your test, you are looping 1 times, we looped 100. > In Python tests with 1 elements, it was about 10 ms. > > Moreover, we tried various Python and C++ configurations. Most of the > tests are done with Python 2.4, not 2.5. > And I used gcc4, that is to say the late

Re: Python and STL efficiency

2006-08-23 Thread Ray
Mc Osten wrote: > Of course. I suppose there's something broken in OP's C++ setup (in fact > the version I compiled with VCPP 2005 also takes a lot of seconds... > something like 20-30 seconds, but of course this makes me think I > haven't understood how it is supposed to work, since my gcc gives

Re: Python and STL efficiency

2006-08-23 Thread Ray
Tim N. van der Leeuw wrote: > With the nr of loops corrected, Python on my laptop performs worse than > C++ under all circumstances, by a factor of about 2: *Phew* Great to know that my model of how the world works is still correct! (at least in relation to Python and C++!) :) Thank

Re: (semi-troll): Is Jython development dead?

2006-10-09 Thread Ray
[EMAIL PROTECTED] wrote: > Is Jython development dead or has it just seemed that way for over a > year?. The jython.org website has a recent new appearance (but no new > content) and there is some message traffic on the developer site at > Sourceforge. However nothing has been released for over a

Re: (semi-troll): Is Jython development dead?

2006-10-10 Thread Ray
Steve Menard wrote: > Keep in mind that Ruby and Python are close enough in style, that any > improvements those guys make will also benifit Jython. This is perhaps true in the long run, in the sense that it may make it easier for someone to implement Jython because those guys will make the JVM mo

Re: how is python not the same as java?

2006-11-09 Thread Ray
[EMAIL PROTECTED] wrote: > Jython exists. And Pava (or Pyava) doesn't, you mean? -- http://mail.python.org/mailman/listinfo/python-list

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Ray
walterbyrd wrote: > Some think it will. How so? Just because Java is GPL doesn't mean you can type less while coding in it. BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream()); is still like that GPL or no GPL, no? > Up untill now, Java has never been standard across di

How do you practice Python?

2006-06-01 Thread Ray
omething that I doubt I'll ever use, so there must be a better way. Thanks Ray -- http://mail.python.org/mailman/listinfo/python-list

How do you practice programming?

2006-06-01 Thread Ray
OK, maybe I shoot a more general question to the group since there are so many great programmers here: how do you practice your craft? I do it in the following way: 1. Set aside 30 minutes to 1 hour a day to read up on the latest development, be it about the tool I'm using, the language, or the p

Re: How do you practice Python?

2006-06-01 Thread Ray
bruno at modulix wrote: > > In our field, we don't always get to program in the language we'd like > > to program. So... how do you practice Python in this case? Say you're > > doing J2EE right now. > > Hopefully not ! I am :-( > > How do you practice Python to keep your skills > > sharp? > > How

Re: How do you practice programming?

2006-06-01 Thread Ray
bruno at modulix wrote: > 1/ programming > 2/ programming > 3/ lurking here, reading posts and sometimes trying to answer, reading > source code of the oss apps/frameworks I'm working with, searching > practical solutions in the cookbook etc > 4/ programming Yeah, but that's what most of us are do

Re: Are there something like "Effective Python"?

2006-06-01 Thread Ray
I think Aahz stated somewhere that he was workign on Effective Python. I'm not sure if it's an ongoing plan or it's been canned though? Mike Meng wrote: > Hi all, > I just finished reading Learning Python 3rd ed, and am doing my > first Python application, which retrieves and process text a

Re: Python and STL efficiency

2006-08-25 Thread Ray
Neil Cerutti wrote: > I don't see why it should run a lot faster that way. > > Appending elements to a vector with push_back takes amortized > constant time. In the example above, preallocating 4 strings > saves (probably) math.log(4, 2) reallocations of the vector's > storage along with t

Re: Pros/Cons of Turbogears/Rails?

2006-08-27 Thread Ray
fuzzylollipop wrote: > uh, no, Python predates Ruby by a good bit > Rails might be "older" than Turbogears but it still JUST went 1.0 > officially. > It can't be called "mature' by any defintition. But at least in most developers' perception, it is (not necessarily in the absolute sense, but perh

Re: Pros/Cons of Turbogears/Rails?

2006-08-28 Thread Ray
Robert Kern wrote: > You might be. No one else in the thread is. What are you saying? That my perception that RoR is mature is wrong? I never even said that was mine. That was what I got from talking to a lot of developers whose main language is neither Python nor Ruby, while I was trying to intro

Re: Pros/Cons of Turbogears/Rails?

2006-08-28 Thread Ray
Paul Boddie wrote: > > But at least in most developers' perception, it is (not necessarily in > > the absolute sense, but perhaps relative to Django or Turbogears). > > Mind, it doesn't even need to be true, we're talking of perception > > here. > > So actual maturity isn't important when using a t

How ahead are you guys in the (Python) real world?

2006-08-28 Thread Ray
Since I haven't used Python at work, I am using Python 2.5 right now. However I wonder, how fast are you guys moving from version to version at work? As an illustration my ex-company just moved to Java 5, which was released around... what, 2-3 years ago? (While I am running Java 6 at home) Is it t

Re: How ahead are you guys in the (Python) real world?

2006-08-28 Thread Ray
Jorge Vargas wrote: > for ones 2.5 is not consider production code yet so noone should be > running anything on it. same with 1.6. Yes, certainly, in fact in a lot of companies I've worked for the criteria for upgrading is when the Vendor is about to stop supporting it :) But are there many compa

Re: Pros/Cons of Turbogears/Rails?

2006-08-29 Thread Ray
Paul Boddie wrote: > Sure. Just get certified on whatever today's middle management are > advocating, spend a few years working with that stuff, then repeat the > process for the next generation of middle management - it can certainly > make money for people who don't seek any meaning in what the

Re: How ahead are you guys in the (Python) real world?

2006-08-30 Thread Ray
an us, and being used by a LOT of Java teams around the world, could be the cause. That was just one example from the Enterprise Java world, I'm sure the others can supply a lot more stories from the Python world... Regards, Ray > > Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Timeline for Python?

2006-09-03 Thread Ray
Sebastian Bassi wrote: > Hello all, > > I am working on a Python book, since it could be completed in about a > year (writing time + edition + publishing) or more, I would like to > know what version to target since I don't want to release a book that > will be outdated just after is printed. > I u

Re: Timeline for Python?

2006-09-03 Thread Ray
crystalattice wrote: > I'd write for 2.4, even though 2.5 should be coming out "shortly". > There aren't many significant changes to the whole language between 2.4 > and 2.5. Probably the best thing is write for 2.4 and have a sidenote > stating where 2.5 operates differently. Python in a Nutshe

Re: IronPython 1.0 released today!

2006-09-05 Thread Ray
t's really exciting to hear this, can't wait to get home to download and play with it! :) Kudos! Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: +1 QOTW

2006-09-22 Thread Ray
[EMAIL PROTECTED] wrote: > Did anyone else crack up when Larry Wall described python with the > statement: > > Python, as the "anti-Perl," is heavily invested in maintaining Order. Perl? Larry who? (I've been going to a hypnotherapist who specializes in erasing bad memories of the past, sorry.)

Re: The Python world tries to be polite [formerly offensive to another language]

2006-10-01 Thread Ray
MonkeeSage wrote: > Ant wrote: > > Don't think so, I followed the thread along a little, and it seems to > > be correct. In addition, they seem to have the ¥ character as the Perl > > 6 equivalent of zip(). Those crazy guys. > > Yup, I don't think it was a joke either; there are several other > "h

Re: windev vs python SOS

2006-10-01 Thread Ray
stéphane bard wrote: > hello, my boss ask me to prefer windev to python. > I have to argue > > any idea for a strong argument ? * WinDev is a virtual unknown outside France. I tried asking a bunch of colleagues about WinDev just now. Nobody has even heard about it. Prior to doing Java I was doing

Re: Anyone persuaded by "merits of Lisp vs Python"?

2006-12-28 Thread Ray
Paddy3118 wrote: > This month there was/is a 1000+ long thread called: > "merits of Lisp vs Python" > In comp.lang.lisp. > (I suspect this thread to be very short - even the > original poster seems to have given up on the day he > started the thread). I use both. And Java, and C++ too. Can on

TK-grid problem, please help

2007-04-20 Thread Ray
hi, I have a question about how to use .grid_forget (in python/TK) I need to work on grid repeatly. everytime when a button is pressed, the rows of grid is different. such like, first time, it generate 10 rows of data. 2nd time, it maybe only 5 rows. so I need a way to RESET the grid data every t

Re: TK-grid problem, please help

2007-04-23 Thread Ray
Hi, Thanks for the help! Anton Vredegoor wrote: > Ray wrote: > >> hi, I have a question about how to use .grid_forget (in python/TK) >> >> I need to work on grid repeatly. everytime when a button is pressed, >> the rows of grid is different. such like, first ti

Re: TK-grid problem, please help

2007-04-23 Thread Ray
really new in python. (I start learning it on last Wednesday). Thanks again for the help! Ray James Stroud wrote: > > > Using grid_forget() is probably optimization overkill, but may be handy > for slower computers where you can watch the widgets appear one by one > (ol

Re: TK-grid problem, please help

2007-04-24 Thread Ray
Hi Anton, Thanks again. This is what I need! my problem already solved. Ray Anton Vredegoor wrote: > Ray wrote: > >> hi, I have a question about how to use .grid_forget (in python/TK) >> >> I need to work on grid repeatly. everytime when a button is pressed, >>

python TK scrollbar problem

2007-04-30 Thread Ray
Hi, would someone tell me how to make scrollbar work under grid? I think I'm missing something to connect scrollbar with the grid. following is some sample code. it shows the scrollbar, but it do not work. Thanks a lot for the help! Ray #code begin from Tkinter import * def m

Re: python TK scrollbar problem

2007-05-01 Thread Ray
would be to create a new frame to hold frame_grid and > yscroll and then use yscroll to scroll frame_grid. > > James entry do not have .yview and yscrollcommand. I will try to scroll frame_grid with a new frame. thanks Ray -- http://mail.python.org/mailman/listinfo/python-list

python win32com excel problem

2007-05-01 Thread Ray
Hi, I'm working on something with mysql and excel. I'm using python and win32com. All major function works, But I have two problems: 1. the output need to do "auto fit" to make it readable. I tried to call "xlApp.Columns.AutoFit=1" the whole program will crash, but without xlApp.Columns.AutoFit

test

2007-05-01 Thread Ray
test only -- http://mail.python.org/mailman/listinfo/python-list

win32com.client Excel Color Porblem

2007-05-02 Thread Ray
won't work. Thanks for any Help. Ray PS: where or how to find a win32com reference? -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com.client Excel Color Porblem

2007-05-03 Thread Ray
Thanks a lot!! ici wrote: > My Excel Template :) + Rows > > # -*- encoding:utf-8 -*- > import win32com.client > > try: import psyco; psyco.full() > except ImportError: pass > > try: > app = win32com.client.Dispatch("Excel.Application.11") # Excel > 2003 > except com_error: > try: >

Import without executing module

2009-02-01 Thread Ray
copy the functions and attribute the original author (that's ok). But, it would be nice if I can make use of those functions without touching that file [test2.py in the above example]. Is this possible? Thank you! Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Import without executing module

2009-02-02 Thread Ray
nd it, I'll look into ways of minimizing the number of changes and the "if" statement mentioned by Kottiyath would be my next step. Thank you all for the replies! Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Import without executing module

2009-02-02 Thread Ray
ments. So, when reading it through importing, it exits with an error (because no arguments were supplied). I'll enclose the top-level commands with the if statement above...its just a minor change, but it seems unavoidable. Thanks again! Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Import without executing module

2009-02-03 Thread Ray
Hi Lie, On Feb 3, 7:21 pm, Lie wrote: > On Feb 3, 1:37 pm, Ray wrote: > > > I'll enclose the top-level commands with the if statement above...its > > just a minor change, but it seems unavoidable. > > > Thanks again! > > > Ray > > If you real

Re: Import without executing module

2009-02-03 Thread Ray
uot;if" statement is fairly common, then I think I'll start using it just to get into the habit of it. Thank you very much for your detailed explanation! Ray -- http://mail.python.org/mailman/listinfo/python-list

Installing PLPython - Version Problem

2009-03-29 Thread ray
e should it be placed? When I rename the dll to python26, the PL installed without error. But I am concerned that something else is wrong. I would really like to find out how to get this to install correctly on production machines. Ray -- http://mail.python.org/mailman/listinfo/python-list

How to iterate a sequence, with skipping the first item?

2008-08-11 Thread ray
A container object provides a method that returns an iterator object. I need to iterate the sequence with that iterator, but need to skip the first item. I can only iterate the whole sequence with: for x in container.iterChildren(): How to skip the first item? It seems that it's a simple question.

Re: How to iterate a sequence, with skipping the first item?

2008-08-12 Thread ray
Thanks you guys. Now I understand the -for- loop mechanism. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Jython development active?

2006-03-19 Thread Ray
[EMAIL PROTECTED] wrote: > Don't seem to see much progress in getting out a new version of Jython. > The last beta was out in March 2005. When will a final release be made? Not sure, but I've been checking jython-dev and jython-checkins once every few days (yes, I am *that* interested in Jython).

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Ray
Steve Holden wrote: > Grant Edwards wrote: > > On 2006-04-01, walterbyrd <[EMAIL PROTECTED]> wrote: > > > > > >>Is this an April fool's joke? > > > > > > Did you read the blog entry? > > > I suspect he didn't. I'm guessing that eventually we'll have to remove > the blog entry just so's nobobdy's t

Re: Python 3.0 or Python 3000?

2006-04-09 Thread Ray
Dennis Lee Bieber wrote: > Or... just to save "3000" as a "time way down the road"... The next > major version of Python will be: Python PI (and each build will add > another digit... "3.1, 3.14, 3.141, ...") I like this idea a lot. This way, people ALWAYS know what the next release's name w

Re: how relevant is C today?

2006-04-09 Thread Ray
John Salerno wrote: > > At which level in the 'python challenge' did > > you get stuck - and why? > > Ugh, don't remind me! :) > > I'm stuck on level 12, which is yet another image processing puzzle. I'm > getting tired of those, and I think it's really a shame that there is a This is EXACTLY why

How to generate execute file that include enthought.traits.api , enthought.traits.ui.api ?

2010-06-03 Thread ray
ill depening on your VISA/MCD ,to assemble CVV value Author: Ray Yeh 2008/12/02""" class Base64(HasTraits): option= Enum('D','E') card_type=Enum('V','M') input_text=Str display=Str intro= Str code_button=

create dynamic instance

2010-07-16 Thread Ray
class Test: def __init__(self): self.value=0 def change(self, val): self.value=val if __name__=='__main__': for x in range(10): x=Test() """ the question is how do i call x.value outside of that for loop? something like print x.value ? """ thanks for any help. -- http

Re: create dynamic instance

2010-07-16 Thread Ray
On Jul 16, 12:17 pm, MRAB wrote: > Ray wrote: > > class Test: > >   def __init__(self): > >     self.value=0 > >   def change(self, val): > >     self.value=val > > > if __name__=='__main__': > >   for x in range(10): > >     x=Test

Re: create dynamic instance

2010-07-18 Thread Ray
thanks a lot. I was really stupid. of course I should keep a references to use it later. -- http://mail.python.org/mailman/listinfo/python-list

os.fork on linux defunct

2010-07-30 Thread Ray
I'm running python 2.4 on linux. I use python os.fork run tcpdump, but after I kill the forked process (tcpdump) in linux it shows defunct here is the code: #!/usr/bin/python import time, os class Test: def fork(self): self.pid=os.fork() if self.pid=0: args=['tcpdu

Re: os.fork on linux defunct

2010-07-30 Thread Ray
On Jul 30, 6:03 pm, Ray wrote: > I'm running python 2.4 on linux. I use python os.fork run tcpdump, but > after I kill the forked process (tcpdump) in linux it shows defunct > > here is the code: > > #!/usr/bin/python > import time, os > class Test: >     de

Using easy_install, reduncant?

2009-07-27 Thread ray
miss? Regards, Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a dream language: sounds like Python to me.

2009-07-28 Thread ray
hooses. The functionality under the GUI should then be pluggable. Developers can provide solutions from many directions, compete for varying performance requirements, enhance functional features technology changes, and still not disturb the fragile user interface. Allow the user the comfort of home. Let them keep whatever GUI suits them and provide for their deployment (if any) needs behind the scenes. Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a dream language: sounds like Python to me.

2009-07-30 Thread ray
> Where can I find a Python functionality like simulink  ? Stef, I saw this at: http://showmedo.com/videotutorials/video?name=743&fromSeriesID=743 Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: generate keyboard/mouse event under windows

2009-08-19 Thread Ray
On Aug 19, 2:07 pm, yaka wrote: > Read this and see if it helps: > > http://kvance.livejournal.com/985732.html is there a way to generate a 'true' keyboard event? (works like user pressed a key on keyboard) not send the 'send keyboard event to application' ? -- http://mail.python.org/mailman/lis

thread and win32com.client problem

2009-08-20 Thread Ray
Hi, I have a problem with thread and win32com.client running python 2.5 on vista (activestate python) import win32com.client, thread def child(test): problem=win32com.client.Dispatch("WScript.Shell") print 'hello from thread', test def parent(): i=0 while 1:

Re: thread and win32com.client problem

2009-08-20 Thread Ray
I already find the way to fix it. :-) -- http://mail.python.org/mailman/listinfo/python-list

generate keyboard/mouse event under windows

2009-08-22 Thread Ray
Hi, Anyone can give some help on how to generate keyboard mouse event under windows? (python 2.5) I tried pyhook, I only know how to monitor the keyboard/mouse events. but don't know how to generate/send the the event. thanks for any help. -Ray -- http://mail.python.org/mailman/lis

Re: n00b question on spacing

2013-06-21 Thread Ray Cote
two parameters on the same line. I find that once I start breaking up lines for length, that I prefer to break up everything. Also remember when entering long lines of text that strings concatenate within parenthesis. So, ("a, b, c" "d, e, f" "g, h, i") Is the same as ("a, b, cd, e, fg, h, i") --Ray -- Ray Cote, President Appropriate Solutions, Inc. We Build Software 603.924.6079 -- http://mail.python.org/mailman/listinfo/python-list

Missing something obvious with python-requests

2013-01-03 Thread Ray Cote
google.com. Clearly I'm missing something fundamental here. But after two days of fiddling with the code and tracing through requests I'm still unclear as to why requests is not using the proxy information. Any help (or slap on the side of the head) appreciated. Thanks --Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Missing something obvious with python-requests

2013-01-03 Thread Ray Cote
Thank you. --Ray - Original Message - From: "Barry Scott" To: "Ray Cote" Cc: python-list@python.org Sent: Thursday, January 3, 2013 5:48:52 PM Subject: Re: Missing something obvious with python-requests The shipped python library code does not work. See ht

Re: Udacity CS 101

2012-02-27 Thread Ray Clark
On Feb 25, 4:20 pm, Josh English wrote: > Has anyone here looked at Udacity's open CS101 course > (http://www.udacity.com/overview/Course/cs101) that started this week? The > goal of the seven week course is to build a web crawler. > > So far, I'm not impressed with the speed or content of the c

Why not use juxtaposition to indicate function application

2012-03-16 Thread Ray Song
I confess i've indulged in Haskell and found f a more readable than f(a) And why aren't functions curried (partially applied function is another function which takes the rest arguments) by default? Thanks in advance for any suggestions. -- Ray -- http://mail.python.o

Re: Stream programming

2012-03-23 Thread Ray Song
ore the flow - create two streams which have, respect., the > numbers less than 'med' and those greater or equal to 'med' - do the > /entire/ 'same' process on each one of the two streams - concat the > resulting streams - name all this /entire/ process 'same'. > Not readable enough? Replace 'same' with 'qsort'. > > Is that readable or am I going crazy? [note: that's a rhetorical > question whose answer is "That's very readable!"] > This sounds like a concatenative programming and i've found many cool examples from Haskell and Ruby. I was pleased with Python's rigid off-side rule at first but frustrated when I realized that this is a two-edged blade as the rule makes a DSL difficult. Sorry for former mail to you (my damn Android gmail client doesn't understand mailing lists well). -- Ray -- http://mail.python.org/mailman/listinfo/python-list

Using MSW GUI DLLS: PYWIN32, WMI, WINSHELL

2011-03-11 Thread Ray Pasco
I'm using MSW DLL calls thru the 3 packages listed as well as ctypes calls on Win7 64-bit. I believe all the packages were developed in the XP days. Some calls just don't seem to work consistently on Win7. Specifically, I'm trying to reposition and resize application mai

Recommended pypi caching proxy?

2017-12-18 Thread Ray Cote
from the crowd? —Ray -- Raymond Cote, President Tokenize What Matters® voice: +1.603.924.6079 email: rgac...@appropriatesolutions.com skype: ray.cote Schedule a meeting: https://calendly.com/ray_cote/60min/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Recommended pypi caching proxy?

2017-12-18 Thread Ray Cote
On Mon, Dec 18, 2017 at 1:00 PM, Matt Wheeler wrote: > On Mon, 18 Dec 2017, 15:45 Ray Cote, > wrote: > >> Looking to deploy a locally cached pypi proxy service. >> >> Is there a recommended/preferred pypi caching tool? >> I’ve found: >> - proxypypy &

Re: Need reviews for my book on introductory python

2017-01-27 Thread Ray Cote
On Fri, Jan 27, 2017 at 4:18 PM, mm0fmf wrote: > On 27/01/2017 20:17, bob gailer wrote: > >> On 1/25/2017 9:25 PM, Sandeep Nagar wrote: >> >>> Hi, >>> >>> A few month ago I wrote a book on introductory python based on my >>> experinces while teaching python to Bachelor students of engineering. >>

Re: [Python-Dev] [RELEASE] Python 3.7.1rc2 and 3.6.7rc2 now available for testing

2018-10-14 Thread Ray Donnelly
uccessful build, so perhaps this should be added in the configure stuff when we detect macOS? Best regards, Ray Donnelly, Anaconda Inc, On Sat, Oct 13, 2018 at 10:51 PM Ned Deily wrote: > > Python 3.7.1rc2 and 3.6.7rc2 are now available. 3.7.1rc2 is a release > preview of the first maint

Re: pylint woes

2016-05-07 Thread Ray Cote
s the twice. Example: def function_name( parm_1, long_parm_name, …. end_of_long_list_of params) parm_1 = long_parm_name —Ray -- Raymond Cote, President voice: +1.603.924.6079 email: rgac...@appropriatesolutions.com skype: ray.cote -- https://mail.python.org/mailman/listinfo/python-list

Live analog plotting - python

2016-06-24 Thread Prabhakar Ray
Hi Guys, I'm reading a continuous analog value using python and plotting it using drawnow(). Since the plot is moving it's getting difficult to note down the coordinates of any specific point. I intend to implement a moving data cursor which can follow the graph and can give me real time coordi

Re: check html file size

2005-10-05 Thread Ray Dillinger
Richard Gration wrote: > ... fucking ... fucking ... fucking ... fucking ... Fucking ... fucking > ... fucking My friend, you can learn to use a far richer vocabulary of obscenities. If your creative flow is blocked by the fear that you can't spell more dirty words correctly, you can dispel th

urllib2 Opener and Proxy/Authentication issues

2005-11-08 Thread Ray Slakinski
proxy: "http://user:[EMAIL PROTECTED]:3128" Thanks in advance, Ray -- http://mail.python.org/mailman/listinfo/python-list

Windows process priority setting question...

2005-01-01 Thread Ray S
what about the current? Ray -- http://mail.python.org/mailman/listinfo/python-list

is there better 32 clock() timing?

2005-01-23 Thread Ray Schumacher
ears to be more C code... Ray BCI/Congitive Vision -- http://mail.python.org/mailman/listinfo/python-list

Re: advice needed for simple python web app

2005-02-04 Thread Ray Cote
At 8:51 AM -0800 2/4/05, Paul Rubin wrote: "Dan Perl" <[EMAIL PROTECTED]> writes: This matches pretty much what I've decided to do. I'll start with cgi and CGIHTTPServer because I'll learn more from that and then move to a framework, quite likely CherryPy, although by that time I may change my

Re: Database recommendations for Windows app

2005-06-22 Thread Ray Cote
e use Firebird for that. <http://www.firebirdsql.org> --Ray -- Raymond Cote Appropriate Solutions, Inc. PO Box 458 ~ Peterborough, NH 03458-0458 Phone: 603.924.6079 ~ Fax: 603.924.8668 rgacote(at)AppropriateSolutions.com www.AppropriateSolutions.com -- http://mail.python.org/mailman/listinfo/python-list

Re: web programming with mod_python

2005-07-02 Thread Ray Cote
At 7:17 PM -0300 7/1/05, Rodrigo Dominguez wrote: >My question is: is there some kind of framework that works with mod_python? You could take a look at Myghty: -- Raymond Cote Appropriate Solutions, Inc. PO Box 458 ~ Peterborough, NH 03458-0458 Phone: 603.924.6

Re: [Py2exe-users] py2exe 0.6.2 released

2005-09-07 Thread Ray Schumacher
1.html#exhibit-a filled out so that it includes the py2exe home, as well as Python, probably. It could be put in the Zip or Rar to be viewed on extraction. Does this sound correct? Ray Schumacher -- http://mail.python.org/mailman/listinfo/python-list

Testing conditions.

2005-02-09 Thread Ray Gibbon
at's the way it is - get used to it', I'd just like to scratch it once. But, before I try walking on very thin ice, I want to ask whether there are expectations of some future changes which address these issues? I note PEP 3000 is silent on this matter, and PEP 315, though related, is not relevant. Ray. -- http://mail.python.org/mailman/listinfo/python-list

Re: Testing conditions.

2005-02-12 Thread Ray Gibbon
> Testing conditions. > All replies - Spot on! Much appreciated, apology for delay. Ray. -- http://mail.python.org/mailman/listinfo/python-list

Re: Daemon strategy

2016-02-05 Thread Ray Cote
rvices - setting service dependences (don’t start until another service is up and running) - set processor dependencies —Ray On Fri, Feb 5, 2016 at 1:39 PM, wrote: > It appears that python-deamon would be exactly what I need. Alas, > appears not to run on Windows. If I am wrong about

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-17 Thread Ray Cote
ed applications. The latest versions of pyInstaller (http://www.pyinstaller.org) are incredibly good at generating single-file binaries for both Windows and Linux. We’re using pyInstaller to distribute applications based on some fairly complex frameworks—including wxPython (http://www.wxpython.org

Looking for examples of using aiopg with aiohttp and non-async startup.

2016-02-25 Thread Ray Cote
aiohttp web application? Regards —Ray -- Raymond Cote, President voice: +1.603.924.6079 email: rgac...@appropriatesolutions.com skype: ray.cote -- https://mail.python.org/mailman/listinfo/python-list

Re: Looking for examples of using aiopg with aiohttp and non-async startup.

2016-02-26 Thread Ray Cote
cursor = await connection.cursor() —r On Thu, Feb 25, 2016 at 5:23 PM, Ray Cote wrote: > Hello: > > I have an aiohttp project that starts in the usual way: > > app = web.Application() > app.router.add_route(‘POST”, ‘/‘, handler) > web.run_app(app) > > My question i

Adding run_in_executor task to already existing loop.

2016-03-25 Thread Ray Cote
loop.run_until_complete(asyncio.gather(*[block, ]) The above code says “loop already running.” because we’re already in an async ask that has been awaited. What is the proper method of adding in this new synchronous task? Regards —Ray -- Raymond Cote, President voice: +1.603.924.6079 email: rgac

Re: Adding run_in_executor task to already existing loop.

2016-03-25 Thread Ray Cote
> Future just like any other coroutine, so process_request just needs > this: > >async def process_request(): >loop = asyncio.get_event_loop() >results = await loop.run_in_executor(None, blocking_func, 'hello') > Yes, that was precisely the di

Re: inheriting a large python code base

2014-02-15 Thread Ray Cote
nction does, mark it as such so you know to look at it carefully in the future. 5: Now you have a clean set of code -- most of which you've at least visually scanned -- and you're ready to create some timing tests and dig into specifics. --Ray - Original Message - From: &qu

Re: Python performance

2013-08-02 Thread Ray Cote
gt; -- > GLOBE Development GmbH > Königsberger Strasse 260 > 48157 MünsterGLOBE Development GmbH > Königsber > ger Strasse 260 > 48157 Münster > 0251/5205 390 > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Ray Cote, President Appropriate Solutions, Inc. We Build Software 603.924.6079 -- http://mail.python.org/mailman/listinfo/python-list

Re: A little test for you Guys😜

2015-09-22 Thread Ray Cote
On Tue, Sep 22, 2015 at 7:32 PM, Mark Lawrence wrote: > >> 2 Lists >> > > Tut, tut, tut. That is not a list, that is a tutple. -- https://mail.python.org/mailman/listinfo/python-list

urllib2 redirect error

2014-09-01 Thread Sumit Ray
Hi, I've tried various versions but continue to get the following error: -- https://mail.python.org/mailman/listinfo/python-list

urllib2 redirect error

2014-09-01 Thread Sumit Ray
Hi, I've tried versions of the following but continue to get errors: - snip - url = 'https://www.usps.com/send/official-abbreviations.htm' request = urllib2.build_opener(urllib2.HTTPRedirectHandler).open(url) - snip - Generates an exception: urlli

Re: urllib2 redirect error

2014-09-06 Thread Sumit Ray
Steven, Thank you! User advice was on point. Sumit On Tue, Sep 2, 2014 at 11:29 PM, dieter wrote: > Steven D'Aprano writes: > > ... > > I'm not an expert, but that sounds like a fault at the server end. I just > > tried it in Chrome, and it worked, and then with wget, and I get the same > >

Python and real-time OS timing/task communication?

2006-07-24 Thread Ray Schumacher
in C using RDTSC or ACPI clocking that can get its control messages from non-RT Python every 50ms or so, to toggle pins on parport0. Any pointers, examples, etc for communicating from Python to an RT task? Thanks, Ray -- http://mail.python.org/mailman/listinfo/python-list

"parent" in a class __init__ def?

2006-06-10 Thread Ray Schumacher
f self.parent.model=='LX200GPS': ptimeout = 240 ... Ray -- http://mail.python.org/mailman/listinfo/python-list

from foo imprt * in package __init__ ?

2006-06-10 Thread Ray Schumacher
What is the Pythonic-ness of using from foo imprt * in a package's __init__.py? I import my own (~8) module files in the package this way, and import standard modules with "import bar". Ray -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   >