RE: Weak Type Ability for Python

2023-04-13 Thread avi.e.gross
perhaps the ones who like Reverse Polish Notation and insist on 5 4 3 + * instead. -Original Message- From: Python-list On Behalf Of aapost Sent: Thursday, April 13, 2023 12:28 PM To: python-list@python.org Subject: Re: Weak Type Ability for Python On 4/12/23 04:03, Ali Mohseni Roodbari wrote

Re: Embedded python is not 100% stable

2023-04-13 Thread aapost
On 4/13/23 03:40, Guenther Sohler wrote: Attachments are stripped, so they weren't included. Glancing at the branch and the 2 lines you mentioned. You have a comment with a link for python 2.3 documentation. Yet you have python 3.10 code included elsewhere (and openscad itself requires

Re: Weak Type Ability for Python

2023-04-13 Thread 2QdxY4RzWzUUiLuE
https://mail.python.org/mailman/listinfo/python-list

Re: for a 'good python'

2023-04-13 Thread Dennis Lee Bieber
to skim the contents of the standard library documentation every couple of releases. ipaddress came in with Python 3.3 https://docs.python.org/3.10/library/index.html (I dropped down to 3.10 just as that is the version I have installed; some 3rd party modules weren't ready when I tried to insta

Re: Weak Type Ability for Python

2023-04-13 Thread aapost
On 4/12/23 04:03, Ali Mohseni Roodbari wrote: > On 4/13/23 07:50, Stefan Ram wrote: >If tomorrow Python would allow "string+int" and "int+string" >in the sense of "string+str(int)" and "str(int)+string", >what harm would be there?

Re: for a 'good python'

2023-04-13 Thread jak
to skim the contents of the standard library documentation every couple of releases. ipaddress came in with Python 3.3 https://docs.python.org/3.10/library/index.html (I dropped down to 3.10 just as that is the version I have installed; some 3rd party modules weren't ready when I tried to install

Re: Weak Type Ability for Python

2023-04-13 Thread Dennis Lee Bieber
> >JavaScript guesses. What a nightmare. Java acts like Python and will >forbid it on type grounds (at compile time with Java, being staticly >typed). > REXX -- where everything is considered a string until it needs to be something else. REXX-ooRexx_5.0.0(MT)_64-bit 6.0

RE: Weak Type Ability for Python

2023-04-13 Thread avi.e.gross
such as computer vision or orbital mechanics. Octonions have seven such other imaginary axes and have uses in esoteric places like String Theory or Quantum Logic. And, yes, you can use these critters in python. You can add a quaternion type to numpy for example. Yep, octonions too. See modules like pyoctonion

Re: Weak Type Ability for Python

2023-04-13 Thread Chris Angelico
equence by non-int of type 'complex' > Clearly a missed opportunity to rotate the text through a specified angle. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

RE: Weak Type Ability for Python

2023-04-13 Thread avi.e.gross
Chris, I was not suggesting it for Python as one of many possible implementations. I do see perfectly valid uses in other contexts. For example, if I have a program that displays my text as pixels in some font and size, I may indeed want the text clipped at 2 1/2 repetitions. But as always, when

Re: Weak Type Ability for Python

2023-04-13 Thread Grant Edwards
re. So does PHP. What's really impressive is that it never seems to guess correctly. :) -- https://mail.python.org/mailman/listinfo/python-list

Re: for a 'good python'

2023-04-13 Thread Barry
 > On 13 Apr 2023, at 00:19, jak wrote: > > Barry ha scritto: >>  >>>> On 12 Apr 2023, at 18:10, jak wrote: >>> Hi everyone, >>> some time ago I wrote a class to determine if an ipv4 address belonged >>> to a subnet. Seldom using pytho

Re: Embedded python is not 100% stable

2023-04-13 Thread Dieter Maurer
Guenther Sohler wrote at 2023-4-13 09:40 +0200: > ... >I have been working on adding embedded python into OpenSCAD ( >www.openscad.org) >for some time already. For that i coded/added an additional Python Type >Object >which means to hold openscad geometric data. >

