curious about slice behaviour

2005-09-05 Thread Stephan Diehl
I just found out by accident, that slice indices can be larger than the length of the object. For example >>> 'test'[:50] 'test' >>> 'test'[40:50] '' I'd rather expected to be confronted with an IndexError. (This is actually described in http://docs.python.org/lib/typesseq.html, so my expectation

Re: Getting the bytes or percent uploaded/downloaded through FTP?

2005-09-05 Thread Nainto
Thanks guys. I'll try to these things too work. -- http://mail.python.org/mailman/listinfo/python-list

Unnest tag ?

2005-09-05 Thread Greg. Nans
Hello, i am looking for an idea on how to handle un-nesting tags. i know i can use something build on top of a htmltidy, but i'm rather wondering if this could be done using only python standard library. my input tags can not be crossed (i mean " w1 w2 w3 " is impossible from my input) actuall

Re: Getting the bytes or percent uploaded/downloaded through FTP?

2005-09-05 Thread Nainto
Thanks guys. I'll try to these things too work. -- http://mail.python.org/mailman/listinfo/python-list

Re: curious about slice behaviour

2005-09-05 Thread Terry Reedy
"Stephan Diehl" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I just found out by accident, that slice indices can be larger than > the length of the object. For example 'test'[:50] > 'test' 'test'[40:50] > '' > I'd rather expected to be confronted with an IndexError. > (

Re: Newbie: Datetime, "Prog. in Win32", and how Python thinks

2005-09-05 Thread Fredrik Lundh
Max Yaffe wrote: > 1) H&R import a module "dates' which has been dropped. They use > sec2asc which is also m.i.a. I assume that the code should be adapted > to use module datetime. Is that correct? the dates.py module is part of the financial modeling toolkit that is described in chapter 6 of

Python compiled?

2005-09-05 Thread billiejoex
Hi all. I'm sorry for a noob question like this but I'll try to ask it anyway. One of the greatest problem that may discourage a new user to choose Python language is it's interpreted nature. Another important problem is that no interpreter is installed on Windows machine by default and this mak

Re: dual processor

2005-09-05 Thread Terry Reedy
"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message news:[EMAIL PROTECTED] > Along with fixing the GIL, I think PyPy needs to give up on this > BASIC-style reference counting and introduce real garbage collection. > Lots of work has been done on concurrent GC and the techniques for it

Re: curious about slice behaviour

2005-09-05 Thread Stephan Diehl
On Mon, 05 Sep 2005 14:26:14 -0400, Terry Reedy wrote: > > "Stephan Diehl" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >>I just found out by accident, that slice indices can be larger than >> the length of the object. For example > 'test'[:50] >> 'test' [...] >> Does anybod

Re: Python compiled?

2005-09-05 Thread Devan L
billiejoex wrote: > Hi all. I'm sorry for a noob question like this but I'll try to ask it > anyway. > One of the greatest problem that may discourage a new user to choose Python > language is it's interpreted nature. What? The instant gratification of immediate results is not discouraging. > Ano

Re: Python compiled?

2005-09-05 Thread Kartic
> One of the greatest problem that may discourage a new user to choose Python > language is it's interpreted nature. Strange.. this is one reason I love Python :-) > Another important problem is that no interpreter is installed on Windows > machine by default and this makes harder to distribute

