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
Hello List: I seem to be missing something obvious in terms of using proxies with the requests module. I'm using requests 1.4 and Python 2.7. Have tried this on Centos 6 and Windows XP. Here's the sample code, right out of the manual: import requests proxies = { 'https': '192.168.24.25:8

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

Recommended pypi caching proxy?

2017-12-18 Thread Ray Cote
Hello list: Looking to deploy a locally cached pypi proxy service. Is there a recommended/preferred pypi caching tool? I’ve found: - proxypypy - Flask-Pypi-Proxy - pypicache All of which seem to have generally the same functionality and all of which are a few years old. Recommendations fro

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

2016-05-07 Thread Ray Cote
On Sat, May 7, 2016 at 2:52 PM, Christopher Reimer < christopher_rei...@icloud.com> wrote: > On 5/7/2016 9:51 AM, DFS wrote: > >> Has anyone ever in history gotten 10/10 from pylint for a non-trivial >> program? >> > > I routinely get 10/10 for my code. While pylint isn't perfect and > idiosyncrat

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
At 3:14 PM +0100 6/22/05, Will McGugan wrote: >Hi, > >I'd like to write a windows app that accesses a locally stored database. >There are a number of tables, the largest of which has 455,905 records. > >Can anyone recommend a database that runs on Windows, is fast / >efficient and can be shipped wi

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

2016-02-05 Thread Ray Cote
We’ve recently stopped building Windows services (Python or any other type) and started using the NSSM service manager. Takes a normal Windows application and runs it as a service. The NSSM service manager provides great command-line support for installing, configuring, and controlling Windows serv

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

2016-02-17 Thread Ray Cote
On Wed, Feb 17, 2016 at 3:54 PM, Rob Gaddi < rgaddi@highlandtechnology.invalid> wrote: > > It seems Python is used more for web based applications. Is it equally > fine for creating stand-alone *.exe's? Can the same code be compiled to run > on Linux or Android or web-based? > > Standalone EXEs ar

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

2016-02-25 Thread Ray Cote
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 is, how do I work with an aiopg.pool with aiohttp? There only seems to be async interfaces into aiopg — but I don’t want to create the po

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
Hello: I’m trying to perform an synchronous task while using asyncio. I understand the solution is to use run_in_executor. I’m not clear on how to add this into an already running event loop. I’ve found lots of examples showing how to set up a loop and run this, but I’m blocked in regards to doin

Re: Adding run_in_executor task to already existing loop.

2016-03-25 Thread Ray Cote
On Fri, Mar 25, 2016 at 5:00 PM, Zachary Ware wrote: > I'm assuming you're doing `await process_request()` elsewhere, which > is what's producing your error: you're trying to start the loop within > a coroutine running on that loop. loop.run_in_executor() returns a > Future just like any other c

Re: inheriting a large python code base

2014-02-15 Thread Ray Cote
used to "optimize" the code. -- --- Get your facts first, then you can distort them as you please. -- -- https://mail.python.org/mailman/listinfo/python-list -- Ray Cote, President Appropriate Solutions, Inc. We Build Software 603.924.6079 -- https://mail.python.org/mailman/listinfo/python-list

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

Re: Firebird and Python

2006-02-27 Thread Ray Cote
At 5:07 PM +0100 2/27/06, Magnus Lycka wrote: > > I'm still interested >in experiences from Pythonistas using Firebird-- >especially embedded. Works great. Python and Firebird embedded (at least on Windows) is very simple to use. Not currently using it on other platforms. --Ray -- Raymond Cote

Re: Web Crawler - Python or Perl?

2008-06-09 Thread Ray Cote
At 11:21 AM -0700 6/9/08, subeen wrote: On Jun 10, 12:15 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: subeen wrote: > can use urllib2 module and/or beautiful soup for developing crawler Not if you care about a) speed and/or b) memory efficiency. > http://blog.ianbicking.org/2008/03/30/pyt

Re: Python 2.5 adoption

2008-04-19 Thread Ray Cote
At 12:16 PM -0700 4/18/08, Joseph Turian wrote: >Basically, we're planning on releasing it as open-source, and don't >want to alienate a large percentage of potential users. >-- >http://mail.python.org/mailman/listinfo/python-list A few seconds after reading this, I read the announcement for pyspr

python3.5m vs libpython3.5m on CentOS6

2017-02-24 Thread Ray Cote
Hello: Attempting to install latest psycopg2 (2.6.2) on current CentOS6 with a custom install Python3.5. Getting the error: /usr/bin/ld: cannot find -lpython3.5m Don’t have a python3.5m library on the system. Do have libpython3.5m.so.1.0 with a soft link to libpython3.5m.so. Thought adding

Python 3.6 printing crashing on OS X 10.12.4

2017-04-05 Thread Ray Cote
Hello: Python 3.6 crashing when trying to print from the environment. $ python Python 3.6.1 (default, Mar 22 2017, 15:53:21) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> print("hello") Python(53390

Re: Python 3.6 printing crashing on OS X 10.12.4

2017-04-10 Thread Ray Cote
On Wed, Apr 5, 2017 at 3:40 PM, Python wrote: > Le 05/04/2017 à 20:14, Ray Cote a écrit : > >> Hello: >> >> Python 3.6 crashing when trying to print from the environment. >> >> $ python >> Python 3.6.1 (default, Mar 22 2017, 15:53:21) >> [GCC 4.2

Re: New to python and programming

2017-05-17 Thread Ray Cote
On Wed, May 17, 2017 at 4:43 PM, justin walters wrote: > On Wed, May 17, 2017 at 12:59 PM, BT wrote: > > > Hi guys, > > I am fairly new to programming. I was just trying to understand how this > > group works. Am i allowed to ask any questions that I may have when i get > > stuck? I mean is this

Re: Ciphers in SSL library python.

2017-06-14 Thread Ray Cote
1: Are you 100% sure the server to which you are trying to connect supports RC4-SHA? 2: If you have access to the server, turn on SSH debug mode to watch your client try and connect. I find that to be helpful in debugging many connection issues. On Wed, Jun 14, 2017 at 4:16 PM, wrote: > Hey, I

Re: Ciphers in SSL library python.

2017-06-14 Thread Ray Cote
On Wed, Jun 14, 2017 at 4:40 PM, wrote: > Hey, I'm "the server(I've written using ssl/socket)" and my client is > using RC4-SHA, but I can't make the server to use it. I make " > ciphers='RC4-SHA' " in the ssl.wrap_socket. Do I need to modify SSL file or > something to make it work? Had not rea

Re: API Help

2017-06-14 Thread Ray Cote
On Wed, Jun 14, 2017 at 4:33 PM, Bradley Cooper wrote: > I am working with an API and I get a return response in this format. > > > [{"itemNumber":"75-5044","inventory":[{"warehouseCode":" > UT-1-US","quantityAvailable":0.0},{"warehouseCode":"KY-1-US"," > quantityAvailable":0.

Re: API Help

2017-06-14 Thread Ray Cote
On Wed, Jun 14, 2017 at 6:14 PM, Erik wrote: > On 14/06/17 22:54, Ray Cote wrote: > >> Definitely JSON: >> >>> >>>>> json.loads(“""[{"itemNumber":"75-5044","inventory":[{"wareho >> useCode"