Re: Weak Type Ability for Python

2023-04-13 Thread Thomas Passin
On 4/13/2023 1:38 AM, avi.e.gr...@gmail.com wrote: In Python, "+" does not mean plus at all. It means whatever the programmer wanted it to mean. An infix line of code that includes "obj1 + obj2" is supposed to investigate how to do it. I am not sure if some built-in obje

Re: Weak Type Ability for Python

2023-04-13 Thread J. Pic
print(f'{x}{y}') ? On Wed, Apr 12, 2023 at 7:06 PM Ali Mohseni Roodbari < ali.mohseniroodb...@gmail.com> wrote: > Hi all, > Please make this command for Python (if possible): > > >>> x=1 > >>> y='a' > >>> wprint (x+y) > >>> 1a > &

Re: for a 'good python'

2023-04-13 Thread Lars Liedtke
class to determine if an ipv4 address belonged to a subnet. Seldom using python I'm pretty sure it's not written in 'good python' nor too portable. Could you give me some advice to make it better? class calcip: def __init__(self, psubnet: str): ssubnet, scidr = psubnet.replace(' ', '').split(

Embedded python is not 100% stable

2023-04-13 Thread Guenther Sohler
Hi Python LIst, I have been working on adding embedded python into OpenSCAD ( www.openscad.org) for some time already. For that i coded/added an additional Python Type Object which means to hold openscad geometric data. It works quite well but unfortunately its not 100% stable and i have been

Re: Weak Type Ability for Python

2023-04-13 Thread Chris Angelico
world! He", "llo, " }) > Multiplying and dividing strings by floats makes perfect sense. (The ({ }) notation is Pike's array literal syntax; consider it equivalent to Python's square brackets for a list.) ChrisA -- https://mail.python.org/mailman/listinfo/python-list

RE: Weak Type Ability for Python

2023-04-12 Thread avi.e.gross
Given the significant number of languages other than Python that have some version of a feature that allows implicit conversion of unlike operands to concatenate something like a "number" and a string into a string, the question may not be silly as to how or why Python chose as it chose.

Re: Weak Type Ability for Python

2023-04-12 Thread Cameron Simpson
/mailman/listinfo/python-list

RE: Weak Type Ability for Python

2023-04-12 Thread avi.e.gross
On closer reading, the OP may be asking how to make a function doing what they want, albeit without a plus. Here is a python function as a one-liner that takes exactly two arguments of any kind (including string and integer) and concatenates them into one string without anything between

Re: Weak Type Ability for Python

2023-04-12 Thread MRAB
On 2023-04-13 03:21, Cameron Simpson wrote: On 12Apr2023 22:12, avi.e.gr...@gmail.com wrote: I suspect the OP is thinking of languages like PERL or JAVA which guess for you and make such conversions when it seems to make sense. JavaScript guesses. What a nightmare. Java acts like Python

Re: Weak Type Ability for Python

2023-04-12 Thread MRAB
On 2023-04-13 03:12, avi.e.gr...@gmail.com wrote: As originally written, the question posed has way too many possible answers but the subject line may give a hint. Forget printing. The Python statement 1 + "a" SHOULD fail. The first is an integer and the second is string. These two

Re: Weak Type Ability for Python

2023-04-12 Thread Cameron Simpson
On 12Apr2023 22:12, avi.e.gr...@gmail.com wrote: I suspect the OP is thinking of languages like PERL or JAVA which guess for you and make such conversions when it seems to make sense. JavaScript guesses. What a nightmare. Java acts like Python and will forbid it on type grounds (at compile

RE: Weak Type Ability for Python

2023-04-12 Thread avi.e.gross
As originally written, the question posed has way too many possible answers but the subject line may give a hint. Forget printing. The Python statement 1 + "a" SHOULD fail. The first is an integer and the second is string. These two are native Python objects that neither define

Re: for a 'good python'

2023-04-12 Thread jak
Barry ha scritto:  On 12 Apr 2023, at 18:10, jak wrote: Hi everyone, some time ago I wrote a class to determine if an ipv4 address belonged to a subnet. Seldom using python I'm pretty sure it's not written in 'good python' nor too portable. Could you give me some advice to make it better

Re: for a 'good python'

2023-04-12 Thread Barry
 > On 12 Apr 2023, at 18:10, jak wrote: > Hi everyone, > some time ago I wrote a class to determine if an ipv4 address belonged > to a subnet. Seldom using python I'm pretty sure it's not written in > 'good python' nor too portable. Could you give me some advice to m

Re: Weak Type Ability for Python

2023-04-12 Thread 2QdxY4RzWzUUiLuE
On 2023-04-12 at 14:51:44 -0400, Thomas Passin wrote: > On 4/12/2023 1:11 PM, Chris Angelico wrote: > > On Thu, 13 Apr 2023 at 03:05, Ali Mohseni Roodbari > > wrote: > > > > > > Hi all, > > > Please make this command for Python (if possi

Re: Weak Type Ability for Python

2023-04-12 Thread Grant Edwards
On 2023-04-12, Ali Mohseni Roodbari wrote: > Hi all, > Please make this command for Python (if possible): > >>>> x=1 >>>> y='a' >>>> wprint (x+y) >>>> 1a If that's what you want, use PHP or some other language. Don't try to ruin Pyth

Re: Weak Type Ability for Python

2023-04-12 Thread MRAB
On 2023-04-12 19:57, Mats Wichmann wrote: On 4/12/23 11:11, Chris Angelico wrote: On Thu, 13 Apr 2023 at 03:05, Ali Mohseni Roodbari wrote: Hi all, Please make this command for Python (if possible): x=1 y='a' wprint (x+y) 1a In fact make a new type of print command which can print

Re: Weak Type Ability for Python

2023-04-12 Thread Thomas Passin
On 4/12/2023 1:11 PM, Chris Angelico wrote: On Thu, 13 Apr 2023 at 03:05, Ali Mohseni Roodbari wrote: Hi all, Please make this command for Python (if possible): x=1 y='a' wprint (x+y) 1a In fact make a new type of print command which can print and show strings and integers together

Re: Weak Type Ability for Python

2023-04-12 Thread Mats Wichmann
On 4/12/23 11:11, Chris Angelico wrote: On Thu, 13 Apr 2023 at 03:05, Ali Mohseni Roodbari wrote: Hi all, Please make this command for Python (if possible): x=1 y='a' wprint (x+y) 1a In fact make a new type of print command which can print and show strings and integers together. Try

Re: Weak Type Ability for Python

2023-04-12 Thread Chris Angelico
On Thu, 13 Apr 2023 at 03:05, Ali Mohseni Roodbari wrote: > > Hi all, > Please make this command for Python (if possible): > > >>> x=1 > >>> y='a' > >>> wprint (x+y) > >>> 1a > > In fact make a new type of print command which can p

Re: for a 'good python'

2023-04-12 Thread jak
brary to see if something like this doesn't already exist ready-made specifically for IP addresses in the standard library. ok. thanks a lot. now i try to do that. -- https://mail.python.org/mailman/listinfo/python-list

for a 'good python'

2023-04-12 Thread jak
Hi everyone, some time ago I wrote a class to determine if an ipv4 address belonged to a subnet. Seldom using python I'm pretty sure it's not written in 'good python' nor too portable. Could you give me some advice to make it better? class calcip: def __init__(self, psubnet: str

Weak Type Ability for Python

2023-04-12 Thread Ali Mohseni Roodbari
Hi all, Please make this command for Python (if possible): >>> x=1 >>> y='a' >>> wprint (x+y) >>> 1a In fact make a new type of print command which can print and show strings and integers together. Sincerely yours, Ali. -- https://mail.python.org/mailman/listinfo/python-list

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Thomas Passin
A’s intervention) If user A is no longer available, then an administrator can change the password for User A and then, logged into the A account, perform the un-install. From: Sravan Kumar Chitikesi Sent: Monday, April 10, 2023 2:17 PM To: Yogesh Tirthkar Cc: python-list@python.org Subject

[Python-announce] Pyparsing 3.1.0b1 released

2023-04-10 Thread Paul McGuire
I just pushed release 3.1.0b1 of pyparsing. 3.1.0 will include support for python 3.12, and will be the last release to support 3.6 and 3.7. If your project uses pyparsing, *please* download this beta release (using "pip install -U pyparsing==3.1.0b1") and open any compatibility

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Sravan Kumar Chitikesi
If Python was installed by user A in their own profile folder, it is likely that it was installed just for that user. In this case, you may need to log in as user A to uninstall Python from their profile. Have you tried logging in as user A and uninstalling Python from there? Regards, *Sravan

[Python-announce] Pygments 2.15 released

2023-04-10 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.15. Pygments is a generic syntax highlighter written in Python. Pygments 2.15 provides half a dozen new lexers and many improvements to existing lexers, as well as official support for Python 3.11. Please have a look at the changelog <ht

RE: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Yogesh Tirthkar
Kumar Chitikesi Sent: Monday, April 10, 2023 2:17 PM To: Yogesh Tirthkar Cc: python-list@python.org Subject: Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10) [cid:image001.png@01D96BB7.7B62F3D0] If Python was installed by user A in their own profile

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Thomas Passin
On 4/9/2023 10:14 PM, Yogesh Tirthkar wrote: Hi, Is there any way I can uninstall python installed (as user) in someone else' account - without login as that user, but login as local admin ? It depends on whether you can use that user's password. With the password, it's very feasible

RE: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-09 Thread Yogesh Tirthkar
Hi, Is there any way I can uninstall python installed (as user) in someone else' account - without login as that user, but login as local admin ? Regards, Yogesh. _ Technology Group | GIC Private Limited | 168

RE: Windows installer from python source code without access to source code

2023-04-09 Thread Jim Schwartz
Thanks everyone for the help. I got my app working with using cython to generate the c code, cl to compile, and visual studio to create the setup.exe and the msi installer. I appreciate the help. -Original Message- From: Python-list On Behalf Of Jim Schwartz Sent: Friday, April 7, 2023

[Python-announce] pytest-7.3.0

2023-04-08 Thread Ran Benita via Python-announce-list
___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to python-announce-list-le...@python.org https://mail.python.org/mailman3/lists/python-announce-list.python.org/ Member address: arch...@mail-archive.com

Re: Windows installer from python source code without access to source code

2023-04-07 Thread Mark Bourne
?   I'm waiting for your response.   Thanks   Carlos [snip] At the bottom of the post is a link to the page that explains how to unsubscribe. It's the link:     https://mail.python.org/mailman/listinfo/python-list I read this list via the newsgroup, so don't see those links

RE: Windows installer from python source code without access to source code

2023-04-07 Thread Jim Schwartz
to include in the package and list them. https://stackoverflow.com/questions/62390978/minimal-set-of-files-required-to-distribute-an-embed-cython-compiled-code-and-ma -Original Message- From: Jim Schwartz Sent: Friday, April 7, 2023 5:33 AM To: 'Eryk Sun' Cc: 'python-list@python.org

RE: Windows installer from python source code without access to source code

2023-04-07 Thread Jim Schwartz
From: Eryk Sun Sent: Thursday, April 6, 2023 8:06 PM To: Jim Schwartz Cc: python-list@python.org Subject: Re: Windows installer from python source code without access to source code On 4/6/23, Jim Schwartz wrote: > Never mind. I found it on the web. I needed to point my PYTHONPATH > t

Re: Windows installer from python source code without access to source code

2023-04-06 Thread Eryk Sun
On 4/6/23, Jim Schwartz wrote: > Never mind. I found it on the web. I needed to point my PYTHONPATH to > sitepackages: In most cases an application should be isolated from PYTHON* environment variables. If you're creating a Python application or embedding Python in an applicatio

RE: Windows installer from python source code without access to source code

2023-04-06 Thread Jim Schwartz
Never mind. I found it on the web. I needed to point my PYTHONPATH to sitepackages: https://stackoverflow.com/questions/56857449/importerror-after-cython-embed -Original Message- From: Python-list On Behalf Of Jim Schwartz Sent: Thursday, April 6, 2023 2:50 PM To: 'Barry' Cc

Re: Windows installer from python source code without access to source code

2023-04-06 Thread MRAB
waiting for your response. Thanks Carlos [snip] At the bottom of the post is a link to the page that explains how to unsubscribe. It's the link: https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Re: Windows installer from python source code without access to source code

2023-04-06 Thread Jim Schwartz
ommand to compile my python code that was converted to c with the following command: H:\Users\LindaJim\Documents\SourceCode\Software\aws_pc_backup\src\c>cl /O2 /I"C:\\Users\\jschw\\AppData\\Local\\Programs\\Python\\Python3112\\include\\" aws_pc_backup.

RE: Windows installer from python source code without access to source code

2023-04-06 Thread Jim Schwartz
I downloaded VS community 2022 and I know how to access the developer command prompt. I'm using the one called x64 Native Tools Command Prompt for VS 2022 I ran a command to compile my python code that was converted to c with the following command: H:\Users\LindaJim\Documents\SourceCode

[Python-announce] structlog 23.1.0

2023-04-06 Thread Hynek Schlawack
I’m happy to announce a new release of structlog! With more than 7 million downloads per month, structlog is the best solution for production-ready structured logging in Python. It doesn’t just allow you to log key-value pairs in a structured manner, it also makes it EASIER and FASTER. Check

[Python-announce] [RELEASE] Python 3.11.3, 3.10.11 and 3.12.0 alpha 7 released

2023-04-05 Thread Thomas Wouters
It's time for another set of Python releases! *Python 3.11.3, 3.10.11 and 3.12 alpha 7 are now available*. Python 3.12.0 alpha 7 The final alpha release of Python 3.12! The next release will be beta 1, which is also the feature freeze. Last chance to get your new features and API changes

[RELEASE] Python 3.11.3, 3.10.11 and 3.12.0 alpha 7 released

2023-04-05 Thread Thomas Wouters
It's time for another set of Python releases! *Python 3.11.3, 3.10.11 and 3.12 alpha 7 are now available*. Python 3.12.0 alpha 7 The final alpha release of Python 3.12! The next release will be beta 1, which is also the feature freeze. Last chance to get your new features and API changes

Re: Windows installer from python source code without access to source code

2023-04-04 Thread Barry
. Once you have that installed there are bat files that setup environment in the terminal. Then you can use cl, nmake etc Barry > > -Original Message- > From: Eryk Sun > Sent: Friday, March 31, 2023 12:55 PM > To: Jim Schwartz > Cc: python-list@python.org > Subjec

RE: Windows installer from python source code without access to source code

2023-04-04 Thread Jim Schwartz
: python-list@python.org Subject: Re: Windows installer from python source code without access to source code On 3/31/23, Jim Schwartz wrote: > I want a windows installer to install my application that's written in > python, but I don't want the end user to have access to my source code. Cyth

Re: Python not showing correct version

2023-04-04 Thread Sumeet Firodia
So I disabled the manage app execution for python 3.10, created the py.ini file and executed setx.exe PY_PYTHON 3.8,setx.exe PY_PYTHON3 3.8. After that i uninstalled 3.8 and reinstalled and now the version is showing correctly. Thanks everyone for the help. Thanks Sumeet On Sat, 1 Apr

Re: [Python-Dev] Small lament...

2023-04-04 Thread Greg Ewing via Python-list
shortly. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] Small lament...

2023-04-03 Thread dn via Python-list
On 04/04/2023 12.14, Guido van Rossum wrote: A bit late, this reached my inbox: https://peternorvig.medium.com/new-python-operators-9f31b56ddcc7 Did you notice that Peter Norvig's factorial-operator attempts to replace one of the very first diamond-grade provisions of [the] FLUFL

RE: [Python-Dev] Small lament...

2023-04-03 Thread avi.e.gross
Sadly, between Daylight Savings time and a newer irrational PI π Day, I am afraid some April Foolers got thrown off albeit some may shower us with nonsense in May I. -Original Message- From: Python-list On Behalf Of Barry Warsaw Sent: Monday, April 3, 2023 8:31 PM To: Skip Montanaro

Re: [Python-Dev] Small lament...

2023-04-03 Thread Barry Warsaw
joke on one or both of these > lists, often from our FLUFL... Maybe such frivolity still happens, just not > in the Python ecosystem? I know you can still import "this" or "antigravity", > but those are now old (both introduced before 2010). When was the last time a >

Re: [Python-Dev] Small lament...

2023-04-03 Thread Guido van Rossum
A bit late, this reached my inbox: https://peternorvig.medium.com/new-python-operators-9f31b56ddcc7 On Sat, Apr 1, 2023 at 11:23 AM Skip Montanaro wrote: > Just wanted to throw this out there... I lament the loss of waking up on > April 1st to see a creative April Fool's Day joke on one o

Re: Python file location

2023-04-03 Thread windhorn
Thanks to all for suggestions. Linux has "too much freedom" :-) Regards, Allen -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.9 asyncio: Task cancel() throws asyncio.exceptions.CancelledError instead of asyncio.CancelledError

