Re: python CAD libraries?

2012-09-10 Thread Dwight Hutto
Apologies for the double posting. -- Best Regards, David Hutto *CEO:* *http://www.hitwebdevelopment.com* -- http://mail.python.org/mailman/listinfo/python-list

Re: python CAD libraries?

2012-09-10 Thread Dwight Hutto
Apologies for the multiple posts, it's been a long night, and I don't use the google groups that much I kept getting sent mail failure, I think because I didn't hit 'reply all'. -- Best Regards, David Hutto *CEO:* *http://www.hitwebdevelopment.com* -- http://mail.python.org/mailman/listinfo/pytho

Re: python CAD libraries?

2012-09-10 Thread David Hutto
Might have posted that too many times, I don't use the google groups that much. > > Best Regards, > > David Hutto > > CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: python CAD libraries?

2012-09-10 Thread david
Thank you. But this is for 2D. 3-d is just manipulating what's shown in x/y points(and not as easy as it sounds) . I went with cartesian coordinate, a 360x360 canvas(with 90x90 degree view port), and a little trig for front/back/left/right/up/down, and amplitude or z distance

Re: python CAD libraries?

2012-09-10 Thread david
> Thank you. But this is for 2D. Thank you. But this is for 2D. 3-d is just manipulating what's shown in x/y points(and not as easy as it sounds) . I went with cartesian coordinate, a 360x360 canvas(with 90x90 degree view port), and a little trig for front/back/left/right/up

Re: python CAD libraries?

2012-09-10 Thread Dwight Hutto
On Mon, Sep 10, 2012 at 5:10 PM, Jayden wrote: > Are there any python CAD libraries that can > > (1) build simple 3D primitives solids such as spheres, cylinders and so on > (2) perform bool operations on 3D solids > (3) better if it has some transformations such has scaling, sweeping, and > loft

Re: python CAD libraries?

2012-09-10 Thread Dwight Hutto
I've used maya(I think that was the name), and matplotlib, but Blender.org(open source) is great for 3d rendering/game engine, etc, and has a nice python API, with great tutorials everywhere. If you checkout my homepage in my sig, you can see a roughdraft of somethings I was working on for it. I'

Re: python CAD libraries?

2012-09-10 Thread Dwight Hutto
> > > Are there any python CAD libraries that can > > > > > > > > > > (1) build simple 3D primitives solids such as spheres, cylinders and > so on > > > > > (2) perform bool operations on 3D solids > > > > > (3) better if it has some transformations such has scaling, sweeping, > and lofting > > > >

Re: python CAD libraries?

2012-09-10 Thread Dwight Hutto
On Mon, Sep 10, 2012 at 5:50 PM, Jayden wrote: > On Monday, September 10, 2012 5:30:08 PM UTC-4, Gary Herron wrote: > > On 09/10/2012 02:10 PM, Jayden wrote: > > > > > Are there any python CAD libraries that can > > > > > > > > > > (1) build simple 3D primitives solids such as spheres, cylinders

Re: submit jobs on multi-core

2012-09-10 Thread Laszlo Nagy
On 2012-09-11 06:16, Dhananjay wrote: Dear all, I have a python script in which I have a list of files to input one by one and for each file I get a number as an output. I used for loop to submit the file to script. My script uses one file at a time and returns the output. My computers has 8

submit jobs on multi-core

2012-09-10 Thread Dhananjay
Dear all, I have a python script in which I have a list of files to input one by one and for each file I get a number as an output. I used for loop to submit the file to script. My script uses one file at a time and returns the output. My computers has 8 cores. Is there any way that I could submi

Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py

2012-09-10 Thread Steven D'Aprano
On Mon, 10 Sep 2012 15:22:05 -0700, ruck wrote: > On Monday, September 10, 2012 1:16:13 PM UTC-7, Steven D'Aprano wrote: [...] > > That's not so much a workaround as the officially supported API for > > dealing with the situation you are in. Why don't you just prepend a > > '?' to paths like they

Re: a python license problem?

2012-09-10 Thread Benjamin Kaplan
On Mon, Sep 10, 2012 at 7:58 PM, Jayden wrote: > Python is under GPL compatible. If I develop a python code, convert it to > executable and distribute the executable as a commercial software. May I need > to make my source code open? > > If python is under GPL, is the answer different? Thanks a

a python license problem?

2012-09-10 Thread Jayden
Python is under GPL compatible. If I develop a python code, convert it to executable and distribute the executable as a commercial software. May I need to make my source code open? If python is under GPL, is the answer different? Thanks a lot!! -- http://mail.python.org/mailman/listinfo/python-

Re: Parsing ISO date/time strings - where did the parser go?

2012-09-10 Thread Roy Smith
In article , Chris Angelico wrote: > On Tue, Sep 11, 2012 at 7:46 AM, Rhodri James > wrote: > > On Sun, 09 Sep 2012 13:14:30 +0100, Roy Smith wrote: > > > >> In article , > >> Thomas Jollans wrote: > >> > >>> The ISO date/time format is dead simple and well-defined. > > > > > >> Well defined

Re: delay on windows when processing Pygame events

2012-09-10 Thread Joshua Landau
On 10 September 2012 23:25, Vojtěch Polášek wrote: > while running == True: > for event in pygame.event.get(): > if event.type == blahblahblah, #processing various events > blahblahblah, contiuing the code after events are analysed > > I am looking mainly for keyboard events. I no

Re: Parsing ISO date/time strings - where did the parser go?

2012-09-10 Thread Chris Angelico
On Tue, Sep 11, 2012 at 7:46 AM, Rhodri James wrote: > On Sun, 09 Sep 2012 13:14:30 +0100, Roy Smith wrote: > >> In article , >> Thomas Jollans wrote: >> >>> The ISO date/time format is dead simple and well-defined. > > >> Well defined, perhaps. But nobody who has read the standard could call

delay on windows when processing Pygame events

2012-09-10 Thread Vojtěch Polášek
Greetings, I am writing a simple game for visually impaired in pygame. I use this construction: while running == True: for event in pygame.event.get(): if event.type == blahblahblah, #processing various events blahblahblah, contiuing the code after events are analysed I am looking

Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py

2012-09-10 Thread ruck
On Monday, September 10, 2012 1:16:13 PM UTC-7, Steven D'Aprano wrote: > On Mon, 10 Sep 2012 10:25:29 -0700, ruck wrote: > > > > > In Python 2.7.2 on Windows 7, > > > > > > os.walk() uses isdir(), > > > which comes from os.path, > > > which really comes from ntpath.py, > > > which really c

Re: Newbie: where's the new python gone?

2012-09-10 Thread William R. Wing (Bill Wing)
On Sep 10, 2012, at 11:17 AM, Bob Aalsma wrote: > Well, Bill, better late than never - thanks for stepping in. > You are right, my problems are not yet solved ;) As Hans pointed out, you are looking for python, not Python (the frameworks are named Python, the executable is python). Sorry about

Re: Comparing strings from the back?

2012-09-10 Thread Oscar Benjamin
On 2012-09-10, Dan Goodman wrote: > On 10/09/2012 18:07, Dan Goodman wrote: >> On 04/09/2012 03:54, Roy Smith wrote: >>> Let's assume you're testing two strings for equality. You've already >>> done the obvious quick tests (i.e they're the same length), and you're >>> down to the O(n) part of com

Re: python CAD libraries?

2012-09-10 Thread Jayden
On Monday, September 10, 2012 5:30:08 PM UTC-4, Gary Herron wrote: > On 09/10/2012 02:10 PM, Jayden wrote: > > > Are there any python CAD libraries that can > > > > > > (1) build simple 3D primitives solids such as spheres, cylinders and so on > > > (2) perform bool operations on 3D solids > >

Re: Parsing ISO date/time strings - where did the parser go?

2012-09-10 Thread Rhodri James
On Sun, 09 Sep 2012 13:14:30 +0100, Roy Smith wrote: In article , Thomas Jollans wrote: The ISO date/time format is dead simple and well-defined. Well defined, perhaps. But nobody who has read the standard could call it "dead simple". ISO-8601-2004(E) is 40 pages long. A short standa

Re: python CAD libraries?

2012-09-10 Thread Gary Herron
On 09/10/2012 02:10 PM, Jayden wrote: Are there any python CAD libraries that can (1) build simple 3D primitives solids such as spheres, cylinders and so on (2) perform bool operations on 3D solids (3) better if it has some transformations such has scaling, sweeping, and lofting Please recomme

python CAD libraries?

2012-09-10 Thread Jayden
Are there any python CAD libraries that can (1) build simple 3D primitives solids such as spheres, cylinders and so on (2) perform bool operations on 3D solids (3) better if it has some transformations such has scaling, sweeping, and lofting Please recommend some good ones for me? Thanks a lot!!

Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py

2012-09-10 Thread Steven D'Aprano
On Mon, 10 Sep 2012 10:25:29 -0700, ruck wrote: > In Python 2.7.2 on Windows 7, > > os.walk() uses isdir(), > which comes from os.path, > which really comes from ntpath.py, > which really comes from genericpath.py > > I want os.walk() to use a modified isdir() on my Windows 7. Not knowing > any

Re: Numpy combine channels

2012-09-10 Thread Wanderer
On Monday, September 10, 2012 4:14:18 PM UTC-4, Wanderer wrote: > On Monday, September 10, 2012 4:12:40 PM UTC-4, MRAB wrote: > > > On 10/09/2012 20:39, Wanderer wrote: > > > > > > > I have an array generated by audiolab of left and right stereo > > > > > > > channels. It looks like [[1,1],[

Re: set and dict iteration

2012-09-10 Thread 88888 Dihedral
Paul Rubin於 2012年8月17日星期五UTC+8上午9時01分39秒寫道: > Ian Kelly writes: > > > With regard to key insertion and deletion while iterating over a dict > > > or set, though, there is just no good reason to be doing that > > > (especially as the result is very implementation-specific), and I > > > wouldn't

Re: Numpy combine channels

2012-09-10 Thread Wanderer
On Monday, September 10, 2012 4:12:40 PM UTC-4, MRAB wrote: > On 10/09/2012 20:39, Wanderer wrote: > > > I have an array generated by audiolab of left and right stereo > > > channels. It looks like [[1,1],[1,2],[2,3]]. I would like to combine > > > the left and right channels to get an array [2,

Re: Numpy combine channels

2012-09-10 Thread MRAB
On 10/09/2012 20:39, Wanderer wrote: I have an array generated by audiolab of left and right stereo channels. It looks like [[1,1],[1,2],[2,3]]. I would like to combine the left and right channels to get an array [2,3,5]. Is there a numpy command to do that? import numpy numpy.array([[1,1],[1,2

RE: Numpy combine channels

2012-09-10 Thread Nick Cash
> I have an array generated by audiolab of left and right stereo > channels. It looks like [[1,1],[1,2],[2,3]]. I would like to combine > the left and right channels to get an array [2,3,5]. Is there a numpy > command to do that? You may be over-thinking this, and numpy might not be necessary. A

Re: Numpy combine channels

2012-09-10 Thread Wanderer
On Monday, September 10, 2012 3:39:11 PM UTC-4, Wanderer wrote: > I have an array generated by audiolab of left and right stereo channels. It > looks like [[1,1],[1,2],[2,3]]. I would like to combine the left and right > channels to get an array [2,3,5]. Is there a numpy command to do that? > >

Numpy combine channels

2012-09-10 Thread Wanderer
I have an array generated by audiolab of left and right stereo channels. It looks like [[1,1],[1,2],[2,3]]. I would like to combine the left and right channels to get an array [2,3,5]. Is there a numpy command to do that? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: pyQT performance?

2012-09-10 Thread Andrea Crotti
On 09/10/2012 07:29 PM, jayden.s...@gmail.com wrote Have you ever used py2exe? After converting the python codes to executable, does it save the time of interpreting the script language? Thank a lot! Py2exe normally never speeds up anything, simply because it doesn't convert to executable, bu

Re: pyQT performance?

2012-09-10 Thread jayden . shui
On Monday, September 10, 2012 2:06:59 PM UTC-4, Vincent Vande Vyvre wrote: > Le 10/09/12 19:24, jayden.s...@gmail.com a écrit : > > > Anybody has the experience of the performance of the program developed by > > pyQT? Is it much slower than the one made by QT, such as (20%)? > > > > > For my ex

Wing IDE 4.1.8 released

2012-09-10 Thread Wingware
Hi, Wingware has released version 4.1.8 of Wing IDE, our integrated development environment designed specifically for the Python programming language. Wing IDE provides a professional quality code editor with vi, emacs, and other key bindings, auto-completion, call tips, refactoring, context-aw

Re: pyQT performance?

2012-09-10 Thread Vincent Vande Vyvre
Le 10/09/12 19:24, jayden.s...@gmail.com a écrit : > Anybody has the experience of the performance of the program developed by > pyQT? Is it much slower than the one made by QT, such as (20%)? > For my experience, 20% is really surestimated. I'm developping only with PyQt and essentially in the i

Re: Comparing strings from the back?

2012-09-10 Thread Dan Goodman
On 10/09/2012 18:07, Dan Goodman wrote: On 04/09/2012 03:54, Roy Smith wrote: Let's assume you're testing two strings for equality. You've already done the obvious quick tests (i.e they're the same length), and you're down to the O(n) part of comparing every character. I'm wondering if it migh

Re: How to timeout a recv() on an ssl connection?

2012-09-10 Thread Grant Edwards
On 2012-09-10, Grant Edwards wrote: > I can't figure out how to timeout a recv() on an SSLSocket -- I'm using > Python 2.6 nad 2.7. Here's what I've got so far (it needs to work on > either a plain or SSL socket): > > s.settimeout(timeout) > try: > b = ord(s.recv(1)) >

Re: Comparing strings from the back?

2012-09-10 Thread Dan Goodman
On 10/09/2012 18:33, Oscar Benjamin wrote: Computing the hash always requires iterating over all characters in the string so is best case O(N) where string comparison is best case (and often average case) O(1). Yep, but you already have O(N) costs just creating the strings in the first place,

how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py

2012-09-10 Thread ruck
In Python 2.7.2 on Windows 7, os.walk() uses isdir(), which comes from os.path, which really comes from ntpath.py, which really comes from genericpath.py I want os.walk() to use a modified isdir() on my Windows 7. Not knowing any better, it seems to me like ntpath.py would be a good place to int

How to timeout a recv() on an ssl connection?

2012-09-10 Thread Grant Edwards
I can't figure out how to timeout a recv() on an SSLSocket -- I'm using Python 2.6 nad 2.7. Here's what I've got so far (it needs to work on either a plain or SSL socket): s.settimeout(timeout) try: b = ord(s.recv(1)) except socket.timeout: return N

Re: Comparing strings from the back?

2012-09-10 Thread Oscar Benjamin
On 2012-09-10, Dan Goodman wrote: > On 04/09/2012 03:54, Roy Smith wrote: >> Let's assume you're testing two strings for equality. You've already >> done the obvious quick tests (i.e they're the same length), and you're >> down to the O(n) part of comparing every character. >> >> I'm wondering if

Re: SAP MM Cupertino, CA

2012-09-10 Thread Emile van Sebille
On 9/10/2012 7:58 AM Ramchandra Apte said... On Monday, 10 September 2012 18:51:10 UTC+5:30, Suresh Kumar wrote: delete the original message. Marking this as abusive in Google Groups - this seems like spam. Please explain what does this have to do with Python. Please learn to trim -- your

Re: Standard Asynchronous Python

2012-09-10 Thread Terry Reedy
On 9/10/2012 7:36 AM, Dustin J. Mitchell wrote: The responses have certainly highlighted some errors in emphasis in my approach. * My idea is to propose a design PEP. (Steven, Dennis) I'm not at *all* suggesting including uthreads in the standard library. It's a toy implementation I used to dev

Re: PYODBC Print Cursor Output Question

2012-09-10 Thread MRAB
On 10/09/2012 15:55, james simpson wrote: I think there's a simple answer but displaying my ignorance here. I'm using Python 2.7.3 IDLW with pydoc 3x I think I've connected to my SQL Server 2005 and my SQL is good. How do I display the actual data returned from my fetch? Been searching for sev

Re: Comparing strings from the back?

2012-09-10 Thread Dan Goodman
On 04/09/2012 03:54, Roy Smith wrote: Let's assume you're testing two strings for equality. You've already done the obvious quick tests (i.e they're the same length), and you're down to the O(n) part of comparing every character. I'm wondering if it might be faster to start at the ends of the s

Re: Compile python code into a dll

2012-09-10 Thread Terry Reedy
On 9/10/2012 8:15 AM, Rolf Wester wrote: I have Python code that I would like to compile into a dll (I have to deliver a C/C++ callable dll and I don't want to reimpelement the Python code in C/C++). It's not for extending Python but I want to call the Python functions and classes from C/C++. It

Re: Newbie: where's the new python gone?

2012-09-10 Thread Hans Mulder
On 10/09/12 15:04:24, William R. Wing (Bill Wing) wrote: > On Sep 9, 2012, at 10:28 AM, BobAalsma wrote: > >> I think I've installed Python 2.7.3 according to the instructions in the >> README, and now want to use that version. >> However, when typing "python" in Terminal, I get "Python 2.6.4 (

Re: SAP MM Cupertino, CA

2012-09-10 Thread Ramchandra Apte
On Monday, 10 September 2012 18:51:10 UTC+5:30, Suresh Kumar wrote: > Hi, > > > > This is Girish, - IT Recruiter from SancroSoft USA Inc. > > > > Please respond with updated resume in MS-Word .doc Format with the > > following details to gir...@sancrosoftusa.com > > > > Full Name : >

PYODBC Print Cursor Output Question

2012-09-10 Thread james simpson
I think there's a simple answer but displaying my ignorance here. I'm using Python 2.7.3 IDLW with pydoc 3x I think I've connected to my SQL Server 2005 and my SQL is good. How do I display the actual data returned from my fetch? Been searching for several hours but no joy... Thanks. Jamie ===

Re: Comparing strings from the back?

2012-09-10 Thread Chris Angelico
On Tue, Sep 11, 2012 at 12:43 AM, Oscar Benjamin wrote: > On 2012-09-10, Oscar Benjamin wrote: >> I haven't looked at the source but my understanding was precisely that there >> is an intern() bit and that not only the builtins module but all the literals >> in any byte-compiled module are intern

Re: Comparing strings from the back?

2012-09-10 Thread Oscar Benjamin
On 2012-09-10, Oscar Benjamin wrote: > On 2012-09-10, Chris Angelico wrote: >> On Tue, Sep 11, 2012 at 12:06 AM, Oscar Benjamin >> wrote: >>> On 2012-09-10, Steven D'Aprano wrote: What interning buys you is that "s == t" is an O(1) pointer compare if they are equal. But if s and t diff

Re: Comparing strings from the back?

2012-09-10 Thread Oscar Benjamin
On 2012-09-10, Chris Angelico wrote: > On Tue, Sep 11, 2012 at 12:06 AM, Oscar Benjamin > wrote: >> On 2012-09-10, Steven D'Aprano wrote: >>> What interning buys you is that "s == t" is an O(1) pointer compare if >>> they are equal. But if s and t differ in the last character, __eq__ will >>> sti

Re: Comparing strings from the back?

2012-09-10 Thread Chris Angelico
On Tue, Sep 11, 2012 at 12:06 AM, Oscar Benjamin wrote: > On 2012-09-10, Steven D'Aprano wrote: >> What interning buys you is that "s == t" is an O(1) pointer compare if >> they are equal. But if s and t differ in the last character, __eq__ will >> still inspect every character. There is no way t

Re: Comparing strings from the back?

2012-09-10 Thread Oscar Benjamin
On 2012-09-10, Steven D'Aprano wrote: > On Mon, 10 Sep 2012 08:59:37 +, Duncan Booth wrote: > >> Gelonida N wrote: >> >> so at the expense of a single dictionary >> insertion when the string is created you can get guaranteed O(1) on all >> the comparisons. > > What interning buys you is that

Re: Newbie: where's the new python gone?

2012-09-10 Thread William R. Wing (Bill Wing)
On Sep 9, 2012, at 10:28 AM, BobAalsma wrote: > I think I've installed Python 2.7.3 according to the instructions in the > README, and now want to use that version. > However, when typing "python" in Terminal, I get "Python 2.6.4 (r264:75821M, > Oct 27 2009, 19:48:32) ". > So: > (1) I can't se

Re: Comparing strings from the back?

2012-09-10 Thread Steven D'Aprano
On Mon, 10 Sep 2012 08:59:37 +, Duncan Booth wrote: > Gelonida N wrote: > >> On 09/07/2012 06:06 AM, Steven D'Aprano wrote: >>> On Thu, 06 Sep 2012 06:07:38 -0400, Dave Angel wrote: >>> >>> >>> Also of some interest is the best case: O(1) for unequal strings (they >>> differ at the first cha

Re: Standard Asynchronous Python

2012-09-10 Thread Oscar Benjamin
On 2012-09-10, Dennis Lee Bieber wrote: > On Sun, 9 Sep 2012 20:07:51 -0400, "Dustin J. Mitchell" > declaimed the following in > gmane.comp.python.general: > >> >> My proposal met with near-silence, and I didn't pursue it. Instead, I >> did what any self-respecting hacker would do - I wrote up a

SAP MM Cupertino, CA

2012-09-10 Thread Suresh Kumar
Hi, This is Girish, - IT Recruiter from SancroSoft USA Inc. Please respond with updated resume in MS-Word .doc Format with the following details to gir...@sancrosoftusa.com Full Name : Location : Contact Number : Email : Availability : Visa Status : SAP MM Location : Cupertino, CA Duration:

Re: Standard Asynchronous Python

2012-09-10 Thread Steven D'Aprano
On Mon, 10 Sep 2012 07:36:11 -0400, Dustin J. Mitchell wrote: > The responses have certainly highlighted some errors in emphasis in my > approach. > > * My idea is to propose a design PEP. (Steven, Dennis) I'm not at *all* > suggesting including uthreads in the standard library. It's a toy > imp

Re: Compile python code into a dll

2012-09-10 Thread Miki Tebeka
> I have Python code that I would like to compile into a dll (I have to See http://docs.python.org/extending/embedding.html. You can pack your code in a zip file and load it from the DLL entry point (something like what py2exe does). See also the Freeze tool - http://wiki.python.org/moin/Freeze

Re: Compile python code into a dll

2012-09-10 Thread Ramchandra Apte
On Monday, 10 September 2012 17:45:11 UTC+5:30, Rolf Wester wrote: > Hi, > > > > I have Python code that I would like to compile into a dll (I have to > > deliver a C/C++ callable dll and I don't want to reimpelement the Python > > code in C/C++). It's not for extending Python but I want to

Compile python code into a dll

2012-09-10 Thread Rolf Wester
Hi, I have Python code that I would like to compile into a dll (I have to deliver a C/C++ callable dll and I don't want to reimpelement the Python code in C/C++). It's not for extending Python but I want to call the Python functions and classes from C/C++. It's more like extending C/C++ with

Re: Standard Asynchronous Python

2012-09-10 Thread Dustin J. Mitchell
The responses have certainly highlighted some errors in emphasis in my approach. * My idea is to propose a design PEP. (Steven, Dennis) I'm not at *all* suggesting including uthreads in the standard library. It's a toy implementation I used to develop my ideas. I think of this as a much smaller

Re: AttributeError: 'list' object has no attribute 'lower'

2012-09-10 Thread Jean-Michel Pichavant
Token Type wrote: In fact, I'm guessing that's your problem. I think you're ending up with a list of lists of strings, when you think you're getting a list of strings. Thanks. You guess right. It turns out that lemma_list is a list of list, as I tested in the previous post. I of

Re: how to run python2.6 module with absolute imports stand alone

2012-09-10 Thread Jean-Michel Pichavant
Gelonida N wrote: On 09/08/2012 02:13 AM, Mark Lawrence wrote: [snip] I hope this helps http://stackoverflow.com/questions/3616952/how-to-properly-use-relative-or-absolute-imports-in-python-modules It seems the safest bet seems to be to not use relative imports. That's what I figured as

Call for Papers: ACCU 2013 conference

2012-09-10 Thread jrbjagger
ACCU invites you to propose a session for its leading software development conference. The conference will be held in Bristol, England, from the 9th to the 13th April inclusive. Our opening keynote speakers will be Eben Upton, Mr Raspberry Pi. To propose a session please email the following inf

Re: Comparing strings from the back?

2012-09-10 Thread Duncan Booth
Gelonida N wrote: > On 09/07/2012 06:06 AM, Steven D'Aprano wrote: >> On Thu, 06 Sep 2012 06:07:38 -0400, Dave Angel wrote: >> >> >> Also of some interest is the best case: O(1) for unequal strings (they >> differ at the first character) and O(N) for equal strings. > > The worst case is O(N) or

Re: Beginner Q: What does the double underscore __ mean?

2012-09-10 Thread Dwight Hutto
The very first few steps, are help(any_module), and google. Try looking at this first then, the google search term I used(or any you might come up with_ : double underscore python 2.7 yielding: https://isearch.avg.com/search?q=double+underscore+python+2.7&sap=ku&lang=en&mid=376c19fb27d247d0a284c

Re: Is there any difference between print 3 and print '3' in Python ?

2012-09-10 Thread Terry Reedy
On 9/10/2012 2:33 AM, Dwight Hutto wrote: On Sun, Sep 9, 2012 at 10:41 AM, Ian Foote mailto:i...@feete.org>> wrote: On 09/09/12 14:23, iMath wrote: 在 2012年3月26日星期一UTC+8下午7时45分26秒,__iMath写道: I know the print statement produces the same result when both of t

Re: Newbie: where's the new python gone?

2012-09-10 Thread Benjamin Kaplan
On Sun, Sep 9, 2012 at 11:10 PM, Dwight Hutto wrote: > > I have several installations on my windows, so I use > c:\python27_64\python.exe module_file.py > > or > > c:\python26\python.exe module_file.py > > in the command line. > > > Not to show that this shouldn't be a discussion, but usually it's

Re: Is there any difference between print 3 and print '3' in Python ?

2012-09-10 Thread Benjamin Kaplan
On Sun, Sep 9, 2012 at 11:33 PM, Dwight Hutto wrote: > > > On Sun, Sep 9, 2012 at 10:41 AM, Ian Foote wrote: >> >> On 09/09/12 14:23, iMath wrote: >>> >>> 在 2012年3月26日星期一UTC+8下午7时45分26秒,iMath写道: I know the print statement produces the same result when both of these two instructions