Re: Stop feeding the trolls (Was: which a is used?)

2012-09-26 Thread Dwight Hutto
You can "Plonk" my dick bitches. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Stop feeding the trolls (Was: which a is used?)

2012-09-26 Thread Dwight Hutto
On Wed, Sep 26, 2012 at 3:06 AM, Dwight Hutto wrote: > You can "Plonk" my dick bitches. > > > -- > Best Regards, > David Hutto > CEO: http://www.hitwebdevelopment.com +5.75 -- http://mail.python.org/mailman/listinfo/python-list

Re: Article on the future of Python

2012-09-26 Thread Steven D'Aprano
On Tue, 25 Sep 2012 23:35:39 -0700, wxjmfauth wrote: > Py 3.3 succeeded to somehow kill unicode and it has been transformed > into an "American" product for "American" users. For the first time in Python's history, Python on 32-bit systems handles strings containing Supplementary Multilingual Pl

Re: Article on the future of Python

2012-09-26 Thread Ethan Furman
wxjmfa...@gmail.com wrote: Py 3.3 succeeded to somehow kill unicode and it has been transformed into an "American" product for "American" users. *plonk* -- http://mail.python.org/mailman/listinfo/python-list

Re: Article on the future of Python

2012-09-26 Thread Dwight Hutto
On Wed, Sep 26, 2012 at 3:17 AM, Ethan Furman wrote: > wxjmfa...@gmail.com wrote: >> >> Py 3.3 succeeded to somehow kill unicode and it has >> been transformed into an "American" product for >> "American" users. > > Well, we can all use american as a standard, or maybe you'd prefer to borrow my La

Re: Article on the future of Python

2012-09-26 Thread Chris Angelico
On Wed, Sep 26, 2012 at 5:39 PM, Dwight Hutto wrote: > On Wed, Sep 26, 2012 at 3:17 AM, Ethan Furman wrote: >> wxjmfa...@gmail.com wrote: >>> >>> Py 3.3 succeeded to somehow kill unicode and it has >>> been transformed into an "American" product for >>> "American" users. >> > Well, we can all use

regular expression : the dollar sign ($) work with re.match() or re.search() ?

2012-09-26 Thread iMath
I only know the dollar sign ($) will match a pattern from the end of a string,but which method does it work with ,re.match() or re.search() ? -- http://mail.python.org/mailman/listinfo/python-list

Re: regular expression : the dollar sign ($) work with re.match() or re.search()

