Re: About Python Compressed Archive or Binaries
On 1/17/22, Sina Mobasheri wrote: > > I'm aware that Python also have something called Embedded Zip for Windows > and nothing like that for Linux as far as I know, and I think this Embedded > Zip is not something that the user wants to work with that directly it's for > embedding in a C++ application, so it's not the same as options that Java > and NodeJS offering Use the NuGet packages: https://docs.python.org/3/using/windows.html#the-nuget-org-packages These are zipped archives of Python 3.x.y that can be unpacked and used anywhere you want. -- https://mail.python.org/mailman/listinfo/python-list
Re: About Python Compressed Archive or Binaries
On 17/01/2022 18.49, Kirill Ratkin wrote: It would be nice to have just zip file with python interpreter (not executable installer), unpack it anywhere, add path to this 'anywhere' to PATH, and use it. Java/DotNet/Go have this option. But python - not. And question is - why? Java is developed by Oracle (revenue 49 billion USD) .NET is developed by Microsoft (revenue 161 billion USD) Go is developed by Google (revenue of parent company is 182 billion USD) Python is developed by a bunch of (mostly unpoaid) volunteers under the umbrella of the PSF (revenue 3.1 million USD). Do you see a pattern? :) A distributable binary format for CPython is high on our list. Brett Cannon, Nathaniel Smith, and I have been discussion a proposal recently. I landed a bunch of changes in 3.11-dev that are both useful for binary distribution and for Web Assembly builds. Because all work is done in our free time, there is only little progress. Christian -- https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ?
On 1/17/22 23:31, Kirill Ratkin wrote: > Hi Grant > > Hmmm... definitly you are right in particular solution. > > But Ok, let me show example. > > > I often use Go in parallel with Python and sometimes I switch between > Windows/Linux also. On both systems I just download Go toolset as > tarball/zip file and unpack in place where I like. > > The point here is Go toolset officially distributed as tarball/zip for > all supported operating system. This is not PortableGo or WinGo or some > anther third party Go distribution. This is one of supported way do get > Go toolset. > > On Windows I put toolset on separate drive 'D:\Go' and on linux - > $HOME/.local/go > > And I set up several environment variables (doing 'setx' on Windows and > edit .profile on linux): GOPATH, GOROOT, GOCACHE, ... and modify my PATH. > > Now I can build any Go project. I don't care about which Go compiler was > set on OS (Linux or Windows) before. I just unpack tarball/zip in place > where I have permissions and use it. The part of this that is Set up Environment Variables and PATH can be handled by Python's virtualenvs. You create one starting from a possibly local Python layout, or from a system one, and the virtualenv handles all the "fiddling" so while that env is active, just "python" and "pip" work for that environment. A nice way to manage this is through a project called pyenv. There is now a Windows port of this so it can work there as well (I've never used it on WIndows, personally). So while there may not currently be a zip/tar archive you can unpack and go, I can get started quite easily on a new version. Let's say I decidded I needed to test something on Python 3.7 but my main Python is already 3.10: pyenv install -l | grep "3\.7" ... list of available versions that contain 3.7 pyenv install 3.7.12 # sets up 3.7.12 in pyenv's local versions tree pyenv virtualenv 3.7.12 venv-3712 # create virtualenv using 3.7.12 as base pyenv activate venv-3712 and now I'm running inside a virtualenv using 3.7.12, which I can now provision for the work I want to do... -- https://mail.python.org/mailman/listinfo/python-list
Re: About Python Compressed Archive or Binaries
Thanks I really appreciate that, its time consuming task and take lots of hard work for sure, I was thinking it's technical issue for python that there isn't binary format for it, so I'm happy to hear that we will have that option in the future 🙏🏻🚀 From: Python-list on behalf of Christian Heimes Sent: Tuesday, January 18, 2022, 18:29 To: python-list@python.org Subject: Re: About Python Compressed Archive or Binaries On 17/01/2022 18.49, Kirill Ratkin wrote: > It would be nice to have just zip file with python interpreter (not > executable installer), unpack it anywhere, add path to this 'anywhere' > to PATH, and use it. > > Java/DotNet/Go have this option. But python - not. > > And question is - why? Java is developed by Oracle (revenue 49 billion USD) .NET is developed by Microsoft (revenue 161 billion USD) Go is developed by Google (revenue of parent company is 182 billion USD) Python is developed by a bunch of (mostly unpoaid) volunteers under the umbrella of the PSF (revenue 3.1 million USD). Do you see a pattern? :) A distributable binary format for CPython is high on our list. Brett Cannon, Nathaniel Smith, and I have been discussion a proposal recently. I landed a bunch of changes in 3.11-dev that are both useful for binary distribution and for Web Assembly builds. Because all work is done in our free time, there is only little progress. Christian -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Trouble downloading Python
Good day, I am experiencing issues trying to download Python. I would please need some assistance to help download the progam to my laptop. Kind regards Renda -- https://mail.python.org/mailman/listinfo/python-list
Re: What to write or search on github to get the code for what is written below:
Avi Gross: What does the website "https://mail.python.org/mailman/listinfo/python-list"; do? Can I use this for the discussions which I require? -- https://mail.python.org/mailman/listinfo/python-list
Re: What to write or search on github to get the code for what is written below:
On Tue, 18 Jan 2022 07:37:07 -0800 (PST), NArshad declaimed the following: >Avi Gross: > Not Avi Gross, but that is partly because you replied to Chris Angelico, who was replying to my post replying to an earlier one of yours... >What does the website "https://mail.python.org/mailman/listinfo/python-list"; >do? > >Can I use this for the discussions which I require? It is most likely the same forum... The Python mailing list (which does get spam filtered, unlike the Usenet newsgroup, so doesn't see as much junk injected via Google) is gatewayed with Usenet comp.lang.python. comp.lang.python is what Google gateways for its Python group. Anything posted on the Google Python group is seen by comp.lang.python, and from there gets seen by the Python mailing list (and things go the other way also). The only difference is message management -- email vs news reader vs whatever Google's interface of the week inflicts, and how much spam comes through. For me, mailing lists take too much management to set up filters to file mailing list traffic to a special mail box (and then if I need other filters, to ensure they apply before or after the mail box filing) whereas a decent news reader automatically files messages by their group. And you really need to find a client that follows (or properly use the one you have) email/netnews /threading/ and attribution conventions. Avi Gross's post was on a different path (there was a three-way split from your earlier post). If you are going to be explicitly asking questions of a person, that post should be a follow-up (reply) to the nearest relevant post made by that person -- not just tacked onto the end of the posts that came in during the day with all content removed and ad hoc comments inserted. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list
Re: What to write or search on github to get the code for what is written below:
o/~ talking to myself in public o/~ On Mon, 17 Jan 2022 15:39:25 -0500, Dennis Lee Bieber declaimed the following: > In one respect, given the limited functionality stated, one gets the >impression of a class GROUP assignment, in which the individual functions >were divvied up to each group member to work, with pretty much no analysis >of suitable data storage, etc. (You only gave some sort of CONOPS for >"users" to "reserve" books; no CONOPS for unreserving books, an implication >that after reserving books the user will go to some desk [in library, in >store {unlikely if there is a return date for books}, some warehouse] and >receive a copy of the reserved book -- but no CONOPS for how this deck >validates that the user has reserved any particular book [no report printed >by user of reservations made during a session, no search function for desk >staff, etc.). I'm in a fey mood today... The OP (and the rest of you reading) will likely just skip this message... It's a rambling free-association harangue on a possible RDBM schema -- which makes a few assumptions (described following) and looks wildly different from the OP's vague data... Inferred from various posts is that this * NOT a library (which may have at most 5 copies of popular books) * NOT a book store (which would not have check-out/check-in dates) The best use case I can see is for something like a high school in which textbooks are issued to students at the start of the course, and collected at the end. For a small high school, say 600 students, there might be 150 taking, say 3rd year Trigonometry, split among 6 session of 25 students each day. This justifies not tracking every copy of a book by full title, et al. I'm going to take that as the overall system CONOPS. Needed data: book title, book author(s), ISBN and/or other call number (some texts may be old enough to predate ISBN), # copies, # available, dates for check-out and return, student name. Probably more as I go down... Schema format notation: relation(attribute list) special constraints description where *attribute* is a non-null, unique index, primary key (preferably autonumber) _attribute_ is a non-null, duplicates allowed index, foreign key (in the form relation-attribute) /attribute/ is an optional/alternate indexed attribute Publisher(*ID*, name) Book(*ID*, ISBN, alt-call, title, _Publisher-ID_, copyright-date) constraint(ISBN not null OR alt-call not null) Author(*ID*, /last-name/, first-name) constraint(last-name not null) Book-Author(*ID*, _Book-ID_, _Author-ID_) {this links authors to books, and allows for books to have more than one author} Copy(*ID*, _Book-ID_, copy-number, status, condition) constraint(status in "A", "O", "R", status not null, default "A") constraint(copy-number not null, [Book-ID copy-number] is unique) {A = available, O = checked out, R = reserved but not yet checked out} {condition contains notes on known damage, etc. for this copy} Student(*ID*, /last-name/, first-name) constraint(last-name not null) {I expect this to expand with student ID number, home address, etc.) CheckOut(*ID*, _Copy-ID_, _Student-ID_, reservation-date, checkout-date, due-date, active) constraint([Copy-ID Student-ID] is unique) constraint(active not null boolean default true) {can automate cancelling reservations after n-days, and can also be used to produce a list of past-due} {active is used to allow for history of check outs, set to false when book is returned (and hence made Available again) SEVEN relations (aka "tables") in an RDBM. While each book /title/ appears only once, it does take a small record to identify each copy of the book and track availability of the copy. Reserving a book requires transaction to select the first copy with status = "A" for that title, update status to "R", insert a checkout record with the currently selected student and current date for reservation date. When actually given the book, a transaction to find the active checkout record for the student, for that title is done, the checkout and due dates are set, the copy record is updated for status = "O". When returned, a transaction is done to locate the checkout record, update active to false, update Copy record to set status to "A", and optionally update the condition field to indicate damages inflicted by the student while it was checked out. If a reserve operation fails (another session snagged the same copy record and updated it) one just repeats the transaction trying for the next available copy record -- only if there are no copies with status "A" do you have to abort and tell the student they can't have the book. There is
Re: Trouble downloading Python
On Tue, 18 Jan 2022 15:15:43 + (UTC), Renda Saptoe declaimed the following: >Good day, >I am experiencing issues trying to download Python. I would please need some >assistance to help download the progam to my laptop. Insufficient information (you've given the equivalent of "my arm hurts" without stating which arm, where it hurts, and the nature of the pain; a big difference between "it was caught in a door jamb" and "a chainsaw cut it off"). Where are you downloading from (the URL might be of use), which version (if there are more than one version at that URL). WHAT OS! For Linux it is often easiest to just use the distribution package manager to install/upgrade Python. What happens when you run the downloaded file? How are you trying to run Python? What happens if you open up a command shell and enter just Python (or, for safety python3, since you shouldn't even be looking at python 2.x but some Linux distributions still use 2.x for there own uses) -=-=-=- Microsoft Windows [Version 10.0.19041.1415] (c) Microsoft Corporation. All rights reserved. C:\Users\Wulfraed>python3 Python ActivePython 3.8.2 (ActiveState Software Inc.) based on on win32 Type "help", "copyright", "credits" or "license" for more information. >>> wulfraed@ElusiveUnicorn:~$ python3 Python 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> -=-=-=- Python is not a development environment. It is a compiler/interpreter for files containing Python source code, normally run from a command shell. Many installations do include a Tkinter-based program called IDLE which can be run if one really needs an IDE -- though there are many third-party IDEs for Python which may be better. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list
Re: What to write or search on github to get the code for what is written below:
I do not manage any python lists or have any say in how they run so I have no idea why I am being asked by name below, as Dennis pointed out. So I won't reply on whatever I am being asked, but want to point out that many forums may be asked questions and some people on the forum will not respond or will not accept a user that bombards with too many questions or requests for more detailed answers and especially when not given enough but appropriate information. Not everything in life is free. Python as a free language is but the expertise in ways to solve specific problems using Python, let alone EXCEL, that you want, often is not. Simple requests like how to read in data from a format like .CSV or a tab in .XLSX files can be easily answered, of course. But correcting what sounds like a horrible data storage without a redesign is often not of much interest to others. I think this group has already spent way too much time on whatever this issue is and provided lots of useful advice which apparently does not get taken. So don't pull me in again. I have moved on. -Original Message- From: Dennis Lee Bieber To: python-list@python.org Sent: Tue, Jan 18, 2022 2:44 pm Subject: Re: What to write or search on github to get the code for what is written below: On Tue, 18 Jan 2022 07:37:07 -0800 (PST), NArshad declaimed the following: >Avi Gross: > Not Avi Gross, but that is partly because you replied to Chris Angelico, who was replying to my post replying to an earlier one of yours... >What does the website "https://mail.python.org/mailman/listinfo/python-list"; >do? > >Can I use this for the discussions which I require? It is most likely the same forum... The Python mailing list (which does get spam filtered, unlike the Usenet newsgroup, so doesn't see as much junk injected via Google) is gatewayed with Usenet comp.lang.python. comp.lang.python is what Google gateways for its Python group. Anything posted on the Google Python group is seen by comp.lang.python, and from there gets seen by the Python mailing list (and things go the other way also). The only difference is message management -- email vs news reader vs whatever Google's interface of the week inflicts, and how much spam comes through. For me, mailing lists take too much management to set up filters to file mailing list traffic to a special mail box (and then if I need other filters, to ensure they apply before or after the mail box filing) whereas a decent news reader automatically files messages by their group. And you really need to find a client that follows (or properly use the one you have) email/netnews /threading/ and attribution conventions. Avi Gross's post was on a different path (there was a three-way split from your earlier post). If you are going to be explicitly asking questions of a person, that post should be a follow-up (reply) to the nearest relevant post made by that person -- not just tacked onto the end of the posts that came in during the day with all content removed and ad hoc comments inserted. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list