__
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
>
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 develo
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++ applicat
That's exactly what I mean thank you 👌🏻🚀
From: Python-list on
behalf of Kirill Ratkin
Sent: Monday, January 17, 2022 9:19:44 PM
To: python-list@python.org
Subject: Re: About Python Compressed Archive or Binaries
Hi,
Yes, this is good question for Wi
Hi,
Yes, this is good question for Windows users.
Of course, you can download installer exe-file -> do installation ->
pack directory with python interpreter to zip (for example, or 7z) ->
copy archive file to another place/computer and unpack.
But it will not work out of box because origina
On Tue, Jan 18, 2022 at 2:47 AM Chris Angelico wrote:
>
> On Tue, Jan 18, 2022 at 2:42 AM Sina Mobasheri
> wrote:
> >
> > Java offers download JDK as Compressed Archive or NodeJS offers download
> > Node as Binaries both give us a compressed file for Linux and windows that
> > we can just unzip
On Tue, Jan 18, 2022 at 2:42 AM Sina Mobasheri
wrote:
>
> Java offers download JDK as Compressed Archive or NodeJS offers download Node
> as Binaries both give us a compressed file for Linux and windows that we can
> just unzipped it and put in a custom directory and set some environment
> vari
Please try to be more specific.
What setup? What problem?
On Thu, Oct 14, 2021 at 10:29 AM Amsalu Fentahun
wrote:
> there is a problem when I install the setup
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
On 6/12/14 11:57 AM, Chris Angelico wrote:
def poplist(L):
done = False
while done==False:
yield L[::-1][:1:]
L = L[::-1][1::][::-1]
if len(L)==0: done=True
Why not just "while L"?
OK, here it is with Chris' excellent adv
On 6/12/14 11:57 AM, Chris Angelico wrote:
On Fri, Jun 13, 2014 at 2:49 AM, Mark H Harris wrote:
Consider this generator variation:
def poplist(L):
done = False
while done==False:
yield L[::-1][:1:]
L = L[::-1][1::][::-1]
On 6/12/14 11:55 AM, Marko Rauhamaa wrote:
while not done:
Better Python and not bad English, either.
... and taking Marko's good advice, what I think you really wanted:
>>> def poplist(L):
done = False
while not done:
yield L[::-1][:1:]
L
> while done==False:
Correction:
while not done:
Better Python and not bad English, either.
Marko
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Jun 13, 2014 at 2:49 AM, Mark H Harris wrote:
> Consider this generator variation:
>
def poplist(L):
> done = False
> while done==False:
>
> yield L[::-1][:1:]
> L = L[::-1][1::][::-1]
> if len(L)==0: done=True
Why not j
On 6/11/14 10:12 PM, hito koto wrote:
def foo(x):
y = []
while x !=[]:
y.append(x.pop())
return y
Consider this generator variation:
>>> def poplist(L):
done = False
while done==False:
yield L[::-1][:1:]
L = L[::-1][1::]
On 6/11/14 10:12 PM, hito koto wrote:
i want to change this is code:
def foo(x):
y = []
while x !=[]:
y.append(x.pop())
return y
Consider this generator (all kinds of permutations on the idea):
>>> L1
[1, 2, 3, 4, 5, 6, 7]
>>> def poplist(L):
while True:
2014年6月12日木曜日 14時43分42秒 UTC+9 Steven D'Aprano:
> On Wed, 11 Jun 2014 21:56:06 -0700, hito koto wrote:
>
>
>
> > I want to use while statement,
>
> >
>
> > for example:
>
> def foo(x):
>
> > ... y = []
>
> > ... while x !=[]:
>
> > ... y.append(x.pop())
>
> > ...
2014年6月12日木曜日 14時43分42秒 UTC+9 Steven D'Aprano:
> On Wed, 11 Jun 2014 21:56:06 -0700, hito koto wrote:
>
>
>
> > I want to use while statement,
>
> >
>
> > for example:
>
> def foo(x):
>
> > ... y = []
>
> > ... while x !=[]:
>
> > ... y.append(x.pop())
>
> > ...
2014年6月12日木曜日 14時43分42秒 UTC+9 Steven D'Aprano:
> On Wed, 11 Jun 2014 21:56:06 -0700, hito koto wrote:
>
>
>
> > I want to use while statement,
>
> >
>
> > for example:
>
> def foo(x):
>
> > ... y = []
>
> > ... while x !=[]:
>
> > ... y.append(x.pop())
>
> > ...
On Wed, 11 Jun 2014 21:56:06 -0700, hito koto wrote:
> I want to use while statement,
>
> for example:
def foo(x):
> ... y = []
> ... while x !=[]:
> ... y.append(x.pop())
> ... return y
> ...
print foo(a)
> [[10], [5, 6, 7, 8, 9], [1, 2, 3, 4]]
a
> [] but thi
On Thu, Jun 12, 2014 at 2:56 PM, hito koto wrote:
> I want to use while statement,
This sounds like homework. Go back to your teacher/tutor for
assistance, rather than asking us to do the work for you; or at very
least, word your question in such a way that we can help you to learn,
rather than j
2014年6月12日木曜日 12時58分27秒 UTC+9 Chris Angelico:
> On Thu, Jun 12, 2014 at 1:40 PM, Vincent Vande Vyvre
>
> wrote:
>
> > Le 12/06/2014 05:12, hito koto a écrit :
>
> >
>
> >> Hello,all
>
> >> I'm first time,
>
> >>
>
> >> I want to make a while statement which can function the same x.pop () an
On Thu, Jun 12, 2014 at 1:40 PM, Vincent Vande Vyvre
wrote:
> Le 12/06/2014 05:12, hito koto a écrit :
>
>> Hello,all
>> I'm first time,
>>
>> I want to make a while statement which can function the same x.pop () and
>> without the use of pop、how can i to do?
>>
>> i want to change this is code:
>
Le 12/06/2014 05:12, hito koto a écrit :
Hello,all
I'm first time,
I want to make a while statement which can function the same x.pop () and
without the use of pop、how can i to do?
i want to change this is code:
def foo(x):
y = []
while x !=[]:
y.append(x.pop())
return
Thank you Chris and Stefan, this was the answer I was looking for.
Leonardo Giordani
--
http://mail.python.org/mailman/listinfo/python-list
Leonardo Giordani, 12.04.2010 11:51:
I'm facing a strange issue in Python execution speed. I'm running the
following test script:
-8<-
dim = 1000
iteration = 10
list1 = []
list2 = []
for i in range(dim):
list1.a
On Mon, Apr 12, 2010 at 2:51 AM, Leonardo Giordani
wrote:
> which runs in about 80 seconds on my local hardware (mean of multiple
> execution)
> If I move the whole code into a function and call this latter the execution
> time drops to about 45 seconds.
>
> What is the reason of this improvement
Tim Golden wrote:
norseman wrote:
I did try these.
Doc at once:
outputs two x'0D' and the file. Then it appends x'0D' x'0D' x'0A'
x'0D' x'0A' to end of file even though source file itself has no EOL.
( EOL is EndOfLine aka newline )
That's cr cr There are two blank lines at be
norseman wrote:
I did try these.
Doc at once:
outputs two x'0D' and the file. Then it appends x'0D' x'0D' x'0A' x'0D'
x'0A' to end of file even though source file itself has no EOL.
( EOL is EndOfLine aka newline )
That's cr cr There are two blank lines at begining.
cr
Shailja Gulati wrote:
Sorry about mailing u Tim.It just happened by mistake.
Reg win32api , i m still facing the same problem of Import error...Could
anyone pls help?? m stuck
Shailja. Did you download and install the download .exe
from the link below?
http://sourceforge.net/project/platfo
[forwarding back to the list]
Please reply to the list: I'm not the only person
who can help, and I might not have the time even
if I can.
Shailja Gulati wrote:
I have installed win32com but still not able to run tht code as its giving
error
File "readDocPython.py", line 1, in ?
import
norseman wrote:
Tim Golden wrote:
Shailja Gulati wrote:
Hi ,
I am currently working on "Information retrieval from semi structured
Documents" in which there is a need to read data from Resumes.
Could anyone tell me is there any python API to read Word doc?
If you haven't already, get hold
Tim Golden wrote:
Shailja Gulati wrote:
Hi ,
I am currently working on "Information retrieval from semi structured
Documents" in which there is a need to read data from Resumes.
Could anyone tell me is there any python API to read Word doc?
If you haven't already, get hold of the pywin32 e
Kushal Kumaran wrote:
On Wed, May 13, 2009 at 4:28 PM, Shailja Gulati wrote:
Hi ,
I am currently working on "Information retrieval from semi structured
Documents" in which there is a need to read data from Resumes.
Could anyone tell me is there any python API to read Word doc?
If you're us
Shailja Gulati wrote:
Hi ,
I am currently working on "Information retrieval from semi structured
Documents" in which there is a need to read data from Resumes.
Could anyone tell me is there any python API to read Word doc?
If you haven't already, get hold of the pywin32 extensions:
http:/
On Wed, May 13, 2009 at 4:28 PM, Shailja Gulati wrote:
>
> Hi ,
>
> I am currently working on "Information retrieval from semi structured
> Documents" in which there is a need to read data from Resumes.
>
> Could anyone tell me is there any python API to read Word doc?
>
If you're using Windows,
srinivas wrote:
... i want to know how to import my functions folder to python in
sucha way that the functions in functions folder should work like
python library modules .
i have python in folder C:\python25\..
and functions folder D:\programs\Functions\
pls help me friends how to do that.
i always just put most of my python files in the c:\python25 directory.
including ones i want to import as modules, since they import from there.
otherwise you can put the file in c:\python25\lib\site-packages
"srinivas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi friends i
On 21 Mag, 14:31, srinivas <[EMAIL PROTECTED]> wrote:
> hi friends i am new to python programming.
> i am using Python 2.5 and IDLE as editor.
> i have developed some functions in python those will be calling
> frequently in my main method .
> now i want to know how to import my functions folder to
In article
<[EMAIL PROTECTED]>,
srinivas <[EMAIL PROTECTED]> wrote:
> hi friends i am new to python programming.
> i am using Python 2.5 and IDLE as editor.
> i have developed some functions in python those will be calling
> frequently in my main method .
> now i want to know how to import my fu
On Apr 23, 3:50 am, [EMAIL PROTECTED] wrote:
> How can python execute in browser?
>
> Mukul
The best way of running Python code in the browser is with the
Silverlight browser plugin. Silverlight 2 (currently working with IE,
Safari and Firefoxon Windows and Mac OS X - but Silveright 2 for
Linux, c
On Apr 22, 10:50 pm, [EMAIL PROTECTED] wrote:
> How can python execute in browser?
>
> Mukul
Depends on the browser and which compilers/postprocessors you're
willing to use. The Grail browser supports python natively, there are
python plugins for some other browsers, and there are C# plugins for
o
On Apr 22, 7:50 pm, [EMAIL PROTECTED] wrote:
> How can python execute in browser?
>
> Mukul
Very carefully.
Alternately, applets/Jython.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
How can python execute in browser?
Mukul
--
http://mail.python.org/mailman/listinfo/python-list
Check out IronPython, which you can use with Silverlight or Mono. Or you
could look at any of the cool Python Web Frameworks, such as TurboGears,
Pylons, CherryPy, or Dj
boyeestudio wrote:
> I write a python program which can insert one record into the Sybase
> databae at a time using the function "fetchone()",But I find it runs slowly.
> So I want speed it up,But I don't know how to manipulate the database
> more efficiently! Thread or any other methods can do i
> I have read the booth python types and objects. I think its book for
> clearificating types and objects in python. It says there will be a
> book named python attributes and methods. Do you know any information
> about this book. I am interested in it.
Hey pipehappy,
__Python Attributes and
"defcon8" wrote:
>I can't remember the proposal number, but many of you reading will have
> probably read the features that will be added to python 2.5. The actual
> part I wanted to talk about was the finally part of try. Isn't it
> totally defeating a compiler's job by executing the finally part
defcon8 wrote:
> I can't remember the proposal number,
http://docs.python.org/dev/whatsnew/pep-341.html
but many of you reading will have
> probably read the features that will be added to python 2.5. The actual
> part I wanted to talk about was the finally part of try.
It has been here from th
Hi,
defcon8 wrote:
> I can't remember the proposal number, but many of you reading will have
> probably read the features that will be added to python 2.5. The actual
> part I wanted to talk about was the finally part of try. Isn't it
> totally defeating a compiler's job by executing the finally
?? wrote:
> i am use python2.4.2 on my gentoo linux system
> i want to find some ide of python
> but i am using gtk2.8,wxPython has some bug on it.i cant emerge it correctly.
> i want some ide use pygtk or other lib of python gui except
> wxpython(wxWidgets)
Try Gazpacho or Glade for designing yo
赵光 wrote:
> i am use python2.4.2 on my gentoo linux system
> i want to find some ide of python
> but i am using gtk2.8,wxPython has some bug on it.i cant emerge it correctly.
> i want some ide use pygtk or other lib of python gui except
> wxpython(wxWidgets)
Take astab at eric3. Uses Qt + PyQt
Kl wrote:
Hi, python is really easy to learn in my opinion. There are loads of
tutorials/books on the web talking about the most common python features.
The problem comes when they add something new to the language or you want to
use advanced features. Since python is still evolving its difficult t
51 matches
Mail list logo