Re: finding out the call (and not only the caller)

2007-10-08 Thread [EMAIL PROTECTED]
On Oct 7, 2:47 pm, "Francesco Guerrieri" <[EMAIL PROTECTED]> wrote: > Hi, > > Today I've been thinking a bit about the "python internals". Inspired > by this recipe:http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66062 > I found out a little problem which haven't been able to solve. > In sh

Re: The fundamental concept of continuations

2007-10-08 Thread gnuist006
On Oct 8, 11:09 pm, "." <[EMAIL PROTECTED]> wrote: > On Tue, 09 Oct 2007 05:15:49 +, gnuist006 wrote: > > Again I am depressed to encounter a fundamentally new concept that I > > was all along unheard of. Its not even in paul graham's book where i > > learnt part of Lisp. Its in Marc Feeley's v

Re: The fundamental concept of continuations

2007-10-08 Thread gnuist006
On Oct 8, 11:07 pm, Bakul Shah <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > Again I am depressed to encounter a fundamentally new concept that I > > was all along unheard of. > > The concept is 37 years old. Wadsworth in his "Continuation > Revisited" paper says he & Strachey were

Re: The fundamental concept of continuations

2007-10-08 Thread gnuist006
On Oct 8, 10:59 pm, Barb Knox <[EMAIL PROTECTED]> wrote: > > Lambda calculus. Instead of function A returning to its caller, the > caller provides an additional argument (the "continuation") which is a > function B to be called by A with A's result(s). In pure "continuation > style" coding, noth

Re: The fundamental concept of continuations

2007-10-08 Thread .
On Tue, 09 Oct 2007 05:15:49 +, gnuist006 wrote: > Again I am depressed to encounter a fundamentally new concept that I > was all along unheard of. Its not even in paul graham's book where i > learnt part of Lisp. Its in Marc Feeley's video. > > Can anyone explain: > > (1) its origin One of

Re: The fundamental concept of continuations

2007-10-08 Thread Bakul Shah
[EMAIL PROTECTED] wrote: > Again I am depressed to encounter a fundamentally new concept that I > was all along unheard of. The concept is 37 years old. Wadsworth in his "Continuation Revisited" paper says he & Strachey were struggling with extending the technique of denotational semantics to d

Re: property question

2007-10-08 Thread George Sakkis
On Oct 9, 1:20 am, "Manu Hack" <[EMAIL PROTECTED]> wrote: > hi all, > > If I have a class A with A.x, A.y, A.z. A.y and A.z are property and > in order to compute the value of them, A.y depends on A.x while A.z > depends on A.y and A.x. If I call A.y, and A.z, the value A.y would > be computed tw

Re: pytz has so many timezones!

2007-10-08 Thread Sanjay
> It's not clear at all from the OPs post exactly what functionality he > is trying to derive from the timezone. Since timezones (obviously) > contain more information than just the GMT offset (otherwise we > wouldn't even have them), he may very well want to use the timezone > given by the user to

Re: The fundamental concept of continuations

2007-10-08 Thread Barb Knox
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Again I am depressed to encounter a fundamentally new concept that I > was all along unheard of. Don't be depressed about that. There are countless concepts out there they you haven't yet heard of. > Its not even in paul graham's book

more information for making money

2007-10-08 Thread panguohua
www.space666.com good!!! -- http://mail.python.org/mailman/listinfo/python-list

ANN: M2Crypto 0.18.1

2007-10-08 Thread Heikki Toivonen
M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES); SSL functionality to implement clients and servers; HTTPS extensions to Python's httplib, urllib, and xmlrpclib; unforgeable HMAC'ing AuthCookies for web sessi

property question

2007-10-08 Thread Manu Hack
hi all, If I have a class A with A.x, A.y, A.z. A.y and A.z are property and in order to compute the value of them, A.y depends on A.x while A.z depends on A.y and A.x. If I call A.y, and A.z, the value A.y would be computed twice. Is there a smart way to avoid that as to A.y will be recomputed

how to get rgbdata

2007-10-08 Thread sajanjoseph
Hi i am a newbie to python and PIL. can anyone tell me how to get rgbdata from a jpeg image using PIL as a double[] . is there an equiv method to java's BufferedImage.getRGB(0,0,width,height,rgbdata,0,width) ? if anyone can advise pls do sj -- http://mail.python.org/mailman/listinfo/python-list

The fundamental concept of continuations

