Re: Discerning "Run Environment"

2022-05-18 Thread Eryk Sun
On 5/18/22, Chris Angelico wrote: > > Real solution? Set the command prompt to codepage 65001. Then it > should be able to handle all characters. (Windows-65001 is its alias > for UTF-8.) I suggest using win_unicode_console for Python versions prior to 3.6:

Re: Python & nmap

2022-05-18 Thread Jon Ribbens via Python-list
On 2022-05-18, ^Bart wrote: > THE INPUT > - > import nmap > nm.scan(hosts='192.168.205.0/24', arguments='-n -sP -PE -PA21,23,80,3389') > hosts_list = [(x, nm[x]['status']['state']) for x in nm.all_hosts()] > for host, status

Python & nmap

2022-05-18 Thread ^Bart
Hi guys, i need to copy some files from a Debian client to all linux embedded clients. I know the linux commands like: # scp "my_file" root@192.168.205.x/my_directory But... I have to upload 100 devices, I have a lan and a dhcp server just for this work and I'd like to make a script by

Re: Convert the decimal numbers expressed in a `numpy.ndarray` into a matrix representing elements in fractional form

2022-05-18 Thread Cousin Stanley
#!/usr/bin/env python3 ''' NewsGroup comp.lang.python Subject .. Convert the decimal numbers expressed in a numpy.ndarray into a matrix representing elements in fractiona Date . 2022-05-16 Post_By ..

[Python-announce] ANN: SciPy 1.8.1

2022-05-18 Thread Tyler Reddy
Hi all, On behalf of the SciPy development team, I'm pleased to announce the release of SciPy 1.8.1, which is a bug fix release that restores Pythran usage on Windows. Sources and binary wheels can be found at: https://pypi.org/project/scipy/ and at:

Re: tail

2022-05-18 Thread Cameron Simpson
On 17May2022 22:45, Marco Sulla wrote: >Well, I've done a benchmark. timeit.timeit("tail('/home/marco/small.txt')", globals={"tail":tail}, number=10) >1.5963431186974049 timeit.timeit("tail('/home/marco/lorem.txt')", globals={"tail":tail}, number=10)

Re: Issue sending data from C++ to Python

2022-05-18 Thread Christian Gollwitzer
Am 18.05.22 um 16:08 schrieb Pablo Martinez Ulloa: I have been using your C++ Python API, in order to establish a bridge from C++ to Python. We want to do this, as we have a tactile sensor, which only has a library developed in C++, but we want to obtain the data in real time in Python to

Re: Issue sending data from C++ to Python

2022-05-18 Thread MRAB
On 2022-05-18 15:08, Pablo Martinez Ulloa wrote: Hello, I have been using your C++ Python API, in order to establish a bridge from C++ to Python. We want to do this, as we have a tactile sensor, which only has a library developed in C++, but we want to obtain the data in real time in Python to

Re: Request for assistance (hopefully not OT)

2022-05-18 Thread Loris Bennett
Chris Angelico writes: > On Wed, 18 May 2022 at 04:05, Loris Bennett > wrote: >> >> [snip (26 lines)] >> >> > I think you had a problem before that. Debian testing is not an >> > operating system you should be using if you have a fairly good >> > understanding of how Debian (or Linux in

Re: Convert the decimal numbers expressed in a `numpy.ndarray` into a matrix representing elements in fractional form

2022-05-18 Thread Dennis Lee Bieber
On Tue, 17 May 2022 17:20:54 +0100, MRAB declaimed the following: >As it's just a simple replacement, I would've thought that the 'obvious' >solution would be: > a = a.replace("'", "") Mea culpa... Guess it's time for me to review the library reference for basic data types

Re: tail

2022-05-18 Thread Marco Sulla
Well, I've done a benchmark. >>> timeit.timeit("tail('/home/marco/small.txt')", globals={"tail":tail}, >>> number=10) 1.5963431186974049 >>> timeit.timeit("tail('/home/marco/lorem.txt')", globals={"tail":tail}, >>> number=10) 2.5240604374557734 >>>

Issue sending data from C++ to Python

2022-05-18 Thread Pablo Martinez Ulloa
Hello, I have been using your C++ Python API, in order to establish a bridge from C++ to Python. We want to do this, as we have a tactile sensor, which only has a library developed in C++, but we want to obtain the data in real time in Python to perform tests with a robotic arm and gripper. The

Re: Discerning "Run Environment"

2022-05-18 Thread Chris Angelico
On Wed, 18 May 2022 at 19:40, Stephen Tucker wrote: > > Hi, > > I am a Windows 10 user still using Python 2.x (for good reasons, I assure > you.) > > I have a Python 2.x module that I would like to be able to use in a variety > of Python 2.x programs. The module outputs characters to the user

Discerning "Run Environment"

2022-05-18 Thread Stephen Tucker
Hi, I am a Windows 10 user still using Python 2.x (for good reasons, I assure you.) I have a Python 2.x module that I would like to be able to use in a variety of Python 2.x programs. The module outputs characters to the user that are only available in the Unicode character set. I have found