Re: Performance of int/long in Python 3

2013-04-02 Thread Chris Angelico
On Wed, Apr 3, 2013 at 5:29 PM, Neil Hodgson wrote: > Chris Angelico: > > >> I'd be curious to know the sorts of characters used. Given that it's >> probably a narrow-vs-wide Python difference we're talking here, the >> actual distribution of codepoints may well make a difference. > > >I was g

Re: Performance of int/long in Python 3

2013-04-02 Thread Neil Hodgson
Chris Angelico: I'd be curious to know the sorts of characters used. Given that it's probably a narrow-vs-wide Python difference we're talking here, the actual distribution of codepoints may well make a difference. I was going to upload it but then I thought of potential client -confidenti

Re: Performance of int/long in Python 3

2013-04-02 Thread Neil Hodgson
Terry Jan Reedy: What system *and* what compiler and compiler options. Unless 3.2 and 3.3 are both compiler with the same compiler and settings, we do not know the source of the difference. The version signatures are: 3.2.3 (default, Apr 11 2012, 07:15:24) [MSC v.1500 32 bit (Intel)] 3.3.

Re: Performance of int/long in Python 3

2013-04-02 Thread Chris Angelico
On Wed, Apr 3, 2013 at 4:32 PM, Steven D'Aprano wrote: > On Wed, 03 Apr 2013 14:31:03 +1100, Neil Hodgson wrote: > >> Sorting a million string list (all the file paths on a particular >> computer) went from 0.4 seconds with Python 3.2 to 0.78 with 3.3 so >> we're out of the 'not noticeable by

Re: Performance of int/long in Python 3

2013-04-02 Thread Chris Angelico
On Wed, Apr 3, 2013 at 3:03 PM, Neil Hodgson wrote: > rusi wrote: >"Every program attempts to expand until it can read mail. Those programs > which cannot so expand are replaced by ones which can." In my personal experience, it's calculators. I put command-line calculators into *everything*..

Re: Performance of int/long in Python 3

2013-04-02 Thread Terry Jan Reedy
On 4/3/2013 1:32 AM, Steven D'Aprano wrote: On Wed, 03 Apr 2013 14:31:03 +1100, Neil Hodgson wrote: Sorting a million string list (all the file paths on a particular computer) went from 0.4 seconds with Python 3.2 to 0.78 with 3.3 so we're out of the 'not noticeable by humans' range. Perha

How to choose between ORMs?

2013-04-02 Thread Alec Taylor
SQLalchemy and Storm are a few of the popular ORMs out there. Personally I have been using web2py's DAL. Other than form generator availability, 'print as raw SQL', multiple primary keys, widgets*, `check` conditions and compatibility with OracleDB, Postgres, SQLite and some of the NoSQL systems;

Re: Performance of int/long in Python 3

2013-04-02 Thread Steven D'Aprano
On Wed, 03 Apr 2013 14:31:03 +1100, Neil Hodgson wrote: > Sorting a million string list (all the file paths on a particular > computer) went from 0.4 seconds with Python 3.2 to 0.78 with 3.3 so > we're out of the 'not noticeable by humans' range. Perhaps this is still > a 'micro-benchmark' - I

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 3, 9:03 am, Neil Hodgson wrote: > rusi wrote: > > ... > >> a 'micro-benchmark' - I'd just like to avoid adding email access to get > >> this over the threshold. > > > What does that last statement mean? > >     Its a reference to a comment by Jamie Zawinski (relatively famous > developer of

Re: Decorating functions without losing their signatures

2013-04-02 Thread Jan Riechers
On 03.04.2013 04:05, Rotwang wrote: Hi all, Here's a Python problem I've come up against and my crappy solution. Hopefully someone here can suggest something better. I want to decorate a bunch of functions with different signatures; for example, I might want to add some keyword-only arguments to

Re: Decorating functions without losing their signatures

2013-04-02 Thread Steven D'Aprano
On Wed, 03 Apr 2013 02:05:31 +0100, Rotwang wrote: > Hi all, > > Here's a Python problem I've come up against and my crappy solution. > Hopefully someone here can suggest something better. I want to decorate > a bunch of functions with different signatures; [...] > After thinking about it for a w