2007-10-08 Thread gnuist006
Again I am depressed to encounter a fundamentally new concept that I was all along unheard of. Its not even in paul graham's book where i learnt part of Lisp. Its in Marc Feeley's video. Can anyone explain: (1) its origin (2) its syntax and semantics in emacs lisp, common lisp, scheme (3) Is it p

Query

2007-10-08 Thread ritu sharma
Hi , I am using linked server to fetch data from Oracle database. Now ,I have to use FPN_STATUS='A' in the query. Kindly tell me if there is an escape sequence for ' . FROM OPENQUERY(FPDWH, 'SELECT WGFP_OWN.GRS_FILE_PLAN_VERSION.FVN_STATUS FPN_STAT_CODE, WGFP_OWN.GRS_FILE_PLAN_STATU

Re: pytz has so many timezones!

2007-10-08 Thread [EMAIL PROTECTED]
On Oct 8, 8:27?pm, "Nicholas Bastin" <[EMAIL PROTECTED]> wrote: > On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > What do you mean by "the military" and why do you think they're > > > authoritative on the topic of timezones? > > > Because they publish maps? > > I'm not sure what th

Re: why did MIT drop scheme for python in intro to computing?

2007-10-08 Thread gnuist006
On Oct 8, 9:04 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-10-09, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Does scheme have a gui library? > > Yes. It had a far, far better Tk binding than Python. > > http://kaolin.unice.fr/STk/ > > I've used both for real-world applications,

Re: why did MIT drop scheme for python in intro to computing?

2007-10-08 Thread Grant Edwards
On 2007-10-09, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Does scheme have a gui library? Yes. It had a far, far better Tk binding than Python. http://kaolin.unice.fr/STk/ I've used both for real-world applications, and STk was _miles_ ahead of tkinter. It was a real, native binding to

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-08 Thread Wade Ward
"Damien Kick" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This thread of conversation also popped into my head when I was waiting in > line at the Starbucks in the building in which I work. I've been ordering > a lot of Americanos lately. I always ask for a small American

Re: Memory leak/gc.get_objects()/Improved gc in version 2.5

2007-10-08 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Questions like this about memory consumption should start with the information printed by the interactive interpreter on startup and additional info about whether the binary is from stock CPython or has 3rd party modules compiled in.

Re: why did MIT drop scheme for python in intro to computing?

2007-10-08 Thread gnuist006
On Oct 8, 1:23 pm, [EMAIL PROTECTED] (Brian Harvey) wrote: > "Kjetil S. Matheussen" <[EMAIL PROTECTED]> writes: > > >I don't think your speculations makes very much sence. > > Amen. > > And, in any case, there's no need to speculate. MIT has published, on their > web site, pages and pages of ratio

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-08 Thread Damien Kick
Wildemar Wildenburger wrote: > Frank Goenninger wrote: >> On 2007-09-29 01:27:04 +0200, Damien Kick <[EMAIL PROTECTED]> said: >> >>> If you were referring to the "free" in "free Mumia Abu Jamal", I >>> would agree with you. I don't think anyone would imagine that this >>> phrase meant that someo

Re: Adding extra modules to a Pyinstaller build

2007-10-08 Thread GaryLee
> I need to add several Python standard modules to a Pyinstaller > project. The modules are not (and cannot be) explicitly imported in my > project script, so is there a way to add them to my .spec file in > order to allow Pyinstaller to search for them in PYTHONPATH and add > them to the project?

Re: pytz has so many timezones!

2007-10-08 Thread Nicholas Bastin
On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > What do you mean by "the military" and why do you think they're > > authoritative on the topic of timezones? > > Because they publish maps? I'm not sure what this has to do with it. > > but as far as I know they don't define timezones.

Re: weakrefs and bound methods

2007-10-08 Thread Bruno Desthuilliers
Mathias Panzenboeck a écrit : About the lost weakref problem: in Python, methods are just tiny wrappers around the object, class and function created at lookup time (yes, on *each* lookup) (and WWAI, they are by the function object itself, which implements the descriptor protocol). > When I ch

Re: pytz has so many timezones!

2007-10-08 Thread [EMAIL PROTECTED]
On Oct 8, 3:27 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > On Oct 8, 1:00 pm, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote: > > > On Mon, Oct 08, 2007 at 10:41:03AM -0700, [EMAIL PROTECTED] wrote > > > regarding Re: pytz ha

Re: pytz has so many timezones!

2007-10-08 Thread [EMAIL PROTECTED]
On Oct 8, 3:23 pm, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote: > On Mon, Oct 08, 2007 at 01:12:32PM -0700, [EMAIL PROTECTED] wrote regarding > Re: pytz has so many timezones!: > > > [ I wrote ] > > > Reducing them to a single time zone will result in aberrant functionality > > > in one or more