2023-04-03 Thread Clint Olsen
Since the ID is the > same, I would expect it to match! Well, now this works, so it's difficult to say how that was happening. If I can reproduce it I'll update this conversation. Thanks for the help! -Clint -- https://mail.python.org/mailman/listinfo/python-list

RE: [Python-Dev] Small lament...

2023-04-01 Thread Jim Schwartz
Yea, it is funny. I commented on it. -Original Message- From: Python-list On Behalf Of Eryk Sun Sent: Saturday, April 1, 2023 2:23 PM To: Skip Montanaro Cc: Python ; python-dev Dev Subject: Re: [Python-Dev] Small lament... On 4/1/23, Skip Montanaro wrote: > Just wanted to th

Re: [Python-Dev] Small lament...

2023-04-01 Thread Eryk Sun
On 4/1/23, Skip Montanaro wrote: > Just wanted to throw this out there... I lament the loss of waking up on > April 1st to see a creative April Fool's Day joke on one or both of these > lists, often from our FLUFL... Maybe such frivolity still happens, just not > in the Python e

Re: [Python-Dev] Small lament...

2023-04-01 Thread Eric Fahlgren
eative April Fool's Day joke on one or both of these > lists, often from our FLUFL... Maybe such frivolity still happens, just not in > the Python ecosystem? I know you can still import "this" or > "antigravity", but those are now old (both introduced before 2010). When