2012-09-26 Thread Jussi Piitulainen
iMath writes: > I only know the dollar sign ($) will match a pattern from the end of > a string, but which method does it work with, re.match() or > re.search() It works with both. With re.match, the pattern has to match at the start of the string _and_ the $ has to match the end of the string (o

Re: regular expression : the dollar sign ($) work with re.match() or re.search()

2012-09-26 Thread Chris Angelico
On Wed, Sep 26, 2012 at 5:48 PM, Jussi Piitulainen wrote: > What was the weird character that you used as a question mark? I > removed them because they confuse the newsreader I use. It appears to be Unicode Character 'FULLWIDTH QUESTION MARK' (U+FF1F). Normally I'd be inclined to simply use U+00

Re: Article on the future of Python

2012-09-26 Thread Dwight Hutto
>> Well, we can all use american as a standard, or maybe you'd prefer to >> borrow my Latin for Idiots handbook. But then again google has a >> Universal Communicator going, so, does it matter? > > Never in the field of human discussion has there been so much reason > for so many to plonk so few. >

Re: Article on the future of Python

2012-09-26 Thread Terry Reedy
On 9/26/2012 2:35 AM, wxjmfa...@gmail.com wrote: Py 3.3 succeeded to somehow kill unicode and it has been transformed into an "American" product for "American" users. Python 3.3 is the first version that handles the full unicode character set correctly on all platforms. If anything, it will m

ANN: eGenix mxODBC Connect - Python Database Interface 2.0.1

2012-09-26 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC Connect Python Database Interface Version 2.0.1 mxODBC Connect is our commercially supported client-server product for

Re: google api and oauth2

2012-09-26 Thread Kushal Kumaran
On Wed, Sep 26, 2012 at 11:45 AM, Demian Brecht wrote: >> >> If you are writing a desktop application, read this: >> https://developers.google.com/accounts/docs/OAuth2#clientside > > > You mean https://developers.google.com/accounts/docs/OAuth2#installed? Your > link discusses client side browser

Looking for pointers/suggestion - how to make a webbrowser with these restriction?

2012-09-26 Thread Anthony Kong
Hi, all, It is kind of a MacGyver question. I am just looking for some general suggestions/pointer. First let me first describe the development environment I am in: it is a locked down WinXP PC with limited development tools and libraries. At my disposal I have python 2.6 , webkit 5.33 dll, wx

Re: Article on the future of Python

2012-09-26 Thread Mark Lawrence
On 26/09/2012 05:10, Chris Angelico wrote: On Wed, Sep 26, 2012 at 10:54 AM, Steven D'Aprano wrote: SQL? ... it's time to sell your shares in Oracle. Ehh, I wouldn't be investing in Oracle, but that's more because I think free RDBMSes like PostgreSQL outshine it. And this is even more true of

Re: Article on the future of Python

2012-09-26 Thread Mark Lawrence
On 26/09/2012 07:35, wxjmfa...@gmail.com wrote: Py 3.3 succeeded to somehow kill unicode and it has been transformed into an "American" product for "American" users. jmf Why do you keep repeating this rubbish when you've already been shot to pieces? Don't you know when it's time to make sur

Re: regular expression : the dollar sign ($) work with re.match() or re.search() ?

2012-09-26 Thread Peter Otten
iMath wrote: > I only know the dollar sign ($) will match a pattern from the > end of a string,but which method does it work with ,re.match() or > re.search() ? Why not try it out in the interactive interpreter? Here's the "deluxe version": >>> def demo(pattern="mid$", texts=["start mid end",

Re: Article on the future of Python

2012-09-26 Thread Mark Lawrence
On 26/09/2012 08:44, Chris Angelico wrote: On Wed, Sep 26, 2012 at 5:39 PM, Dwight Hutto wrote: On Wed, Sep 26, 2012 at 3:17 AM, Ethan Furman wrote: wxjmfa...@gmail.com wrote: Py 3.3 succeeded to somehow kill unicode and it has been transformed into an "American" product for "American" user

Re: Article on the future of Python

2012-09-26 Thread Chris Angelico
On Wed, Sep 26, 2012 at 6:34 PM, Mark Lawrence wrote: > Further for somebody who is apparently up in the high tech world, why are > you using a gmail account and hence sending garbage in more ways than one to > mailing lists like this? I use gmail too, largely because I prefer to keep mailing lis

Re: Article on the future of Python

2012-09-26 Thread Dwight Hutto
> > Why do you keep repeating this rubbish when you've already been shot to > pieces? I still feel intact, so whatever little shards of pain you intended to emit were lost on my ego. Don't you know when it's time to make sure that you're safely > strapped in and reach for and use the release bu

Re: Article on the future of Python

2012-09-26 Thread Dwight Hutto
> I tried to make a play on that some days ago and failed dismally. That's the fucking understatement of the year. Thanks for > putting me out of my misery :) -- No prob. Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

mimetypes.guess_type broken in windows on py2.7 and python 3.X

2012-09-26 Thread Gelonida N
Hi, I'm still experiencing the pleasure of migrating legacy code from Python 2.6. to 2.7 which I expected to be much less painful. (In fact migration on Linux is rather smooth, but Windows is another story) Let's take the simple command import mimetypes print mimetypes.guess_type('a.jpg')

Re: Article on the future of Python

2012-09-26 Thread Mark Lawrence
On 26/09/2012 09:47, Dwight Hutto wrote: I tried to make a play on that some days ago and failed dismally. That's the fucking understatement of the year. You remind me of the opening to the song Plaistow Patricia by Ian Dury and the Blockheads. Thanks for putting me out of my misery :)

Re: Fastest web framework

2012-09-26 Thread Tarek Ziadé
On 9/25/12 3:21 PM, Andriy Kornatskyy wrote: Tarek, With all respect, running benchmark on something that has sleeps, etc is pretty far from real world use case. So I went a little bit different way. That's not a good summary of what the function does. It does not just sleep. It does some I/O

Re: Article on the future of Python

2012-09-26 Thread Dwight Hutto
>> That's the fucking understatement of the year. >> > > You remind me of the opening to the song Plaistow Patricia by Ian Dury and > the Blockheads. Make a modern day/mainstream reference, and maybe someone will get it. > > >> Thanks for >>> >>> putting me out of my misery :) Again, no proble

RE: Fastest web framework

2012-09-26 Thread Andriy Kornatskyy
Tarek, Thank you for the response back. Yes, your idea is pretty clear to me. The point is that higher workload you put in your application business logic, repository, backend, whatever... less you will see in final results comparison. This is obvious and we, as technical people, very well und

Re: Article on the future of Python

2012-09-26 Thread Ramchandra Apte
On Tuesday, 25 September 2012 21:05:01 UTC+5:30, Steven D'Aprano wrote: > On Tue, 25 Sep 2012 09:26:19 -0400, Kevin Walzer wrote: > > > > > On 9/25/12 4:15 AM, Mark Lawrence wrote: > > >> Hi all, > > >> > > >> I though this might be of interest. > > >> > > >> http://www.ironfroggy.com/soft

Re: Article on the future of Python

2012-09-26 Thread wxjmfauth
Le mercredi 26 septembre 2012 09:23:47 UTC+2, Steven D'Aprano a écrit : > On Tue, 25 Sep 2012 23:35:39 -0700, wxjmfauth wrote: > > > > > Py 3.3 succeeded to somehow kill unicode and it has been transformed > > > into an "American" product for "American" users. > > > Steven, you are correct.

Re: Article on the future of Python

2012-09-26 Thread Dwight Hutto
>> >> they are written in themselves, using some clever bootstrapping >> >> techniques. C is neither the most powerful, the oldest, the best, or the >> >> most fundamental language around. Would you recommend Assembly, because C just becomea macros of Assembly, or better yet machine language, which

Re: Fastest web framework

2012-09-26 Thread Tarek Ziadé
On 9/26/12 11:26 AM, Andriy Kornatskyy wrote: Tarek, Thank you for the response back. Yes, your idea is pretty clear to me. The point is that higher workload you put in your application business logic, repository, backend, whatever... less you will see in final results comparison. This is obv

Re: Fastest web framework

2012-09-26 Thread Dwight Hutto
to Andriy You can use a framework, however, the function from the framework has to be used, and the parameters utilized by the frameworks functions. It would seem that writing your own witin the main page, or using the original function in place from the framework would run a timeit better. I'll

Re: Article on the future of Python

2012-09-26 Thread Chris Angelico
On Wed, Sep 26, 2012 at 7:31 PM, wrote: > you are correct. But the price you pay for this is extremely > high. Now, practically all characters are affected, espacially > those *in* the Basic *** Multilingual*** Plane, these characters > used by non "American" user (No offense here, I just use thi

Re: Article on the future of Python

2012-09-26 Thread Hannu Krosing
On 09/26/2012 10:32 AM, Mark Lawrence wrote: On 26/09/2012 05:10, Chris Angelico wrote: On Wed, Sep 26, 2012 at 10:54 AM, Steven D'Aprano wrote: SQL? ... it's time to sell your shares in Oracle. Ehh, I wouldn't be investing in Oracle, but that's more because I think free RDBMSes like Postgre

Re: Looking for pointers/suggestion - how to make a webbrowser with these restriction?

2012-09-26 Thread Chris Angelico
On Wed, Sep 26, 2012 at 6:23 PM, Anthony Kong wrote: > Hi, all, > > It is kind of a MacGyver question. I am just looking for some general > suggestions/pointer. > > First let me first describe the development environment I am in: it is a > locked down WinXP PC with limited development tools and

RE: Fastest web framework

2012-09-26 Thread Andriy Kornatskyy
David / Tarek, I believe you and Tarek are pointing the same things. If we want to get that far, we need, first of all, itemize the functions list and find their correspondences in other frameworks... or provide some script of potential calls to framework internal and translate those call to b

Re: Looking for pointers/suggestion - how to make a webbrowser with these restriction?

2012-09-26 Thread Anthony Kong
Hi, Chris, Thanks for your reply. I really do not have any requirement. It is more a curiosity question (not work related). I'd like to find out how python can be used to 'glue' all these moving parts together. Performance and security are definitely not a concern as it is just a toy idea/proje

Re: Need to archive a MySQL database using a python script

2012-09-26 Thread Hans Mulder
On 26/09/12 01:17:24, bruceg113...@gmail.com wrote: > Python Users Group, > > I need to archive a MySQL database using a python script. > I found a good example at: https://gist.github.com/3175221 > > The following line executes however, the archive file is empty. > > os.popen("mysqldump -u %s -

Re: Article on the future of Python

2012-09-26 Thread wxjmfauth
Le mercredi 26 septembre 2012 10:35:04 UTC+2, Mark Lawrence a écrit : > On 26/09/2012 07:35, wxjmfa...@gmail.com wrote: > > > > > > Py 3.3 succeeded to somehow kill unicode and it has > > > been transformed into an "American" product for > > > "American" users. > > > jmf > > > > > > > Why

Re: Article on the future of Python

2012-09-26 Thread wxjmfauth
Le mercredi 26 septembre 2012 10:13:58 UTC+2, Terry Reedy a écrit : > On 9/26/2012 2:35 AM, wxjmfa...@gmail.com wrote: > > > > > Py 3.3 succeeded to somehow kill unicode and it has > > > been transformed into an "American" product for > > > "American" users. > > > > Python 3.3 is the first

[python-list] python application file format

2012-09-26 Thread Benjamin Jessup
Hello all, What do people recommend for a file format for a python desktop application? Data is complex with 100s/1000s of class instances, which reference each other. Write the file with struct module? (Rebuild object pointers, safe, compact, portable, not expandable without reserved space)

Re: [python-list] python application file format

2012-09-26 Thread Ramchandra Apte
On Wednesday, 26 September 2012 18:29:14 UTC+5:30, Benjamin Jessup wrote: > Hello all, > > > > What do people recommend for a file format for a python desktop > > application? Data is complex with 100s/1000s of class instances, which > > reference each other. > > > > Write the file with

Re: new-style class or old-style class?

2012-09-26 Thread Ramchandra Apte
On Tuesday, 25 September 2012 20:14:05 UTC+5:30, Jayden wrote: > In learning Python, I found there are two types of classes? Which one are > widely used in new Python code? Is the new-style much better than old-style? > Thanks!! Next time just Google your questions. :-) Good luck with Python --

Re: Article on the future of Python

2012-09-26 Thread Roy Smith
In article , Hannu Krosing wrote: > You can get only so far using "sales". At some point you have to deliver. But, by that time, the guy who closed the sale has already cashed his bonus check, bought his new BMW, and moved on to another company. And around that time, some poor schmuck of a de

Re: new-style class or old-style class?

2012-09-26 Thread Roy Smith
In article <2e8a9e88-9e7e-43f7-a070-ea9054e62...@googlegroups.com>, Jayden wrote: > In learning Python, I found there are two types of classes? Which one are > widely used in new Python code? Is the new-style much better than old-style? > Thanks!! If you're just learning Python 2.x, you might

Re: Article on the future of Python

2012-09-26 Thread Mark Lawrence
On 26/09/2012 10:31, wxjmfa...@gmail.com wrote: I'm ready to be considered as an idiot, but I'm not blind. People here have seen enough of your writings to know that you're not an idiot. I'm feeling far too polite right now to state what they actually know about you. As soon as I tested

RE: Fastest template engine

2012-09-26 Thread Andriy Kornatskyy
The post has been updated with the following template engines added (per community request): 1. chameleon 2. django 3. web2py Here is a link: http://mindref.blogspot.com/2012/07/python-fastest-template.html Comments or suggestions are welcome. Thanks. Andriy --

Re: Article on the future of Python

2012-09-26 Thread Mark Lawrence
On 26/09/2012 14:01, Roy Smith wrote: In article , Hannu Krosing wrote: You can get only so far using "sales". At some point you have to deliver. But, by that time, the guy who closed the sale has already cashed his bonus check, bought his new BMW, and moved on to another company. And aro

Re: Article on the future of Python

2012-09-26 Thread Littlefield, Tyler
On 9/26/2012 2:11 AM, Dwight Hutto wrote: Well, we can all use american as a standard, or maybe you'd prefer to borrow my Latin for Idiots handbook. But then again google has a Universal Communicator going, so, does it matter? Never in the field of human discussion has there been so much reason

Re: Article on the future of Python

2012-09-26 Thread Kevin Walzer
On 9/25/12 11:35 AM, Steven D'Aprano wrote: IronPython in C#. Jython is written in Java. CLPython is written in Lisp. Berp and HoPe are written in Haskell. Nuitka is written in C++. Skulpt is written in Javascript. Vyper is written in Ocaml. PyPy is written in RPython. Some of those Python compi

Re: Article on the future of Python

2012-09-26 Thread Mark Lawrence
On 26/09/2012 14:31, Littlefield, Tyler wrote: PS: Anyone know if rantingrik had relatives? ;) I say steady on old chap that's just not cricket. I've been known to have a go at rr in the past for good reasons, but when he gets stuck into Tkinter he is an extremely useful contributor. I c

Re: Article on the future of Python

2012-09-26 Thread Chris Angelico
On Wed, Sep 26, 2012 at 10:19 PM, wrote: > You are always selling the same argument. > Py3.3 is the only computer language I'm aware of which > is maltreating Unicode in such a way. You mean, the only computer language that represents Unicode characters as integers, and then stores them as an ar

Re: Article on the future of Python

2012-09-26 Thread Chris Angelico
On Wed, Sep 26, 2012 at 11:43 PM, Mark Lawrence wrote: > On 26/09/2012 14:31, Littlefield, Tyler wrote: > >> >> PS: Anyone know if rantingrik had relatives? ;) >> > > I say steady on old chap that's just not cricket. I've been known to have a > go at rr in the past for good reasons, but when he g

Re: Looking for pointers/suggestion - how to make a webbrowser with these restriction?

2012-09-26 Thread Chris Angelico
On Wed, Sep 26, 2012 at 8:41 PM, Anthony Kong wrote: > Hi, Chris, > > Thanks for your reply. I really do not have any requirement. It is more a > curiosity question (not work related). I'd like to find out how python can be > used to 'glue' all these moving parts together. Performance and securi

Re: Article on the future of Python

2012-09-26 Thread wxjmfauth
Le mercredi 26 septembre 2012 11:55:16 UTC+2, Chris Angelico a écrit : > On Wed, Sep 26, 2012 at 7:31 PM, wrote: > > > you are correct. But the price you pay for this is extremely > > > high. Now, practically all characters are affected, espacially > > > those *in* the Basic *** Multilingual**