Re: Performance of int/long in Python 3

2013-04-02 Thread Roy Smith
In article <5f8ed721-7c89-4ffd-8f2b-21979cc33...@kk11g2000pbb.googlegroups.com>, rusi wrote: > On Apr 3, 8:31 am, Neil Hodgson wrote: > > >     Sorting a million string list (all the file paths on a particular > > computer) went from 0.4 seconds with Python 3.2 to 0.78 with 3.3 so > > we're o

Re: Performance of int/long in Python 3

2013-04-02 Thread Neil Hodgson
rusi wrote: ... a 'micro-benchmark' - I'd just like to avoid adding email access to get this over the threshold. What does that last statement mean? Its a reference to a comment by Jamie Zawinski (relatively famous developer of Netscape Navigator and other things): "Every program at

Re: Help with python code!

2013-04-02 Thread Jason Friedman
> Thanks for your replies. Just to be clear this is for a interview and they > would like me to figure out what the code does and come back with some test > cases. I don't need to code the tests, just give some high level tests. As > far as I can make out it is some system where you input your name

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 3, 8:31 am, Neil Hodgson wrote: >     Sorting a million string list (all the file paths on a particular > computer) went from 0.4 seconds with Python 3.2 to 0.78 with 3.3 so > we're out of the 'not noticeable by humans' range. Perhaps this is still > a 'micro-benchmark' - I'd just like to

Re: Performance of int/long in Python 3

2013-04-02 Thread Neil Hodgson
Ian Kelly: Micro-benchmarks like the ones you have been reporting are *useful* when it comes to determining what operations can be better optimized, but they are not *important* in and of themselves. What is important is that actual, real-world programs are not significantly slowed by these kin

Re: OSError: [Errno 127] Value too large to be stored in data type

2013-04-02 Thread Steven D'Aprano
On Tue, 02 Apr 2013 08:44:31 -0700, Chris Hulan wrote: > On Tuesday, April 2, 2013 9:52:14 AM UTC-4, Chris Hulan wrote: >> Running Python 2.3.2 on AIX >> >> getting "OSError: [Errno 127] Value too large to be stored in data >> type" >> >> when executing: >> >> os.listdir('/some/NFS/dir') >> >>

Re: executor.map() TypeError: zip argument #2 must support iteration

2013-04-02 Thread iMath
在 2013年4月1日星期一UTC+8下午3时48分34秒,Steven D'Aprano写道: > On Sun, 31 Mar 2013 21:45:21 -0700, iMath wrote: > > > > > executor.map()TypeError: zip argument #2 must support iteration > > > > > > when I run it ,just generated TypeError: zip argument #2 must support > > > iteration. can anyone help

Re: Tkinter

2013-04-02 Thread Renato Barbosa Pim Pereira
Thanks for the advices, I need now one scrollbar to roll under screen, I created the scrollbar but cant roll, please help me on this. http://pastebin.com/L6XWY6cm 2013/4/2 Jason Swails > Please keep response replies to the Python list (e.g., use 'reply all' or > just send the email to python-l

Decorating functions without losing their signatures

2013-04-02 Thread Rotwang
Hi all, Here's a Python problem I've come up against and my crappy solution. Hopefully someone here can suggest something better. I want to decorate a bunch of functions with different signatures; for example, I might want to add some keyword-only arguments to all functions that return instan

Time zone changing while Win app is running

2013-04-02 Thread CM
Although there is an answer to my concern posted on Stack Overflow[1], I thought I'd run this by the Python group to just get a read on it, since it strikes me as a concern. To summarize the issue: In an application, I have been using Python's datetime module to get the current time. But it seem

Re: Help

2013-04-02 Thread Walter Hurry
On Tue, 02 Apr 2013 02:02:58 +0100, Mark Lawrence wrote: > On 02/04/2013 00:56, Walter Hurry wrote: >> On Mon, 01 Apr 2013 15:12:20 -0700, khaosyt wrote: >> >> >> >> Sigh. Another one for the bozo bin. >> >> > I say old chap you're setting yourself up for attacks from the Python > Mailing List Po

Re: Getting USB volume serial number from inserted device on OSX