Memory leak/gc.get_objects()/Improved gc in version 2.5

2007-10-08 Thread crazy420fingers
I'm running a python program that simulates a wireless network protocol for a certain number of "frames" (measure of time). I've observed the following: 1. The memory consumption of the program grows as the number of frames I simulate increases. To verify this, I've used two methods, which I inv

Re: pytz has so many timezones!

2007-10-08 Thread [EMAIL PROTECTED]
On Oct 8, 5:48 pm, "J. Cliff Dyer" <[EMAIL PROTECTED]> wrote: > On 10/8/07, *J. Clifford Dyer* <[EMAIL PROTECTED] > > > wrote: > > On Mon, Oct 08, 2007 at 01:13:24PM -0700, [EMAIL PROTECTED] > wrote regarding Re: pytz has so many > ti

Re: Convert obejct string repr to actual object

2007-10-08 Thread Michael Spencer
Tor Erik Sønvisen wrote: > Hi, > > I've tried locating some code that can recreate an object from it's > string representation... > The object in question is really a dictionary containing other > dictionaries, lists, unicode strings, floats, ints, None, and > booleans. > > I don't want to use ev

Re: pytz has so many timezones!

2007-10-08 Thread J. Cliff Dyer
On 10/8/07, *J. Clifford Dyer* <[EMAIL PROTECTED] > wrote: On Mon, Oct 08, 2007 at 01:13:24PM -0700, [EMAIL PROTECTED] wrote regarding Re: pytz has so many timezones!: > > On Oct 8, 1:03 pm, Carsten Haese < [EMAIL PROTECTED]

Re: Python + Shoutpy + Twisted Locks

2007-10-08 Thread John Nagle
Chris Mellon wrote: > On 10/7/07, Michel Albert <[EMAIL PROTECTED]> wrote: >> On Oct 6, 4:21 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >>> En Fri, 05 Oct 2007 04:55:55 -0300, exhuma.twn <[EMAIL PROTECTED]> escribi?: >>> [...] What I found is that "libshout" is blocking, which sho

Re: Convert obejct string repr to actual object

2007-10-08 Thread Steven D'Aprano
On Mon, 08 Oct 2007 21:19:50 +0200, Tor Erik Sønvisen wrote: > I don't want to use eval, since I can't trust the source sending the > object I'm sure someone must have had the same need and created code > for it... Maybe Pypy has what I need??? Haven't looked though... For the benefit of tho

Re: Variable scoping rules in Python?

2007-10-08 Thread MRAB
On Oct 8, 4:06 pm, Bruno Desthuilliers wrote: > [EMAIL PROTECTED] a écrit : > > > Ok, I'm relatively new to Python (coming from C, C++ and Java). I'm > > working on a program that outputs text that may be arbitrarily long, > > but should still line up, so I want to split the output on a specific

Re: pytz has so many timezones!

2007-10-08 Thread Travis Jensen
How about a calendar entry: I've got six people in places all over the world to get on the phone together. If the app doesn't know their notion of a time zone, that will never happen. How about financial transactions: time-stamping transactions that move around the world seems pretty useful to me

Re: round-trip from egg to code and back to egg

2007-10-08 Thread John Nagle
Bruno Desthuilliers wrote: > Catherine a écrit : >> Three possibilities come to mind - >> >> 1. I'm missing something simple > > Probably. I'd say, something like unzip .egg !-) That's generally the solution to "egg" files. They usually do the wrong thing, and the "egg" system is still in be

Re: pytz has so many timezones!

2007-10-08 Thread Joe Holloway
On 10/8/07, Sanjay <[EMAIL PROTECTED]> wrote: > 2. Mapping the timezones to countries is a nice idea. Any idea how to > go about it - I mean whether I have to collect the data manually and > do it, or some better way is available - will help me a lot. You might find some good information by brushi

Re: Convert obejct string repr to actual object

2007-10-08 Thread Diez B. Roggisch
Tor Erik Sønvisen schrieb: > Hi, > > I've tried locating some code that can recreate an object from it's > string representation... > The object in question is really a dictionary containing other > dictionaries, lists, unicode strings, floats, ints, None, and > booleans. > > I don't want to use

Re: Python + Shoutpy + Twisted Locks

2007-10-08 Thread Chris Mellon
On 10/7/07, Michel Albert <[EMAIL PROTECTED]> wrote: > On Oct 6, 4:21 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > En Fri, 05 Oct 2007 04:55:55 -0300, exhuma.twn <[EMAIL PROTECTED]> escribi?: > > > > > [...] What I found > > > is that "libshout" is blocking, which should be fine as the wh