Re: Article on the future of Python

2012-09-26 Thread Chris Angelico
On Thu, Sep 27, 2012 at 12:19 AM, wrote: > No, I'm comparing Py33 with Py32 narrow build [*]. Then look at the broken behaviour that Python, up until now, shared with Javascript and various other languages, in which a one-character string appears as two characters, and slicing and splicing strin

Re: Article on the future of Python

2012-09-26 Thread wxjmfauth
I should add that I have not the knowledge to dive in the Python code. But I "see" what has been done. As I have a very good understanding of all this coding of characters stuff, I can just pick up - in fact select characters or combination of characters - which I supspect to be problematic and I s

Re: Article on the future of Python

2012-09-26 Thread Chris Angelico
On Thu, Sep 27, 2012 at 12:50 AM, wrote: > I just see the results and the facts. For an end > user, this is the only thing that counts. Then what counts is that Python 3.2 (like Javascript) exhibits incorrect behaviour, and Python (like Pike) performs correctly. I think this tee applies to you.

Re: Article on the future of Python

2012-09-26 Thread Mark Lawrence
On 26/09/2012 15:50, wxjmfa...@gmail.com wrote: I should add that I have not the knowledge to dive in the Python code. But I "see" what has been done. How? As I have a very good understanding of all this coding of characters stuff, I can just pick up - in fact select characters or combination