visit_decref: Assertion `gc->gc.gc_refs != 0' failed.

2005-09-05 Thread alexLIGO
Hi, I got this error when trying to execute the following python command with in a C module: Py_BuildValue Do anyone have any idea what this error is about? And does anyone have any idea how to debug a python script? Thanks Alexander -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-05 Thread Do Re Mi chel La Si Do
Hi ! One of the greatest reason which encouraged me to choose Python is its interpreted nature (more exactly its nature of dynamic language). The utilities of distribution, or packaging, are enough numerous to solve this kind of problem. The existence of Py2exe (inter alia), could concillier

Re: dual processor

2005-09-05 Thread Steve Jorgensen
On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >Jeremy Jones <[EMAIL PROTECTED]> wrote: >> One Python process will only saturate one CPU (at a time) because >> of the GIL (global interpreter lock). > >I'm hoping python won't always be like this. I don't get that. Phyto

Re: Possible improvement to slice opperations.

2005-09-05 Thread Steve Holden
Ron Adam wrote: > Magnus Lycka wrote: > > >>Ron Adam wrote: >> >> >>>Slicing is one of the best features of Python in my opinion, but >>>when you try to use negative index's and or negative step increments >>>it can be tricky and lead to unexpected results. >> >> >>Hm... Just as with positive ind

Re: Warning when doubly linked list is defined gloablly

2005-09-05 Thread Terry Reedy
"chand" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Please let me know how to > resolve this warning message..!! > SyntaxWarning: name 'g_opt_list' is used prior to global declaration Post the entire error traceback. Post the entire error traceback. Post the entire error traceb

Re: Possible improvement to slice opperations.

2005-09-05 Thread Fredrik Lundh
Ron Adam wrote: > However, I would like the inverse selection of negative strides to be > fixed if possible. If you could explain the current reason why it does > not return the reverse order of the selected range. why? you're not listening anyway. -- http://mail.python.org/mailman/listi

py2exe 0.6.1 released

2005-09-05 Thread Thomas Heller
py2exe 0.6.1 released = py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without requiring a python installation. Console and Windows (GUI) applications, windows NT services, exe and dll COM servers are support

Re: Possible improvement to slice opperations.

2005-09-05 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > Given that Python has a 1's-complement operator already I don;t see > why you can't just leave Python alone and use it, What's the meaning of the 1's complement operator (for example, what is ~1), when ints and longs are the same? -- http://mail.python.o

Re: How to use the OS's native file selector in Tkinter

2005-09-05 Thread copx
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Thank you! copx -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-05 Thread fuzzylollipop
there are "noob" questions and there are uneducated questions, yours are of the latter ( actually yours are STATEMENTS not questions ), and just trolling for what it is worth, if you would take the time to read what Python is and why it is you would not be asking these "questions". -- http://mail

Re: DrPython debugger

2005-09-05 Thread fuzzylollipop
you havent tried Komodo then :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: DrPython debugger

2005-09-05 Thread fuzzylollipop
oh I forgot about PyDev also, which is Free! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Digest authentication against MS MapPoint

2005-09-05 Thread paul kölle
[EMAIL PROTECTED] wrote: [problem with digest auth] sorry for giving such a generic advice, but I'd capture the headers of the C# app and compare with the urllib version line by line. Try to reproduce the exact header with python (except the response and cnonce of course). Maybe IIS has its own "v

Re: Python compiled?

2005-09-05 Thread billiejoex
I'm sorry. Maybe you misunderstanded. I know the great advanteges deriving by using interpretation too, I appreciate it very much (I'm newbie in Python and the interpeter really helps me out in many situations), but a 'pure' interpretated language needs obligatorily an interpreter and (sorry fo

Re: Getting the bytes or percent uploaded/downloaded through FTP?

2005-09-05 Thread Nainto
Wait, can this be used when uploading a file? -- http://mail.python.org/mailman/listinfo/python-list

Re: dual processor

2005-09-05 Thread Michael Sparks
Steve Jorgensen wrote: > On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > >>Jeremy Jones <[EMAIL PROTECTED]> wrote: >>> One Python process will only saturate one CPU (at a time) because >>> of the GIL (global interpreter lock). >> >>I'm hoping python won't always be lik

Re: Possible improvement to slice opperations.

2005-09-05 Thread Bengt Richter
On Mon, 5 Sep 2005 18:09:51 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >Steve Holden wrote: > >> Yes, I've been surprised how this thread has gone on and on. > >it's of course a variation of > >"You can lead an idiot to idioms, but you can't make him >think ;-)" > >as long as you ha

Re: Python compiled?

2005-09-05 Thread billiejoex
> there are "noob" questions and there are uneducated questions, yours > are of the latter ( actually yours are STATEMENTS not questions ), and > just trolling for what it is worth, if you would take the time to read > what Python is and why it is you would not be asking these "questions". I'm rea

Re: Possible improvement to slice opperations.

2005-09-05 Thread Fredrik Lundh
Bengt Richter wrote: >>as long as you have people that insist that their original misunderstandings >>are the only correct way to model the real world, and that all observed >>inconsistencies in their models are caused by bugs in the real world, you'll >>end up with threads like this. >> > OTOH, I

Re: Python compiled?

2005-09-05 Thread Diez B. Roggisch
billiejoex wrote: > I'm sorry. Maybe you misunderstanded. > I know the great advanteges deriving by using interpretation too, I > appreciate it very much (I'm newbie in Python and the interpeter really > helps me out in many situations), but a 'pure' interpretated language needs > obligatorily

Re: Python compiled?

2005-09-05 Thread Fredrik Lundh
"billiejoex" wrote: > I know the great advanteges deriving by using interpretation too, I > appreciate it very much (I'm newbie in Python and the > interpeter really helps me out in many situations), but a 'pure' > interpretated language needs obligatorily an interpreter and > (sorry for repea

Re: Python compiled?

2005-09-05 Thread Valentino Volonghi aka Dialtone
billiejoex <[EMAIL PROTECTED]> wrote: > interpretation and compilation at the same time, should be a great > advantage. Python is compiled and needs a runtime environment. just like java does and like C needs the C standard library installed. I can see no differences except one is compiled to n

Re: Possible improvement to slice opperations.

2005-09-05 Thread Steve Holden
Paul Rubin wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > >>Given that Python has a 1's-complement operator already I don;t see >>why you can't just leave Python alone and use it, > > > What's the meaning of the 1's complement operator (for example, what > is ~1), when ints and longs are th

Re: Magic Optimisation

2005-09-05 Thread Bengt Richter
On 5 Sep 2005 07:27:41 -0700, "Paul McGuire" <[EMAIL PROTECTED]> wrote: >I still think there are savings to be had by looping inside the >try-except block, which avoids many setup/teardown exception handling >steps. This is not so pretty in another way (repeated while on >check()), but I would be

Re: dual processor

2005-09-05 Thread Steve Jorgensen
On Mon, 05 Sep 2005 21:43:07 +0100, Michael Sparks <[EMAIL PROTECTED]> wrote: >Steve Jorgensen wrote: > >> On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >> >>>Jeremy Jones <[EMAIL PROTECTED]> wrote: One Python process will only saturate one CPU (at a time) because

Re: Possible improvement to slice opperations.

2005-09-05 Thread Ron Adam
Steve Holden wrote: > It's a common misconception that all ideas should be explainable simply. > This is not necessarily the case, of course. When a subject is difficult > then all sorts of people bring their specific misconceptions to the > topic, and suggest that if only a few changes were ma

Re: Possible improvement to slice opperations.

2005-09-05 Thread Ron Adam
Bengt Richter wrote: > On Mon, 5 Sep 2005 18:09:51 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > OTOH, ISTM we must be careful not to label an alternate alpha-version > "way to model the real world" as a "misunderstanding" just because it is > alpha, > and bugs are apparent ;-) Thanks! I

Re: Optional algol syntax style

2005-09-05 Thread Christoph Rackwitz
You didn't quite get the OP's intention, I guess. The OP wanted Python to be a bit more freeform by adding "end" tags. That might be an improvement for web scripting, but I haven't seen the solutions of the existing frameworks and won't dare to compare. -- http://mail.python.org/mailman/listinfo

Re: dual processor

2005-09-05 Thread Carl Friedrich Bolz
Terry Reedy wrote: > "Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message > news:[EMAIL PROTECTED] >>Along with fixing the GIL, I think PyPy needs to give up on this >>BASIC-style reference counting and introduce real garbage collection. >>Lots of work has been done on concurrent GC and

Re: Possible improvement to slice opperations.

2005-09-05 Thread Bengt Richter
On Mon, 5 Sep 2005 22:56:29 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote: > >>>as long as you have people that insist that their original misunderstandings >>>are the only correct way to model the real world, and that all observed >>>inconsistencies in their models are ca

Re: Possible improvement to slice opperations.

2005-09-05 Thread Terry Reedy
> Ron Adam wrote: > >> However, I would like the inverse selection of negative strides to be >> fixed if possible. If you could explain the current reason why it does >> not return the reverse order of the selected range. To repeat, the current reason is compatibility with the original design for

Re: simple question: $1, $2 in py ?

2005-09-05 Thread Jeff Pitman
es_uomikim wrote: > $ echo "something" | ./my_script.py echo "test" | python -c "import sys; print sys.stdin.readlines()" -- http://mail.python.org/mailman/listinfo/python-list

Re: Online Modification of Python Code

2005-09-05 Thread Lisandro Dalcin
can you send a small example of thing you are trying to do? As Python is *really* dynamic, you can adapt algorithms in many ways... in general, you can change methods, or even class! of almost any object... -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-05 Thread Gregory Piñero
Hmm, this may be offtopic, but does anyone know how pyinstaller actually works?  Does it just unpack everything into a temporary directory at runtime?  How can it work in Windows and Linux?  Their website was sparse... Well I'm trying it now.  Let me know if anyone has these answers in the meantim

Re: Possible improvement to slice opperations.

2005-09-05 Thread Steve Holden
Ron Adam wrote: > Steve Holden wrote: > > >>It's a common misconception that all ideas should be explainable simply. >>This is not necessarily the case, of course. When a subject is difficult >>then all sorts of people bring their specific misconceptions to the >>topic, and suggest that if onl

Re: Possible improvement to slice opperations.

2005-09-05 Thread Bengt Richter
On 05 Sep 2005 12:58:00 -0700, Paul Rubin wrote: >Steve Holden <[EMAIL PROTECTED]> writes: >> Given that Python has a 1's-complement operator already I don;t see >> why you can't just leave Python alone and use it, > >What's the meaning of the 1's complement operator (fo

how to convert a PY to a PYC file

2005-09-05 Thread Chavez Gutierrez, Freddy
Title: how to convert a PY to a PYC file I want to distribute a Python application to several computers, but I don't want they to be able to see the pure python code (the 'py' file). Is there a way to generate a 'pyc' file and distribute that only? Regards, Freddy Chavez. -- http://mai

Re: Possible improvement to slice opperations.

2005-09-05 Thread Bengt Richter
On Mon, 05 Sep 2005 17:10:05 -0400, Steve Holden <[EMAIL PROTECTED]> wrote: >Paul Rubin wrote: >> Steve Holden <[EMAIL PROTECTED]> writes: >> >>>Given that Python has a 1's-complement operator already I don;t see >>>why you can't just leave Python alone and use it, >> >> >> What's the meaning o

Re: Magic Optimisation

2005-09-05 Thread Bengt Richter
On Mon, 05 Sep 2005 21:39:31 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: >On 5 Sep 2005 07:27:41 -0700, "Paul McGuire" <[EMAIL PROTECTED]> wrote: > >>I still think there are savings to be had by looping inside the >>try-except block, which avoids many setup/teardown exception handling >>steps.

Re: py2exe 0.6.1 released

2005-09-05 Thread Bengt Richter
On Mon, 05 Sep 2005 21:55:19 +0200, Thomas Heller <[EMAIL PROTECTED]> wrote: > >py2exe 0.6.1 released >= > >py2exe is a Python distutils extension which converts python scripts >into executable windows programs, able to run without requiring a >python installation. Console and

Re: Possible improvement to slice opperations.

2005-09-05 Thread Patrick Maupin
> No one has yet explained the reasoning (vs the mechanics) of the > returned value of the following. > > L = range(10) > L[3::-1] > > So far every attempt to explain it has either quoted the documents which > don't address that particular case, or assumed I'm misunderstanding > something,

Django Vs Rails

2005-09-05 Thread flamesrock
Firstly, this topic is NOT intended for trolling or starting any flame wars. I want to know if anyone has experience with these frameworks, and if so, how do they compare? Which one do you prefer? Going back to school in a few days, I simply don't have the time to try both. -thanks http://djan

Re: plotting with gnuplot.py

2005-09-05 Thread Grant Edwards
On 2005-09-04, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Still having some issues plotting: > > In attempting as explained above: > > import Gnuplot,Numeric > filename = ('Default.PL1') > data = scipy.io.array_import.read_array(filename) > > y = data[:,1] > x = data[:,0] > z = data[:,2] > > //

Re: os.system(r"ls") prints to screen??

2005-09-05 Thread Grant Edwards
On 2005-09-04, Xah Lee <[EMAIL PROTECTED]> wrote: > Steve Holden wrote: > >> This is all pretty basic stuff. Perhaps you should stop your >> verbal assault on the computer science community and start to >> learn the principles of what you are doing. > > is this a supressed behavior that a human ani

Re: Django Vs Rails

2005-09-05 Thread D H
flamesrock wrote: > Firstly, this topic is NOT intended for trolling or starting any flame > wars. Whatever you say, "flamesrock". -- http://mail.python.org/mailman/listinfo/python-list

Re: dual processor

2005-09-05 Thread Grant Edwards
On 2005-09-05, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > Jeremy Jones <[EMAIL PROTECTED]> wrote: >> One Python process will only saturate one CPU (at a time) because >> of the GIL (global interpreter lock). > > I'm hoping python won't always be like this. Quite a few people are. :) > So, I

Re: Django Vs Rails

2005-09-05 Thread gene tani
http://griddlenoise.blogspot.com/2005/07/python-off-rails.html http://www.boddie.org.uk/python/web_frameworks.html flamesrock wrote: > Firstly, this topic is NOT intended for trolling or starting any flame > wars. > -- http://mail.python.org/mailman/listinfo/python-list

Re: Django Vs Rails

2005-09-05 Thread flamesrock
Thanks for the links, gene tani. D H, 'flamesrock' refers to the Calgary Flames, not the act of flaming. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-05 Thread Grant Edwards
On 2005-09-05, billiejoex <[EMAIL PROTECTED]> wrote: > Py2exe is surely a good compromise but it is not comparable to > an executable file compiled, for example, in C for obvious > sizing reasons In theory something written in C could be smaller. In practice, it isn't. Most "real" apps end up sh

Re: Python compiled?

2005-09-05 Thread Grant Edwards
On 2005-09-05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > distributing DLLs have been a solved problem for at least > 15-20 years... There are days when some poeple might disagree with that. ;) -- Grant Edwards grante Yow! LOOK!!! I'm WALKING

Re: dual processor

2005-09-05 Thread Jeremy Jones
Michael Sparks wrote: >Steve Jorgensen wrote: > > > >>On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >> >> >> >>>Jeremy Jones <[EMAIL PROTECTED]> wrote: >>> >>> One Python process will only saturate one CPU (at a time) because of the GIL (global inter

Re: Magic Optimisation

2005-09-05 Thread simonwittber
Paul McGuire wrote: > I still think there are savings to be had by looping inside the > try-except block, which avoids many setup/teardown exception handling > steps. This is not so pretty in another way (repeated while on > check()), but I would be interested in your timings w.r.t. your current

Re: dual processor

2005-09-05 Thread Jeremy Jones
Steve Jorgensen wrote: >On Mon, 05 Sep 2005 21:43:07 +0100, Michael Sparks <[EMAIL PROTECTED]> wrote: > > > >>Steve Jorgensen wrote: >> >> >> >>>On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >>> >>> >>> Jeremy Jones <[EMAIL PROTECTED]> wrote:

Re: Online Modification of Python Code

2005-09-05 Thread Bengt Richter
On Mon, 05 Sep 2005 11:53:09 +0200, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> >> I seem to recall a post by Diez Roggish that reload() doesn't always >> work as it should. Any news on this? At least im my preliminary test it >> works. > >Read the docs on reload: > >http://www.python.org/d

Re: Possible improvement to slice opperations.

2005-09-05 Thread Patrick Maupin
I previously wrote (in response to a query from Ron Adam): > In any case, you asked for a rationale. I'll give you mine: > > >>> L = range(10) > >>> L[3:len(L):-1] == [L[i] for i in range(3,len(L),-1)] > True > >>> After eating supper, I just realized that I could probably make my point a bit c

Python executable

2005-09-05 Thread presentt
Hello, I'm running Ubuntu Linux 5.04. I just started teaching myself Python today, and have been reading a few things to get started. I came across something in one (namely http://docs.python.org/tut/node4.html#SECTION00422) that confused me a little. It says: On

Re: learning python

2005-09-05 Thread Bugs
If you're already fluent in other programming language(s) [sounds like you are], then this is decent and available free online: http://www.diveintopython.org/ placid wrote: > > Sometimes when you concentrate on complicated problems your thinking of > a complicated solution and not a simple one

Re: py2exe 0.6.1 released

2005-09-05 Thread Bugs
Thomas Heller wrote: > Changes in this release: > > * py2exe can now bundle binary extensions and dlls into the > library-archive or the executable itself. This allows to > finally build real single-file executables. > > The bundled dlls and pyds are loaded at runtime by so

Re: Python executable

2005-09-05 Thread Steve Holden
presentt wrote: > Hello, > > I'm running Ubuntu Linux 5.04. > > I just started teaching myself Python today, and have been reading a > few things to get started. I came across something in one (namely > http://docs.python.org/tut/node4.html#SECTION00422) > that confused me a litt

Re: python logo

2005-09-05 Thread Lisandro Dalcin
I am waiting for the next chapter: "Jargons of Logos" ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python executable

2005-09-05 Thread DogWalker
"presentt" <[EMAIL PROTECTED]> said: >Hello, > >I'm running Ubuntu Linux 5.04. > >I just started teaching myself Python today, and have been reading a >few things to get started. I came across something in one (namely >http://docs.python.org/tut/node4.html#SECTION00422) >that conf

Re: Online Modification of Python Code

2005-09-05 Thread Robert Kern
Bengt Richter wrote: > What about something on the pattern of (untested!) > > import algomodule # first time > > def algoreload(): > algosource = algomodule.__file__.replace('.pyc','py') > algomodule.__dict__.clear() > try: > execfile(algosource, algomodule.

Re: dual processor

2005-09-05 Thread Steve Jorgensen
On Mon, 05 Sep 2005 23:42:38 -0400, Jeremy Jones <[EMAIL PROTECTED]> wrote: >Steve Jorgensen wrote: > ... >>That argument makes some sense, but I'm still not sure I agree. Rather than >>make Python programmers have to deal with concurrentcy issues in every app to >>get it to make good use of the

Re: Python executable

2005-09-05 Thread Jules Dubois
On Monday 05 September 2005 21:54, presentt <[EMAIL PROTECTED]> (<[EMAIL PROTECTED]>) wrote: > So I created a file named helloworld.py, and put in it: > > #! /usr/bin/env python > print "Hello, world!" > > and then used > $ chmod +x helloworld.py > to set the permissions. Finally, I went to my

Re: Possible improvement to slice opperations.

2005-09-05 Thread Ron Adam
Terry Reedy wrote: >>Ron Adam wrote: >> >> >>>However, I would like the inverse selection of negative strides to be >>>fixed if possible. If you could explain the current reason why it does >>>not return the reverse order of the selected range. > > > To repeat, the current reason is compatibilit

Re: command line path

2005-09-05 Thread Tim Roberts
Lee Harr <[EMAIL PROTECTED]> wrote: >On 2005-09-05, mclaugb <[EMAIL PROTECTED]> wrote: >> I am trying to pass the name of several files to a python script as command >> line arguments. When i type in >> >> python ImportFiles_test.py C:\Program Files\National Instruments\LabVIEW >> 7.1\project\c

Re: py2exe 0.6.1 released

2005-09-05 Thread Thomas Heller
[EMAIL PROTECTED] (Bengt Richter) writes: > On Mon, 05 Sep 2005 21:55:19 +0200, Thomas Heller <[EMAIL PROTECTED]> wrote: > >>* py2exe can now bundle binary extensions and dlls into the >> library-archive or the executable itself. This allows to >> finally build real single-file exec

Re: Python compiled?

2005-09-05 Thread Fredrik Lundh
Grant Edwards wrote: > > distributing DLLs have been a solved problem for at least > > 15-20 years... > > There are days when some poeple might disagree with that. ;) distributing them has never been a problem. installing them in a shared location has always been a problem. (the solution to the

Re: py2exe 0.6.1 released

2005-09-05 Thread Thomas Heller
Bugs <[EMAIL PROTECTED]> writes: > Thomas Heller wrote: >> Changes in this release: >> * py2exe can now bundle binary extensions and dlls into the >> library-archive or the executable itself. This allows to >> finally build real single-file executables. >> The bundled dlls a

Re: dual processor

2005-09-05 Thread Paul Rubin
Steve Jorgensen <[EMAIL PROTECTED]> writes: > In this case, it woiuld just be keeping a list of dirty hash tables, and > having a process that pulls the next one from the queue, and cleans it. If typical Python programs spend so enough time updating hash tables for a hack like this to be of any be

Re: Python Digest authentication against MS MapPoint

2005-09-05 Thread trapeze . jsg
Hi The requests made by python and C# dotnet are strikingly similar. Thats why I am putting my money on that it is the rfc2617 part that makes the difference. Since this posting was created, I have also tried gSoap. But again with no luck. While python failed to authorize, gSoap stops with a "400

Re: dual processor

2005-09-05 Thread Steve Jorgensen
On 05 Sep 2005 23:31:13 -0700, Paul Rubin wrote: >Steve Jorgensen <[EMAIL PROTECTED]> writes: >> In this case, it woiuld just be keeping a list of dirty hash tables, and >> having a process that pulls the next one from the queue, and cleans it. > >If typical Python progr

Re: Controlling memory allocation

2005-09-05 Thread Tommy . Ryding
Yep! I redirect Free, Realloc and Malloc. (calloc is never used by Python). "The more I thoug..." That could be a possible problem. I will look in to it today and try and find out if that occurs and in that case how often. //T -- http://mail.python.org/mailman/listinfo/python-list

<    1   2