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,

OSCON 2013 registration is open (7/22-26)

2013-04-02 Thread Aahz
OSCON (O'Reilly Open Source Conference) will be held in Portland, OR July 22-26. This year we're celebrating the fifteenth anniversary! Registration is now open: http://www.oscon.com/oscon2013 http://www.oscon.com/oscon2013/public/schedule/grid Hope to see you there! -- Aahz

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

2013-04-02 Thread Chris Angelico
On Tue, Apr 2, 2013 at 3:45 PM, Tim Roberts t...@probo.com wrote: morphex morp...@gmail.com 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

Re: Switching from Apche to LiteSpeed

2013-04-02 Thread Steven D'Aprano
On Mon, 01 Apr 2013 20:29:47 +, John Gordon wrote: In 9a35850a-7fcb-4585-84ae-5e13cef91...@googlegroups.com =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= nikos.gr...@gmail.com writes: Just today i changed from HostGator to EZPZ, which means from Apache Web Server to LiteSpeed. Does anyone know

Re: Performance of int/long in Python 3

2013-04-02 Thread jmfauth
On 2 avr, 01:43, Neil Hodgson nhodg...@iinet.net.au 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

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

Re: Performance of int/long in Python 3

2013-04-02 Thread Chris Angelico
On Tue, Apr 2, 2013 at 6:24 PM, jmfauth wxjmfa...@gmail.com 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!

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 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 wxjmfa...@gmail.com 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

Re: Performance of int/long in Python 3

2013-04-02 Thread jmfauth
On 2 avr, 10:03, Chris Angelico ros...@gmail.com wrote: On Tue, Apr 2, 2013 at 6:24 PM, jmfauth wxjmfa...@gmail.com 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

Re: Performance of int/long in Python 3

2013-04-02 Thread jmfauth
On 2 avr, 10:35, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info 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: 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

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 my

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 steve +comp.lang.pyt...@pearwood.info 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

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

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

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 steve +comp.lang.pyt...@pearwood.info 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

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 --

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 morp...@gmail.com 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

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): pass

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]

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 2, 3:58 pm, Steve Simmons square.st...@gmail.com 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 steve +comp.lang.pyt...@pearwood.info wrote: On Tue, 02 Apr 2013 19:03:17 +1100, Chris Angelico wrote: So

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 kram...@gmail.com 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

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: 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

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 steve +comp.lang.pyt...@pearwood.info wrote: On Tue, 02 Apr 2013 19:03:17 +1100, Chris Angelico wrote: So what? Who cares if it takes

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

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? --

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

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

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 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

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(Enter

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 =

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

Re: Performance of int/long in Python 3

2013-04-02 Thread jmfauth
On 2 avr, 16:03, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info 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

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

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 EOFError.

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 referenced,

Re: extending class static members and inheritance

2013-04-02 Thread Arnaud Delobelle
On 2 April 2013 14:27, Fabian PyDEV py...@hotmail.com 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 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

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: 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

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

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 else seen this?

Re: Help installing latest PyQT

2013-04-02 Thread David Robinow
On Tue, Apr 2, 2013 at 11:39 AM, D. Xenakis gouzouna...@hotmail.com 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

Re: Python install Win 7 Problem

2013-04-02 Thread David Robinow
On Mon, Apr 1, 2013 at 9:02 PM, Joe Hill j...@nospamever.com 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

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

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 http://python.org https to my company firewall policy, but I'm not allowed to add rule for https://*.python.org http://python.org subdomains. Can You give me/publish list of important subdomains (like

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 2, 8:17 pm, Ethan Furman et...@stoneleaf.us 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

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 2, 8:12 pm, jmfauth wxjmfa...@gmail.com 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/

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: 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: Performance of int/long in Python 3

2013-04-02 Thread jmfauth
On 2 avr, 18:57, rusi rustompm...@gmail.com wrote: On Apr 2, 8:17 pm, Ethan Furman et...@stoneleaf.us 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

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 --

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 2, 11:22 pm, jmfauth wxjmfa...@gmail.com wrote: On 2 avr, 18:57, rusi rustompm...@gmail.com wrote: On Apr 2, 8:17 pm, Ethan Furman et...@stoneleaf.us 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

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

Re: Python install Win 7 Problem

2013-04-02 Thread David Robinow
On Tue, Apr 2, 2013 at 12:45 PM, Joe Hill j...@nospamever.com wrote: On Tue, 2 Apr 2013 11:44:55 -0400, David Robinow drobi...@gmail.com 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.

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 gouzouna...@hotmail.com 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 ,

Re: Performance of int/long in Python 3

2013-04-02 Thread Ian Kelly
On Tue, Apr 2, 2013 at 3:20 AM, jmfauth wxjmfa...@gmail.com 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

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 were

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? --

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 , here:

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: 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 steve +comp.lang.pyt...@pearwood.info 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 ...

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 http://python.org https to my company firewall policy, but I'm not allowed to add rule for https://*.python.org http://python.org subdomains. Can You give me/publish list of

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: 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

Re: Performance of int/long in Python 3

2013-04-02 Thread Lele Gaifax
jmfauth wxjmfa...@gmail.com 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

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 CAEk9e3q=k9kjd58fkuoouvzzmbm62s21qcmfjayugpqohk7...@mail.gmail.com, Jason Swails jason.swa...@gmail.com wrote: On Tue, Apr 2, 2013 at 6:22 AM, kramer65 kram...@gmail.com wrote: Hello people, I installed python 2.7 on Mac OSX 10.6.8 with no problems and it is working

Re: distutils without a compiler

2013-04-02 Thread Ned Deily
In article 515aa9bf.4010...@chamonix.reportlab.co.uk, Robin Becker ro...@reportlab.com 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

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

2013-04-02 Thread Ned Deily
In article CAEH=cXV0DJa6CCZ4T1RvL2L1g7D_mdDF4=52vugcm5mwt18...@mail.gmail.com, Sven sven...@gmail.com 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

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: snip triple spaced homework rubbish double posted Sigh. Another one for the bozo bin. I say old chap you're setting yourself up for attacks

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

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

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 jason.swa...@gmail.com Please keep response replies to the Python list (e.g., use 'reply all' or just send

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 me fix this

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') The error only

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

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 3, 8:31 am, Neil Hodgson nhodg...@iinet.net.au 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' -

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 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

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 rustompm...@gmail.com wrote: On Apr 3, 8:31 am, Neil Hodgson nhodg...@iinet.net.au wrote:     Sorting a million string list (all the file paths on a particular computer) went from 0.4 seconds with Python

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 while

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

Re: Performance of int/long in Python 3

2013-04-02 Thread rusi
On Apr 3, 9:03 am, Neil Hodgson nhodg...@iinet.net.au 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

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'd

[issue17613] IDLE AttributeError: 'NoneType' object has no attribute 'index' from Delegator.py

2013-04-02 Thread Roger Serwy
Roger Serwy added the comment: On 04/02/2013 12:57 AM, Ned Deily wrote: 2. Roger, is this issue new to 2.7.4, 3.2.4, or 3.3.1? No, this bug has been baked into IDLE since the beginning. See line 215 http://hg.python.org/cpython/file/30713d5288df/Lib/idlelib/ColorDelegator.py How likely do

[issue17614] IDLE - quickly closing a large file triggers a traceback

2013-04-02 Thread Ned Deily
Ned Deily added the comment: LGTM -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17614 ___ ___ Python-bugs-list mailing list

[issue17614] IDLE - quickly closing a large file triggers a traceback

2013-04-02 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17614 ___ ___

[issue10615] Trivial mingw compile fixes

2013-04-02 Thread Mark Lawrence
Mark Lawrence added the comment: #17605 titled mingw-meta: build interpeter core was opened on 2013-03-31 so I believe this can be closed as superseded. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue17605] mingw-meta: build interpeter core

2013-04-02 Thread Mark Lawrence
Mark Lawrence added the comment: There are patches on #10615 which may be of some use here. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17605 ___

[issue10566] gdb debugging support additions (Tools/gdb/libpython.py)

2013-04-02 Thread Mark Lawrence
Mark Lawrence added the comment: Comments in msg123606 seem encouraging so I'm guessing this has just slipped under the radar. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10566

[issue17615] String comparison performance regression

2013-04-02 Thread Neil Hodgson
New submission from Neil Hodgson: On Windows, non-equal comparisons (, =, , =) between strings with common prefixes are slower in Python 3.3 than 3.2. This is for both 32-bit and 64-bit builds. Performance on Linux has not decreased for the same code. The attached program tests comparisons

[issue17616] wave.Wave_read and wave.Wave_write can be context managers

2013-04-02 Thread Claudiu.Popa
New submission from Claudiu.Popa: I think that wave.open should work with the `with` statement, given the fact that Lib/aifc.py does this. I attached a simple patch for this. Thanks in advance. -- components: Library (Lib) files: wave_context_manager.patch keywords: patch messages:

[issue17359] Mention __main__.py explicitly in command line docs

2013-04-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I still don't think that the available documentation is detailed enough. It leaves too many unanswered question, e.g. * What happens if you have both __init__.py and __main__.py in a directory or a ZIP file ? * What does the script name is added to the

[issue17615] String comparison performance regression

2013-04-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +haypo, serhiy.storchaka type: - performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17615 ___

[issue17613] IDLE AttributeError: 'NoneType' object has no attribute 'index' from Delegator.py

2013-04-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17613 ___ ___

[issue17614] IDLE - quickly closing a large file triggers a traceback

2013-04-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: critical - high versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17614 ___

  1   2   >