Opening an EXE without using os.system

2007-10-08 Thread Christopher Wessels
Hi, I am trying to open an EXE file without the command window popping up At the moment I have got Os.system("exe.exe args") But as the program opens it flashes the command window. It is going to be a WINDOWS program. Thanks -- http://mail.python.org/mailman/listinfo/python-lis

pytz has so many timezones!

2007-10-08 Thread Sanjay
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), it is a bit confusing to the users. Is there a smaller and more practical set? If not, some suggestions on how to handle the registration form e

Re: Off Topic: Gmail hates newsgroups!!!

2007-10-08 Thread James Matthews
I agree it annoys me also! -- http://search.goldwatches.com/search.aspx?Search=Cufflinks http://www.jewelerslounge.com -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter question

2007-10-08 Thread Eric Brunel
On Sun, 07 Oct 2007 18:09:16 +0200, Kevin Walzer <[EMAIL PROTECTED]> wrote: > Hendrik van Rooyen wrote: >> "Kevin Walzer" <[EMAIL PROTECTED]> wrote: >> >>> I find "pack" to be more flexible than "grid," so I prefer it for >>> complex layouts. "grid" is better for simple layouts. >> *does a dou

Re: pytz has so many timezones!

2007-10-08 Thread Diez B. Roggisch
Sanjay 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), it is a bit confusing to the users. Is there a smaller and more > practical set? If not, some suggestions on how to han

Re: pytz has so many timezones!

2007-10-08 Thread BJörn Lindqvist
On 10/8/07, 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), it is a bit confusing to the users. Is there a smaller and more > practical set? If not,

Re: Top Programming Languages of 2013

2007-10-08 Thread Wildemar Wildenburger
Tim Roberts wrote: > Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: >> import friends >> import sex >> >> try: >> sex.have() >> except ErrectionError, PrematureError: >> pass >> finally: >> sex.brag(friends) > > Well, if "ErrectionError" ever becomes a real exception, I certainly get

Really basic problem

2007-10-08 Thread tomamil
i know this example is stupid and useless, but that's not the answer to my question. here it goes: status = 0.0 for i in range(10): status = status + 0.1 if status == 0.1: print status elif status == 0.2: print status elif status == 0.3: print status elif statu

Re: Top Programming Languages of 2013

2007-10-08 Thread Michael
I'd guess that by 2013 we'll be using a slightly more graceful, but still horribly wrong (and unsupported by IE 7.666), redo of HTML, CSS, Javascript, Flash, and Java with a poorly conceived back-end marriage of PHP + MySQL or some horrible Microsoft technology for most apps. I'll also venture that

Re: Really basic problem

2007-10-08 Thread John Machin
On 8/10/2007 7:39 PM, tomamil wrote: > i know this example is stupid and useless, but that's not the answer > to my question. > here it goes: > > status = 0.0 > for i in range(10): >status = status + 0.1 > [snip] 0.1 can not be represented exactly as a binary floating-point number. to see wh

RE: Really basic problem

2007-10-08 Thread Andreas Tawn
> i know this example is stupid and useless, but that's not the answer > to my question. > here it goes: > > status = 0.0 > for i in range(10): >status = status + 0.1 > >if status == 0.1: >print status >elif status == 0.2: >print status >elif status == 0.3: >

Re: Off Topic: Gmail hates newsgroups!!!

2007-10-08 Thread Andrii V. Mishkovskyi
2007/10/4, Robert Dailey <[EMAIL PROTECTED]>: > I don't know how many other people subscribe to the python mailing list and > use the mailing list using the web-based interface for Gmail, but I do. I > use it mainly because Gmail doesn't support IMAP and I use my email from > multiple locations. Gm

Re: Really basic problem

2007-10-08 Thread A.T.Hofkamp
On 2007-10-08, Andreas Tawn <[EMAIL PROTECTED]> wrote: >> i know this example is stupid and useless, but that's not the answer >> to my question. >> here it goes: >> > You've just discovered the joys of floating point number comparisons. > > Consider this snippet: > > status = 0.0 > print (repr(st

Re: pytz has so many timezones!

2007-10-08 Thread gatti
On Oct 8, 10:40 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Sanjay 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), it is a bit confusing to the users. Is there

Paned Window Widget Resize/ Refresh Trouble

2007-10-08 Thread Mridula Ramesh
Hi. I am trying to show data using the paned window widget, and am encountering this problem: whenever the vertical/horizontal resizing bars are moved, the widgets and data on the panels are thrown out of alignment and sometimes totally disappear. They only reappear when you sort of drag the panes

Re: Problem of Readability of Python

2007-10-08 Thread Bruno Desthuilliers
Brian Elmegaard a écrit : > Bruno Desthuilliers <[EMAIL PROTECTED]> > writes: > >> Use dicts, not lists or tuples: >> >> a = dict(name='yadda', val=42) >> print a['name'] >> print a['val'] > > I guess you will then need a list or tuple to store the dicts? Should be a list then IMHO. But then it'

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-08 Thread Joost Kremers
[EMAIL PROTECTED] wrote: > Don't both "man" and those words for measurement come ultimately from > words for "hand" (similarly to words like "manual", as in labor)? no. "manual" is derived from latin "manus" meaning "hand". the word "man" is related to (though not directly derived from) "mind", an

Re: weakrefs and bound methods

2007-10-08 Thread Steven D'Aprano
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. with is useful when you create an object, do > > something with it,

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

2007-10-08 Thread Steven D'Aprano
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 with huuuge > numbers of object instanc

Re: Really basic problem

2007-10-08 Thread Steven D'Aprano
On Mon, 08 Oct 2007 12:09:28 +0200, Andreas Tawn wrote: > The issue is that 0.1 etc don't have an exact representation as floating > point. > > Interestingly: > 0.10001 == 0.1 > True 0.30004 == 0.3 > False > > I guess this means that Python has some concept of

Re: Really basic problem

2007-10-08 Thread tomamil
thanks you all guys for your help, it's really appreciated... m. -- http://mail.python.org/mailman/listinfo/python-list

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >