Re: PYTHON equivalents of BITAND and BITSHIFT of MATLAB

2019-05-01 Thread Thomas Jollans
On 02/05/2019 06:47, blmadha...@gmail.com wrote: > Hello Brian, > > Thanks for your suggestion. Which is correct for MATLAB command: typeBits = > FCF << -9? > > typeBits = FCF >> 9 > > or > > typeBits = FCF >> -9 > > I mean to ask if it should be -9 or +9? Why don't you just, you know, try

Re: Python 3.73 cannot install py3exiv2

2019-05-01 Thread dieter
Ken Martell writes: > ... > D:\>pip3 install py3exiv2 > Collecting py3exiv2 > ... >     C:\Program Files (x86)\Microsoft Visual Studio > 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD > -Id:\apps\python37\include -Id:\apps\python37\include "-IC:\Program Files > (x86)\Microsoft

Re: Dynamic selection for network service ports?

2019-05-01 Thread dieter
Markus Elfring writes: > ... >> You can avoid this with the SO_REUSEADDR flag. > > Can such a configuration parameter be used also together with > programming interfaces from the module “socketserver”? The "SO" prefix stands for "SOcket" -- "SO_REUSEADDR" is one of many so called "socket option"s

Re: Checking network input processing by Python for a multi-threaded server

2019-05-01 Thread dieter
Markus Elfring writes: >> https://docs.python.org/3/library/socketserver.html#asynchronous-mixins > An example is provided also in this software documentation. > May I expect that data were completely received from clients and accordingly > processed by the request handler in the started threads

Re: PYTHON equivalents of BITAND and BITSHIFT of MATLAB

2019-05-01 Thread blmadhavan
Hello Brian, Thanks for your suggestion. Which is correct for MATLAB command: typeBits = FCF << -9? typeBits = FCF >> 9 or typeBits = FCF >> -9 I mean to ask if it should be -9 or +9? Thanks in advance Madhavan On Wednesday, May 1, 2019 at 11:22:10 PM UTC+5:30, Brian Oney wrote: > On Wed,

Populating a timetable with subjects

2019-05-01 Thread brittocj
Hi All, We have to populate a timetable with subjects. What would be the best approach? In our sample timetable there are 25 hours (keys), all the FH value should be replaced with random subjects as many as their corresponding hour. timetable = [{'A1': "FH", 'B1': "FH", 'C1': "FH", 'D1': "FH",

Re: Python 3.73 cannot install py3exiv2

2019-05-01 Thread Terry Reedy
On 5/1/2019 9:12 AM, Ken Martell wrote: I’m a retired aerospace engineer. I’m a Windows 10 user & have zero experience with Python. My goal is to learn, get this working & run lens distortion correction routines using Python. I’ve tried or many hours and read as much as I can but cannot get the py

RE: python3 html to rtf or doc

2019-05-01 Thread Wen-Chen Hol
Thank you so much Dennis for the direction. :) Wen -Original Message- From: Python-list On Behalf Of Dennis Lee Bieber Sent: Wednesday, 1 May 2019 4:27 PM To: python-list@python.org Subject: Re: python3 html to rtf or doc On Wed, 1 May 2019 00:16:43 +, Wen-Chen Hol declaimed the f

Re: Dynamic selection for network service ports?

2019-05-01 Thread Markus Elfring
> For the truly lazy, we have hash links. Thanks for your reminder. > https://docs.python.org/3/library/socketserver.html#socketserver.BaseServer.allow_reuse_address The relationship of this class attribute with the identifier (or option) “SO_REUSEADDR” might become easier to find. The use of

Re: Dynamic selection for network service ports?

2019-05-01 Thread Chris Angelico
On Thu, May 2, 2019 at 5:15 AM Markus Elfring wrote: > > > https://docs.python.org/3.4/library/socketserver.html > > about the middle of the page... > > It seems that you would like to refer to an other document. > https://docs.python.org/3/library/socket.html#socket-example > > Under which

Re: Dynamic selection for network service ports?

2019-05-01 Thread Markus Elfring
> https://docs.python.org/3.4/library/socketserver.html > about the middle of the page... It seems that you would like to refer to an other document. https://docs.python.org/3/library/socket.html#socket-example Under which circumstances will the execution of the method “socket.setsockopt” b

Re: Checking network input processing by Python for a multi-threaded server

2019-05-01 Thread Markus Elfring
> Why not provide them so that anyone trying to analyze what you are > seeing can try them for themselves. I assume that an other information system can be more appropriate for file distribution than this mailing list. > Starting a full process takes time This is usual. - Such an ac

ANN: DIPY 0.16.0 release

2019-05-01 Thread Eleftherios Garyfallidis
Hello all!, We are excited to announce a new release of Diffusion Imaging in Python (DIPY). If you use DIPY in your research, please cite us using the following DOI: 10.3389/fninf.2014.8 DIPY 0.16 (Monday, 10 March 2019) This release received

Re: A newbie question about using tix

2019-05-01 Thread MRAB
On 2019-05-01 17:44, David Sumbler wrote: > > On Tue, 2019-04-30 at 20:46 +0100, MRAB wrote: > > On 2019-04-30 16:40, David Sumbler wrote: > > > Running Ubuntu 18.04, Python 3.6.7, tkinter 8.6 > > > > > > I am very new to tkinter.  The simple program I am writing requires > > > a > > > user file t

Re: PYTHON equivalents of BITAND and BITSHIFT of MATLAB

2019-05-01 Thread Brian Oney via Python-list
On Wed, 2019-05-01 at 10:35 -0700, blmadha...@gmail.com wrote: > Hi, > > I have the following line from a MATLAB program with FCF (format: UInt_16) as > input: > > ftype = bitand(FCF, 7) > typeBits = bitshift(FCF, -9) > subtype = bitand(typeBits, 7) > > I wrote the following in Python for the a

PYTHON equivalents of BITAND and BITSHIFT of MATLAB

2019-05-01 Thread blmadhavan
Hi, I have the following line from a MATLAB program with FCF (format: UInt_16) as input: ftype = bitand(FCF, 7) typeBits = bitshift(FCF, -9) subtype = bitand(typeBits, 7) I wrote the following in Python for the above commands: ftype = FCF & 7 typeBits = FCF << -9 --> Is this co

Re: Generating generations of files

2019-05-01 Thread Grant Edwards
On 2019-05-01, Dennis Lee Bieber wrote: > It showed all versions... (at least, it did two years ago before my > lay-off from GE Aviation; which was running OpenVMS in a virtual > environment on some Windows boxes, being used to cross compile Ada > for 68040; and is also what I recall from 24 year

Re: pip as an importable module?

2019-05-01 Thread Skip Montanaro
> Pip doesn't have a programming API, so no, you can't do this. Having > said that, it looks like pip-conflict-checker only uses > `pip.get_installed_distributions`, and setuptools (pkg_resources, > specifically) has an API that does this, so you could probably > relatively easily fix the code to u

Python 3.73 cannot install py3exiv2

2019-05-01 Thread Ken Martell
I’m a retired aerospace engineer. I’m a Windows 10 user & have zero experience with Python. My goal is to learn, get this working & run lens distortion correction routines using Python. I’ve tried or many hours and read as much as I can but cannot get the py3exiv2 module to install. Other needed

Re: A newbie question about using tix

2019-05-01 Thread David Sumbler
On Tue, 2019-04-30 at 20:46 +0100, MRAB wrote: > On 2019-04-30 16:40, David Sumbler wrote: > > Running Ubuntu 18.04, Python 3.6.7, tkinter 8.6 > > > > I am very new to tkinter. The simple program I am writing requires > > a > > user file to be selected before it does anything else, so I would >

SQLObject 3.7.2

2019-05-01 Thread Oleg Broytman
Hello! I'm pleased to announce version 3.7.2, the second bugfix release of branch 3.7 of SQLObject. What's new in SQLObject === Minor features -- * Adapt Postgres exception handling to ``psycopg2`` version ``2.8``: in the recent ``psycopg2`` errors are in ``ps

Re: pip as an importable module?

2019-05-01 Thread Paul Moore
Pip doesn't have a programming API, so no, you can't do this. Having said that, it looks like pip-conflict-checker only uses `pip.get_installed_distributions`, and setuptools (pkg_resources, specifically) has an API that does this, so you could probably relatively easily fix the code to use that.

pip as an importable module?

2019-05-01 Thread Skip Montanaro
I'm trying to get pip-conflict-checker working with Python 3.6: https://github.com/ambitioninc/pip-conflict-checker It would seem that the pip API has changed since this tool was last updated, as what's there appears only to be used in support of pip as a command line tool. Is there something com

Re: Checking network input processing by Python for a multi-threaded server

2019-05-01 Thread Markus Elfring
> https://docs.python.org/3/library/socketserver.html#asynchronous-mixins I have constructed a pair of small scripts for another test. A command (which refers to the second Python script) is executed 100 times by “subprocess.run()” with parameters so that the child process can send six test record

Python Flask-CouchDB - AttributeError: '_AppCtxGlobals' object has no attribute 'couch'

2019-05-01 Thread Arup Rakshit
Hello, I started to write a simple todo app with couchcb. But as usual I met an error which a search in the internet could not help. I don’t even know how `g` gets its properties. My app: from flask import Flask, render_template, request, g from flaskext.couchdb import CouchDBManager app = Fla

Re: Checking network input processing by Python for a multi-threaded server

2019-05-01 Thread Markus Elfring
> https://docs.python.org/3/library/socketserver.html#asynchronous-mixins An example is provided also in this software documentation. May I expect that data were completely received from clients and accordingly processed by the request handler in the started threads after the statement “server.shu

Re: Generating generations of files

2019-05-01 Thread Gregory Ewing
Avi Gross wrote: UNIX flowed the fields together with a limit of 14 that included an actual optional period as a counted character. The Unix kernel has no notion of a filename extension; a filename is just a sequence of bytes. Using a dot-suffix to indicate a file type is just a user-level conv

Re: Generating generations of files

2019-05-01 Thread Gregory Ewing
On 2019-04-30, Cameron Simpson wrote: I'm pretty sure the VMS built in file versioning went on the scheme MRAB described: rewriting version.rpt caused the old version to become "version.rpt;n" where n counted up from 1. The version numbers certainly counted upwards. But I'm fairly sure a ver

Re: Dynamic selection for network service ports?

2019-05-01 Thread Markus Elfring
> If your server listens on a random port how does the client know > which port to connect to? I am fiddling also with the data processing variant that such connection properties are passed as parameters for a command which is executed as a child process so that desired data can be sent back to it

Re: Dynamic selection for network service ports?

2019-05-01 Thread Chris Angelico
On Wed, May 1, 2019 at 5:44 PM Markus Elfring wrote: > > > You'll get anything in the ephemeral ports range. > > From which documentation source did you get this information for > the handling of a zero as an useful setting? If you don't bind to a port, you get an arbitrary port in the ephemeral

Re: Dynamic selection for network service ports?

2019-05-01 Thread Markus Elfring
> You'll get anything in the ephemeral ports range. From which documentation source did you get this information for the handling of a zero as an useful setting? > But the other cause is that you recently shut the server down, > and the port is still in the TIME_WAIT state. Does this technical