Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread נתי שטרן
I copied most of the libraries from cython בתאריך יום ו׳, 24 ביוני 2022, 17:18, מאת Roel Schroeven ‏< r...@roelschroeven.net>: > Op 24/06/2022 om 14:14 schreef נתי שטרן: > > My TARGET is to bind many code libraries to one Huge code file that > > works optimally and do optimizations if needed. >

Re: "CPython"

2022-06-24 Thread Avi Gross via Python-list
David, I understand now. As a project for your own edification I can understand it, albeit it is a more substantial effort than many people might choose, LOL! So unless it starts being used heavily and adopted by some organization, the result of your effort will not necessarily be compatible

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread Roel Schroeven
Op 24/06/2022 om 14:14 schreef נתי שטרן: My TARGET  is to bind many code libraries to one Huge code file that works optimally and do optimizations if needed. In this file have code of huge part of falconpy, ALL code of re, argparse, are and many other code libraries Don't do that. Sorry, it's

Re: "CPython"

2022-06-24 Thread David J W
The main motivation for a Python virtual machine in Rust is to strengthen my knowledge with Rust which currently has some gnarly bits to it but otherwise is an impressive low level language. Rust's future is looking very bright as even Linus Torvalds agrees with most of its design choices and is

Re: 3.11.0b4?

2022-06-24 Thread Mats Wichmann
On 6/23/22 07:14, Richard David wrote: > Is there a new scheduled date for releasing 3.11.0b4? Are there issues with > b4 that have implications for b3? > > I realize it will be released when ready and am not trying to push or harass > anyone involved. It just seems that versions are usually

Re: 3.11.0b4?

2022-06-24 Thread Richard David
On Thursday, June 23, 2022 at 9:15:19 AM UTC-4, Richard David wrote: > Is there a new scheduled date for releasing 3.11.0b4? Are there issues with > b4 that have implications for b3? > > I realize it will be released when ready and am not trying to push or harass > anyone involved. It just

Re: open text file