Re: Python not showing correct version

2023-04-01 Thread Eryk Sun
On 4/1/23, Barry Scott wrote: > > I find user environment on windows to be less flexible to work with then > adding a py.ini. On my Windows 11 I added > %userprofile%\AppData\Local\py.ini. > To make python 3.8 the default that py.exe uses put this in py.ini: > > [defa

Re: Windows installer from python source code without access to source code

2023-04-01 Thread Thomas Passin
need to start paying them if your code goes commercial. -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] Shed Skin 0.9.7 - native Windows support!

2023-04-01 Thread Mark Dufour
Hi all, I have just released version 0.9.7 of Shed Skin, a restricted-Python-to-C++ compiler. The highlight of this release is the migration to CMake (and Conan), to enable native Windows support. For more information about the release: http://blogfarts.blogspot.com/2023/04/shed-skin-restricted

Re: Windows installer from python source code without access to source code

2023-04-01 Thread Chris Angelico
picking. By applying this license, you are granting legal permission for anyone to redistribute your code in source or object form. On the plus side, you've just made all questions of obfuscating your source code completely irrelevant :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Python not showing correct version

2023-04-01 Thread Barry Scott
> On 31 Mar 2023, at 22:02, Eryk Sun wrote: > > > The OP installed the standard Python 3.8 distribution, which does > install the launcher by default. The launcher can run all installed > versions, including store app installations. By default it runs the > highest ava