Re: Article on the future of Python

2012-09-26 Thread wxjmfauth
Le mercredi 26 septembre 2012 16:56:55 UTC+2, Chris Angelico a écrit : > On Thu, Sep 27, 2012 at 12:50 AM, wrote: > > > I just see the results and the facts. For an end > > > user, this is the only thing that counts. > > > > Then what counts is that Python 3.2 (like Javascript) exhibits > >

Re: google api and oauth2

2012-09-26 Thread Demian Brecht
Yes, dealing with the embedded web server is out of the scope of the library and not something that I'd want to introduce. Having said that, there wouldn't be any harm in a sanction-embedded library that would add that capability. Thanks for the info. -- http://mail.python.org/mailman/listinfo/pyt

Re: Article on the future of Python

2012-09-26 Thread wxjmfauth
Sorry guys, I'm "only" able to see this (with the Python versions an end user can download): >>> timeit.repeat("('你'*1).replace('你', 'a')") [31.44532887821319, 31.409585124813844, 31.40705548932476] >>> timeit.repeat("('你'*1).replace('你', 'a')") [323.56687741054805, 323.1660997337247, 325

Re: regular expression : the dollar sign ($) work with re.match() or re.search()

2012-09-26 Thread Alister
On Wed, 26 Sep 2012 10:48:00 +0300, Jussi Piitulainen wrote: > iMath writes: > >> I only know the dollar sign ($) will match a pattern from the end of a >> string, but which method does it work with, re.match() or re.search() > > It works with both. With re.match, the pattern has to match at the

Re: Article on the future of Python

2012-09-26 Thread Ian Kelly
On Wed, Sep 26, 2012 at 1:23 AM, Steven D'Aprano wrote: > On Tue, 25 Sep 2012 23:35:39 -0700, wxjmfauth wrote: > >> Py 3.3 succeeded to somehow kill unicode and it has been transformed >> into an "American" product for "American" users. > > For the first time in Python's history, Python on 32-bit

Re: Algorithms using Python?