2022-06-24 Thread jak
Il 24/06/2022 15:44, jak ha scritto: Il 24/06/2022 15:10, simone zambonardi ha scritto: Good morning, I need to read a text file. How come when I open it (running the script) it says this? The text file is type RFT {\rtf1\ansi\ansicpg1252\cocoartf2636

Re: argparse modify

2022-06-24 Thread Dennis Lee Bieber
On Thu, 23 Jun 2022 17:01:42 -0600, Mats Wichmann declaimed the following: >Assuming: that the "value" in your init method signature was supposed to >be 'name' since that's what you use later - and would explain your >exception! > Since it is a "named int", I'd expect value to the

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread Dennis Lee Bieber
On Fri, 24 Jun 2022 18:27:33 +0300, ??? declaimed the following: >I copied most of the libraries from cython I doubt that... cython is a specialized Python COMPILER system. "CPython" is the common interpreted Python language (implemented in C), and is the most likely source of the

Re: 3.11.0b4?

2022-06-24 Thread Richard David
On Friday, June 24, 2022 at 11:36:06 AM UTC-4, Mats Wichmann wrote: > On 6/23/22 07:14, Richard David wrote: > > Is there a new scheduled date for releasing 3.11.0b4? Are there issues with > > b4 that have implications for b3? > > > > I realize it will be released when ready and am not trying

Re: open text file

2022-06-24 Thread jak
Il 24/06/2022 15:10, simone zambonardi ha scritto: Good morning, I need to read a text file. How come when I open it (running the script) it says this? The text file is type RFT {\rtf1\ansi\ansicpg1252\cocoartf2636 \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread Dennis Lee Bieber
On Fri, 24 Jun 2022 15:14:50 +0300, ??? declaimed the following: >My TARGET is to bind many code libraries to one Huge code file that works >optimally and do optimizations if needed. >In this file have code of huge part of falconpy, ALL code of re, argparse, >are and many other code

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread Chris Angelico
‪On Fri, 24 Jun 2022 at 18:43, ‫נתי שטרן‬‎ wrote:‬ > > class _NamedIntConstant(int): > def __new__(cls, value, name): > self = super(_NamedIntConstant, cls).__new__(cls, value) > self.name = name > return self > > def __repr__(self): > return self.name > >

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread נתי שטרן
I did the changes on local copy of this code ‫בתאריך יום ו׳, 24 ביוני 2022 ב-11:50 מאת ‪Chris Angelico‬‏ <‪ ros...@gmail.com‬‏>:‬ > ‪On Fri, 24 Jun 2022 at 18:43, ‫נתי שטרן‬‎ wrote:‬ > > > > class _NamedIntConstant(int): > > def __new__(cls, value, name): > > self =

Re: argparse modify

2022-06-24 Thread Dieter Maurer
נתי שטרן wrote at 2022-6-24 08:28 +0300: >I copied code from argparse library and modified it > >בתאריך יום חמישי, 23 ביוני 2022, מאת Dieter Maurer : > >> נתי שטרן wrote at 2022-6-23 15:31 +0300: >> >how to solve this (argparse) >> > >> > >> >traceback: >> >Traceback (most recent call last): >> >

Fwd: argparse modify

2022-06-24 Thread נתי שטרן
הודעה שהועברה -- מאת: *Dieter Maurer* תאריך: יום שישי, 24 ביוני 2022 נושא: argparse modify אל: נתישטרן עותק: "python-list-requ...@python.org" , " python-list@python.org" נתי שטרן wrote at 2022-6-24 08:28 +0300: >I copied code from argparse library and modified it >

sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread נתי שטרן
class _NamedIntConstant(int): def __new__(cls, value, name): self = super(_NamedIntConstant, cls).__new__(cls, value) self.name = name return self def __repr__(self): return self.name __reduce__ = None MAXREPEAT = _NamedIntConstant(32,name=str(32))

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread נתי שטרן
OK. I lifted the full library to a HUGE python file that was saved on LAN in MY WORK Do I need to lift many other libraries to the file? I glad to any answer -- https://mail.python.org/mailman/listinfo/python-list

argparse modify

2022-06-24 Thread נתי שטרן
Can you help me for solve it בתאריך יום שישי, 24 ביוני 2022, מאת Dennis Lee Bieber : > On Thu, 23 Jun 2022 18:57:31 +0200, "Dieter Maurer" > declaimed the following: > > >??? wrote at 2022-6-23 15:31 +0300: > >>how to solve this (argparse) > > >>MAXREPEAT =

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread Roel Schroeven
Op 24/06/2022 om 10:43 schreef נתי שטרן: what's the problem with the code Have you seen the replies from Mats Wichmann and Chris Angelico, who helpfully pointed out some problems with your code and possible improvements? Please take those into account instead of asking the same thing over

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread נתי שטרן
My TARGET is to bind many code libraries to one Huge code file that works optimally and do optimizations if needed. In this file have code of huge part of falconpy, ALL code of re, argparse, are and many other code libraries This code file is contained 10k lines of python code בתאריך יום ו׳,

Re: argparse modify

2022-06-24 Thread נתי שטרן
Thanks a lot. I will read documentation of enum module בתאריך יום ו׳, 24 ביוני 2022, 14:33, מאת Roel Schroeven ‏< r...@roelschroeven.net>: > Op 24/06/2022 om 0:32 schreef Dennis Lee Bieber: > > On Thu, 23 Jun 2022 18:57:31 +0200, "Dieter Maurer" > > declaimed the following: > > > > >???

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread Chris Angelico
‪On Fri, 24 Jun 2022 at 22:16, ‫נתי שטרן‬‎ wrote:‬ > > My TARGET is to bind many code libraries to one Huge code file that works > optimally and do optimizations if needed. > In this file have code of huge part of falconpy, ALL code of re, argparse, > are and many other code libraries > > This

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread נתי שטרן
Where found the license of those libraries? P. S. The copied and modified code used only for internal use בתאריך יום ו׳, 24 ביוני 2022, 15:28, מאת Chris Angelico ‏: > ‪On Fri, 24 Jun 2022 at 22:16, ‫נתי שטרן‬‎ wrote:‬ > > > > My TARGET is to bind many code libraries to one Huge code file

Re: argparse modify

2022-06-24 Thread Roel Schroeven
Op 24/06/2022 om 0:32 schreef Dennis Lee Bieber: On Thu, 23 Jun 2022 18:57:31 +0200, "Dieter Maurer" declaimed the following: >??? wrote at 2022-6-23 15:31 +0300: >>how to solve this (argparse) >>MAXREPEAT = _NamedIntConstant(32,name=str(32)) >>TypeError: 'name' is an invalid keyword

Re: sre_constants MODIFIED CLASS - ERROR

2022-06-24 Thread Roel Schroeven
Op 24/06/2022 om 11:10 schreef נתי שטרן: OK. I lifted the full library to a HUGE python file that was saved on LAN in MY WORK Do I need to lift many other libraries to the file? I glad to any answer Answer this: what is it that your _actually_ trying to do? What is the ultimate goal of all