2013-04-02 Thread Ned Deily
In article , Sven wrote: > I am using Python 2.7 with pyobjc on Lion and NSNotification center to > monitor any inserted USB volumes. This works fine. [...] Since your question really is about OS X APIs and not Python or even PyObjC, you're more likely to get a meaningful answer elsewhere. Tr

Re: distutils without a compiler

2013-04-02 Thread Ned Deily
In article <515aa9bf.4010...@chamonix.reportlab.co.uk>, Robin Becker wrote: > Is there a neat way to get distutils to report compiler absence? Most windows > users don't have a compiler so building extensions usually doesn't work. > > However, python's builtin batteries would allow pre-built py

Re: Installation on Mac OSX 10.6.8 doesn't create the folder: /System/Library/Frameworks/Python.framework/Versions/2.7/

2013-04-02 Thread Ned Deily
In article , Jason Swails wrote: > On Tue, Apr 2, 2013 at 6:22 AM, kramer65 wrote: > > > Hello people, > > > > > > I installed python 2.7 on Mac OSX 10.6.8 with no problems and it is > > working fine. When I try to install Kivy however (www.kivy.org), I get an > > error saying: > > > > How

Re: Performance of int/long in Python 3

2013-04-02 Thread Lele Gaifax
jmfauth writes: > Now replace i by a char, a representent of each "subset" > of the FSR, select a method where this FST behave badly > and take a look of what happen. You insist in cherry-picking a single "method where this FST behave badly", even when it is so obviously a corner case (IMHO it i

Re: Performance of int/long in Python 3

2013-04-02 Thread Joshua Landau
The initial post posited: "The Python 3 merge of int and long has effectively penalized small-number arithmetic by removing an optimization. As we've seen from PEP 393 strings (jmf aside), there can be huge benefits from having a single type with multiple representations internally. Is there value

Getting USB volume serial number from inserted device on OSX

2013-04-02 Thread Sven
Hello, I am using Python 2.7 with pyobjc on Lion and NSNotification center to monitor any inserted USB volumes. This works fine. I've also got some ideas how to get a device's serial number, but these involve just parsing all the USB devices ('system_profiler SPUSBDataType' command). However I'd

Re: Fwd: Python subdomains https

2013-04-02 Thread Terry Jan Reedy
On 4/2/2013 12:52 PM, Terry Jan Reedy wrote: On 4/2/2013 7:05 AM, Jakub Muszynski wrote: Hi, I need to add python.org https to my company firewall policy, but I'm not allowed to add rule for https://*.python.org subdomains. Can You give me/publish list o

Re: Performance of int/long in Python 3

2013-04-02 Thread Terry Jan Reedy
On 4/2/2013 11:12 AM, jmfauth wrote: On 2 avr, 16:03, Steven D'Aprano wrote: I'm sure you didn't intend to be insulting, but some of us *have* taken JMF seriously, at least at first. His repeated overblown claims of how Python is destroying Unicode ... ... = 'usability in Python" or some va

Re: Reseller Host with Python 3 support

2013-04-02 Thread nagia . retsina
An offer someone please? -- http://mail.python.org/mailman/listinfo/python-list

Re: Help installing latest PyQT

2013-04-02 Thread D. Xenakis
Τη Τρίτη, 2 Απριλίου 2013 10:44:43 μ.μ. UTC+3, ο χρήστης Sibylle Koczian έγραψε: > Am 02.04.2013 18:10, schrieb David Robinow: > > > > > > 3)Downloaded and installed "PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe" > > > from http://www.riverbankcomputing.com/software/pyqt/download , > > >

Re: Help installing latest PyQT

2013-04-02 Thread D. Xenakis
I had also installed in the past python 2.7 . Now when im trying to run a .py, interpreter 2.7 is always being called.. (also when im right clicking and sellecting to run in IDLE, 2.7 is agai n starting instead of 3.3) so PyQt4 is crashing. Any tip to make 3.3 the default interpreter plz? -- ht

Re: Help installing latest PyQT

2013-04-02 Thread D. Xenakis
Τη Τρίτη, 2 Απριλίου 2013 6:39:07 μ.μ. UTC+3, ο χρήστης D. Xenakis έγραψε: > Hi there im trying to install PyQT (version > PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe) but i dont know how to make sure i > have installed everything correctly. I tried to find documentation about this > but most links w

Re: Performance of int/long in Python 3

2013-04-02 Thread Ian Kelly
On Tue, Apr 2, 2013 at 3:20 AM, jmfauth wrote: > It is somehow funny to see, the FSR "fails" precisely > on problems Unicode will solve/handle, eg normalization or > sorting [3]. Neither of these problems have anything to do with the FSR. Can you give us an example of normalization or sorting wh

Re: Help installing latest PyQT

2013-04-02 Thread Sibylle Koczian
Am 02.04.2013 18:10, schrieb David Robinow: On Tue, Apr 2, 2013 at 11:39 AM, D. Xenakis mailto:gouzouna...@hotmail.com>> wrote: 3)Downloaded and installed "PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe" from http://www.riverbankcomputing.com/software/pyqt/download , here: "C:\Python33" (It

Re: Python install Win 7 Problem

2013-04-02 Thread David Robinow
On Tue, Apr 2, 2013 at 12:45 PM, Joe Hill wrote: > On Tue, 2 Apr 2013 11:44:55 -0400, David Robinow > >Download the Windows executables. > > > >3.3.0 is the current version > > Is "numpy" an option that is needed (guess for math?)? > No, it's not needed to run Python. It can be useful. I only me

Re: HTTP GET REQUEST WITH PARAMETERS

2013-04-02 Thread Mark Lawrence
On 02/04/2013 19:39, io wrote: HI, everyone, how can i make a HTTP GET REQUEST using python and passing parameters? I would like to recall my script from within openoffice basic and pass parameters to it. Some of the GET or POST are here : https://www.bitstamp.net/api/ thanks for anyhelp E

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 2, 11:22 pm, jmfauth wrote: > On 2 avr, 18:57, rusi wrote: > > > > > > > > > > > On Apr 2, 8:17 pm, Ethan Furman wrote: > > > > Simmons (too many Steves!), I know you're new so don't have all the > > > history with jmf that many > > > of us do, but consider that the original post was abo

HTTP GET REQUEST WITH PARAMETERS

2013-04-02 Thread io
HI, everyone, how can i make a HTTP GET REQUEST using python and passing parameters? I would like to recall my script from within openoffice basic and pass parameters to it. Some of the GET or POST are here : https://www.bitstamp.net/api/ thanks for anyhelp -- http://mail.python.org/mailman/l

Re: Performance of int/long in Python 3

2013-04-02 Thread jmfauth
On 2 avr, 18:57, rusi wrote: > On Apr 2, 8:17 pm, Ethan Furman wrote: > > > Simmons (too many Steves!), I know you're new so don't have all the history > > with jmf that many > > of us do, but consider that the original post was about numbers, had > > nothing to do with > > characters or unicod

Re: Python install Win 7 Problem

2013-04-02 Thread balasubramanian Achuthan
Try using Activestate python. The free version would suffice your needs and it comes with a clean install. -- http://mail.python.org/mailman/listinfo/python-list

Re: L'applicazione e approvato.

2013-04-02 Thread Ghita
Su vostra richiesta, ha lasciato sul forum inviare una nuova legge. http://ftp.heljemo.com/Debito.zip?NRzXa4efa7Dut == Tel./Fax.: (070) 354 67 54 -- http://mail.python.org/mailman/listinfo/python-list

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 2, 8:12 pm, jmfauth wrote: > > Sorrry I never claimed this, I'm just seeing on how Python is becoming > less Unicode friendly. jmf: I suggest you try to use less emotionally loaded and more precise language if you want people to pay heed to your technical observations/ contributions. In pa

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 2, 8:17 pm, Ethan Furman wrote: > Simmons (too many Steves!), I know you're new so don't have all the history > with jmf that many > of us do, but consider that the original post was about numbers, had nothing > to do with > characters or unicode *in any way*, and yet jmf still felt the

Re: Fwd: Python subdomains https

2013-04-02 Thread Terry Jan Reedy
On 4/2/2013 7:05 AM, Jakub Muszynski wrote: Hi, I need to add python.org https to my company firewall policy, but I'm not allowed to add rule for https://*.python.org subdomains. Can You give me/publish list of important subdomains (like https://pypi.pyth