Re: Windows installer from python source code without access to source code

2023-04-01 Thread Jim Schwartz
the binary. Instead, permit people to *access* the program - which, > in today's world, usually means a web service. > > Both of these are very popular and work well. I don't have access to > the Gmail source code but I'm using the service. I don't have access > to the Twitch.tv sourc

Re: Windows installer from python source code without access to source code

2023-04-01 Thread Chris Angelico
rce code: Don't give it out. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Windows installer from python source code without access to source code

2023-03-31 Thread 2QdxY4RzWzUUiLuE
ailman/listinfo/python-list

Re: Python 3.9 asyncio: Task cancel() throws asyncio.exceptions.CancelledError instead of asyncio.CancelledError

2023-03-31 Thread Chris Angelico
correctly") followed by the same type checking from above. Since the ID is the same, I would expect it to match! Can you post a full runnable example that exhibits the problem? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.9 asyncio: Task cancel() throws asyncio.exceptions.CancelledError instead of asyncio.CancelledError

2023-03-31 Thread Clint Olsen
arre behaviour that can happen if a module is > reloaded, or if there are multiple versions loaded for some reason. > But if that ISN'T what's happening, there'll have to be some other > explanation. Here's what I see: Got an exception! 8204064 8204064 Thanks, -Clint -- https://mail.python.org/mailman/listinfo/python-list

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Chris Angelico
Twitch.tv source code but I'm using the service. Meanwhile, I have Python programs running on a Debian system using the Linux kernel, invoked using bash, served from an ext4 mass storage device, etc, etc. I have the binary code for all of these, and I'm legally guaranteed access to the source if I wa

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Jim Schwartz
; practices in this field. > > >> -Original Message- >> From: Python-list On >> Behalf Of Chris Angelico >> Sent: Friday, March 31, 2023 7:09 AM >> To: python-list@python.org >> Subject: Re: Windows installer from python source code without access