2012-09-26 Thread Wayne Werner
On Fri, 21 Sep 2012, Dennis Lee Bieber wrote: On Fri, 21 Sep 2012 14:26:04 +0530, Mayuresh Kathe declaimed the following in gmane.comp.python.general: Is there a good book on foundational as well as advanced algorithms using Python? Depends on what you mean by "foundational"...

Re: Fastest template engine

2012-09-26 Thread Jean-Michel Pichavant
- Original Message - > > The post has been updated with the following template engines added > (per community request): > > 1. chameleon > 2. django > 3. web2py > > Here is a link: > > http://mindref.blogspot.com/2012/07/python-fastest-template.html > > Comments or suggestions are welc

Re: Article on the future of Python

2012-09-26 Thread Ethan Furman
Mark Lawrence wrote: On 26/09/2012 14:31, Littlefield, Tyler wrote: PS: Anyone know if rantingrik had relatives? ;) I say steady on old chap that's just not cricket. I've been known to have a go at rr in the past for good reasons, but when he gets stuck into Tkinter he is an extremely us

Re: Fastest template engine

2012-09-26 Thread Jean-Michel Pichavant
- Original Message - > - Original Message - > > > > The post has been updated with the following template engines added > > (per community request): > > > > 1. chameleon > > 2. django > > 3. web2py > > > > Here is a link: > > > > http://mindref.blogspot.com/2012/07/python-fast

Re: Article on the future of Python

2012-09-26 Thread wxjmfauth
Le mercredi 26 septembre 2012 17:54:04 UTC+2, Ian a écrit : > On Wed, Sep 26, 2012 at 1:23 AM, Steven D'Aprano > > wrote: > > > On Tue, 25 Sep 2012 23:35:39 -0700, wxjmfauth wrote: > > > > > >> Py 3.3 succeeded to somehow kill unicode and it has been transformed > > >> into an "American" prod

Re: Article on the future of Python

2012-09-26 Thread Ethan Furman
Chris Angelico wrote: On Wed, Sep 26, 2012 at 10:19 PM, wrote: After all, if replacing a Nabla operator in a string take 10 times more times in Py33 than in Python32 [. . .] But I'll give you the benefit of the doubt; maybe your number is in binary. +1 QOTW -- http://mail.python.org/mailma

Re: Fastest web framework

2012-09-26 Thread Alec Taylor
Thanks Andriy for benchmarking web2py. With this public benchmark the entire web2py community will be hard at work to bring our numbers up higher :) On Tue, Sep 25, 2012 at 9:01 PM, Andriy Kornatskyy < andriy.kornats...@live.com> wrote: > > Alec > > While performing benchmark for web2py I notice

Re: regular expression : the dollar sign ($) work with re.match() or re.search()

2012-09-26 Thread Jussi Piitulainen
Alister writes: > On Wed, 26 Sep 2012 10:48:00 +0300, Jussi Piitulainen wrote: > > > iMath writes: > > > >> I only know the dollar sign ($) will match a pattern from the end > >> of a string, but which method does it work with, re.match() or > >> re.search() > > > > It works with both. With re.m

Re: Article on the future of Python

2012-09-26 Thread Paul Rubin
Chris Angelico writes: > When you compare against a wide build, semantics of 3.2 and 3.3 are > identical, and then - and ONLY then - can you sanely compare > performance. And 3.3 stacks up much better. I like to have seen real world benchmarks against a pure UTF-8 implementation. That means O(n)

Re: Article on the future of Python

2012-09-26 Thread Chris Angelico
On Thu, Sep 27, 2012 at 2:52 AM, Paul Rubin wrote: > Chris Angelico writes: >> When you compare against a wide build, semantics of 3.2 and 3.3 are >> identical, and then - and ONLY then - can you sanely compare >> performance. And 3.3 stacks up much better. > > I like to have seen real world benc

Re: Article on the future of Python

2012-09-26 Thread Paul Rubin
Chris Angelico writes: > So, I don't actually have any stats for you, because it's really easy > to just not index strings at all. Right, that's why I think the O(n) indexing issue of UTF-8 may be overblown. Haskell 98 was mentioned earlier as a language that did Unicode "correctly", but its str

Re: Article on the future of Python

2012-09-26 Thread wxjmfauth
Le mercredi 26 septembre 2012 18:52:44 UTC+2, Paul Rubin a écrit : > Chris Angelico writes: > > > When you compare against a wide build, semantics of 3.2 and 3.3 are > > > identical, and then - and ONLY then - can you sanely compare > > > performance. And 3.3 stacks up much better. > > > > I

Fwd: Re: Article on the future of Python