Re: Tkinter

2013-04-02 Thread Jason Swails
Please keep response replies to the Python list (e.g., use 'reply all' or just send the email to python-list). Also, you should tell people what Python version you are using. I assume you are using Python 2 since Tkinter was renamed to tkinter in Python 3. Finally, do not top-post. Type your res

Re: Python install Win 7 Problem

2013-04-02 Thread David Robinow
On Mon, Apr 1, 2013 at 9:02 PM, Joe Hill wrote: > ... > > In a Windows 7 environment (even a 64-bit Windows 7 environment), you > must install the 32-bit version of Python 3. The 64-bit version will not > work with NumPy 1.6. > 1.7 is the current version. I use 32-bit Python myself. > Fu

Re: Help installing latest PyQT

2013-04-02 Thread David Robinow
On Tue, Apr 2, 2013 at 11:39 AM, D. Xenakis wrote: > Hi there im trying to install PyQT (version > PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe) but i dont know how to make sure i > have installed everything correctly. I tried to find documentation about > this but most links were very dead.. > > So fa

Re: OSError: [Errno 127] Value too large to be stored in data type

2013-04-02 Thread Chris Hulan
On Tuesday, April 2, 2013 9:52:14 AM UTC-4, Chris Hulan wrote: > Running Python 2.3.2 on AIX > > getting "OSError: [Errno 127] Value too large to be stored in data type" > > when executing: > > > > os.listdir('/some/NFS/dir') > > > > The error only happens on NFS mounted dirs > > Anyone e

Re: Performance of int/long in Python 3

2013-04-02 Thread Ethan Furman
On 04/02/2013 07:39 AM, Steve Simmons wrote: On 02/04/2013 15:03, Steven D'Aprano wrote: On Tue, 02 Apr 2013 11:58:11 +0100, Steve Simmons wrote: It seems to me that jmf *might* be moving towards a vindicated position. There is some interest now in duplicating, understanding and (hopefully!

Re: Performance of int/long in Python 3

2013-04-02 Thread Mark Lawrence
On 02/04/2013 16:12, jmfauth wrote: Sorrry I never claimed this, I'm just seeing on how Python is becoming less Unicode friendly. Please explain this. I see no justification for this comment. How can an implementation that fixes bugs be less Unicode friendly than its earlier, buggier equiv

Help installing latest PyQT

2013-04-02 Thread D. Xenakis
Hi there im trying to install PyQT (version PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe) but i dont know how to make sure i have installed everything correctly. I tried to find documentation about this but most links were very dead.. So far so good.. i have: 1)Downloaded and installed "Python 3.3.0

Re: Tkinter

2013-04-02 Thread Demian Brecht
...And your question is?... If you're looking for people to just do your work for you, you'll likely get little assistance and will instead project a negative image of yourself here. What have you tried? Where are you stuck? What, /specifically/, do you need help with or what do you not understand

Re: extending class static members and inheritance

2013-04-02 Thread Arnaud Delobelle
On 2 April 2013 14:27, Fabian PyDEV wrote: > Hi All, > > I have a question. > > Let says I have the following two classes: > > class Base(object): > __mylist__ = ["value1", "value2"] > > def somemethod(self): > pass > > > class Derived(Base): > __mylist__ =

Re: Tkinter

2013-04-02 Thread Jason Swails
On Mon, Apr 1, 2013 at 5:12 PM, Renato Barbosa Pim Pereira < renato.barbosa.pim.pere...@gmail.com> wrote: > I need to create a button and a text box follows the text box to enter a > number, and this number is expected to create the same screen text boxes, and > these text boxes need to be referen

Re: Help: pickle module unable to load "rb" mode files in linux

2013-04-02 Thread Peter Otten
Surya Kasturi wrote: > Hi, hope you can help me on it.. > > with open(pickle_f, 'r') as fhand: > obj = pickle.load(fhand) > > > This works on linux but not in windows until I use "rb" mode while > creating file object. Surprisingly, the "rb" mode is not working on > Linux.. raising EOF

Re: Performance of int/long in Python 3

