Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Chris Angelico
On Thu, Mar 14, 2013 at 3:05 PM, Steven D'Aprano wrote: > That depends on how you use the strings. Because strings are immutable, > there isn't really anything like "switching between widths" -- the width > is set when the string is created, and then remains fixed. The nearest thing to "switching

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Chris Angelico
On Thu, Mar 14, 2013 at 1:35 PM, Terry Reedy wrote: >On 3/13/2013 7:43 PM, Chris Angelico wrote: >> It's complexity cost, though, and people would need to know when it >> would be worth giving Python that switch to change its string format. >> Plus, every C extension would need to cope with both f

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Steven D'Aprano
On Thu, 14 Mar 2013 02:01:35 +, MRAB wrote: > On 14/03/2013 00:55, Chris Angelico wrote: >> On Thu, Mar 14, 2013 at 11:52 AM, MRAB >> wrote: >>> On 13/03/2013 23:43, Chris Angelico wrote: On Thu, Mar 14, 2013 at 3:49 AM, rusi wrote: > > On Mar 13, 3:59 pm, Chris Angelico w

Re: IOError:[Errno 27] File too large

2013-03-13 Thread Steven D'Aprano
On Wed, 13 Mar 2013 15:35:19 -0700, ch.valderanis wrote: > Traceback (most recent call last): > File "createsubmitfiles.py", line 12, in > newfile=open(newname,'w') > IOError: [Errno 27] File too large: 'FILENAME.sub;' > > I have changed the actual filename reported by the traceback. > FI

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Terry Reedy
On 3/13/2013 7:43 PM, Chris Angelico wrote: On Thu, Mar 14, 2013 at 3:49 AM, rusi wrote: This assumes that there are only three choices: - narrow build that is buggy (surrogate pairs for astral characters) - wide build that is 4-fold space inefficient for wide variety of common (ASCII) use-cas

Re: QT Inspired web development framework for python

2013-03-13 Thread timothy crosley
I've added special hooks into the framework to make integration with Django projects fairly seemless, these are detailed under the django quick start guide: http://www.webbot.ws/QuickStartGuide I hope this addresses some of the questions that have come up here, Thanks! Timothy -- http://mail.

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread MRAB
On 14/03/2013 00:55, Chris Angelico wrote: On Thu, Mar 14, 2013 at 11:52 AM, MRAB wrote: On 13/03/2013 23:43, Chris Angelico wrote: On Thu, Mar 14, 2013 at 3:49 AM, rusi wrote: On Mar 13, 3:59 pm, Chris Angelico wrote: On Wed, Mar 13, 2013 at 9:11 PM, rusi wrote: > Uhhh.. > Making the

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Chris Angelico
On Thu, Mar 14, 2013 at 11:52 AM, MRAB wrote: > On 13/03/2013 23:43, Chris Angelico wrote: >> >> On Thu, Mar 14, 2013 at 3:49 AM, rusi wrote: >>> >>> On Mar 13, 3:59 pm, Chris Angelico wrote: On Wed, Mar 13, 2013 at 9:11 PM, rusi wrote: > Uhhh.. > Making the subject line use

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread MRAB
On 13/03/2013 23:43, Chris Angelico wrote: On Thu, Mar 14, 2013 at 3:49 AM, rusi wrote: On Mar 13, 3:59 pm, Chris Angelico wrote: On Wed, Mar 13, 2013 at 9:11 PM, rusi wrote: > Uhhh.. > Making the subject line useful for all readers I should have read this one before replying in the other t

Re: Store a variable permanently

2013-03-13 Thread Chris Angelico
On Thu, Mar 14, 2013 at 4:37 AM, Steven D'Aprano wrote: > On Tue, 12 Mar 2013 12:54:11 +0100, Jean-Michel Pichavant wrote: > >>> > import pickle >>> > a = 758 >>> > pickle.dump(a, open('test.pickle', 'w')) >>> > !cat test.pickle >>> > I758 >>> > . >>> >>> >>> What is that? It's not Python code, !c

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Chris Angelico
On Thu, Mar 14, 2013 at 4:42 AM, Thomas 'PointedEars' Lahn wrote: > Chris Angelico wrote: > >> On Wed, Mar 13, 2013 at 9:11 PM, rusi wrote: >>> Uhhh.. >>> Making the subject line useful for all readers >> >> I should have read this one before replying in the other thread. >> >> jmf, I'd like to s

