Re: The original command python line

2012-03-03 Thread Devin Jeanpierre
On Sun, Mar 4, 2012 at 1:20 AM, Damjan Georgievski wrote: > How come? > I'm using explicit relative imports, I thought they were the new thing? Explicit relative imports are fine. Implicit relative imports can create multiple module objects for the same source file, which breaks things like excep

Re: The original command python line

2012-03-03 Thread Damjan Georgievski
>>> How can I get the *really* original command line that started my python >>> interpreter? > >> On Linux, you can read from: >>/proc//cmdline >> to get the null-delimited "command line". > > After some further searching: > psutil offers `Process.cmdline` cross-platform; > see http://code.go

Re: The original command python line

2012-03-03 Thread Chris Rebert
On Sat, Mar 3, 2012 at 9:48 PM, Chris Rebert wrote: > On Sat, Mar 3, 2012 at 9:38 PM, Damjan Georgievski wrote: >> How can I get the *really* original command line that started my python >> interpreter? > On Linux, you can read from: >    /proc//cmdline > to get the null-delimited "command line"

Re: The original python command line

2012-03-03 Thread Damjan Georgievski
> How can I get the *really* original command line that started my python > interpreter? > > Werkzeug has a WSGI server which reloads itself when files are changed > on disk. It uses `args = [sys.executable] + sys.argv` to kind of > recreate the command line, and the uses subprocess.call to run th

Re: The original command python line

2012-03-03 Thread Chris Rebert
On Sat, Mar 3, 2012 at 9:38 PM, Damjan Georgievski wrote: > How can I get the *really* original command line that started my python > interpreter? > > Werkzeug has a WSGI server which reloads itself when files are changed > on disk. It uses `args = [sys.executable] + sys.argv` to kind of > recreat

The original command python line

2012-03-03 Thread Damjan Georgievski
How can I get the *really* original command line that started my python interpreter? Werkzeug has a WSGI server which reloads itself when files are changed on disk. It uses `args = [sys.executable] + sys.argv` to kind of recreate the command line, and the uses subprocess.call to run that command l

Re: Is it necessary to call Tk() when writing a GUI app with Tkinter?

2012-03-03 Thread Rick Johnson
On Mar 2, 4:16 pm, John Salerno wrote: > what is the point of creating a Frame object at all? I tried NOT > doing it, like you said, and it seemed to work fine with my simple > example. But is there a benefit to using a Frame object to group the > widgets together? Or is it cleaner to just use the

Re: Building Python with non-standard tcl/tk support

2012-03-03 Thread Steven D'Aprano
On Sat, 03 Mar 2012 17:06:39 -0800, Westley Martínez wrote: > On Sun, Mar 04, 2012 at 12:50:53AM +, Steven D'Aprano wrote: >> Okay, now I'm making progress... if I remove the previously existing >> _tkinter in lib-dynload, and re-run "make", I get something new: >> >> building '_tkinter' exte

Re: Building Python with non-standard tcl/tk support

2012-03-03 Thread Westley Martínez
On Sun, Mar 04, 2012 at 12:50:53AM +, Steven D'Aprano wrote: > Okay, now I'm making progress... if I remove the previously existing > _tkinter in lib-dynload, and re-run "make", I get something new: > > building '_tkinter' extension > gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrap

Re: Building Python with non-standard tcl/tk support

2012-03-03 Thread Steven D'Aprano
On Sat, 03 Mar 2012 10:17:40 -0800, Westley Martínez wrote: > On Sat, Mar 03, 2012 at 05:36:52PM +, Steven D'Aprano wrote: >> I'm trying to re-build Python 3.2 with support for TCL/TK 8.5, but when >> I run "make" I get this message: >> >> Failed to build these modules: >> _tkinter >> >> and

Adopting ‘lockfile’ (was: Looking for people to take over some packages)

2012-03-03 Thread Ben Finney
s...@pobox.com writes: > Some time ago Ben Finney offered to take over lockfile. That offer is still open. (Though I would appreciate ongoing development help from people who use non-Linux operating systems, since file locking works differently there and I don't have the resources to test on thos

Re: Building Python with non-standard tcl/tk support

2012-03-03 Thread Westley Martínez
On Sat, Mar 03, 2012 at 05:36:52PM +, Steven D'Aprano wrote: > I'm trying to re-build Python 3.2 with support for TCL/TK 8.5, but when I > run "make" I get this message: > > Failed to build these modules: > _tkinter > > and after installing 3.2 I still have this: > > >>> import _tkinter > >

Building Python with non-standard tcl/tk support

2012-03-03 Thread Steven D'Aprano
I'm trying to re-build Python 3.2 with support for TCL/TK 8.5, but when I run "make" I get this message: Failed to build these modules: _tkinter and after installing 3.2 I still have this: >>> import _tkinter >>> _tkinter.TK_VERSION '8.4' What do I need to do to have Python 3.2 use tcl/tk 8.5

Re: Udacity CS 101

2012-03-03 Thread Emeka
Well, I checked unit 2 out the other day. It is indeed of poor standard and to some extend a waste of time for me. However, I see it as another way of having fun. On Sat, Mar 3, 2012 at 5:47 AM, Josh English wrote: > On Monday, February 27, 2012 6:37:25 PM UTC-8, Ray Clark wrote: > > > > You have

python library to generate restructured text

2012-03-03 Thread Rita
Hello, I am using sqlite3 modules to get data out of a table. I would like to dump the table into a restructured-text (docutil) format. I was wondering if there was a library which would accomplish this. -- --- Get your facts first, then you can distort them as you please.-- -- http://mail.pyt

How to read image data into Tkinter Canvas?

2012-03-03 Thread Frederic Rentsch
Hi, Familiarizing myself with Tkinter I'm stuck trying to fill a Canvas with an image. I believe the class I need is PhotoImage rather than BitmapImage. But I have no luck with either. The PhotoImage doc lists available handlers for writing GIF and PPM files. It doesn't say anything about r

Looking for people to take over some packages

2012-03-03 Thread skip
I'm shifting life gears, trying to get away from the computer more during my hours away from work. As part of that, I'm looking to get out of the package authorship/maintenance business. Currently, I am officially listed as the "maintainer" (I use that term loosely - I really do very little at t

Re: A 'Python like' language

2012-03-03 Thread Mel Wilson
Paul Rubin wrote: > dreamingforw...@gmail.com writes: >>> hanging out on the Prothon list now and then, at least until we get >>> the core language sorted out? >> >> Haha, a little late, but consider this a restart. > > It wasn't til I saw the word "Prothon" that I scrolled back and saw you > wer

RotatingFileHandler Fails

2012-03-03 Thread nac
The RotatingFileHandler running on win 7 64-bit; py 2.7 is failing when the script launches a process using subprocess.Popen. Works fine if the subprocess is not launched The exception thrown Traceback (most recent call last): File "C:\Python27\lib\logging\handlers.py", line 78, in emit self