Re: bring back nntp library to python3

2024-08-14 Thread gene heskett via Python-list
On 8/14/24 19:43, dn via Python-list wrote: Recently there was an election for PSF members. Did 'everyone' participate? Of course not, I didn't simply because I don't know enough have a cogent opinion. But conversations like this are would seem to be good if they don't degenerate into name c

Re: bring back nntp library to python3

2024-08-14 Thread dn via Python-list
On 15/08/24 10:56, Alan Gauld via Python-list wrote: On 14/08/2024 23:32, Left Right via Python-list wrote: Lots of people care but the ability to influence these decisions seems to have been removed far from the general python user community. Python has moved from the BDFL/Bazaar to the Committe

Re: bring back nntp library to python3

2024-08-14 Thread Ethan Furman via Python-list
On 8/14/24 15:56, Alan Gauld via Python-list wrote: > Lots of people care but the ability to influence these > decisions seems to have been removed far from the > general python user community. Python has moved from > the BDFL/Bazaar to the Committee/Cathedral. Probably > an inevitable consequenc

Re: bring back nntp library to python3

2024-08-14 Thread Ethan Furman via Python-list
On 8/14/24 15:32, Left Right via Python-list wrote: > I think the right word for this is "delusional". But people get > offended when other people use the right words. Instead they want a > grotesque round-about way of saying the same thing... > > So, the grotesque round-about way of saying this,

Re: bring back nntp library to python3

2024-08-14 Thread Alan Gauld via Python-list
ng batteries included it puts the onus on developers to build complex installs since their clients can't be expected to use pip etc. And a vanilla python no longer comes with the batteries. It greatly adds to the Python users workload even as it lightens the library maintainers load. It was certa

Re: bring back nntp library to python3

2024-08-14 Thread Left Right via Python-list
> it became simple and straightforward to > download and install packages. I think the right word for this is "delusional". But people get offended when other people use the right words. Instead they want a grotesque round-about way of saying the same thing... So, the grotesque round-about way of

Re: bring back nntp library to python3