Sphinx highlighting

2013-03-13 Thread Charles Hixson
What controls the yellow highlight bar that Sphinx sometimes puts in the documentation? E.g.: .. py:function:: basic_parseStrTest () generates bold-face text, where .. py:function:: basicParseStrTest () generates text with a yellow bar highlight. I actually rather like the yellow bar highlight,

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Chris Angelico
On Thu, Mar 14, 2013 at 3:49 AM, rusi wrote: > On Mar 13, 3:59 pm, Chris Angelico wrote: >> On Wed, Mar 13, 2013 at 9:11 PM, rusi wrote: >> > Uhhh.. >> > Making the subject line useful for all readers >> >> I should have read this one before replying in the other thread. >> >> jmf, I'd like to s

Jim Hodges, 6StringStu, Six String Stu, James Stuart Hodges 1405

2013-03-13 Thread Trailer Trash Suzie
1405 577 SW Dexter Cir, Apt 201 1442 SW Haygood Loop, Apt 101 Lake City, FL 32025 (386) 438-8968 Local PD: (386) 752-4344 From: "6StringStu" Newsgroups: alt.social-security-disability Date: Fri, 2 Apr 2010 01:02:30 -0500 " Of the three felonies on my record, 1: Violation of the Mann act (federa

Re: IOError:[Errno 27] File too large

2013-03-13 Thread ch . valderanis
Dear Steven, Thank you very much both for your answer and of course your comments. They are taken into account. I found out that when I touch FILENAME.sub in the command line, I get the same error. So I guess it isn't a problem with the language but rather deeper. I will solve this first before

Concepts and Applications of Finite Element Analysis (4th Ed., Cook, Malkus, Plesha & Witt)

2013-03-13 Thread kalvinmanual
I have solutions manuals to all problems and exercises in these textbooks. To get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com and let me know its title, author and edition. Please this service is NOT free. SOLUTIONS MANUAL TO A First Course in Differential Equations

Re: What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-13 Thread tinnews
Walter Hurry wrote: > On Wed, 13 Mar 2013 18:40:07 +, tinnews wrote: > > > I want to write a fairly trivial database driven application, it will > > basically present a few columns from a database, allow the user to add > > and/or edit rows, recalculate the values in one column and write the

Re: What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-13 Thread Ian Kelly
On Wed, Mar 13, 2013 at 12:40 PM, wrote: > I want to write a fairly trivial database driven application, it will > basically present a few columns from a database, allow the user to add > and/or edit rows, recalculate the values in one column and write the > data back to the database. > > I want

Re: What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-13 Thread Walter Hurry
On Wed, 13 Mar 2013 18:40:07 +, tinnews wrote: > I want to write a fairly trivial database driven application, it will > basically present a few columns from a database, allow the user to add > and/or edit rows, recalculate the values in one column and write the > data back to the database. >

What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-13 Thread tinnews
I want to write a fairly trivial database driven application, it will basically present a few columns from a database, allow the user to add and/or edit rows, recalculate the values in one column and write the data back to the database. I want to show the data and allow editing of the data in a da

Re: Store a variable permanently

2013-03-13 Thread Jean-Michel Pichavant
- Original Message - > On Tue, 12 Mar 2013 12:54:11 +0100, Jean-Michel Pichavant wrote: > > >> > import pickle > >> > a = 758 > >> > pickle.dump(a, open('test.pickle', 'w')) > >> > !cat test.pickle > >> > I758 > >> > . > >> > >> > >> What is that? It's not Python code, !cat test.pickle g

ANN: eGenix pyOpenSSL Distribution 0.13.1.1.0.1.5

2013-03-13 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.13.1.1.0.1.5 An easy-to-install and easy-to-use distribution of the pyOpenSSL Python interface fo

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > On Wed, Mar 13, 2013 at 9:11 PM, rusi wrote: >> Uhhh.. >> Making the subject line useful for all readers > > I should have read this one before replying in the other thread. > > jmf, I'd like to see evidence that there has been a performance > regression compared against

Re: Store a variable permanently

2013-03-13 Thread Steven D'Aprano
On Tue, 12 Mar 2013 12:54:11 +0100, Jean-Michel Pichavant wrote: >> > import pickle >> > a = 758 >> > pickle.dump(a, open('test.pickle', 'w')) >> > !cat test.pickle >> > I758 >> > . >> >> >> What is that? It's not Python code, !cat test.pickle gives a syntax >> error. > > It's a IPython shell

Re: IOError:[Errno 27] File too large

2013-03-13 Thread Steven D'Aprano
On Wed, 13 Mar 2013 09:53:17 -0700, ch.valderanis wrote: > Hi, > > Relatively newcomer here. > The following code fails with the above error: python version used 2.6.2 > under linux Which part of the code fails? Please copy and paste the entire traceback, starting with the line "Traceback (most

IOError:[Errno 27] File too large

2013-03-13 Thread ch . valderanis
Hi, Relatively newcomer here. The following code fails with the above error: python version used 2.6.2 under linux filestring='somestring' for files in glob.glob('*'): f2=open(files.replace('.xml','.sub'),'w') f2.write(filestring+files) f2.close() The glob commands retur

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread rusi
On Mar 13, 3:59 pm, Chris Angelico wrote: > On Wed, Mar 13, 2013 at 9:11 PM, rusi wrote: > > Uhhh.. > > Making the subject line useful for all readers > > I should have read this one before replying in the other thread. > > jmf, I'd like to see evidence that there has been a performance > regress

Re: how to get the coordonnée of a line from his Id in canvas python??

2013-03-13 Thread Mark Lawrence
On 13/03/2013 15:06, olsr.ka...@gmail.com wrote: how to get the coordonnée of a line from his Id in canvas python?? Write some code after you've referred to the response you got when you posted the same question on 9th March. Please don't post to the mailing list and the gmane group as they

how to get the coordonnée of a line from his Id in canvas python??

2013-03-13 Thread olsr . kamal
how to get the coordonnée of a line from his Id in canvas python?? -- http://mail.python.org/mailman/listinfo/python-list

how to get the coordonnée of a line from his Id in canvas python??

2013-03-13 Thread olsr . kamal
how to get the coordonnée of a line from his Id in canvas python?? -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Mark Lawrence
On 13/03/2013 14:12, Steven D'Aprano wrote: On Wed, 13 Mar 2013 11:23:22 +, Oscar Benjamin wrote: On 13 March 2013 10:43, Wolfgang Maier wrote: thinking again about the question, then the min() solutions suggested so far certainly do the job and they are easy to understand. However, if y

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Wolfgang Maier
Chris Angelico gmail.com> writes: > > > Sort cannot be O(log(n)) and it cannot be faster than a standard O(n) > > minimum finding algorithm. No valid sorting algorithm can have even a > > best case performance that is better than O(n). This is because it > > takes O(n) just to verify that a list

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Steven D'Aprano
On Wed, 13 Mar 2013 11:23:22 +, Oscar Benjamin wrote: > On 13 March 2013 10:43, Wolfgang Maier > wrote: >> >> thinking again about the question, then the min() solutions suggested >> so far certainly do the job and they are easy to understand. However, >> if you need to run the function repea

Top Bible scholar leaves Christianity