Re: csv module and Unicode

2007-10-08 Thread Robert Dailey
Wow; I guess this is a REAL problem! I would have thought that something as common as Unicode CSV would have been supported by SOMEONE. On 10/5/07, Robert Dailey <[EMAIL PROTECTED]> wrote: > > Hi, > > According to the Python 2.5 documentation, Unicode is not supported > through the CSV module. Is

ANN: NUCULAR fielded text searchable indexing

2007-10-08 Thread aaron . watters
ANNOUNCE: NUCULAR fielded text searchable indexing Nucular is a system for creating disk based full text indices for fielded data. It can be accessed via a Python API or via a suite of command line interfaces. Nucular is intended to help store and retrieve searchable information in a manner som

Re: pytz has so many timezones!

2007-10-08 Thread Chris Mellon
On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Oct 8, 1:00 pm, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote: > > On Mon, Oct 08, 2007 at 10:41:03AM -0700, [EMAIL PROTECTED] wrote regarding > > Re: pytz has so many timezones!: > > > > > > > > > On Oct 8, 2:32 am, Sanjay <[EMAIL PROTE

Re: pytz has so many timezones!

2007-10-08 Thread J. Clifford Dyer
On Mon, Oct 08, 2007 at 01:13:24PM -0700, [EMAIL PROTECTED] wrote regarding Re: pytz has so many timezones!: > > On Oct 8, 1:03 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > > On Mon, 2007-10-08 at 10:41 -0700, [EMAIL PROTECTED] wrote: > > > For example, Windows has seperate listings for > > > >

Re: pytz has so many timezones!

2007-10-08 Thread J. Clifford Dyer
On Mon, Oct 08, 2007 at 01:12:32PM -0700, [EMAIL PROTECTED] wrote regarding Re: pytz has so many timezones!: > [ I wrote ] > > Reducing them to a single time zone will result in aberrant functionality > > in one or more locales. > > I would hardly think that's an issue on the user registration

Re: pytz has so many timezones!

2007-10-08 Thread [EMAIL PROTECTED]
On Oct 8, 1:03 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Mon, 2007-10-08 at 10:41 -0700, [EMAIL PROTECTED] wrote: > > For example, Windows has seperate listings for > > > Central America > > Central Time (US & Canada) > > Guadalahara, Mexico City, Monterry - New > > Guadalahara, Mexico City

Re: pytz has so many timezones!

2007-10-08 Thread [EMAIL PROTECTED]
On Oct 8, 1:00 pm, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote: > On Mon, Oct 08, 2007 at 10:41:03AM -0700, [EMAIL PROTECTED] wrote regarding > Re: pytz has so many timezones!: > > > > > On Oct 8, 2:32 am, Sanjay <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > > I am using pytz.common_timezones to

Facebook app give feedback -Send birthday cards to buds http://apps.facebook.com/groupcards/start

2007-10-08 Thread fringo
Facebook app give feedback -Send birthday cards to buds http://apps.facebook.com/groupcards/start -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't use __slots__

2007-10-08 Thread Hrvoje Niksic
Steven D'Aprano <[EMAIL PROTECTED]> writes: > Well, I've read the thread, and I've read the thread it links to, > and for the life of me I'm still no clearer as to why __slots__ > shouldn't be used except that: [...] > But is there actually anything *harmful* that can happen if I use > __slots__?

Re: Convert obejct string repr to actual object

2007-10-08 Thread Chris Mellon
On 10/8/07, Tor Erik Sønvisen <[EMAIL PROTECTED]> wrote: > Hi, > > I've tried locating some code that can recreate an object from it's > string representation... > The object in question is really a dictionary containing other > dictionaries, lists, unicode strings, floats, ints, None, and > boolea

Re: Convert obejct string repr to actual object

2007-10-08 Thread Carsten Haese
On Mon, 2007-10-08 at 21:19 +0200, Tor Erik Sønvisen wrote: > Hi, > > I've tried locating some code that can recreate an object from it's > string representation... > The object in question is really a dictionary containing other > dictionaries, lists, unicode strings, floats, ints, None, and > bo

Convert obejct string repr to actual object

2007-10-08 Thread Tor Erik Sønvisen
Hi, I've tried locating some code that can recreate an object from it's string representation... The object in question is really a dictionary containing other dictionaries, lists, unicode strings, floats, ints, None, and booleans. I don't want to use eval, since I can't trust the source sending

Re: WARNING ABOUT ROGUE OPERATORS Re: The secret of hand compiling LISP/Scheme

2007-10-08 Thread thermate
If you sheeple are ignorant of what I say, look at this link: and the papers therein. 911blogger.com st911.org stj911.org (1) Why did FBI bastards not catch the ANTHRAX mailer? (2) Why did building 7 commit suicide? (3) Where is the Pentagon video, of the plane hitting it ? On Oct 8, 11:30 am, [

Re: Cross platform way of finding number of processors on a machine?

2007-10-08 Thread Lawrence Oluyede
Nicholas Bastin <[EMAIL PROTECTED]> wrote: > This is really bad on linux. You really want to parse /proc/cpuinfo > because HT 'cpus' are almost useless, and can be bad in situations > where you try to treat them as general purpose cpus. I'm not the author of the library. I think you should addres

Re: pytz has so many timezones!

2007-10-08 Thread andrew clarke
On Mon, Oct 08, 2007 at 12:32:19AM -0700, Sanjay wrote: > I am using pytz.common_timezones to populate the timezone combo box of > some user registration form. But as it has so many timezones (around > 400), it is a bit confusing to the users. Is there a smaller and more > practical set? If not, s

WARNING ABOUT ROGUE OPERATORS Re: The secret of hand compiling LISP/Scheme

2007-10-08 Thread thermate
This William D Clinger is a YANK MOTHER F*CKER, a 911 controlled demolition operator group member or a ROGUE bastard in FBI whose job and RACIST tendency is to CONTROL FREEDOM of information. These MOTHERF*CKERS using fake accounts use "FULL LONG NAMES" to FOOL simple and honest people that they ar

Re: Don't use __slots__ (was Re: Problem of Readability of Python)

2007-10-08 Thread Steven Bethard
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Steven Bethard <[EMAIL PROTECTED]> wrote: >> You can use __slots__ [...] > > Aaaugh! Don't use __slots__! > > Seriously, __slots__ are for wizards writing applications with huuuge > numbers of object instances (like, millions of instances). You

Re: Variable scoping rules in Python?

2007-10-08 Thread Paul Hankin
On Oct 8, 3:17 pm, [EMAIL PROTECTED] wrote: > Ok, I'm relatively new to Python (coming from C, C++ and Java). I'm > working on a program that outputs text that may be arbitrarily long, > but should still line up, so I want to split the output on a specific > column boundary. Since I might want to

HCL Technologies:Software Engineer/Senior software Engineer ..:: JobMaguz Update ::..

2007-10-08 Thread janaki . parasuraman
..:: Job Update from JobMaguz ::.. Today's Highlighted Job: HCL Technologies:Software Engineer/Senior software Engineer http://www.jobmaguz.com/viewFresherJobs.aspx?jobid=981&cycle=1 26 jobs posted today in JobMaguz Jobs posted today: Freshers Section HCL Technologies:Software Engineer/Senior s

Re: pytz has so many timezones!

2007-10-08 Thread Carsten Haese
On Mon, 2007-10-08 at 10:41 -0700, [EMAIL PROTECTED] wrote: > For example, Windows has seperate listings for > > Central America > Central Time (US & Canada) > Guadalahara, Mexico City, Monterry - New > Guadalahara, Mexico City, Monterry - Old > Saskatchewan > > but they are all GMT-6 But they c

Re: pytz has so many timezones!

2007-10-08 Thread J. Clifford Dyer
On Mon, Oct 08, 2007 at 10:41:03AM -0700, [EMAIL PROTECTED] wrote regarding Re: pytz has so many timezones!: > > On Oct 8, 2:32 am, Sanjay <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I am using pytz.common_timezones to populate the timezone combo box of > > some user registration form. But as

mailman.bounces

2007-10-08 Thread kalin mintchev
hi all.. i'm a bit confused by the bounces behavior of mailman. the idea is that each address from which a bounce comes back should be immediately removed from the list. right now they are not. or testing i'm purposely putting addresses that do not exist. in the mail log i get: stat=Deferred: Co

Re: pytz has so many timezones!

2007-10-08 Thread [EMAIL PROTECTED]
On Oct 8, 2:32 am, Sanjay <[EMAIL PROTECTED]> wrote: > Hi All, > > I am using pytz.common_timezones to populate the timezone combo box of > some user registration form. But as it has so many timezones (around > 400), There are only 25 timezones: -12, -11, ... -1, 0 (GMT), +1, ... +11, +12. A hand

Re: How to create a file on users XP desktop

2007-10-08 Thread Julius
On Monday 08 October 2007 17:11:25 Tim Golden wrote: > [EMAIL PROTECTED] wrote: > > On Oct 8, 9:19 am, goldtech <[EMAIL PROTECTED]> wrote: > >>> from win32com.shell import shell, shellcon > >>> desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0) > >>> > >> > >> Tim, > >> > >> How did

Re: changes on disk not visible to script ?

2007-10-08 Thread Nick Craig-Wood
Bruce <[EMAIL PROTECTED]> wrote: > On 8 Okt, 15:56, Richie Hindle <[EMAIL PROTECTED]> wrote: > > [Bruce] > > > > > f.close() > > > cmd = "echo %s | %s"%(argument_file,the_program) > > > > Either: you are a VB programmer and you've actually typed "f.close" rather > > than "f.close()", > > You are

Re: Variable scoping rules in Python?

2007-10-08 Thread Steven D'Aprano
On Mon, 08 Oct 2007 07:17:36 -0700, joshua.davies wrote: > I went back and re-read chapter 13 of "Learning Python", which talks > about variable scoping rules, and I can't figure out why Python is > saying this variable in Unbound. It works if I insert: > > global COLUMNS > > before the "if"

[OT] Re: Variable scoping rules in Python?

2007-10-08 Thread Peter Otten
joshua.davies wrote: > Ok, I'm relatively new to Python (coming from C, C++ and Java). I'm > working on a program that outputs text that may be arbitrarily long, > but should still line up, so I want to split the output on a specific > column boundary. Since I might want to change the length of

Re: Really basic problem

2007-10-08 Thread Diez B. Roggisch
Zentrader wrote: > You can use Python's decimal class if floating point arithmetic is not > exact enough This is a misleading statement. While it's true that decimal can be more precise in the sense that smaller fractions are representable, the underlying problem of certain values not being repre

Adding extra modules to a Pyinstaller build

2007-10-08 Thread Craig
Hello all: I need to add several Python standard modules to a Pyinstaller project. The modules are not (and cannot be) explicitly imported in my project script, so is there a way to add them to my .spec file in order to allow Pyinstaller to search for them in PYTHONPATH and add them to the project

Re: Really basic problem

2007-10-08 Thread Zentrader
You can use Python's decimal class if floating point arithmetic is not exact enough import decimal status = decimal.Decimal( 0 ) for i in range(10): status += decimal.Decimal( "0.1" ) if status == decimal.Decimal( "0.1" ): print status elif status == decimal.Decimal( "0.2" ):

Re: changes on disk not visible to script ?

2007-10-08 Thread Richie Hindle
[Bruce] > VB programmer!? Thats really harsh.. No offence intended! 8-) -- Richie -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create a file on users XP desktop

2007-10-08 Thread kyosohma
On Oct 8, 10:11 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Oct 8, 9:19 am, goldtech <[EMAIL PROTECTED]> wrote: > >>> from win32com.shell import shell, shellcon > >>> desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0) > >>> > >> Tim, > > >> How did yo

Re: weakrefs and bound methods

2007-10-08 Thread Chris Mellon
On 10/8/07, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Mon, 08 Oct 2007 04:06:55 +, Michele Simionato wrote: > > > > Hmmm... I'm not sure I understand how a with statement is meant to > > > replace class.__del__ in practice. It seems to me that the two things > > > have different uses. wit

ANN: Pyrex 0.9.6.1

2007-10-08 Thread Greg Ewing
Pyrex 0.9.6.1 is now available: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ This version fixes a few minor problems that turned up in the initial 0.9.6 release. What is Pyrex? -- Pyrex is a language for writing Python extension modules. It lets you freely mix operations

RE: tkinter question

2007-10-08 Thread Hamilton, William
> -Original Message- > From: Kevin Walzer > > See http://www.codebykevin.com/blosxom/business/phynchronicity-new.png: > this is an application I develop. The layout is all handled by "pack" > and paned windows. Where you you use "grid" in a layout like this? > I'd use a three row grid, w

Re: How to create a file on users XP desktop