2013-04-02 Thread Ethan Furman
On 04/02/2013 08:03 AM, Steve Simmons wrote: On 02/04/2013 15:12, Mark Lawrence wrote: I've already raised an issue about performance and Neil Hodgson has raised a new one. Recognised in a separate post To balance this out perhaps we should have counter issues asking for the amount of memor

Re: Performance of int/long in Python 3

2013-04-02 Thread jmfauth
On 2 avr, 16:03, Steven D'Aprano wrote: > On Tue, 02 Apr 2013 11:58:11 +0100, Steve Simmons wrote: > > I'm sure you didn't intend to be insulting, but some of us *have* taken > JMF seriously, at least at first. His repeated overblown claims of how > Python is destroying Unicode ... Sorrry I neve

Reseller Host with Python 3 support

2013-04-02 Thread Νίκος Γκρ33κ
I'am looking for this: Reseller Plan with 200$ per year α) 20 GB ftp quota b) 200 GB traffic c) cPanel d) Python 3 e) Python MySQLdb module f) ssh support Please make the best offer possible. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Help

2013-04-02 Thread khaosyt
If I wanted to get the sum of some numbers (for example: 1 + 2 + 3 + 4 + 5 = 15) from the attached program what do I do? Keep in mind that the print statement prints the integers individually. integer = 0 denom = 10 again = "y" #sentinel: while again == "y" or again == "Y": integer = in

Tkinter

2013-04-02 Thread Renato Barbosa Pim Pereira
I need to create a button and a text box follows the text box to enter a number, and this number is expected to create the same screen text boxes, and these text boxes need to be referenced, ie if I enter 30 in the first text box and click the button to be created 30 text boxes so that I can then "

Help

2013-04-02 Thread khaosyt
If I wanted to get the sum of some numbers (for example: 1 + 2 + 3 + 4 + 5 = 15) from the attached program what do I do? Keep in mind that the print statement prints the integers individually. integer = 0 denom = 10 again = "y" #sentinel: while again == "y" or again == "Y": integer = input("

Re: Performance of int/long in Python 3

2013-04-02 Thread Steve Simmons
On 02/04/2013 15:12, Mark Lawrence wrote: I've already raised an issue about performance and Neil Hodgson has raised a new one. Recognised in a separate post To balance this out perhaps we should have counter issues asking for the amount of memory being used to be increased to old levels and

Re: Reseller Hosting Plan with Python 3 support

2013-04-02 Thread Νίκος Γκρ33κ
it's me Nikos i just posted under the wrong gmail account againsorry for that. -- http://mail.python.org/mailman/listinfo/python-list

Re: Performance of int/long in Python 3

2013-04-02 Thread Mark Lawrence
On 02/04/2013 15:39, Steve Simmons wrote: My post was primarily aimed at recognising the work that people like Mark, Neil and others have done to move the problem forward and was intended to help shift the focus to a more productive approach. Again, my apologies if it was ill timed or ill-direct

Reseller Hosting Plan with Python 3 support

2013-04-02 Thread nagia . retsina
I'am looking for this: Reseller Plan with 200$ per year α) 20 GB ftp quota b) 200 GB traffic c) cPanel d) Python 3 e) Python MySQLdb module f) ssh support Please make the best offer possible. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Help: pickle module unable to load "rb" mode files in linux

2013-04-02 Thread Surya Kasturi
Hi, hope you can help me on it.. with open(pickle_f, 'r') as fhand: obj = pickle.load(fhand) This works on linux but not in windows until I use "rb" mode while creating file object. Surprisingly, the "rb" mode is not working on Linux.. raising EOFError. Why is this happening? -- http:

Re: Performance of int/long in Python 3

2013-04-02 Thread Steve Simmons
On 02/04/2013 15:03, Steven D'Aprano wrote: On Tue, 02 Apr 2013 11:58:11 +0100, Steve Simmons wrote: It seems to me that jmf *might* be moving towards a vindicated position. There is some interest now in duplicating, understanding and (hopefully!) extending his test results, which can only b

Re: Performance of int/long in Python 3

2013-04-02 Thread Mark Lawrence
On 02/04/2013 11:58, Steve Simmons wrote: On 02/04/2013 10:43, Mark Lawrence wrote: On 02/04/2013 10:24, jmfauth wrote: On 2 avr, 10:35, Steven D'Aprano wrote: On Tue, 02 Apr 2013 19:03:17 +1100, Chris Angelico wrote: So what? Who cares if it takes 0.2 second to insert a character inste

Re: Performance of int/long in Python 3

2013-04-02 Thread Steven D'Aprano
On Tue, 02 Apr 2013 11:58:11 +0100, Steve Simmons wrote: > It seems to me that jmf *might* be moving towards a vindicated position. > There is some interest now in duplicating, understanding and > (hopefully!) extending his test results, which can only be a Good Thing > - whatever the outcome and

OSError: [Errno 127] Value too large to be stored in data type

2013-04-02 Thread Chris Hulan
Running Python 2.3.2 on AIX getting "OSError: [Errno 127] Value too large to be stored in data type" when executing: os.listdir('/some/NFS/dir') The error only happens on NFS mounted dirs Anyone else seen this? -- http://mail.python.org/mailman/listinfo/python-list

Re: Installation on Mac OSX 10.6.8 doesn't create the folder: /System/Library/Frameworks/Python.framework/Versions/2.7/

2013-04-02 Thread Jason Swails
On Tue, Apr 2, 2013 at 6:22 AM, kramer65 wrote: > Hello people, > > > I installed python 2.7 on Mac OSX 10.6.8 with no problems and it is > working fine. When I try to install Kivy however (www.kivy.org), I get an > error saying: > How did you install Python 2.7? How did you install Kivy? Not

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 2, 3:58 pm, Steve Simmons wrote: > On 02/04/2013 10:43, Mark Lawrence wrote: > > > > > > > > > On 02/04/2013 10:24, jmfauth wrote: > >> On 2 avr, 10:35, Steven D'Aprano >> +comp.lang.pyt...@pearwood.info> wrote: > >>> On Tue, 02 Apr 2013 19:03:17 +1100, Chris Angelico wrote: > > >>> So wha

Re: extending class static members and inheritance

2013-04-02 Thread Dave Angel
On 04/02/2013 09:27 AM, Fabian PyDEV wrote: Hi All, I have a question. Let says I have the following two classes: class Base(object): __mylist__ = ["value1", "value2"] def somemethod(self): pass class Derived(Base): __mylist__ = ["value3", "value4"]

extending class static members and inheritance

2013-04-02 Thread Fabian PyDEV
Hi All, I have a question. Let says I have the following two classes: class Base(object): __mylist__ = ["value1", "value2"] def somemethod(self): pass class Derived(Base): __mylist__ = ["value3", "value4"] def anothermethod(self):

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-04-02 Thread Dan Sommers
On Mon, 01 Apr 2013 21:45:30 -0700, Tim Roberts wrote: > morphex wrote: >> >>While we're on the subject, wouldn't it be nice to have some cap there >>so that it isn't possible to more or less block the system with large >>exponentiation? > > There IS a cap. It's called the "MemoryError" excepti

Fwd: Python subdomains https

2013-04-02 Thread Jakub Muszynski
Hi, I need to add python.org https to my company firewall policy, but I'm not allowed to add rule for https://*.python.org subdomains. Can You give me/publish list of important subdomains (like https://pypi.python.org) so I won't miss important sites? Greetings Jakub Muszynski -- http://mail

Re: Performance of int/long in Python 3

2013-04-02 Thread Steve Simmons
On 02/04/2013 10:43, Mark Lawrence wrote: On 02/04/2013 10:24, jmfauth wrote: On 2 avr, 10:35, Steven D'Aprano wrote: On Tue, 02 Apr 2013 19:03:17 +1100, Chris Angelico wrote: So what? Who cares if it takes 0.2 second to insert a character instead of 0.1 second? That's still a hundre

Installation on Mac OSX 10.6.8 doesn't create the folder: /System/Library/Frameworks/Python.framework/Versions/2.7/

2013-04-02 Thread kramer65
Hello people, I installed python 2.7 on Mac OSX 10.6.8 with no problems and it is working fine. When I try to install Kivy however (www.kivy.org), I get an error saying: /usr/local/bin/kivy: line 24: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: No such file or dire

distutils without a compiler

2013-04-02 Thread Robin Becker
Is there a neat way to get distutils to report compiler absence? Most windows users don't have a compiler so building extensions usually doesn't work. However, python's builtin batteries would allow pre-built pyds to be downloaded in lieu of an actual build. Has anyone created a fallback down

Re: Performance of int/long in Python 3

2013-04-02 Thread Mark Lawrence
On 02/04/2013 10:24, jmfauth wrote: On 2 avr, 10:35, Steven D'Aprano wrote: On Tue, 02 Apr 2013 19:03:17 +1100, Chris Angelico wrote: So what? Who cares if it takes 0.2 second to insert a character instead of 0.1 second? That's still a hundred times faster than you can type.

Re: python mock Requests and the response

2013-04-02 Thread Jean-Michel Pichavant
- Original Message - > I am a beginner to using mock in python and trying to use > http://www.voidspace.org.uk/python/mock. > > Please tell me the basic calls to get me working in below scenario. I > am using python's Requests module > (http://docs.python-requests.org/en/latest/) . > > In

Re: Performance of int/long in Python 3

2013-04-02 Thread Neil Hodgson
jmfauth: 3.2.3 (default, Apr 11 2012, 07:15:24) [MSC v.1500 32 bit (Intel)] [0.8343414906182101, 0.8336184057396241, 0.8330473419738562] 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit [1.3840254166697845, 1.3933888932429768, 1.391664674507438] That's a larger performa

Re: Performance of int/long in Python 3

2013-04-02 Thread jmfauth
On 2 avr, 10:03, Chris Angelico wrote: > On Tue, Apr 2, 2013 at 6:24 PM, jmfauth wrote: > > An editor may reflect very well the example a gave. You enter > > thousand ascii chars, then - boum - as you enter a non ascii > > char, your editor (assuming is uses a mechanism like the FSR), > > has to

Re: Performance of int/long in Python 3

2013-04-02 Thread jmfauth
On 2 avr, 10:35, Steven D'Aprano wrote: > On Tue, 02 Apr 2013 19:03:17 +1100, Chris Angelico wrote: > > So what? Who cares if it takes 0.2 second to insert a character > instead of 0.1 second? That's still a hundred times faster than you > can type. > - This not the problem. The i

Re: Performance of int/long in Python 3

2013-04-02 Thread Steven D'Aprano
On Tue, 02 Apr 2013 19:03:17 +1100, Chris Angelico wrote: > On Tue, Apr 2, 2013 at 6:24 PM, jmfauth wrote: >> An editor may reflect very well the example a gave. You enter thousand >> ascii chars, then - boum - as you enter a non ascii char, your editor >> (assuming is uses a mechanism like the F

ANN: eGenix mxODBC Zope/Plone Database Adapter 2.1.1

2013-04-02 Thread eGenix Team: M.-A. Lemburg
ANNOUNCEMENT mxODBC Zope/Plone Database Adapter Version 2.1.1 for Zope and the Plone CMS Available for Plone 4.0, 4.1 and 4.2,

Re: Performance of int/long in Python 3

2013-04-02 Thread Chris Angelico
On Tue, Apr 2, 2013 at 6:24 PM, jmfauth wrote: > An editor may reflect very well the example a gave. You enter > thousand ascii chars, then - boum - as you enter a non ascii > char, your editor (assuming is uses a mechanism like the FSR), > has to internally reencode everything! That assumes that

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-04-02 Thread Nobody
On Mon, 01 Apr 2013 00:39:56 +, Alex wrote: > Given that > > 3 > 5 > 4 > > (i.e.: 4**5**3) is transitive, I think you meant "associative", and exponentiation isn't associative, i.e. (x**y)**z is not, in general, equal to x**(y**z). In fact, (x**y)**z is equal to x**(y*z). Conventional m

Re: Performance of int/long in Python 3

2013-04-02 Thread jmfauth
On 2 avr, 01:43, Neil Hodgson wrote: > Mark Lawrence: > > > You've given many examples of the same type of micro benchmark, not many > > examples of different types of benchmark. > >     Trying to work out what jmfauth is on about I found what appears to > be a performance regression with '<' stri