Re: Python 3.9 asyncio: Task cancel() throws asyncio.exceptions.CancelledError instead of asyncio.CancelledError

2023-03-31 Thread Chris Angelico
has changed, which would be a nightmare; and (b) whether asyncio.CancelledError has changed. This is the kind of bizarre behaviour that can happen if a module is reloaded, or if there are multiple versions loaded for some reason. But if that ISN'T what's happening, there'll have to be some other explanation. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.9 asyncio: Task cancel() throws asyncio.exceptions.CancelledError instead of asyncio.CancelledError

2023-03-31 Thread Clint Olsen
o.exceptions.CancelledError is asyncio.CancelledError > True > > Does that answer the question? No, I couldn't catch either exception even though they are the same. -Clint -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.9 asyncio: Task cancel() throws asyncio.exceptions.CancelledError instead of asyncio.CancelledError

2023-03-31 Thread Chris Angelico
On Sat, 1 Apr 2023 at 09:19, Clint Olsen wrote: > > I'm having some issues with task cancellation inside a signal handler. My > tasks do get cancelled, but I see odd behavior: > > Traceback (most recent call last): > File > "/home/utils/release/sw/tools/pytho

Python 3.9 asyncio: Task cancel() throws asyncio.exceptions.CancelledError instead of asyncio.CancelledError