2007-10-08 Thread Tim Golden
[EMAIL PROTECTED] wrote: > On Oct 8, 9:19 am, goldtech <[EMAIL PROTECTED]> wrote: >>> from win32com.shell import shell, shellcon >>> desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0) >>> >> Tim, >> >> How did you learn Win32com? >> >> Other than the O'Reilly book, I've never found

Re: Variable scoping rules in Python?

2007-10-08 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Ok, I'm relatively new to Python (coming from C, C++ and Java). I'm > working on a program that outputs text that may be arbitrarily long, > but should still line up, so I want to split the output on a specific > column boundary. FWIW : http://docs.python.org/lib/mod

Re: Tkinter text widget

2007-10-08 Thread goldtech
After some Google searching I found "ScrolledText", this does what I want :^) from Tkinter import * from ScrolledText import ScrolledText root = Tk() text = ScrolledText(root, font=("Courier")) ScrolledText text.pack() i='123456789abcdefghijklmnopqrstuvwxyz\n' for x in range(30): text.insert(

www.yedil.com best hindi entertainment site

2007-10-08 Thread diprat7
www.yedil.com best hindi entertainment site with vidoes,photo sharing,photo rating features its really gona rock you www.yedil.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Override 'and' and 'or'

2007-10-08 Thread Andrew Durdin
On 10/7/07, Dekker <[EMAIL PROTECTED]> wrote: > > Well I think it is not possible what I wanted to achieve. By > overriding the "and" and "or" keyword I wanted to return a new object: > > SqlValueInt(4) and SqlValueInt(5) --> SqlOpAnd(SqlValueInt(4), > SqlValueInt(5)) PEP 335 is a proposal to allo

Re: How to create a file on users XP desktop

2007-10-08 Thread kyosohma
On Oct 8, 9:19 am, goldtech <[EMAIL PROTECTED]> wrote: > > from win32com.shell import shell, shellcon > > > desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0) > > > > > Tim, > > How did you learn Win32com? > > Other than the O'Reilly book, I've never found a lot of > documentation.

