Re: are int, float, long, double, side-effects of computer engineering?

2012-03-05 Thread Xah Lee
On Mar 5, 9:26 pm, Tim Roberts wrote: > Xah Lee wrote: > > >some additional info i thought is relevant. > > >are int, float, long, double, side-effects of computer engineering? > > Of course they are.  Such concepts violate the purity of a computer > language's abstraction of the underlying hard

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-05 Thread Tim Roberts
Xah Lee wrote: > >some additional info i thought is relevant. > >are int, float, long, double, side-effects of computer engineering? Of course they are. Such concepts violate the purity of a computer language's abstraction of the underlying hardware. We accept that violation because of performa

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-05 Thread Westley Martínez
On Mon, Mar 05, 2012 at 05:11:09PM -0800, Xah Lee wrote: > some additional info i thought is relevant. > > are int, float, long, double, side-effects of computer engineering? > > Xah Lee wrote: > «… One easy way to measure it is whether a programer can read and > understand a program without havi

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Mark Lawrence
On 06/03/2012 02:56, Rick Johnson wrote: On Mar 5, 8:33 pm, Mark Lawrence wrote: please stick with the Light rather than the Dark Side. You're correct. I need to ignore these negative distractions. Thanks for re-focusing the conversation. No problem, but as I've often stated in the past my

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Rick Johnson
On Mar 5, 8:33 pm, Mark Lawrence wrote: > please stick with the > Light rather than the Dark Side. You're correct. I need to ignore these negative distractions. Thanks for re-focusing the conversation. -- http://mail.python.org/mailman/listinfo/python-list

Re: Error with co_filename when loading modules from zip file

2012-03-05 Thread Bob Rossi
On Mon, Mar 05, 2012 at 02:22:55PM -0800, Vinay Sajip wrote: > On Mar 5, 8:36 pm, Bob wrote: > > > The logging package gets the filename and line number > > of the calling function by looking at two variables, the filename > > of the frame in the stack trace and the variable logging._srcfile. > >

Re: RotatingFileHandler Fails

2012-03-05 Thread nac
On Mar 5, 4:27 am, Jean-Michel Pichavant wrote: > nac wrote: > > 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

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Mark Lawrence
On 06/03/2012 02:20, Rick Johnson wrote: On Mar 5, 7:10 pm, Steven D'Aprano wrote: John, it is polite to leave attributions in place when you quote somebody. I don't know who you are quoting above, [...] Which is a pity, because I gather that Rick actually does know Tkinter well. My, my. Bet

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Rick Johnson
On Mar 5, 7:10 pm, Steven D'Aprano wrote: > John, it is polite to leave attributions in place when you quote > somebody. I don't know who you are quoting above, > [...] > Which is a pity, because I gather that Rick actually does know Tkinter > well. My, my. Between your ad hominem attacks, FUD,

Re: Error with co_filename when loading modules from zip file

2012-03-05 Thread Bob Rossi
On Mon, Mar 05, 2012 at 02:22:55PM -0800, Vinay Sajip wrote: > On Mar 5, 8:36 pm, Bob wrote: > > > The logging package gets the filename and line number > > of the calling function by looking at two variables, the filename > > of the frame in the stack trace and the variable logging._srcfile. > >

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-05 Thread Mark Lawrence
On 06/03/2012 01:11, Xah Lee wrote: some additional info i thought is relevant. are int, float, long, double, side-effects of computer engineering? Whatever you're taking please can I have some? Is it available via an NHS prescription or do I have to go private, or do I go down the pub and

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Mark Lawrence
On 06/03/2012 01:10, Steven D'Aprano wrote: Which is a pity, because I gather that Rick actually does know Tkinter well. +1. Please Rick less of the Dark Side. :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread John Salerno
On Monday, March 5, 2012 7:10:50 PM UTC-6, Steven D'Aprano wrote: > On Mon, 05 Mar 2012 14:07:05 -0800, John Salerno quoted: > > >> Wah! > >> > >> Stop whining and act like a professional! You complain about qualifying > >> constants but you happily type "self" until your fingers bleed without >

are int, float, long, double, side-effects of computer engineering?

2012-03-05 Thread Xah Lee
some additional info i thought is relevant. are int, float, long, double, side-effects of computer engineering? Xah Lee wrote: «… One easy way to measure it is whether a programer can read and understand a program without having to delve into its idiosyncrasies. …» Chris Angelico wrote: «Neither

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Steven D'Aprano
On Mon, 05 Mar 2012 14:07:05 -0800, John Salerno quoted: >> Wah! >> >> Stop whining and act like a professional! You complain about qualifying >> constants but you happily type "self" until your fingers bleed without >> even a whimper??? John, it is polite to leave attributions in place when you

State of Python+OpenAL?

2012-03-05 Thread Tim Chase
Hunting around to see if there's any existing work to get 3d audio in Python, I encountered two packages (pyopenal[1] & alpy[2]), but both seem sparsely documented if at all and somewhat abandoned. Has anybody used either, or have any pointers on getting up to speed on either? Thanks, -tkc

Re: Error with co_filename when loading modules from zip file

2012-03-05 Thread Vinay Sajip
On Mar 5, 8:36 pm, Bob wrote: > The logging package gets the filename and line number > of the calling function by looking at two variables, the filename > of the frame in the stack trace and the variable logging._srcfile. > The comparison is done in logging/__init__.py:findCaller. > The _srcfil

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread John Salerno
> > I don't like importing things piecemeal. I suppose I could do: > > So you prefer to pollute? How bout we just auto import the whole > Python stdlib so you can save a few keystrokes? > > so that's four more constants I'd have to explicitly import. And > > (tk.N, tk.S, tk.E, tk.W) is just horri

xlutils 1.5.1 released!

2012-03-05 Thread Chris Withers
Hi All, xlutils 1.5.1 is out, fixing the usual embarrassing mistake I make when I move projects from Subversion to Git that results in some required non-.py files being omitted. All the details of where to find mailing lists, issue trackers, and the like for xlutils can be found here: http

Error with co_filename when loading modules from zip file

2012-03-05 Thread Bob
Hi, I'm using a program that distributes python in a zip file and ran into an issue with the logging package. It seems to return the wrong filename/line number when loading python from a zip file. Please help! I'm using python31, and have copied the lib directory to /home/user/python3.1 and hav

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

2012-03-05 Thread Russell E. Owen
In article <3d0bf288-fa5d-48e5-9529-db92d420a...@1g2000yqv.googlegroups.com>, Rick Johnson wrote: > On Feb 29, 11:24 pm, Terry Reedy wrote: > > On 2/29/2012 10:22 PM, Rick Johnson wrote: > > > > PS: I would highly suggest against using the "from Tkinter import *". > > > Instead, use "import T

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Rick Johnson
On Mar 5, 11:31 am, John Salerno wrote: > Ok, so use pack when putting the frame into the root, since that's > all that goes into the root directly. But just out of curiosity, > what did I do wrong with using grid? How would it work with grid? If you read my post carefully, i said: "You need to u

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread John Salerno
> You will need to configure the root columns and rows also because the > configurations DO NOT propagate up the widget hierarchy! Actually, for > this example, I would recommend using the "pack" geometry manager on > the frame. Only use grid when you need to use grid. Never use any > functionality

Re: A Crypto Juniper $9$ secrets library

2012-03-05 Thread Oleg Broytman
Hello! On Sun, Mar 04, 2012 at 10:16:05PM +0100, Julio G?mez wrote: > I have developed a Python library which encrypt/decrypt Juniper $9$ secrets. Thank you and welcome to the community! > I would like it is part of the common Python libraries and be able to > install it through APT, YUM, RPM

Re: [RELEASED] Python 3.3.0 alpha 1

2012-03-05 Thread Duncan Booth
Georg Brandl wrote: > For a more extensive list of changes in 3.3.0, see > > http://docs.python.org/3.3/whatsnew/3.3.html > So far as I can see the what's new don't mention that hash randomisation is enabled by default in Python 3.3. I think it would be worth adding something about that.

Re: How to convert simple B/W graphic to the dot matrix for the LED display/sign

2012-03-05 Thread Petr Jakes
> >>> import Image > >>> im=Image.new('L', (100,100)) > >>> im=im.convert('1') > >>> px=im.load() > >>> px[0,0] Thanks, load() method works great. One more question. Finally, I would like to store array in the database. What is the best way to store arrays? Petr -- http://mail.python.org/

Re: [Python-Dev] [RELEASED] Python 3.3.0 alpha 1

2012-03-05 Thread Ned Batchelder
On 3/5/2012 2:54 AM, Georg Brandl wrote: On behalf of the Python development team, I'm happy to announce the first alpha release of Python 3.3.0. This is a preview release, and its use is not recommended in production settings. Python 3.3 includes a range of improvements of the 3.x series, as w

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Rick Johnson
On Mar 5, 1:12 am, John Salerno wrote: > I can't seem to wrap my head around all the necessary arguments > for making a widget expand when a window is resized. You will need to configure the root columns and rows also because the configurations DO NOT propagate up the widget hierarchy! Actually,

Re: AttributeError: 'module' object has no attribute 'logger'

2012-03-05 Thread Jean-Michel Pichavant
youssef.mah...@hotmail.com wrote: hi all, when installing sage, there is a problem with emacs.py so, this screen appeared after rynning ./sage -- | Sage Version 4.4.2, Release Date: 2010-05-19 | | Type noteb

Re: Trying to understand 'import' a bit better

2012-03-05 Thread Jean-Michel Pichavant
Frank Millman wrote: Hi all I have been using 'import' for ages without particularly thinking about it - it just works. Now I am having to think about it a bit harder, and I realise it is a bit more complicated than I had realised - not *that* complicated, but there are some subtleties. I

Re: RotatingFileHandler Fails

2012-03-05 Thread Jean-Michel Pichavant
nac wrote: 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

xlutils 1.5.0 released!

2012-03-05 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlutils 1.5.0, featuring the following changes: - Now takes advantage of "ragged rows" optimisation in xlrd 0.7.3 - Add support for PANE records to xlutils.copy, which means that zoom factors are now copied. The full change log is here: http: