Re: How to work on a package

2018-02-07 Thread dieter
Roel Schroeven writes: > dieter schreef op 7/02/2018 8:21: > ... >> Likely, there are many ways to execute tests for your package. > >> I am using "setuptools" for packaging (an extension >> of Python's standard "disutils"). Its "setup.py" supports the "test" >> command. This means, properly set u

Re: Benchmarking Django on PyPy with unittest?

2018-02-07 Thread Dan Stromberg
You could probably use the "requests" module to time how long various operations take in your Django website. On Wed, Feb 7, 2018 at 2:26 AM, Etienne Robillard wrote: > Also, i need to isolate and measure the speed of gevent loop engine > (gevent.monkey), epoll, and python-specific asyncio corout

Re: How to work on a package

2018-02-07 Thread Rob Gaddi
On 02/07/2018 03:17 PM, Grant Edwards wrote: On 2018-02-07, Rob Gaddi wrote: When I'm working on a module, the trick is to write a setup.py (using setuptools) from the very get-go. Before I write a single line of code, I've got a setup.py and the directory framework. Then you install the pac

Re: How to work on a package

2018-02-07 Thread Grant Edwards
On 2018-02-07, Rob Gaddi wrote: > When I'm working on a module, the trick is to write a setup.py (using > setuptools) from the very get-go. Before I write a single line of code, > I've got a setup.py and the directory framework. > > Then you install the package using pip -e (or in practice --u

Re: How to work on a package

2018-02-07 Thread Roel Schroeven
Rob Gaddi schreef op 7/02/2018 22:24: On 02/07/2018 12:34 PM, Roel Schroeven wrote: dieter schreef op 7/02/2018 8:21: Likely, there are many ways to execute tests for your package. I am using "setuptools" for packaging (an extension of Python's standard "disutils"). Its "setup.py" supports the

Re: How to work on a package

2018-02-07 Thread Rob Gaddi
On 02/07/2018 12:34 PM, Roel Schroeven wrote: dieter schreef op 7/02/2018 8:21: Likely, there are many ways to execute tests for your package. I am using "setuptools" for packaging (an extension of Python's standard "disutils"). Its "setup.py" supports the "test" command. This means, properly

Re: How to work on a package

2018-02-07 Thread Roel Schroeven
dieter schreef op 7/02/2018 8:21: Likely, there are many ways to execute tests for your package. I am using "setuptools" for packaging (an extension of Python's standard "disutils"). Its "setup.py" supports the "test" command. This means, properly set up, I can run tests with "python setup.py

Re: Where is _sre.SRE_Match?

2018-02-07 Thread Chris Angelico
On Thu, Feb 8, 2018 at 4:57 AM, wrote: > On Wednesday, February 7, 2018 at 5:20:42 PM UTC, Chris Angelico wrote: >> On Thu, Feb 8, 2018 at 4:15 AM, Peng Yu wrote: >> > Hi, >> > >> > I see _sre.SRE_Match is returned by re.match. But I don't find where >> > it is defined. Does anybody know how to g

Re: Where is _sre.SRE_Match?

2018-02-07 Thread breamoreboy
On Wednesday, February 7, 2018 at 5:20:42 PM UTC, Chris Angelico wrote: > On Thu, Feb 8, 2018 at 4:15 AM, Peng Yu wrote: > > Hi, > > > > I see _sre.SRE_Match is returned by re.match. But I don't find where > > it is defined. Does anybody know how to get its help page within > > python command line?

Re: Packaging uwsgi flask app for non-programmers?

2018-02-07 Thread Israel Brewster
> On Feb 6, 2018, at 8:24 PM, Dennis Lee Bieber wrote: > > On Tue, 6 Feb 2018 12:12:26 -0900, Israel Brewster > declaimed the following: > >> I have been working on writing an Alexa skill which, as part of it, requires >> a local web server on the end users machine - the Alexa skill sends c

Re: Where is _sre.SRE_Match?

2018-02-07 Thread Chris Angelico
On Thu, Feb 8, 2018 at 4:15 AM, Peng Yu wrote: > Hi, > > I see _sre.SRE_Match is returned by re.match. But I don't find where > it is defined. Does anybody know how to get its help page within > python command line? Thanks. > import re m = re.match('a', 'abc') print type(m) >

Where is _sre.SRE_Match?

2018-02-07 Thread Peng Yu
Hi, I see _sre.SRE_Match is returned by re.match. But I don't find where it is defined. Does anybody know how to get its help page within python command line? Thanks. >>> import re >>> m = re.match('a', 'abc') >>> print type(m) >>> _sre.SRE_Match Traceback (most recent call last): File "", lin

Re: Packaging uwsgi flask app for non-programmers?

2018-02-07 Thread Israel Brewster
On Feb 6, 2018, at 12:12 PM, Israel Brewster wrote: > > I have been working on writing an Alexa skill which, as part of it, requires > a local web server on the end users machine - the Alexa skill sends commands > to this server, which runs them on the local machine. I wrote this local > serve

Re: Distance between point and a line passing through other two points

2018-02-07 Thread Richard Damon
On 2/7/18 6:06 AM, Dhananjay wrote: Hello all, I have 3 points with coordinates (x0,y0,z0), (x1,y1,z1) and (x2,y2,z2). I also have a line joining points (x1,y1,z1) and (x2,y2,z2). For example, p0=[5.0, 5.0, 5.0] p1=[3.0, 3.0, 3.0] p2=[4.0, 4.0, 4.0] a = np.array(p0) b = np.array(p1) c = np.arra

Re: Distance between point and a line passing through other two points

2018-02-07 Thread Antoon Pardon
On 07-02-18 12:06, Dhananjay wrote: > Hello all, > > ... > I want to write a script that can calculate shortest distance d between > point (x0,y0,z0) and the line((x1,y1,z1), (x2,y2,z2)). > In other words, > d = distance(a, line(b,c)) > Since I have information of the coordinates of these points on

Re: Distance between point and a line passing through other two points

2018-02-07 Thread Chris Angelico
On Wed, Feb 7, 2018 at 10:06 PM, Dhananjay wrote: > Hello all, > > I have 3 points with coordinates (x0,y0,z0), (x1,y1,z1) and (x2,y2,z2). > I also have a line joining points (x1,y1,z1) and (x2,y2,z2). > For example, > p0=[5.0, 5.0, 5.0] > p1=[3.0, 3.0, 3.0] > p2=[4.0, 4.0, 4.0] > > a = np.array(p

Distance between point and a line passing through other two points

2018-02-07 Thread Dhananjay
Hello all, I have 3 points with coordinates (x0,y0,z0), (x1,y1,z1) and (x2,y2,z2). I also have a line joining points (x1,y1,z1) and (x2,y2,z2). For example, p0=[5.0, 5.0, 5.0] p1=[3.0, 3.0, 3.0] p2=[4.0, 4.0, 4.0] a = np.array(p0) b = np.array(p1) c = np.array(p2) I want to write a script that c

Re: Benchmarking Django on PyPy with unittest?

2018-02-07 Thread Etienne Robillard
Also, i need to isolate and measure the speed of gevent loop engine (gevent.monkey), epoll, and python-specific asyncio coroutines. :-) Etienne Le 2018-02-07 à 04:39, Etienne Robillard a écrit : Hi, is it possible to benchmark a django application  with unittest module in order to compare a

Benchmarking Django on PyPy with unittest?

2018-02-07 Thread Etienne Robillard
Hi, is it possible to benchmark a django application  with unittest module in order to compare and measure the speed/latency of the django orm with sqlite3 against ZODB databases? i'm interested in comparing raw sqlite3 performance versus ZODB (schevo). i would like to make specific testsuite(