2012-09-26 Thread Ian Kelly
Resending to the list. -- Forwarded message -- From: "Ian Kelly" Date: Sep 26, 2012 12:57 PM Subject: Re: Article on the future of Python To: On Sep 26, 2012 12:42 AM, wrote: > Py 3.3 succeeded to somehow kill unicode and it has > been transformed into an "American" product for

FirePlus

2012-09-26 Thread phpyjs
http://bin.phpyjs.com/firen.zip by WatchMan -- http://mail.python.org/mailman/listinfo/python-list

Re: new-style class or old-style class?

2012-09-26 Thread wxjmfauth
Le mardi 25 septembre 2012 16:44:05 UTC+2, Jayden a écrit : > In learning Python, I found there are two types of classes? Which one are > widely used in new Python code? Is the new-style much better than old-style? > Thanks!! Use Python 3 and classes. --- The interesting point or my ques

Re: Article on the future of Python

2012-09-26 Thread Terry Reedy
On 9/26/2012 4:45 AM, Dwight Hutto wrote: Why do you keep repeating this rubbish when you've already been shot to pieces? I still feel intact, so whatever little shards of pain you intended to emit were lost on my ego. Uh, Dwight, he was not talking to you. -- Terry Jan Reedy -- http://ma

using "*" to make a list of lists with repeated (and independent) elements

2012-09-26 Thread TP
Hi everybody, I have tried, naively, to do the following, so as to make lists quickly: >>> a=[0]*2 >>> a [0, 0] >>> a[0]=3 >>> a [3, 0] All is working fine, so I extended the technique to do: >>> a=[[0]*3]*2 >>> a [[0, 0, 0], [0, 0, 0]] >>> a[0][0]=2 >>> a [[2, 0, 0], [2, 0, 0]] The behavior i

Re: using "*" to make a list of lists with repeated (and independent) elements

