Re: heap enhancements

2020-01-03 Thread jezkator
ok, so it could be like this? import sys chain = sys.stdin.read().splitlines() array_z = list() for line in chain: row=list(map(str, line.split())) array_z.append(row) #every line in input changes into 2D array def checking(chain): "checking if characters are numbers or not" for c

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
<< than some ever-changing feature wish list. >> ^^_ since the beginning it was .jar -- https://mail.python.org/mailman/listinfo/python-list

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
On Sat, 4 Jan 2020, 06:49 Michael Torrie, wrote: > On 2020-01-03 5:44 p.m., Abdur-Rahmaan Janhangeer wrote: > > .jar provides more than just compression. It provides app info and has > > signing ability > > This is the first time you've mentioned signing ability in this very > long thread. At th

Re: Python, Be Bold!

2020-01-03 Thread Michael Torrie
On 2020-01-03 5:44 p.m., Abdur-Rahmaan Janhangeer wrote: > .jar provides more than just compression. It provides app info and has > signing ability This is the first time you've mentioned signing ability in this very long thread. At this point I have no idea what point you are even making anymore

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
On Sat, 4 Jan 2020, 05:23 Chris Angelico, wrote: > > I'm not sure what your proposal is here. Are you trying to make a > single-file executable, or are you trying to make an archive of Python > source code (like a jar), or are you trying something different again? > a .jar but it can be defined

Re: heap enhancements

2020-01-03 Thread DL Neil via Python-list
On 4/01/20 2:13 PM, rontoto wrote: Hi guys, the code is working, but I want know, what I can improve on this code. It is like implementation of the simulation of shipment clearance in the depot according to priority and available deliveries. How can I do it better? Can u show me? Thnx for your

Re: Python, Be Bold!

2020-01-03 Thread Chris Angelico
On Sat, Jan 4, 2020 at 12:12 PM Abdur-Rahmaan Janhangeer wrote: > > On Fri, 3 Jan 2020, 23:49 Barry Scott, wrote: > > > > > I'm at a lose to understand what the problem is that zipapp is the > > solution to that is not better served > > with pip or PyInstall etc. > > > > Well proposing to enhance

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
On Sat, 4 Jan 2020, 05:10 Abdur-Rahmaan Janhangeer, wrote: > > Also, you must have a dist for every different Os. > *for native execs > -- https://mail.python.org/mailman/listinfo/python-list

heap enhancements

2020-01-03 Thread rontoto
Hi guys, the code is working, but I want know, what I can improve on this code. It is like implementation of the simulation of shipment clearance in the depot according to priority and available deliveries. How can I do it better? Can u show me? Thnx for your time. Input: 24 K 13 H 25 R 1 M -4

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
On Fri, 3 Jan 2020, 23:49 Barry Scott, wrote: > > I'm at a lose to understand what the problem is that zipapp is the > solution to that is not better served > with pip or PyInstall etc. > Well proposing to enhance zipapp, by adding app metadata and signing. By pip i understand you mean pure pyth

Re: Python, Be Bold!

2020-01-03 Thread Abdur-Rahmaan Janhangeer
On Sat, 4 Jan 2020, 02:55 Greg Ewing, wrote: > On 3/01/20 3:31 pm, Abdur-Rahmaan Janhangeer wrote: > > You can pass a zip file with a .pyz extension to the python > interpreter and it will look for a __main__.py file and run > it. > > That seems to give you all the functionality of a jar -- > inc

Re: Python, Be Bold!

2020-01-03 Thread Greg Ewing
On 3/01/20 3:31 pm, Abdur-Rahmaan Janhangeer wrote: But, this proposal is not about native executables. It's about a .jar like executable. You can pass a zip file with a .pyz extension to the python interpreter and it will look for a __main__.py file and run it. That seems to give you all th

Re: A small quiz

2020-01-03 Thread Greg Ewing
On 4/01/20 5:41 am, Alan Bawden wrote: So I was looking for a predefined object from the standard library that already /is/ an iterator (with no need to use »iter«). Why are you so intent on introducing either next() or iter() to beginning students? I'd have thought they were somewhat

Re: Python, Be Bold!

2020-01-03 Thread Barry Scott
> On 3 Jan 2020, at 02:31, Abdur-Rahmaan Janhangeer > wrote: > > > > On Fri, 3 Jan 2020, 02:50 Barry Scott, > wrote: > Expect for trivial programs you cannot distribute a single file python exe > for windows. > > You can, PyInstaller does it. You can have f

Re: A small quiz

2020-01-03 Thread Peter Otten
Alan Bawden wrote: > r...@zedat.fu-berlin.de (Stefan Ram) writes: > ... >> So I was looking for a predefined object from the standard >> library that already /is/ an iterator (with no need to use >> »iter«). >> >> I found exactly one such object (which can be used after a >> »from ... i

Re: A small quiz

2020-01-03 Thread Alan Bawden
r...@zedat.fu-berlin.de (Stefan Ram) writes: ... > So I was looking for a predefined object from the standard > library that already /is/ an iterator (with no need to use > »iter«). > > I found exactly one such object (which can be used after a > »from ... import ...« statement). Can you