2023-03-31 Thread Clint Olsen
I'm having some issues with task cancellation inside a signal handler. My tasks do get cancelled, but I see odd behavior: Traceback (most recent call last): File "/home/utils/release/sw/tools/python-3.9.7/lib/python3.9/site-packages/grpc/aio/_call.py", line 406, in _consume_reques

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Thomas Passin
developers include with their apps. And it would be good to consult a lawyer who practices in this field. -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Friday, March 31, 2023 7:09 AM To: python-list@python.org Subject: Re: Windows installer from python source code

RE: Windows installer from python source code without access to source code

2023-03-31 Thread Jim Schwartz
What license do I have to choose so people can't use my code? I don't know this stuff. -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Friday, March 31, 2023 7:09 AM To: python-list@python.org Subject: Re: Windows installer from python source code without access

Re: Python not showing correct version

2023-03-31 Thread Eryk Sun
On 3/31/23, Thomas Passin wrote: > > The store app doesn't install py.exe, does it? That's a significant downside of the store app. You can install Python 3.7-3.11 from the store, and run them explicitly as "python3.7.exe", "pip3.7.exe", "python3.11.exe&qu

Re: Python not showing correct version

2023-03-31 Thread Thomas Passin
On 3/31/2023 2:18 PM, Eryk Sun wrote: On 3/31/23, Sumeet Firodia wrote: One more thing is that pip --version also refers to python 3.10 C:\Users\admin>pip --version pip 23.0.1 from C:\Users\admin\AppData\Local\Packages \PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0 \LocalCache\lo

Re: Python not showing correct version

2023-03-31 Thread Eryk Sun
On 3/31/23, Sumeet Firodia wrote: > > One more thing is that pip --version also refers to python 3.10 > > C:\Users\admin>pip --version > pip 23.0.1 from > C:\Users\admin\AppData\Local\Packages > \PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0 > \LocalCache\lo

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Eryk Sun
On 3/31/23, Jim Schwartz wrote: > I want a windows installer to install my application that's written in > python, but I don't want the end user to have access to my source code. Cython can compile a script to C source code for a module or executable (--embed). The source can be co

[Python-announce] python-oracledb 1.3.0

2023-03-31 Thread Anthony Tuininga
What is python-oracledb? python-oracledb is a Python extension module that enables access to Oracle Database for Python and conforms to the Python database API 2.0 specifications with a number of enhancements. This module is intended to eventually replace cx_Oracle. Where do I get it? https

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Alan Gauld
On 31/03/2023 13:00, Jim Schwartz wrote: > I want a windows installer to install my application that's written in > python, but I don't want the end user to have access to my source code. Others have commented that at some level it will always be thre but on a more pragmatic level tool

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Thomas Passin
On 3/31/2023 10:14 AM, jkn wrote: On Friday, March 31, 2023 at 1:09:12 PM UTC+1, Chris Angelico wrote: On Fri, 31 Mar 2023 at 23:01, Jim Schwartz wrote: I want a windows installer to install my application that's written in python, but I don't want the end user to have access to my source

Re: Windows installer from python source code without access to source code

2023-03-31 Thread jkn
On Friday, March 31, 2023 at 1:09:12 PM UTC+1, Chris Angelico wrote: > On Fri, 31 Mar 2023 at 23:01, Jim Schwartz wrote: > > > > I want a windows installer to install my application that's written in > > python, but I don't want the end user to have acc

Re: Python not showing correct version

2023-03-31 Thread Thomas Passin
On 3/31/2023 8:27 AM, Sumeet Firodia wrote: Hi Barry, This is getting more complicated. As per the command you shared, below is the output C:\Users\admin>py -3.8 -m pip --version pip 19.2.3 from C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\pip (python 3.8) For

Re: Python not showing correct version

2023-03-31 Thread Sumeet Firodia
Hi Barry, This is getting more complicated. As per the command you shared, below is the output C:\Users\admin>py -3.8 -m pip --version pip 19.2.3 from C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\pip (python 3.8) For pip --version below is the output C:\Users\ad

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Chris Angelico
On Fri, 31 Mar 2023 at 23:01, Jim Schwartz wrote: > > I want a windows installer to install my application that's written in > python, but I don't want the end user to have access to my source code. > > > > Is that possible using python? I was using cx-freeze, but that

Windows installer from python source code without access to source code

2023-03-31 Thread Jim Schwartz
I want a windows installer to install my application that's written in python, but I don't want the end user to have access to my source code. Is that possible using python? I was using cx-freeze, but that has the source code available. So does pyinstaller. I think gcc does, too. Does

Re: Python not showing correct version

2023-03-31 Thread Barry Scott
> On 31 Mar 2023, at 09:33, Sumeet Firodia wrote: > > Thanks Barry. > > One more thing is that pip --version also refers to python 3.10 > > C:\Users\admin>pip --version > pip 23.0.1 from > C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python

<    2   3   4   5   6   7   8   9   10   11   >