Re: About Python Compressed Archive or Binaries

2022-01-18 Thread Sina Mobasheri
__ 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 >

Re: About Python Compressed Archive or Binaries

2022-01-18 Thread Christian Heimes
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

Re: About Python Compressed Archive or Binaries

2022-01-18 Thread Eryk Sun
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

Re: About Python Compressed Archive or Binaries

2022-01-17 Thread Sina Mobasheri
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

Re: About Python Compressed Archive or Binaries

2022-01-17 Thread Kirill Ratkin
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

Re: About Python Compressed Archive or Binaries

2022-01-17 Thread Chris Angelico
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

Re: About Python Compressed Archive or Binaries

2022-01-17 Thread Chris Angelico
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

Re: about python

2021-10-14 Thread Dan Stromberg
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

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
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

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
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]

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
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

Re: About python while statement and pop()

2014-06-12 Thread Marko Rauhamaa
> while done==False: Correction: while not done: Better Python and not bad English, either. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: About python while statement and pop()

2014-06-12 Thread Chris Angelico
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

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
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::]

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
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:

Re: About python while statement and pop()

2014-06-12 Thread hito koto
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()) > > > ...

Re: About python while statement and pop()

2014-06-12 Thread hito koto
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()) > > > ...

Re: About python while statement and pop()

2014-06-11 Thread hito koto
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()) > > > ...

Re: About python while statement and pop()

2014-06-11 Thread 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()) > ... return y > ... print foo(a) > [[10], [5, 6, 7, 8, 9], [1, 2, 3, 4]] a > [] but thi

Re: About python while statement and pop()

2014-06-11 Thread Chris Angelico
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

Re: About python while statement and pop()

2014-06-11 Thread hito koto
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

Re: About python while statement and pop()

2014-06-11 Thread 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 () and >> without the use of pop、how can i to do? >> >> i want to change this is code: >

Re: About python while statement and pop()

2014-06-11 Thread Vincent Vande Vyvre
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

Re: About Python execution speed

2010-04-12 Thread Leonardo Giordani
Thank you Chris and Stefan, this was the answer I was looking for. Leonardo Giordani -- http://mail.python.org/mailman/listinfo/python-list

Re: About Python execution speed

2010-04-12 Thread Stefan Behnel
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

Re: About Python execution speed

2010-04-12 Thread Chris Rebert
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

Re: about Python doc reader

2009-05-14 Thread norseman
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

Re: about Python doc reader

2009-05-14 Thread Tim Golden
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

Re: about Python doc reader

2009-05-14 Thread Tim Golden
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

Re: about Python doc reader

2009-05-14 Thread Tim Golden
[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

Re: about Python doc reader

2009-05-13 Thread norseman
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

Re: about Python doc reader

2009-05-13 Thread norseman
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

Re: about Python doc reader

2009-05-13 Thread norseman
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

Re: about Python doc reader

2009-05-13 Thread Tim Golden
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:/

Re: about Python doc reader

2009-05-13 Thread Kushal Kumaran
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,

Re: about python modules

2008-05-21 Thread Scott David Daniels
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.

Re: about python modules

2008-05-21 Thread inhahe
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

Re: about python modules

2008-05-21 Thread bockman
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

Re: about python modules

2008-05-21 Thread Roy Smith
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

Re: about python

2008-05-18 Thread Fuzzyman
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

Re: about python

2008-04-22 Thread [EMAIL PROTECTED]
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

Re: about python

2008-04-22 Thread Jason Scheirer
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

Re: about python

2008-04-22 Thread Mike Driscoll
[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

Re: About python Sybase module and the database manipulation!

2007-04-06 Thread Steve Holden
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

Re: about Python types and objects

2006-07-17 Thread alex23
> 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

Re: About python 2.5 and its try statement.

2006-06-26 Thread Fredrik Lundh
"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

Re: About python 2.5 and its try statement.

2006-06-26 Thread Bruno Desthuilliers
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

Re: About python 2.5 and its try statement.

2006-06-26 Thread Tim N. van der Leeuw
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

Re: about python ide

2005-11-13 Thread D H
?? 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

Re: about python ide

2005-11-13 Thread Diez B. Roggisch
赵光 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

Re: about python advanced/new features documentation

2004-12-04 Thread Kent Johnson
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