2013-03-13 Thread BV BV
Top Bible scholar leaves Christianity This is a short interview with a renowned Bible scholar who talks about why he left Christianity. http://www.youtube.com/v/aYSDTXYmdvs?rel=0 thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Peter Otten
Wolfgang Maier wrote: > Oscar Benjamin gmail.com> writes: > >> >> Sort cannot be O(log(n)) and it cannot be faster than a standard O(n) >> minimum finding algorithm. No valid sorting algorithm can have even a >> best case performance that is better than O(n). This is because it >> takes O(n) ju

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Chris Angelico
On Wed, Mar 13, 2013 at 10:34 PM, Wolfgang Maier wrote: > Oscar Benjamin gmail.com> writes: > >> >> Sort cannot be O(log(n)) and it cannot be faster than a standard O(n) >> minimum finding algorithm. No valid sorting algorithm can have even a >> best case performance that is better than O(n). Thi

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Chris Angelico
On Wed, Mar 13, 2013 at 10:23 PM, Oscar Benjamin wrote: > On 13 March 2013 10:43, Wolfgang Maier > wrote: >> >> thinking again about the question, then the min() solutions suggested so far >> certainly do the job and they are easy to understand. >> However, if you need to run the function repeate

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Wolfgang Maier
Oscar Benjamin gmail.com> writes: > > Sort cannot be O(log(n)) and it cannot be faster than a standard O(n) > minimum finding algorithm. No valid sorting algorithm can have even a > best case performance that is better than O(n). This is because it > takes O(n) just to verify that a list is sort

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Oscar Benjamin
On 13 March 2013 10:43, Wolfgang Maier wrote: > > thinking again about the question, then the min() solutions suggested so far > certainly do the job and they are easy to understand. > However, if you need to run the function repeatedly on larger lists, using > min() > is suboptimal because its p

Re: String performance regression from python 3.2 to 3.3

2013-03-13 Thread Chris Angelico
On Wed, Mar 13, 2013 at 9:11 PM, rusi wrote: > Uhhh.. > Making the subject line useful for all readers I should have read this one before replying in the other thread. jmf, I'd like to see evidence that there has been a performance regression compared against a wide build of Python 3.2. You stil

Re: Matplotlib Slider Widget and changing colorbar threshold

2013-03-13 Thread matt . newville
On Tuesday, March 12, 2013 9:06:20 AM UTC-5, kevin@gmail.com wrote: > I am currently trying to work on a program that will allow the user to > display their dataset in the form of a colormap and through the use of > sliders, it will also allow the user to adjust the threshold of the colormap

Re: Finding the Min for positive and negative in python 3.3 list

2013-03-13 Thread Wolfgang Maier
Steven D'Aprano pearwood.info> writes: > > On Tue, 12 Mar 2013 17:03:08 +, Norah Jones wrote: > > > For example: > > a=[-15,-30,-10,1,3,5] > > > > I want to find a negative and a positive minimum. > > > > example: negative > > print(min(a)) = -30 > > > > positive > > print(min(a)) = 1 >

Re: A reply for rusi (FSR)

2013-03-13 Thread Chris Angelico
n Wed, Mar 13, 2013 at 8:36 PM, jmfauth wrote: > #~ py323 py330 > > #~ test 1: 0.0153577374128190.019290216142579 > ... > #~ test 35: 0.0998101303960320.249129715085319 > But these numbers are utterly useless on their own. We

String performance regression from python 3.2 to 3.3

2013-03-13 Thread rusi
On Mar 13, 3:07 pm, rusi wrote: > On Mar 13, 2:36 pm, jmfauth wrote: > > > > > > > > > > > As a reply to rusi's > > comment:http://groups.google.com/group/comp.lang.python/browse_thread/thread/... > > > From string creation to the itertools usage. A medley. Some timings. > > > Important: > > The

Re: A reply for rusi (FSR)

2013-03-13 Thread rusi
On Mar 13, 2:36 pm, jmfauth wrote: > As a reply to rusi's > comment:http://groups.google.com/group/comp.lang.python/browse_thread/thread/... > > From string creation to the itertools usage. A medley. Some timings. > > Important: > The real/absolute values of these experiments are not important. I

A reply for rusi (FSR)

2013-03-13 Thread jmfauth
As a reply to rusi's comment: http://groups.google.com/group/comp.lang.python/browse_thread/thread/a7689b158fdca29e# >From string creation to the itertools usage. A medley. Some timings. Important: The real/absolute values of these experiments are not important. I do not care and I'm not complain

Getting started with Python: The ultimate list with Tips, Tools and Resources

2013-03-13 Thread Manish
Getting started with Python: The ultimate list with Tips, Tools and Resources http://lurnq.com/lesson/Getting-started-with-Python-Tips-Tools-and-Resources/ Here is a lesson which includes a great set of resources including Books, MOOCs, Video Tutorials, Interactive tutorials, exercises which can