Re: Howto Launch a windows application ?

2007-10-08 Thread Hyuga
On Oct 3, 5:39 pm, stef mientki <[EMAIL PROTECTED]> wrote: > > from subprocess import * > > cmd =[] > cmd.append ( 'D:\\PIC-tools\\JALxxx\\jalv2_3.exe' ) > cmd.append ( '-long-start' ) > cmd.append ( '-d') > cmd.append ( '-clear' ) > cmd.append ( '-sD:\\PIC-tools\\JAL\\libs2' ) > cmd.append ( 'd:\\

Re: changes on disk not visible to script ?

2007-10-08 Thread Nick Craig-Wood
Bruce <[EMAIL PROTECTED]> wrote: > I am trying to have my script automate a task, by using os.system, but > I cant get it to work. > > manually, outside the script I can do this thing by > > C:\echo argument_file | the_program > > This works very well when argument_file is created before my

Re: Variable scoping rules in Python?

2007-10-08 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Ok, I'm relatively new to Python (coming from C, C++ and Java). I'm > working on a program that outputs text that may be arbitrarily long, > but should still line up, so I want to split the output on a specific > column boundary. Since I might want to change the lengt

Re: How to create a file on users XP desktop

2007-10-08 Thread goldtech
> from win32com.shell import shell, shellcon > > desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0) > > Tim, How did you learn Win32com? Other than the O'Reilly book, I've never found a lot of documentation. Trying to browse COM in PythonWin is tough - there's tons of stuff in

Variable scoping rules in Python?

2007-10-08 Thread joshua . davies
Ok, I'm relatively new to Python (coming from C, C++ and Java). I'm working on a program that outputs text that may be arbitrarily long, but should still line up, so I want to split the output on a specific column boundary. Since I might want to change the length of a column, I tried defining the

Re: changes on disk not visible to script ?

2007-10-08 Thread Bruce
On 8 Okt, 15:56, Richie Hindle <[EMAIL PROTECTED]> wrote: > [Bruce] > > > f.close() > > cmd = "echo %s | %s"%(argument_file,the_program) > > Either: you are a VB programmer and you've actually typed "f.close" rather > than "f.close()", > > Or: you meant "type" (or "cat") rather than "echo", > > Or:

Re: Tkinter text widget

2007-10-08 Thread goldtech
On Oct 7, 11:00 am, Simon Forman <[EMAIL PROTECTED]> wrote: > On Oct 6, 11:18 pm, goldtech <[EMAIL PROTECTED]> wrote: > > > > > I thought the "DISABLED" made it so I could not edit it. But it also > > makes it so I can not scroll down. If you make the window smaller than > > the content then try to

Re: Don't use __slots__ (was Re: Problem of Readability of Python)

2007-10-08 Thread Diez B. Roggisch
Steven D'Aprano wrote: > On Mon, 08 Oct 2007 15:15:36 +0200, Diez B. Roggisch wrote: > >>> Well, I've read the thread, and I've read the thread it links to, and >>> for the life of me I'm still no clearer as to why __slots__ shouldn't >>> be used except that: >>> >>> 1 Aahz and Guido say __slots