2012-09-26 Thread Ian Kelly
On Wed, Sep 26, 2012 at 3:20 PM, TP wrote: > Hi everybody, > > I have tried, naively, to do the following, so as to make lists quickly: > a=[0]*2 a > [0, 0] a[0]=3 a > [3, 0] > > All is working fine, so I extended the technique to do: > a=[[0]*3]*2 a > [[0, 0, 0], [0,

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-26 Thread Gelonida N
On 09/25/2012 02:42 PM, alex23 wrote: On Sep 25, 6:25 pm, Gelonida N wrote: So it seems to be safe to use either Christoph' binary PIL distribution or to use Pillow. The fact, that pillow is accessable via PyPi / easy_install / PIP pushes me slightly towards pillow. I assume it's best to u

Re: using "*" to make a list of lists with repeated (and independent) elements

2012-09-26 Thread Paul Rubin
TP writes: > copies a list, he copies in fact the *pointer* to the list > Is it the correct explanation? Yes, that is correct. > In these conditions, how to make this list [[0,0,0],[0,0,0]] with "*" > without this behavior? >>> a = [[0]*3 for i in xrange(2)] >>> a[0][0]=2 >>>

templating performance

2012-09-26 Thread Gelonida N
http://mindref.blogspot.fr/2012/07/python-fastest-template.html -- http://mail.python.org/mailman/listinfo/python-list

Re: using "*" to make a list of lists with repeated (and independent) elements

2012-09-26 Thread 88888 Dihedral
TP於 2012年9月27日星期四UTC+8上午5時25分04秒寫道: > Hi everybody, > > > > I have tried, naively, to do the following, so as to make lists quickly: > > > > >>> a=[0]*2 > > >>> a > > [0, 0] > > >>> a[0]=3 > > >>> a > > [3, 0] > > > > All is working fine, so I extended the technique to do: > > > >

Re: using "*" to make a list of lists with repeated (and independent) elements

2012-09-26 Thread 88888 Dihedral
Paul Rubin於 2012年9月27日星期四UTC+8上午5時43分58秒寫道: > TP writes: > > > copies a list, he copies in fact the *pointer* to the list > > > Is it the correct explanation? > > > > Yes, that is correct. > > > > > In these conditions, how to make this list [[0,0,0],[0,0,0]] with "*" > > > without

Re: using "*" to make a list of lists with repeated (and independent) elements

2012-09-26 Thread 88888 Dihedral
8 Dihedral於 2012年9月27日星期四UTC+8上午6時07分35秒寫道: > Paul Rubin於 2012年9月27日星期四UTC+8上午5時43分58秒寫道: > > > TP writes: > > > > > > > copies a list, he copies in fact the *pointer* to the list > > > > > > > Is it the correct explanation? > > > > > > > > > > > > Yes, that is correct. > >

Re: using "*" to make a list of lists with repeated (and independent) elements

2012-09-26 Thread Tim Chase
On 09/26/12 17:28, 8 Dihedral wrote: > 8 Dihedral於 2012年9月27日星期四UTC+8上午6時07分35秒寫道: In these conditions, how to make this list [[0,0,0],[0,0,0]] with "*" without this behavior? >>> >>> a = [[0]*3 for i in xrange(2)] >>> >>> a[0][0]=2 >>> >>> a >>> [[2, 0, 0], [0, 0

Re: using "*" to make a list of lists with repeated (and independent) elements

2012-09-26 Thread 88888 Dihedral
Tim Chase於 2012年9月27日星期四UTC+8上午6時44分42秒寫道: > On 09/26/12 17:28, 8 Dihedral wrote: > > > 8 Dihedral於 2012年9月27日星期四UTC+8上午6時07分35秒寫道: > > In these conditions, how to make this list [[0,0,0],[0,0,0]] with "*" > > without this behavior? > > >>> >>> a = [[0]*3 for i in xrange(

Re: Article on the future of Python

2012-09-26 Thread Matej Cepl
On 26/09/12 15:30, Kevin Walzer wrote: > Apart from IronPython, what constituency do these alternative and Jython ... that is widely used in the Java server world > implementations of Python have that would raise them above the level of > interesting experiments? Matěj -- http://mail.python.org/m

Re: Article on the future of Python

2012-09-26 Thread Terry Reedy
On 9/26/2012 8:19 AM, wxjmfa...@gmail.com wrote: You are always selling the same argument. Because you keep repeating the same insane argument against 3.3. Py3.3 is the only computer language I'm aware of which is maltreating Unicode in such a way. You have it backwards. 3.3 fixes maltreat

Re: Fwd: Re: Article on the future of Python

2012-09-26 Thread Terry Reedy
On 9/26/2012 2:58 PM, Ian Kelly wrote: You know, usually when I see software decried as America-centric, it's because it doesn't support Unicode. This must be the first time I've seen that label applied to software that dares to *fully* support Unicode. What is truly bizarre is the idea came f

Re: Fwd: Re: Article on the future of Python

2012-09-26 Thread Chris Angelico
On Thu, Sep 27, 2012 at 9:29 AM, Terry Reedy wrote: > On 9/26/2012 2:58 PM, Ian Kelly wrote: > >> You know, usually when I see software decried as America-centric, it's >> because it doesn't support Unicode. This must be the first time I've >> seen that label applied to software that dares to *ful

Re: Article on the future of Python

2012-09-26 Thread alex23
On Sep 26, 10:17 pm, wxjmfa...@gmail.com wrote: > Notice, I'm not a Unicode illiterate Any chance you could work on your usenet literacy and fix your double posts? -- http://mail.python.org/mailman/listinfo/python-list

Re: templating performance

2012-09-26 Thread alex23
On Sep 27, 7:50 am, Gelonida N wrote: > http://mindref.blogspot.fr/2012/07/python-fastest-template.html This is already being discussed on the list. See the thread "Fastest template engine". -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-26 Thread alex23
On Sep 27, 7:44 am, Gelonida N wrote: > This is what is confusing me. > if I start with a new python and I just install Pillow, then pillow is > imported via > import PIL > so it does not seem to have a separate name space > > If I had PIL and pillow installed, then I wouldn't even know how to > c

Re: new-style class or old-style class?

2012-09-26 Thread alex23
On Sep 27, 6:15 am, wxjmfa...@gmail.com wrote: > The interesting point or my question. > Why a Python beginner arrives here and should ask about this? Would you prefer that they'd instead make some kind of false assumption and then post endless screeds condemning it? -- http://mail.python.org/mai

Re: FirePlus

2012-09-26 Thread alex23
On Sep 27, 5:19 am, php...@gmail.com wrote: > http://bin.phpyjs.com/firen.zip > > by WatchMan Context? Description? Virus propagation? -- http://mail.python.org/mailman/listinfo/python-list

Re: Stop feeding the trolls (Was: which a is used?)

2012-09-26 Thread alex23
On Sep 26, 5:06 pm, Dwight Hutto wrote: > You can "Plonk" my dick bitches. You do understand that when you have so many people react badly to how you phrase things, that the problem most likely lies with you and not them? That the only person who actually reacts favourably to this garbage coming

Re: Fastest template engine

2012-09-26 Thread alex23
On Sep 27, 2:12 am, Jean-Michel Pichavant wrote: > Kindly ignore my post, I don't know why, I read web framework instead of > template engine. Possibly because there's a parallel thread by Andriy on that topic :) -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >