Re: Output format

2016-03-20 Thread Rustom Mody
On Monday, March 21, 2016 at 5:54:31 AM UTC+5:30, Mark Lawrence wrote: > On 20/03/2016 23:37, : > > I can't find a formatting way to get columns of data. > > > > Take your pick from:- > > https://docs.python.org/3/library/stdtypes.html#string-methods > > https://docs.python.org/3/library/stdtype

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread Steven D'Aprano
On Monday 21 March 2016 13:11, Ben Finney wrote: > BartC writes: > >> I don't have a clue about exceptions > > Please, stop making assertions about Python code until you have learned > Python. I don't see how "I don't have a clue about exceptions" is an assertion about Python code. I think

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread Steven D'Aprano
On Monday 21 March 2016 12:35, Chris Angelico wrote: > On Mon, Mar 21, 2016 at 12:28 PM, Mark Lawrence > wrote: >> I got to line 22, saw the bare except, and promptly gave up. > > Oh, keep going, Mark. It gets better. [...] > So, if any exception happens during the reading of the file, it gets >

Re: Output format

2016-03-20 Thread Alphwe
On Monday, March 21, 2016 at 7:37:39 AM UTC+8, vernl...@gmail.com wrote: > I can't find a formatting way to get columns of data. I don't think this express is a question, or asking for help. -- https://mail.python.org/mailman/listinfo/python-list

Re: Why do you use python?

2016-03-20 Thread Ben Finney
Chris Angelico writes: > True. I'm not saying you should never use more than one tool, but that > every additional tool used costs exponentially in complexity. And > people who claim they should use any tool whatsoever usually use "I > know this tool" as the most important criterion in the decisi

Re: Why do you use python?

2016-03-20 Thread Chris Angelico
On Mon, Mar 21, 2016 at 3:49 PM, Dan Sommers wrote: >> So instead of treating programming like a plumber at a hardware store, >> treat it like an artist with a canvas. You wouldn't normally see a >> portrait done partly in watercolor and partly in oils - or if it is, >> it's for a VERY deliberate

Re: Why do you use python?

2016-03-20 Thread Mark Lawrence
On 21/03/2016 03:59, rhardin...@gmail.com wrote: On Saturday, October 31, 2009 at 3:22:20 AM UTC-6, Martin P. Hellwig wrote: sk wrote: What would be your answer if this question is asked to you in an interview? a modified version might be: "Where would you use python over C/C++/Java?" (becaus

Re: Why do you use python?

2016-03-20 Thread Dan Sommers
On Mon, 21 Mar 2016 15:13:22 +1100, Chris Angelico wrote: > On Mon, Mar 21, 2016 at 2:59 PM, wrote: >> instead, to be efficient, it is best to combine tools to solve >> problems that contain complexities where there is nothing available >> off the shelve that does the job. c# is free, free VS s

Re: Why do you use python?

2016-03-20 Thread Chris Angelico
On Mon, Mar 21, 2016 at 2:59 PM, wrote: > instead, to be efficient, it is best to combine tools to solve problems that > contain complexities where there is nothing available off the shelve that > does the job. c# is free, free VS studio, i can run ironpython there, i can > do python there, an

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread Mark Lawrence
On 21/03/2016 02:04, BartC wrote: On 21/03/2016 01:35, Chris Angelico wrote: On Mon, Mar 21, 2016 at 12:28 PM, Mark Lawrence wrote: I got to line 22, saw the bare except, and promptly gave up. Oh, keep going, Mark. It gets better. def readstrfile(file): try: data=open(file,"r"

Re: Why do you use python?

2016-03-20 Thread rharding64
On Saturday, October 31, 2009 at 3:22:20 AM UTC-6, Martin P. Hellwig wrote: > sk wrote: > > What would be your answer if this question is asked to you in an > > interview? > > > > a modified version might be: > > "Where would you use python over C/C++/Java?" > > > > (because my resume says I know

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread Terry Reedy
On 3/20/2016 9:15 PM, BartC wrote: http://pastebin.com/dtM8WnFZ This is a test of a character-at-a-time task in Python; I disagree. It tests of C code re-written in ludicrously crippled Python. No use of the re module, designed for tasks like this, and no use of dicts, which replace many us

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread Ben Finney
BartC writes: > I don't have a clue about exceptions Please, stop making assertions about Python code until you have learned Python. You are a Python beginner. You would be welcome to learn Python over at the ‘tutor’ forum https://mail.python.org/mailman/listinfo/tutor>. Otherwise, please stop

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread Chris Angelico
On Mon, Mar 21, 2016 at 1:04 PM, BartC wrote: > On 21/03/2016 01:35, Chris Angelico wrote: >> >> On Mon, Mar 21, 2016 at 12:28 PM, Mark Lawrence >> wrote: >>> >>> I got to line 22, saw the bare except, and promptly gave up. >> >> >> Oh, keep going, Mark. It gets better. >> >> def readstrfile(file

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread BartC
On 21/03/2016 01:35, Chris Angelico wrote: On Mon, Mar 21, 2016 at 12:28 PM, Mark Lawrence wrote: I got to line 22, saw the bare except, and promptly gave up. Oh, keep going, Mark. It gets better. def readstrfile(file): try: data=open(file,"r").read() except: retu

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread Mark Lawrence
On 21/03/2016 01:35, Chris Angelico wrote: On Mon, Mar 21, 2016 at 12:28 PM, Mark Lawrence wrote: I got to line 22, saw the bare except, and promptly gave up. Oh, keep going, Mark. It gets better. def readstrfile(file): try: data=open(file,"r").read() except: retu

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread Chris Angelico
On Mon, Mar 21, 2016 at 12:28 PM, Mark Lawrence wrote: > I got to line 22, saw the bare except, and promptly gave up. Oh, keep going, Mark. It gets better. def readstrfile(file): try: data=open(file,"r").read() except: return 0 return data def start(): psource=re

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread Mark Lawrence
On 21/03/2016 01:15, BartC wrote: On 15/03/2016 00:25, BartC wrote: > On 14/03/2016 23:24, Steven D'Aprano wrote: >> Try this instead: >> >> c = chr(c) >> if 'A' <= c <= 'Z': >> upper += 1 >> elif 'a' <= c <= 'z': >> lower += 1 >> elif '0' <= c <= '9': >> digits += 1 >>

Re: script exits prematurely with no stderr output, but with system errors

2016-03-20 Thread Terry Reedy
On 3/20/2016 4:55 PM, Larry Martell wrote: Yes, I was thinking that as well about the "page allocation failure" message, but it's almost like there were 2 errors, the first being the unhandled exception. But why would it not output something to stderr? Formatting a traceback requires memory.

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-20 Thread BartC
On 15/03/2016 00:25, BartC wrote: > On 14/03/2016 23:24, Steven D'Aprano wrote: >> Try this instead: >> >> c = chr(c) >> if 'A' <= c <= 'Z': >> upper += 1 >> elif 'a' <= c <= 'z': >> lower += 1 >> elif '0' <= c <= '9': >> digits += 1 >> else: >> other += 1 >> >> >> But even be

Re: Output format

2016-03-20 Thread Mark Lawrence
On 20/03/2016 23:37, vernleff...@gmail.com wrote: I can't find a formatting way to get columns of data. Take your pick from:- https://docs.python.org/3/library/stdtypes.html#string-methods https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting https://docs.python.org

Re: Output format

2016-03-20 Thread Joel Goldstick
On Sun, Mar 20, 2016 at 7:37 PM, wrote: > I can't find a formatting way to get columns of data. > -- > https://mail.python.org/mailman/listinfo/python-list > Welcome Vern. We're gonna need more than that -- os, python version, your code, traceback if you get one, what results you get, what you

Output format

2016-03-20 Thread vernleffler
I can't find a formatting way to get columns of data. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python boilerplate

2016-03-20 Thread Fernando Felix do Nascimento Junior
@all I released version 1.0.0 with a tiny glossary and explanation of each file in the boilerplate. @Chris I made the boilerplate with intent that everyone can understand, download and use quickly. So, I didn't put extra dependence like cookiecutter (that depends jinja, that depends markupsaf

Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2016-03-20 Thread eryk sun
On Sun, Mar 20, 2016 at 5:33 PM, wrote: > On Wednesday, October 14, 2015 at 9:06:11 PM UTC+2, John S. James wrote: >> I installed 3.5.0 today and it's working fine -- either from the command >> prompt, or running a .py script. >> >> But the Python 3.4 that was previously installed on the compute

Re: E-commerce system in Python

2016-03-20 Thread Mark Lawrence
On 18/03/2016 04:25, Arshpreet Singh wrote: I am looking for an E-commerce system in python to sell things things online, which can also be responsive for Android and IOS. A quick Google search brought me http://getsaleor.com/ it uses Django, Is there any available one using Flask or newly b

Re: Fetch Gmail Archieved messages

2016-03-20 Thread Mark Lawrence
On 20/03/2016 19:56, Arshpreet Singh wrote: On Saturday, 19 March 2016 05:38:16 UTC+5:30, Rick Johnson wrote: I gave you "real help". What you want me to do -- write the code for you? Sorry, but Python-list is not a soup kitchen for destitute code. Neither is it a triage center were you can

Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2016-03-20 Thread kosvanec
On Wednesday, October 14, 2015 at 9:06:11 PM UTC+2, John S. James wrote: > I installed 3.5.0 today and it's working fine -- either from the command > prompt, or running a .py script. > > But the Python 3.4 that was previously installed on the computer had a > Python34 folder, which contained DDL

Re: script exits prematurely with no stderr output, but with system errors

2016-03-20 Thread Joel Goldstick
On Sun, Mar 20, 2016 at 4:55 PM, Larry Martell wrote: > On Sun, Mar 20, 2016 at 4:47 PM, Joel Goldstick > wrote: > > On Sun, Mar 20, 2016 at 4:32 PM, Larry Martell > > wrote: > > > >> I have a script that I run a lot - at least 10 time every day. Usually > >> it works fine. But sometime it just

Re: script exits prematurely with no stderr output, but with system errors

2016-03-20 Thread Larry Martell
On Sun, Mar 20, 2016 at 4:47 PM, Joel Goldstick wrote: > On Sun, Mar 20, 2016 at 4:32 PM, Larry Martell > wrote: > >> I have a script that I run a lot - at least 10 time every day. Usually >> it works fine. But sometime it just stops running with nothing output >> to stdout or stderr. I've been t

Re: script exits prematurely with no stderr output, but with system errors

2016-03-20 Thread Joel Goldstick
On Sun, Mar 20, 2016 at 4:32 PM, Larry Martell wrote: > I have a script that I run a lot - at least 10 time every day. Usually > it works fine. But sometime it just stops running with nothing output > to stdout or stderr. I've been trying to debug this for a while, and > today I looked in the sys

script exits prematurely with no stderr output, but with system errors

2016-03-20 Thread Larry Martell
I have a script that I run a lot - at least 10 time every day. Usually it works fine. But sometime it just stops running with nothing output to stdout or stderr. I've been trying to debug this for a while, and today I looked in the system logs and saw this: abrt: detected unhandled Python exceptio

Re: E-commerce system in Python

2016-03-20 Thread Arshpreet Singh
On Friday, 18 March 2016 21:44:46 UTC+5:30, Chris Warrick wrote: > asyncio is, as you said, brand new -- probably nothing exists. > Why not use the existing Django solution though? What is your problem > with it? It's a great framework that does a lot of the hard work for > you. Flask is low-lev

Re: Fetch Gmail Archieved messages

2016-03-20 Thread Arshpreet Singh
On Saturday, 19 March 2016 05:38:16 UTC+5:30, Rick Johnson wrote: > I gave you "real help". > > What you want me to do -- write the code for you? Sorry, but Python-list is > not a soup kitchen for destitute code. Neither is it a triage center were you > can bring your sick code, drop it at th

Re: How to waste computer memory?

2016-03-20 Thread Random832
On Sun, Mar 20, 2016, at 10:55, Ben Bacarisse wrote: > It's 21. The reason being (or at least part of the reason being) that > 21 bits can be UTF-8 encoded in 4 bytes: 0xxx 10xx 10xx > 10xx (3 + 3*6). The reason is the UTF-16 limit. Prior to that, UTF-8 had no such limit (it could

Re: monkey patching __code__

2016-03-20 Thread Sven R. Kunze
On 19.03.2016 00:58, Matt Wheeler wrote: I know you have a working solution now with updating the code & defaults of the function, but what about just injecting your function into the modules that had already imported it after the monkeypatching? Seems perhaps cleaner, unless you'd end up having

Re: How to waste computer memory?

2016-03-20 Thread Marko Rauhamaa
Ben Bacarisse : > It's 21. The reason being (or at least part of the reason being) that > 21 bits can be UTF-8 encoded in 4 bytes: 0xxx 10xx 10xx > 10xx (3 + 3*6). I bet the reason is UTF-16. Microsoft and Sun/Oracle would have insisted on a maximum of 4 bytes per character. UTF-1

Re: How to waste computer memory?

2016-03-20 Thread Ben Bacarisse
Rustom Mody writes: > On Sunday, March 20, 2016 at 10:32:07 AM UTC+5:30, Steven D'Aprano wrote: >> Unicode (the character set part of it) is a set of abstract 23-bit numbers, > > 23? Or 21? It's 21. The reason being (or at least part of the reason being) that 21 bits can be UTF-8 encoded in 4

Exception from pyd methods

2016-03-20 Thread Palpandi
Hi, I am using methods from pyd files. At some cases, it is throwing some error messages in the console. When I use try.. except.. I am getting only the exception name. Not able to catch the entire error message. How do I get the the entire error message printed in the console? Thanks, Palpan

Re: Case Statements

2016-03-20 Thread Antoon Pardon
Op 16-03-16 om 12:07 schreef Mark Lawrence: > On 16/03/2016 10:52, Antoon Pardon wrote: >> Op 16-03-16 om 10:51 schreef Mark Lawrence: >>> On 16/03/2016 09:35, Antoon Pardon wrote: Op 16-03-16 om 09:47 schreef Mark Lawrence: > >> >> Same with switch. You can use a hash table etc. t

Re: sobering observation, python vs. perl

2016-03-20 Thread Charles T. Smith
On Thu, 17 Mar 2016 21:18:43 +0530, srinivas devaki wrote: > please upload the log file, Sorry, it's work stuff, can't do that, but just take any big set of files and change the strings appropriately and the numbers should be equivalent. > > and global variables in python are slow, so just ke

Re: empty clause of for loops

2016-03-20 Thread Ruud de Jong
Peter Otten schreef op 2016-03-16 13:57: If you don't like exceptions implement (or find) something like items = peek(items) if items.has_more(): # at least one item for item in items: ... else: # empty Only if such a function is used a lot or cannot be conceived without severe

Re: Python directory

2016-03-20 Thread Terry Reedy
On 3/16/2016 9:01 PM, Xerma Palmares wrote: Hello, I have just downloaded Python latest version on to PC running windows 10. Unfortunately, after the completion of the download the Python icon was not showing up on the Desktop The installer does not make desktop icons. > and could not found th

Re: sobering observation, python vs. perl

2016-03-20 Thread Ethan Furman
On 03/17/2016 09:08 AM, Charles T. Smith wrote: On Thu, 17 Mar 2016 10:52:30 -0500, Tim Chase wrote: Not saying this will make a great deal of difference, but these two items jumped out at me. I'd even be tempted to just use string manipulations for the isready aspect as well. Something like

Re: Case Statements

2016-03-20 Thread Mark Lawrence
On 16/03/2016 15:27, Antoon Pardon wrote: Op 16-03-16 om 15:02 schreef Mark Lawrence: On 16/03/2016 13:38, Antoon Pardon wrote: Op 16-03-16 om 12:07 schreef Mark Lawrence: Raise the item on the python-ideas mailing list for the umpteenth time then, and see how far you get. I don't care enou

Re: Bash-like pipes in Python

2016-03-20 Thread Marko Rauhamaa
Steven D'Aprano : > On Thu, 17 Mar 2016 02:20 am, Random832 wrote: >> fpipe("abcd12345xyz", pfilter(str.isdigit), pmap(int), preduce(mul)) > > Intriguing! Thank you for the suggestion. Still want the pipeline syntax! Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: monkey patching __code__

2016-03-20 Thread Ian Kelly
On Fri, Mar 18, 2016 at 7:47 AM, Ian Kelly wrote: > Your patched version takes two extra arguments. Did you add the > defaults for those to the function's __defaults__ attribute? And as an afterthought, you'll likely need to replace the function's __globals__ with your own as well. -- https://ma

Re: How to waste computer memory?

2016-03-20 Thread Chris Angelico
On Sun, Mar 20, 2016 at 11:14 PM, Steven D'Aprano wrote: >>> On the other hand, I believe that the output of the UTF transformations >>> is explicitly described in terms of 8-bit bytes and 16- or 32-bit words. >>> For instance, the UTF-8 encoding of "A" has to be a single byte with >>> value 0x41

Re: Error

2016-03-20 Thread Joel Goldstick
On Sun, Mar 20, 2016 at 6:39 AM, Abeer Sohail wrote: > Oh well. Every time I try to open, or reinstall and open Python.exe, it > shows me this error. Hopefully the error will be in the > When you say 'this error', you don't say what the error is. Please don't attach anything, let alone image fil

Re: How to waste computer memory?

2016-03-20 Thread Steven D'Aprano
On Sun, 20 Mar 2016 10:22 pm, Chris Angelico wrote: > On Sun, Mar 20, 2016 at 10:06 PM, Steven D'Aprano > wrote: >> The Unicode standard does not, as far as I am aware, care how you >> represent code points in memory, only that there are 0x11 of them, >> numbered from U+ to U+10. That

Re: How to waste computer memory?

2016-03-20 Thread Chris Angelico
On Sun, Mar 20, 2016 at 10:06 PM, Steven D'Aprano wrote: > The Unicode standard does not, as far as I am aware, care how you represent > code points in memory, only that there are 0x11 of them, numbered from > U+ to U+10. That's what I mean by abstract. The obvious > implementation is

Re: How to waste computer memory?

2016-03-20 Thread Marko Rauhamaa
Chris Angelico : > Like every language *including* English. You can pretend that ASCII is > enough, but you do lose some information. Hold it, I'll quickly update my résumé before we resume the conversation. What does this exposé expose? At least it gives a coup de grâce to ASCII with grace. Ma

Re: sobering observation, python vs. perl

2016-03-20 Thread Charles T. Smith
On Thu, 17 Mar 2016 15:29:47 +, Charles T. Smith wrote: And for completeness, and also surprising: time sed -n -e '/ is ready/{s///;h}' -e '/release_req/{g;p}' *.out | sort -u TestCase_F_00_P TestCase_F_00_S TestCase_F_01_S TestCase_F_02_M real0m10.998s user0m10.885s sys 0m0.108

Re: How to waste computer memory?

2016-03-20 Thread Steven D'Aprano
On Sun, 20 Mar 2016 05:20 pm, Rustom Mody wrote: > On Sunday, March 20, 2016 at 10:32:07 AM UTC+5:30, Steven D'Aprano wrote: >> On Sun, 20 Mar 2016 03:12 am, Marko Rauhamaa wrote: >> >> > Steven D'Aprano : >> > >> >> On Sun, 20 Mar 2016 02:02 am, Marko Rauhamaa wrote: >> >>> Yes, but UTF-16 prod

Re: Bash-like pipes in Python

2016-03-20 Thread Random832
On Wed, Mar 16, 2016, at 11:20, Random832 wrote: > How about: > > from functools import partial, reduce > from operator import mul > def rcall(arg, func): return func(arg) > def fpipe(*args): return reduce(rcall, args) It occurs to me that this suggests a further refinement: have all functions (a

Re: Is this an error in python-babel or am I missing something?

2016-03-20 Thread cl
c...@isbd.net wrote: > I am getting the following error when running some code that uses > python-sqlkit. This uses python-babel to handle dates for different > locales. > > Traceback (most recent call last): > File > "/usr/local/lib/python2.7/dist-packages/sqlkit-0.9.6.1-py2.7.egg/sqlkit/wi

Re: WP-A: A New URL Shortener

2016-03-20 Thread Daniel Wilcox
> > > +list >> >> > You will be far more welcome here if you intersperse your replies or > bottom post. Top posting is very heavily frowned upon. Thanks. noted. lol -- https://mail.python.org/mailman/listinfo/python-list

Re: TSP in python ; this is code to solve tsp whenever called, where given coordinates as in name of pos and then start coordinate as in start, help me how it works ?

2016-03-20 Thread Mark Lawrence
On 18/03/2016 17:04, Qurrat ul Ainy wrote: help required !!! For what, house cleaning? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Case Statements

2016-03-20 Thread Mark Lawrence
On 20/03/2016 08:01, Rustom Mody wrote: On Wednesday, March 16, 2016 at 5:51:21 PM UTC+5:30, Marko Rauhamaa wrote: BartC : On 16/03/2016 11:07, Mark Lawrence wrote: but I still very much doubt we'll be adding a switch statement -- it's a "sexy" language design issue I did *NOT* write the

Re: from a module return a class

2016-03-20 Thread kevind0718
On Thursday, March 17, 2016 at 12:19:39 PM UTC-4, kevin...@gmail.com wrote: > Hello: > > Working with python 2.7. > > I have a module promptUser_PWord that will prompt a user for their user name > and pword. Works fine stand alone. > I also have a module, genXLS that does a bunch of processing

Re: How to waste computer memory?

2016-03-20 Thread Mark Lawrence
On 17/03/2016 21:26, BartC wrote: On 17/03/2016 21:11, Marko Rauhamaa wrote: Chris Angelico : Like every language *including* English. You can pretend that ASCII is enough, but you do lose some information. Hold it, I'll quickly update my résumé before we resume the conversation. What does t

Re: How to waste computer memory?

2016-03-20 Thread Paul Rubin
Chris Angelico writes: > You can pretend that only 1 and 0 are enough. Good luck making THAT work. YOU had ONES??? Back in the day, my folks had to do everything with just zeros. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to waste computer memory?

2016-03-20 Thread Steven D'Aprano
On Fri, 18 Mar 2016 10:46 pm, Steven D'Aprano wrote: > I think it is typical of JMF that his idea of a language where Unicode > "just works" is one where it *does work at all* (at least not as strings). Er, does NOT work at all. > Python 1.5 strings supported Unicode just as well as Go's string

Re: Case Statements

2016-03-20 Thread Rustom Mody
On Wednesday, March 16, 2016 at 5:51:21 PM UTC+5:30, Marko Rauhamaa wrote: > BartC : > > > On 16/03/2016 11:07, Mark Lawrence wrote: > >> but I still very much doubt we'll be adding a switch statement -- > >> it's a "sexy" language design issue > > > > That's the first time I've heard a language f

Re: How to waste computer memory?

2016-03-20 Thread Marko Rauhamaa
Steven D'Aprano : > On Sun, 20 Mar 2016 03:12 am, Marko Rauhamaa wrote: >> Steven D'Aprano : >>> On Sun, 20 Mar 2016 02:02 am, Marko Rauhamaa wrote: Yes, but UTF-16 produces 16-bit values that are outside Unicode. >>> >>> Show me. >>> >>> Before you answer, if your answer is "surrogate pairs"

Re: Case Statements

2016-03-20 Thread Antoon Pardon
Op 16-03-16 om 18:24 schreef Mark Lawrence: > On 16/03/2016 15:27, Antoon Pardon wrote: >> Op 16-03-16 om 15:02 schreef Mark Lawrence: >>> On 16/03/2016 13:38, Antoon Pardon wrote: Op 16-03-16 om 12:07 schreef Mark Lawrence: > > Raise the item on the python-ideas mailing list for the u

Re: TSP in python ; this is code to solve tsp whenever called, where given coordinates as in name of pos and then start coordinate as in start, help me how it works ?

2016-03-20 Thread Qurrat ul Ainy
help required !!! -- https://mail.python.org/mailman/listinfo/python-list

from a module return a class

2016-03-20 Thread kevind0718
Hello: Working with python 2.7. I have a module promptUser_PWord that will prompt a user for their user name and pword. Works fine stand alone. I also have a module, genXLS that does a bunch of processing it has worked fine for months. And a class Unamepword define as follows: class Unamepwo

Re: sobering observation, python vs. perl

2016-03-20 Thread Charles T. Smith
On Thu, 17 Mar 2016 19:08:58 +0200, Marko Rauhamaa wrote: > "Charles T. Smith" : > > > Compare Perl (http://www.perlmonks.org/?node_id=98357>): > >my $str = "I have a dream"; >my $find = "have"; >my $replace = "had"; >$find = quotemeta $find; # escape regex metachars if present