Re: How to create a file on users XP desktop

2007-10-08 Thread kyosohma
On Oct 7, 12:30 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > Tim Chase wrote: > >> You are assuming the system is not localized, that won't work if you > >> distribute your applications internationally. In my system it is not > >> "Desktop", it is "Escritorio", and I guess it will vary with every >

Re: changes on disk not visible to script ?

2007-10-08 Thread Richie Hindle
[Bruce] > f.close() > cmd = "echo %s | %s"%(argument_file,the_program) Either: you are a VB programmer and you've actually typed "f.close" rather than "f.close()", Or: you meant "type" (or "cat") rather than "echo", Or: I need a new crystal ball. 8-) -- Richie Hindle [EMAIL PROTECTED] -- htt

Re: changes on disk not visible to script ?

2007-10-08 Thread kyosohma
On Oct 8, 8:27 am, Bruce <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to have my script automate a task, by using os.system, but > I cant get it to work. > > manually, outside the script I can do this thing by > > C:\echo argument_file | the_program > > This works very well when argument_file is

Re: How to create a file on users XP desktop

2007-10-08 Thread goldtech
> from win32com.shell import shell, shellcon > > desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0) > > > I have a general problem with using win32com. It's the documentation. I never know what is available, what classes, methods, what they do. Even some of the existing documentat

Re: pytz has so many timezones!

2007-10-08 Thread Sanjay
> Windows timezone selector only lists about 80 timezones. But why force > the user to select timezone? Let them select from a list of countries > and then infer the timezone from that data. With multiple alternatives > for countries with more than one timezone, United States EST, United > States P

changes on disk not visible to script ?

2007-10-08 Thread Bruce
Hi, I am trying to have my script automate a task, by using os.system, but I cant get it to work. manually, outside the script I can do this thing by C:\echo argument_file | the_program This works very well when argument_file is created before my script is started In the script I try to do it l

Re: Don't use __slots__ (was Re: Problem of Readability of Python)

2007-10-08 Thread Steven D'Aprano
On Mon, 08 Oct 2007 15:15:36 +0200, Diez B. Roggisch wrote: >> Well, I've read the thread, and I've read the thread it links to, and >> for the life of me I'm still no clearer as to why __slots__ shouldn't >> be used except that: >> >> 1 Aahz and Guido say __slots__ are teh suxxor; >> >> 2 rumou

RE: Really basic problem

2007-10-08 Thread Andreas Tawn
> > I guess this means that Python has some concept of "close > enough", but > > I'll have to defer to someone more knowledgeable to explain that. > > No, not really, except in the sense that any floating point > calculation > will be necessarily imprecise in that sense. [snip] > So typing 0.3

Re: Don't use __slots__ (was Re: Problem of Readability of Python)

2007-10-08 Thread Diez B. Roggisch
Steven D'Aprano wrote: > On Sun, 07 Oct 2007 21:27:31 -0700, Aahz wrote: > >> In article <[EMAIL PROTECTED]>, Steven >> Bethard <[EMAIL PROTECTED]> wrote: >>> >>>You can use __slots__ [...] >> >> Aaaugh! Don't use __slots__! >> >> Seriously, __slots__ are for wizards writing applications wit

python graphics

2007-10-08 Thread [EMAIL PROTECTED]
hello all i researching a graphics table with python.haeve you got this how it have got design and fast making thanks for your help -- http://mail.python.org/mailman/listinfo/python-list

Re: Pil image module, "mode" bug..

2007-10-08 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > On Oct 7, 8:17 pm, Michal Bozon <[EMAIL PROTECTED]> wrote: >> On Sun, 07 Oct 2007 09:02:09 -0700, Abandoned wrote: >> > On Oct 7, 4:47 pm, Michal Bozon <[EMAIL PROTECTED]> wrote: >> >> On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: >> >> > Hi.. >> >> > I find the p

Re: Pil image module, "mode" bug..

2007-10-08 Thread [EMAIL PROTECTED]
On Oct 7, 8:17 pm, Michal Bozon <[EMAIL PROTECTED]> wrote: > On Sun, 07 Oct 2007 09:02:09 -0700, Abandoned wrote: > > On Oct 7, 4:47 pm, Michal Bozon <[EMAIL PROTECTED]> wrote: > >> On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: > >> > Hi.. > >> > I find the picture color with: > >> > im=Imag

  1   2   >