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

2013-04-04 Thread Tim Roberts
John Nagle wrote: > > That would be useful to have as a portable function for all USB >devices. Serial port devices are particularly annoying, because their >port number is somewhat random when there's more than one, and changes >on hot-plugging. There is no portable solution. Every operating

Re: docs.python.org source

2013-04-04 Thread Ned Deily
In article <515e409c.9020...@amachu.me>, ??? wrote: > Will it be possible to get the sphinx source? You can also get the up-to-date source of the documentation set for each Python release branch from the Mercurial source repositories. There is a Doc/Makefile there that will automatically

Re: docs.python.org source

2013-04-04 Thread ஆமாச்சு
Thanks. Will it be possible to get the sphinx source? On Friday 05 April 2013 06:01 AM, rh wrote: > 1. wget -q http://docs.python.org/2/archives/python-2.7.3-docs-html.tar.bz2 > 2. unroll > 3. cd python-2.7.3-docs-html > 4. python -m SimpleHTTPServer 9292 > 5. point browser to 0:9292 > > -- htt

Re: JIT compilers for Python, what is the latest news?

2013-04-04 Thread MRAB
On 05/04/2013 03:29, John Ladasky wrote: I'm revisiting a project that I haven't touched in over a year. It was written in Python 2.6, and executed on 32-bit Ubuntu 10.10. I experienced a 20% performance increase when I used Psyco, because I had a computationally-intensive routine which occupie

JIT compilers for Python, what is the latest news?

2013-04-04 Thread John Ladasky
I'm revisiting a project that I haven't touched in over a year. It was written in Python 2.6, and executed on 32-bit Ubuntu 10.10. I experienced a 20% performance increase when I used Psyco, because I had a computationally-intensive routine which occupied most of my CPU cycles, and always rec

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

2013-04-04 Thread John Nagle
On 4/2/2013 3:18 PM, Sven wrote: > 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

Re: In defence of 80-char lines

2013-04-04 Thread Steven D'Aprano
On Thu, 04 Apr 2013 13:28:04 -0700, jmfauth wrote: > With "unicode fonts", where even the monospaced fonts present char > widths with a variable width depending on the unicode block (obvious > reasons), speaking of a "text width" in chars has not even a sense. A properly-designed Unicode monospac

Re: In defence of 80-char lines

2013-04-04 Thread Roy Smith
In article , Kushal Kumaran wrote: > > Is using csv.DictReader with delimiter=' ' not sufficient for this? I > did not actually read the regular expression in its entirety. I believe your second sentence answers the question raised in your first sentence :-) -- http://mail.python.org/mailma

Python log parser

2013-04-04 Thread Nac Temha
Hi, I'm working to parse log files. But I need to help this matter. I want to parse syslog(wihch program is running, timestamp,host,etc) of system I could not find any module of python for this. Or do you have suggestion? Best regards. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.3 Tkinter Fullscreen - Taskbar not Hiding

2013-04-04 Thread Rotwang
On 04/04/2013 20:00, Jason Swails wrote: On Thu, Apr 4, 2013 at 1:30 PM, Rotwang mailto:sg...@hotmail.co.uk>> wrote: [...] I don't know whether this applies to the OP's code, but I can think of at least one reason why one would want both "import module" and "from module import*" at t

Re: docs.python.org source

2013-04-04 Thread Irmen de Jong
On 4-4-2013 22:16, ஆமாச்சு wrote: > I am looking forward to checkout all rst files of docs.python.org to my > local for having a local copy of the site for quick reference. > > I couldn't find it immediately, searching for few minutes now. Any > pointers? > > -- > > Sri Ramadoss M > If you're

Re: In defence of 80-char lines

2013-04-04 Thread Jason Swails
On Thu, Apr 4, 2013 at 4:28 PM, jmfauth wrote: > On 4 avr, 03:36, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote: > > Although PEP 8 is only compulsory for the Python standard library, many > > users like to stick to PEP 8 for external projects. > > > > http://www.python.org/dev/peps/pep

docs.python.org source

2013-04-04 Thread ஆமாச்சு
I am looking forward to checkout all rst files of docs.python.org to my local for having a local copy of the site for quick reference. I couldn't find it immediately, searching for few minutes now. Any pointers? -- Sri Ramadoss M -- http://mail.python.org/mailman/listinfo/python-list

Re: In defence of 80-char lines

2013-04-04 Thread jmfauth
On 4 avr, 03:36, Steven D'Aprano wrote: > Although PEP 8 is only compulsory for the Python standard library, many > users like to stick to PEP 8 for external projects. > > http://www.python.org/dev/peps/pep-0008/ > > With perhaps one glaring exception: many people hate, or ignore, PEP 8's > recomm

Re: problem in running a basic code in python 3.3.0 that includes HTML file

2013-04-04 Thread Terry Jan Reedy
On 4/4/2013 3:08 PM, Satabdi Mukherjee wrote: i have written this code and i need to run this file def CreateEvent(str): Using the builtin name 'str' as a parameter name is a bad idea. Use 's' or 'string' or something instead. "This prints a passed string into this function"; The line abov

problem in running a basic code in python 3.3.0 that includes HTML file

2013-04-04 Thread Satabdi Mukherjee
i have written this code and i need to run this file def CreateEvent(str): "This prints a passed string into this function"; print str; return; CreateEvent (print''' content-type: text/html the list of all possible events that can be notified by our system tsunami earth

Re: question about csv.DictReader

2013-04-04 Thread Norman Clerman
Thanks for your replies. Greatly appreciated. Norm -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.3 Tkinter Fullscreen - Taskbar not Hiding

2013-04-04 Thread Jason Swails
On Thu, Apr 4, 2013 at 1:30 PM, Rotwang wrote: > On 04/04/2013 14:49, Jason Swails wrote: > >> I've added some comments about the code in question as well... >> >> On Wed, Apr 3, 2013 at 11:45 PM, > > wrote: >> >> Hi, I am working with Tkinter, and I have set

Re: IDE for GUI Designer

2013-04-04 Thread CM
On Apr 4, 11:41 am, Renato Barbosa Pim Pereira wrote: > Guys, is this, I wonder if there is an IDE with native support for the > development of GUI's such as Netbeans with Swing, Visual Basic, etc., The term you want to use is "GUI Builder". Because there can be IDEs without a GUI builder. You

Re: Python 3.3 Tkinter Fullscreen - Taskbar not Hiding

2013-04-04 Thread Rotwang
On 04/04/2013 14:49, Jason Swails wrote: I've added some comments about the code in question as well... On Wed, Apr 3, 2013 at 11:45 PM, mailto:teslafreque...@aol.com>> wrote: Hi, I am working with Tkinter, and I have set up some simple code to run: import tkinter import re

Re: Python 3.3 Tkinter Fullscreen - Taskbar not Hiding

2013-04-04 Thread teslafrequency
Thanks a lot for your help, I've implemented the code you suggested and it seems to be functioning properly now. I've cleaned up the code a bit as well. I'll also take into account not destroying the master. Thanks again for your help! -- http://mail.python.org/mailman/listinfo/python-list

Re: In defence of 80-char lines

2013-04-04 Thread Kushal Kumaran
Roy Smith writes: > In article , > Jason Swails wrote: > >> The only time I regularly break my rule is for regular expressions (at some >> point I may embrace re.X to allow me to break those up, too). > > re.X is a pretty cool tool for making huge regexes readable. But, it > turns out that py

Re: IDE for GUI Designer

2013-04-04 Thread Ed Leafe
On Apr 4, 2013, at 10:41 AM, Renato Barbosa Pim Pereira wrote: > Guys, is this, I wonder if there is an IDE with native support for the > development of GUI's such as Netbeans with Swing,Visual Basic, etc., already > tested the Boa Constructor, and PyQt, but did not like what I'm looking for

Re: In defence of 80-char lines

2013-04-04 Thread Joshua Landau
On 4 April 2013 12:09, Tim Chase wrote: > On 2013-04-04 08:43, Peter Otten wrote: > > llanitedave wrote: > >> self.mainLabel.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD, > faceName = "FreeSans")) > > > > I think I would prefer > > > > labelfont = wx.Font( > > pointSize=12, > > styl

Re: In defence of 80-char lines

2013-04-04 Thread Mitya Sirenef
On 04/03/2013 09:36 PM, Steven D'Aprano wrote: Although PEP 8 is only compulsory for the Python standard library, many > users like to stick to PEP 8 for external projects. > > http://www.python.org/dev/peps/pep-0008/ > > With perhaps one glaring exception: many people hate, or ignore, PEP 8's

Re: Error running any script in IDLE

2013-04-04 Thread Mark Lawrence
On 04/04/2013 16:16, mattgrav...@gmail.com wrote: Im fairly new to Python. I was trying to run a script using IDLE and it came back with an error and immediately shut down. After this, every script I tried to test within IDLE would do the same. I wrote the following script: while True x =

Re: In defence of 80-char lines

2013-04-04 Thread Neil Cerutti
On 2013-04-04, Roy Smith wrote: > re.X is a pretty cool tool for making huge regexes readable. > But, it turns out that python's auto-continuation and string > literal concatenation rules are enough to let you get much the > same effect. Here's a regex we use to parse haproxy log files. > This wo

IDE for GUI Designer

2013-04-04 Thread Renato Barbosa Pim Pereira
Guys, is this, I wonder if there is an IDE with native support for the development of GUI's such as Netbeans with Swing, Visual Basic, etc., already tested the Boa Constructor, and PyQt, but did not like what I'm looking for is an IDE "all in one", ie power encode and draw the screens of the progra

Re: Error running any script in IDLE

2013-04-04 Thread Chris Angelico
On Fri, Apr 5, 2013 at 2:33 AM, wrote: > Thanks Chris, that worked. Like I said, I'm fairly new to python so I am > still learning the ins and outs. Thank you. No probs. You provided all the information needed to solve the problem, for which I am very much appreciative. All the best! ChrisA -

Re: Error running any script in IDLE

2013-04-04 Thread mattgraves7
Thanks Chris, that worked. Like I said, I'm fairly new to python so I am still learning the ins and outs. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: In defence of 80-char lines

2013-04-04 Thread llanitedave
On Thursday, April 4, 2013 4:52:38 AM UTC-7, Roy Smith wrote: > In article , > > llanitedave wrote: > > > > > I would hate to have to break up this line, for instance: > > > > > > self.mainLabel.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD, faceName > > = > > > "FreeSans")) > >

Re: Error running any script in IDLE

2013-04-04 Thread Chris Angelico
On Fri, Apr 5, 2013 at 2:16 AM, wrote: > Im fairly new to Python. I was trying to run a script using IDLE and it came > back with an error and immediately shut down. After this, every script I > tried to test within IDLE would do the same. I wrote the following script: > > while True > x =

Error running any script in IDLE

2013-04-04 Thread mattgraves7
Im fairly new to Python. I was trying to run a script using IDLE and it came back with an error and immediately shut down. After this, every script I tried to test within IDLE would do the same. I wrote the following script: while True x = input("test") It seems simple enough to not be

Re: Help me with PyCharm on Mac OS

2013-04-04 Thread YE SHANG
Thank you for your help. I've figured it out, problem is that I wrote bad options in interpretor options. 在 2013年4月4日星期四UTC+8下午6时13分03秒,Dave Angel写道: > On 04/04/2013 04:19 AM, YE SHANG wrote: > > > Hello! > > > > > > I'm a newbie of developing GAE Apps on Mac. > > > > > > My Mac OS is Mounta

Re: Python 3.3 Tkinter Fullscreen - Taskbar not Hiding

2013-04-04 Thread Jason Swails
I've added some comments about the code in question as well... On Wed, Apr 3, 2013 at 11:45 PM, wrote: > Hi, I am working with Tkinter, and I have set up some simple code to run: > > import tkinter > import re > from tkinter import * > If you import everything from tkinter into your top-level n

Re: In defence of 80-char lines

2013-04-04 Thread Jason Swails
On Thu, Apr 4, 2013 at 8:39 AM, Roy Smith wrote: > In article , > Jason Swails wrote: > > > The only time I regularly break my rule is for regular expressions (at > some > > point I may embrace re.X to allow me to break those up, too). > > re.X is a pretty cool tool for making huge regexes read

Re: In defence of 80-char lines

2013-04-04 Thread Roy Smith
In article , Jason Swails wrote: > The only time I regularly break my rule is for regular expressions (at some > point I may embrace re.X to allow me to break those up, too). re.X is a pretty cool tool for making huge regexes readable. But, it turns out that python's auto-continuation and str

Re: In defence of 80-char lines

2013-04-04 Thread Jason Swails
On Thu, Apr 4, 2013 at 7:09 AM, Tim Chase wrote: > On 2013-04-04 08:43, Peter Otten wrote: > > llanitedave wrote: > >> self.mainLabel.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD, > faceName = "FreeSans")) > > > > I think I would prefer > > > > labelfont = wx.Font( > > pointSize=12, > >

Re: In defence of 80-char lines

2013-04-04 Thread Jason Swails
On Wed, Apr 3, 2013 at 9:36 PM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > Although PEP 8 is only compulsory for the Python standard library, many > users like to stick to PEP 8 for external projects. > But even the standard library breaks this rule on occasion. e.g., /usr/

Re: In defence of 80-char lines

2013-04-04 Thread Roy Smith
In article , llanitedave wrote: > I would hate to have to break up this line, for instance: > > self.mainLabel.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD, faceName = > "FreeSans")) I would write that as some variation on self.mainLabel.SetFont(wx.Font(12,

Re: RE : Gnuplot

2013-04-04 Thread Mark Lawrence
On 04/04/2013 10:05, Murugesan, Karthik wrote: Hello, I am having a few issues interfacing gnuplot with python. Any ideas on how to solve this? Thanks Sorry not a direct response but I found the best solution to gnuplot problems was using matplotlib instead. -- If you're using GoogleCrap

Re: In defence of 80-char lines

2013-04-04 Thread Tim Chase
On 2013-04-04 08:43, Peter Otten wrote: > llanitedave wrote: >> self.mainLabel.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD, faceName >> = "FreeSans")) > > I think I would prefer > > labelfont = wx.Font( > pointSize=12, > style=wx.DEFAULT, > family=wx.NORMAL, > weight=wx.BO

Re: Help me with PyCharm on Mac OS

2013-04-04 Thread Dave Angel
On 04/04/2013 04:19 AM, YE SHANG wrote: Hello! I'm a newbie of developing GAE Apps on Mac. My Mac OS is Mountain Lion, I reinstalled python 2.7.3 instead of pre-installed python 2.7.2, as well as GAE SDK. I finished configuration of Python interpreter(/usr/local/bin/python2.7), and Google Ap

RE : Gnuplot

2013-04-04 Thread Murugesan, Karthik
Hello, I am having a few issues interfacing gnuplot with python. When I try to run the demo.py file I get the following error messages: Traceback (most recent call last): File "C:\Program Files\Common Files\dSPACE\Python25\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 310

Help me with PyCharm on Mac OS

2013-04-04 Thread YE SHANG
Hello! I'm a newbie of developing GAE Apps on Mac. My Mac OS is Mountain Lion, I reinstalled python 2.7.3 instead of pre-installed python 2.7.2, as well as GAE SDK. I finished configuration of Python interpreter(/usr/local/bin/python2.7), and Google App Engine(/usr/local/google_appengine). I

Re: In defence of 80-char lines

2013-04-04 Thread Rui Maciel
Steven D'Aprano wrote: > Although PEP 8 is only compulsory for the Python standard library, many > users like to stick to PEP 8 for external projects. > > http://www.python.org/dev/peps/pep-0008/ > > With perhaps one glaring exception: many people hate, or ignore, PEP 8's > recommendation to lim

Re: Help me pick an API design (OO vs functional)

2013-04-04 Thread Michael Herrmann
Hi everyone, we just released the new version of our GUI automation tool with the improved API: http://www.getautoma.com/blog/Automa-1-5-1-window-switching. Thank you again for your help. Best regards, Michael On Monday, March 25, 2013 8:29:23 PM UTC+1, Michael Herrmann wrote: > Hello everyone