2024-08-14 Thread Ethan Furman via Python-list
On 8/14/24 13:14, Keith Thompson via Python-list wrote: > The rationale for removing nntplib and other modules from the default > installation is explained in PEP 0594 . > > """ > The nntplib tests have been the cause of additional work in the recent > past. Pyt

Re: bring back nntp library to python3

2024-08-14 Thread Keith Thompson via Python-list
"test" writes: > why is the nntp library deprecated in recent python versions? they > clearly lost touch nntplib is not vanishing into thin air. It's just not going to be part of a default Python installation. (It's not there in Python 3.13.0rc1.) In my opinion the u

Problem using mysql library

2024-07-11 Thread Tobiah via Python-list
sinewave:toby ~(1)> python Python 2.7.18 (default, Jul 8 2024, 12:49:12) [GCC 13.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. import MySQLdb Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/MySQLdb/

ANN: repology-client library to access Repology API

2024-01-10 Thread Anna (cybertailor) Vyalkova via Python-list
Hi newsgroup, I needed to fetch Repology data for my pet project and now it's a library: https://pypi.org/project/repology-client/ It uses aiohttp, if that matters. Feel free to use and contribute. -- https://mail.python.org/mailman/listinfo/python-list

cubes library docs are not accurate, first example failing unexpectedly

2023-06-08 Thread marc nicole via Python-list
e. file data.sqlite created") workspace = Workspace() workspace.register_default_store("sql", url="sqlite:///data.sqlite") workspace.import_model("../model.json") cube = workspace.cube("irbd_balance") browser = workspace.browser(&qu

Create Statically linked python library

2023-05-21 Thread Guenther Sohler
Right now my application links python dynamically. That means ldd will show something like libpython3.11.so.1.0 => /lib64/libpython3.11.so.1.0 (0x7fd63c60) but i dont like this dependency. ii want to link in python statically. I'd like to get a file like libpython3.11.a or similar. For t

Re: Using loguru in a library

2023-05-02 Thread Roy Hann
Dieter Maurer wrote: > Roy Hann wrote at 2023-4-30 15:40 -: >>Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a >>library? >> ... >> import mylib >> logger.enable('mylib') >> >>expecting that it would report any l

Re: Using loguru in a library

2023-05-02 Thread Dieter Maurer
Roy Hann wrote at 2023-4-30 15:40 -: >Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a >library? > ... > import mylib > logger.enable('mylib') > >expecting that it would report any log messages above level DEBUG, just >as it does w

Re: Using loguru in a library

2023-05-02 Thread Roy Hann
MRAB wrote: > On 2023-04-30 16:40, Roy Hann wrote: >> Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a >> library? >> >> >> In my __init__.py in mylib I do >> >>logger.disable('mylib') >> >>

Re: Using loguru in a library

2023-05-01 Thread MRAB
On 2023-04-30 16:40, Roy Hann wrote: Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a library? In my __init__.py in mylib I do logger.disable('mylib') which definitely works. I don't get any more logging. I "pip install ." the librar

Using loguru in a library

2023-05-01 Thread Roy Hann
Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a library? In my __init__.py in mylib I do logger.disable('mylib') which definitely works. I don't get any more logging. I "pip install ." the library, then in mytest.py I do import myl

Re: Python curses missing form library?

2023-04-24 Thread Grant Edwards
On 2023-04-24, Alan Gauld wrote: > On 24/04/2023 17:26, Grant Edwards wrote: >> Does the Python curses support in the standard library not include >> support for the curses form library? It seems to include support for >> the panel library, but I can't find any mention

Re: Python curses missing form library?

2023-04-24 Thread Alan Gauld
On 24/04/2023 17:26, Grant Edwards wrote: > Does the Python curses support in the standard library not include > support for the curses form library? It seems to include support for > the panel library, but I can't find any mention of the form library. I don't believe so.

Python curses missing form library?

2023-04-24 Thread Grant Edwards
Does the Python curses support in the standard library not include support for the curses form library? It seems to include support for the panel library, but I can't find any mention of the form library. I see in the docs that menu support is still missing. :/ -- Grant --

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Cameron Simpson
On 10Apr2023 13:10, Chris Green wrote: command: ffprobe -v warning -i "input.mp4" -show_streams -of json python: Popen(command, stderr=STDOUT, stdout=PIPE, encoding='utf8') json: json.loads(''.join(p.stdout.readlines())) It's easy to find a version of ffmpeg/ffprobe for every platform. Thank

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
jak wrote: > Chris Green ha scritto: > > jak wrote: > >> rbowman ha scritto: > >>> On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: > >>> > >>>> I'm looking for a Python (3) library to access (read only at present) > >>&

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread rbowman
On Sun, 9 Apr 2023 20:19:37 +0100, Chris Green wrote: > That's why I hadn't thought it would help me as I'm after getting > metadata from an MP4 video file but I guess the metadata format may be > the same regardless of whether it's video or audio. If yuo chase back through the various ISOs you t

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread jak
rbowman ha scritto: On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: I'm looking for a Python (3) library to access (read only at present) the metadata in MP4 video files, in particular I want to get at dates and times. What's available to do this? Ideally something availa

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread jak
Chris Green ha scritto: jak wrote: rbowman ha scritto: On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: I'm looking for a Python (3) library to access (read only at present) the metadata in MP4 video files, in particular I want to get at dates and times. What's available

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
rbowman wrote: > On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: > > > I'm looking for a Python (3) library to access (read only at present) > > the metadata in MP4 video files, in particular I want to get at dates > > and times. > > > > What&#

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
jak wrote: > rbowman ha scritto: > > On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: > > > >> I'm looking for a Python (3) library to access (read only at present) > >> the metadata in MP4 video files, in particular I want to get at dates > >&

Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
I'm looking for a Python (3) library to access (read only at present) the metadata in MP4 video files, in particular I want to get at dates and times. What's available to do this? Ideally something available in the Ubuntu repositories but I can install with PIP if necessary. -- C

Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread rbowman
On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote: > I'm looking for a Python (3) library to access (read only at present) > the metadata in MP4 video files, in particular I want to get at dates > and times. > > What's available to do this? Ideally somethin

Re: No solution for "--verbose" (on stdout) output in Pythonds standard library?

2023-01-04 Thread Richard Damon
o detailed here about that difference between stdout and stderr > because in the wild (e.g. on StackOverflow) you often find "use logging > log levels" as a solution for that problem, which IMHO isn't one. > > Now the question: > From my research on the docs it seems

Re: No solution for "--verbose" (on stdout) output in Pythonds standard library?

2023-01-04 Thread Eryk Sun
On 1/4/23, c.bu...@posteo.jp wrote: > > often seen "--verbose" switch in command line applications should > affect only the messages given to the users. This means messages on > "stdout". That is what this question is about. Is this additional context information such as help and definitions? If

Re: No solution for "--verbose" (on stdout) output in Pythonds standard library?

2023-01-04 Thread Weatherby,Gerard
ser.parse_args() logger = logging.getLogger(__name__) logger.setLevel(getattr(logging,args.loglevel)) From: Python-list on behalf of c.bu...@posteo.jp Date: Wednesday, January 4, 2023 at 8:55 AM To: python-list@python.org Subject: No solution for "--verbose" (on stdout) output in Pythonds sta

Re: No solution for "--verbose" (on stdout) output in Pythonds standard library?

2023-01-04 Thread Chris Angelico
On Thu, 5 Jan 2023 at 00:54, wrote: > > Hello, > > first I have to say that in my current and fresh humble opinion the > often seen "--verbose" switch in command line applications should > affect only the messages given to the users. This means messages on > "stdout". That is what this question is

No solution for "--verbose" (on stdout) output in Pythonds standard library?

2023-01-04 Thread c.buhtz
uot; as a solution for that problem, which IMHO isn't one. Now the question: >From my research on the docs it seems there is no feature in the standard library which could help me to implement "--verbose" or multiple verbosity levels like "-vvv"? I found some workar

Re: logging library python

2022-04-27 Thread Dan Stromberg
You probably want getLogger(__name__) ...or something close to it. ‪On Wed, Apr 27, 2022 at 12:58 PM ‫תמר ווסה‬‎ wrote:‬ > hello, > we have many scripts of one project. what is the right way to define the > logger to all scripts? we tried to create class that define the logger > configuration+g

logging library python

2022-04-27 Thread תמר ווסה
hello, we have many scripts of one project. what is the right way to define the logger to all scripts? we tried to create class that define the logger configuration+generic function (handler functions to write generic log message), and each script define an instance of the class. But the log

Re: library not initialized (pygame)

2022-02-19 Thread Martin Di Paola
if event.type == pygame.MOUSEBUTTONDOWN: if event.type == pygame.MOUSEBUTTONUP: screen.fill(pygame.Color('black')) # clears the screen text display_instruction(font_x, font_y) pygame.display.update() main() the error apparently comes from the first instructions

Re: library not initialized (pygame)

2022-02-19 Thread Cosmo Hope
On Sunday, 2 May 2021 at 21:04:40 UTC+1, Michael Torrie wrote: > On 5/2/21 1:23 PM, Quentin Bock wrote: > > the error apparently comes from the first instructions variable saying > > library not initialized not sure why, its worked before but not now :/ > I don't get tha

ANN: A new library for encryption and signing has been released.

2021-12-05 Thread Vinay Sajip via Python-list
A new library called pagesign (Python-age-sign) has been released on PyPI [1]. It covers similar functionality to python-gnupg, but uses the modern encryption tool age [2] and the modern signing tool minisign [3]. The initial release allows you to: * Create and manage identities (which are

Tree library that allows conditions on nodes and will return the node

2021-06-14 Thread Veek M
LibreOffice has a huge class tree and I need to familiarize myself with it - trouble is, it won't fit on A4 because it has a flat hierarchy with loads of leaf nodes. I wanted to shove all the leaf nodes > x into a subgraph and style that differently using Graphviz. I tried treelib but while i can

Re: Async requests library with NTLM auth support?

2021-06-03 Thread Albert-Jan Roskam
> Asyncio and httpx [1] look promising but don't seem to support ntlm. Any tips? ==> https://pypi.org/project/httpx-ntlm/ Not sure how I missed this in the first place. :-) -- https://mail.python.org/mailman/listinfo/python-list

Async requests library with NTLM auth support?

2021-06-01 Thread Albert-Jan Roskam
Hi, I need to make thousands of requests that require ntlm authentication so I was hoping to do them asynchronously. With synchronous requests I use requests/requests_ntlm. Asyncio and httpx [1] look promising but don't seem to support ntlm. Any tips? Cheers! Albert-Jan [1]

library not initialized pygame

2021-05-04 Thread Quentin Bock
code: #imports and variable for loop import pygame running = True #initializes pygame pygame.init() pygame.mixer.init() pygame.font.init() #creates the pygame window screen = pygame.display.set_mode((1200, 800)) #Title and Icon of window pygame.display.set_caption("3.02 Project") icon = pygame.i

Re: library not initialized (pygame)

2021-05-02 Thread Michael Torrie
On 5/2/21 1:23 PM, Quentin Bock wrote: > the error apparently comes from the first instructions variable saying > library not initialized not sure why, its worked before but not now :/ I don't get that error on my Fedora 32 machine. The script ultimately doesn't run because i

library not initialized (pygame)

2021-05-02 Thread Quentin Bock
screen.fill(pygame.Color('black')) # clears the screen text display_instruction(font_x, font_y) pygame.display.update() main() the error apparently comes from the first instructions variable saying library not initialized not sure why, its worked before but not now :/ -- https://mail.python.org/mailman/listinfo/python-list

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-09 Thread Peter J. Holzer
suspect that the restrictions are more caused by having to be "provable" in the mathematical sense and less with the variety in possible semantics.) Where the OP is wrong, IMHO, is the "comparatively small" aspect. A formal description of C will not fit into a few lines. The C sta

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-08 Thread Mirko via Python-list
Am 07.03.2021 um 21:52 schrieb Avi Gross via Python-list: > The precedence example used below made a strange assumption that the > imaginary program would not be told up-front what computer language it was > being asked to convert from. That is not the scenario being discussed as we > have describe

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-07 Thread Christian Gollwitzer
such a language would be comparable in expressiveness and ease of use to other programming languages - or in other worlds it would be just another programming language. As far as I understand the idea, Leigh (aka Mr Flibble) thinks that he can create a "library" of code translators that

RE: neonumeric - C++ arbitrary precision arithmetic library

2021-03-07 Thread Avi Gross via Python-list
king anything, but I think a universal translator may not be imminent. -Original Message- From: Python-list On Behalf Of Peter J. Holzer Sent: Sunday, March 7, 2021 2:43 PM To: python-list@python.org Subject: Re: neonumeric - C++ arbitrary precision arithmetic library On 2021-03-06 23:4

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-07 Thread Peter J. Holzer
On 2021-03-06 23:41:10 +0100, Mirko via Python-list wrote: > I even wonder why they have tried. Writing a universal > compiler/interpreter sounds logically impossible to me, Here's a > simple Python expression: > > >>> 3+3*5 > 18 > > And here's the same expression in (GNU) Smalltalk: > > st> 3+3

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Chris Angelico
On Sun, Mar 7, 2021 at 9:42 AM Mirko via Python-list wrote: > I even wonder why they have tried. Writing a universal > compiler/interpreter sounds logically impossible to me, Here's a > simple Python expression: > > >>> 3+3*5 > 18 > > And here's the same expression in (GNU) Smalltalk: > > st> 3+3*

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Mirko via Python-list
Am 06.03.2021 um 22:24 schrieb Ben Bacarisse: > Mr Flibble writes: > >>> Someone who says that he is capable of writing a compiler that >>> translates every language has megalomania. No one can do this. >> >> Just because you can't make one it doesn't follow that nobody else >> can. > > True, bu

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Chris M. Thomasson
On 3/5/2021 8:51 AM, Mr Flibble wrote: neonumeric - C++ arbitrary precision arithmetic library with arbitrary precision integers, floats and rationals: https://github.com/i42output/neonumeric It hasn't been formally released yet as it still requires more extensive testing.  It will be

RE: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Avi Gross via Python-list
Bonita Montero Sent: Saturday, March 6, 2021 2:12 PM To: python-list@python.org Subject: Re: neonumeric - C++ arbitrary precision arithmetic library >> There is no projection. >> _You_ have megalomania, not me. >> And there's also no Dunning Kruger effect. >> You can'

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Ben Bacarisse
Mr Flibble writes: >> Someone who says that he is capable of writing a compiler that >> translates every language has megalomania. No one can do this. > > Just because you can't make one it doesn't follow that nobody else > can. True, but lots of very knowledgeable people have tried and failed.

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Chris M. Thomasson
On 3/6/2021 11:35 AM, Mr Flibble wrote: On 06/03/2021 19:11, Bonita Montero wrote: There is no projection. _You_ have megalomania, not me. And there's also no Dunning Kruger effect. You can't assess your capabilites, not me. no u Someone who says that he is capable of writing a compiler tha

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Bonita Montero
There is no projection. _You_ have megalomania, not me. And there's also no Dunning Kruger effect. You can't assess your capabilites, not me. no u Someone who says that he is capable of writing a compiler that translates every language has megalomania. No one can do this. -- https://mail.pyt

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Chris Angelico
On Sun, Mar 7, 2021 at 4:51 AM Bonita Montero wrote: > > > Whilst you need to read the following: > > * https://en.wikipedia.org/wiki/Psychological_projection > > * https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect > > There is no projection. > _You_ have megalomania, not me. > And there

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Bonita Montero
Whilst you need to read the following: * https://en.wikipedia.org/wiki/Psychological_projection * https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect There is no projection. _You_ have megalomania, not me. And there's also no Dunning Kruger effect. You can't assess your capabilites, not

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Bonita Montero
It hasn't been formally released yet as it still requires more extensive testing. It will be used as part of my universal compiler, neos, that can compile any programming language ... You will get the same room in the same psychiatric ward like Amine Moulay Ramdane. -- https://mail.python.org/

Overriding property types on instances from a library

2021-02-20 Thread Joseph L. Casale
I have some code that makes use of the typing module. This code creates several instances of objects it creates from a library that has some issues. For example, I have multiple list comps that iterate properties of those instance and the type checker fails with: Expected type

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-17 Thread Michał Jaworski
make it totally independent of your system installation. The last thing would be probably installing pygtk in that "isolated" python installation as OKI utilities clearly rely on this. You could use venv for that or just simply make sure that gtk for python2 is in that python's library

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-17 Thread Chris Green
Cameron Simpson wrote: > >> Guessing from the library name, have you looked on the OKI.com site > >> for current software? Maybe here? What's your printer model? > >> > >> https://www.oki.com/au/printing/support/drivers-and-utilities/index.html >

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Cameron Simpson
ongoing updates to Python. The PPA works OK in Ubuntu 20.04 but >prevents some updates in 20.10. I expect it will get worse as time >goes on. [...] >> Guessing from the library name, have you looked on the OKI.com site >> for current software? Maybe here? What's your p

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
On Thu, Dec 17, 2020 at 9:06 AM Chris Green wrote: > > Also, make note of the specific Python 2 version where your software > > works - the CPython API does change somewhat sometimes. > > > I still have python 2. The issue is that the programs need modules > which come from a PPA to support Pytho

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Green
7;m getting is as follows:- > >File "/usr/libexec/okimfputl.new/guicom.py", line 66, in import > > pyscand > >ImportError: /usr/libexec/okimfpdrv/pyscand.so: undefined symbol: > > _Py_ZeroStruct > > > Guessing from the library name, have yo

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
On Thu, Dec 17, 2020 at 8:26 AM Cameron Simpson wrote: > > On 16Dec2020 18:51, Chris Green wrote: > >The specific problem that finally prevented me from managing to get it > >to work was a (Linux) .so file that had been built for Python 2 and, > >as I don't have the source, I can't build for Pyth

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Cameron Simpson
version where your software works - the CPython API does change somewhat sometimes. >The specific error I'm getting is as follows:- >File "/usr/libexec/okimfputl.new/guicom.py", line 66, in import > pyscand >ImportError: /usr/libexec/okimfpdrv/pyscand.so: und

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
ike it? I have all > >> the Python code and have (up to hitting this problem) converted it to > >> Python 3. > >> > > > > Basically no. The error you're seeing is a nice noisy one, but even if > > you got past that, there'll be a LOT

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread MRAB
sically no. The error you're seeing is a nice noisy one, but even if you got past that, there'll be a LOT of incompatibilities. Unfortunately, a quick google search for 'pyscand' showed up places where you've asked this question, suggesting that nobody else uses this librar

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
n code and have (up to hitting this problem) converted it to > Python 3. > Basically no. The error you're seeing is a nice noisy one, but even if you got past that, there'll be a LOT of incompatibilities. Unfortunately, a quick google search for 'pyscand' showed up pl

Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Green
Some time ago (in July) I asked some questions here about problems migrating some code from Python 2 to Python 3. The specific problem that finally prevented me from managing to get it to work was a (Linux) .so file that had been built for Python 2 and, as I don't have the source, I can't build

Re: Library for text substitutions with calculations?

2020-12-15 Thread Terry Reedy
On 12/15/2020 11:25 AM, Bob Gailer wrote: On Tue, Dec 15, 2020, 10:42 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: On 2020-12-15 at 16:04:55 +0100, Jan Erik Moström wrote: I want to do some text substitutions but a bit more advanced than what string.Template class can do. I addition to pla

Re: Library for text substitutions with calculations?

2020-12-15 Thread Bob Gailer
On Tue, Dec 15, 2020, 10:42 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > On 2020-12-15 at 16:04:55 +0100, > Jan Erik Moström wrote: > > > I want to do some text substitutions but a bit more advanced than what > > string.Template class can do. I addition to plain text substitution I > would >

Re: Library for text substitutions with calculations?

2020-12-15 Thread 2QdxY4RzWzUUiLuE
On 2020-12-15 at 16:04:55 +0100, Jan Erik Moström wrote: > I want to do some text substitutions but a bit more advanced than what > string.Template class can do. I addition to plain text substitution I would > like to be able to do some calculations: > > $value+1 - If value is 16 this would inse

Library for text substitutions with calculations?

2020-12-15 Thread Jan Erik Moström
ample+1w would result in Hello world 22 and a date 2020-12-22 Is there some library that can do something like this? I probably searching using the wrong keywords because I can't find anything. = jem -- https://mail.python.org/mailman/listinfo/python-list

Re: [osx] dyld: Library not loaded: /usr/local/Cellar/python@3.8/3.8.3_1/Frameworks/Python.framework/Versions/3.8/Python

2020-12-04 Thread Mats Wichmann
On 12/4/20 7:15 AM, Noah wrote: Hi there, Anybody know how to fix this issue on a mac? ❯ /usr/local/bin/python dyld: Library not loaded: /usr/local/Cellar/python@3.8/3.8.3_1/Frameworks/Python.framework/Versions/3.8/Python   Referenced from: /usr/local/bin/python   Reason: image not found

[osx] dyld: Library not loaded: /usr/local/Cellar/python@3.8/3.8.3_1/Frameworks/Python.framework/Versions/3.8/Python

2020-12-04 Thread Noah
Hi there, Anybody know how to fix this issue on a mac? ❯ /usr/local/bin/python dyld: Library not loaded: /usr/local/Cellar/python@3.8/3.8.3_1/Frameworks/Python.framework/Versions/3.8/Python Referenced from: /usr/local/bin/python Reason: image not found [1]32209 abort /usr/local

Re: A library that converts a type-annotated function into a webpage with HTML forms?

2020-10-01 Thread Dieter Maurer
James Lu wrote at 2020-9-30 16:45 -0400: >Is there a python library available that converts a type-annotated Python >function into a webpage with HTML forms? > >Something like: > > >def foo(name: str, times: int): >return f"Hello {name}!" * times > >s

Re: A library that converts a type-annotated function into a webpage with HTML forms?

2020-09-30 Thread Kushal Kumaran
On Wed, Sep 30 2020 at 04:45:47 PM, James Lu wrote: > Is there a python library available that converts a type-annotated Python > function into a webpage with HTML forms? > > Something like: > > > def foo(name: str, times: int): > return f"Hello {name}!"

A library that converts a type-annotated function into a webpage with HTML forms?

2020-09-30 Thread James Lu
Is there a python library available that converts a type-annotated Python function into a webpage with HTML forms? Something like: def foo(name: str, times: int): return f"Hello {name}!" * times serve_from(foo, host="0.0.0.0", port=3000) Turning into a server that s

ANN: Version 0.1.6 of sarge (a subprocess wrapper library) has been released.

2020-08-24 Thread Vinay Sajip via Python-list
Version 0.1.6 of Sarge, a cross-platform library which wraps the subprocess module in the standard library, has been released. What changed? - - Fixed #44: Added an optional timeout to Command.wait() and Pipeline.wait(), which   only takes effect on Python >= 3.3. - Fixed

Re: (Issue resolved!) Issue with Python module downloads from Library for a beginner Python coder.

2020-08-02 Thread Sarvesh Poddar via Python-list
Hi terry, I am so happy to mention that your suggestion worked! I moved the file from Tkinter to Lib and I am suddenly able to import the file.  Thanks you so much @Bob, @Arjun, @Cameron for your suggestions. I can finally move forward. I hope to contribute to this community in future after gain

Re: Issue with Python module downloads from Library for a beginner Python coder.

2020-08-02 Thread Sarvesh Poddar via Python-list
have turned something like 7 lines of output into one long string/paragraph.     My only suggestion is to drop OUT of IDLE or whatever, and open a Windows command shell... and try running a script from that shell. I note that this library makes use of Tkinter -- which is also used by

Re: Issue with Python module downloads from Library for a beginner Python coder.

2020-08-02 Thread Terry Reedy
On 8/2/2020 2:36 AM, Sarvesh Poddar via Python-list wrote: [I downloaded] https://mcsp.wartburg.edu/zelle/python/graphics.py) I have unmangled the traceback and added explanations. Traceback (most recent call last):  File "", line 1, in     import graphics You typed this in IDLE Shell in r

Re: Issue with Python module downloads from Library for a beginner Python coder.

2020-08-02 Thread Bob van der Poel
. > > You do not provide much detail to diagnose what your problem(s) > is(are). By the "earlier one" is it the same version as the one you > re-installed? Were you able to run IDLE with the "earlier one"? By > not being able to import modules do you mean modu

Re: Issue with Python module downloads from Library for a beginner Python coder.

2020-08-02 Thread Cameron Simpson
Diverting replies to tu...@python.org, a better place for all this. It looks like the error is in graphics.py, not in your file. Your line: from graphics import * is syntacticly correct. Something has mangled the line breaks in your traceback, which here appears as: When I write a diff

Re: Issue with Python module downloads from Library for a beginner Python coder.

2020-08-01 Thread Sarvesh Poddar via Python-list
s) is(are).  By the "earlier one" is it the same version as the one you re-installed?  Were you able to run IDLE with the "earlier one"?  By not being able to import modules do you mean modules from Python's standard library?  Or do you mean installing third party libraries usin

Re: "OSError: [Errno 9] Bad file descriptor" When I try to Install the library in conda prompt

2020-07-21 Thread dn via Python-list
On 7/22/20 4:46 PM, Mathiyazhagan S wrote: Dear Sir/Madam, I'm new to the python program. I'm trying to install the "numby" or anything to add into the library by using the windows command prompt I'm getting some error please find the attachment. So please help

"OSError: [Errno 9] Bad file descriptor" When I try to Install the library in conda prompt

2020-07-21 Thread Mathiyazhagan S
Dear Sir/Madam, I'm new to the python program. I'm trying to install the "numby" or anything to add into the library by using the windows command prompt I'm getting some error please find the attachment. So please help me to resolve this issue. Thank you -- https:

Re: Shared library missing from wheel (custom build)

2020-06-06 Thread Miki Tebeka
Changed to self.get_ext_full_path(ext.name) and it works now. -- https://mail.python.org/mailman/listinfo/python-list

Shared library missing from wheel (custom build)

2020-06-06 Thread Miki Tebeka
Hi, I'm playing around with generating extension moudle to Python in Go. This is for a blog post - not production ready. The Go code is compiled to a shared library and the Python module is using ctypes to call the Go code in the shared library. I know it's know a classic extens

Re: Bug in the urljoin library

2020-04-28 Thread Peter Otten
Moro, Andrea via Python-list wrote: > Hello there, > > I believe there is a bug in the urljoin library. I believe this is a case of garbage-in garbage-out ;) Try p = urlparse(url) if not p.scheme: url = urlunparse(p._replace(scheme="http")) > > See below: &g

Bug in the urljoin library

2020-04-28 Thread Moro, Andrea via Python-list
Hello there, I believe there is a bug in the urljoin library. See below: p = urlparse(url) if p.scheme == '': url = urljoin('http://', url) Input: domain.tld/somepath Output http:///domain.tld/somepath p = urlparse(url) if p.scheme == '': url = urljoin(&#

Re: Getting the dependencies of a function from a library

2020-04-21 Thread Barry Scott
> On 20 Apr 2020, at 22:40, elisha hollander wrote: > > I have a python library with a function. > This function call some other functions, classes and variable from the > library (and those functions and classes call other ones, etc)... > Can I automatically create a fi

Re: Getting the dependencies of a function from a library

2020-04-21 Thread Dieter Maurer
elisha hollander wrote at 2020-4-21 00:40 +0300: >I have a python library with a function. >This function call some other functions, classes and variable from the >library (and those functions and classes call other ones, etc)... >Can I automatically create a file with all of the depen

Re: Getting the dependencies of a function from a library

2020-04-20 Thread Juergen Brendel
wrote: > For me the question is a little vague. > > What do you mean by Library? > > Could you give us a simple example of the input and the output? > > It's possible to interpret your question as an assessment of your > skill > level. We know nothing about your sk

Re: Getting the dependencies of a function from a library

2020-04-20 Thread DL Neil via Python-list
On 21/04/20 9:40 AM, elisha hollander wrote: I have a python library with a function. This function call some other functions, classes and variable from the library (and those functions and classes call other ones, etc)... Can I automatically create a file with all of the dependencies (and

Re: Getting the dependencies of a function from a library

2020-04-20 Thread Bob Gailer
For me the question is a little vague. What do you mean by Library? Could you give us a simple example of the input and the output? It's possible to interpret your question as an assessment of your skill level. We know nothing about your skill level. It's possible to interpret your q

Getting the dependencies of a function from a library

2020-04-20 Thread elisha hollander
I have a python library with a function. This function call some other functions, classes and variable from the library (and those functions and classes call other ones, etc)... Can I automatically create a file with all of the dependencies (and nothing else)? (Already posted on stack overflow

  1   2   3   4   5   6   7   8   9   10   >