GOZERBOT 0.9.2 BETA1 released

2010-04-26 Thread Bart Thate
I just released the first BETA of GOZERBOT version 0.9.2 Please test this release if you can. Best is to run of the mercurial repo: hg clone http://core.gozerbot.org/hg/dev/0.9 or run easy_install -U gozerbot gozerplugs (make sure there is no gozerbot dir in your working directory.) docs are

ANN: expy 0.6.4 released!

2010-04-26 Thread Yingjie Lan
expy is an express way to extend python. I have been using this in a big project and the outcome is quite satisfying. What's New: 1. now generated header files are separate from implementation files. 2. bug fixes. 3. updated documentation. For more information: http://expy.sourceforge.net/

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Terry Reedy
On 4/25/2010 11:36 PM, Keith wrote: I am considering writing a PEP for the inclusion of an engineering format specifier, and would appreciate input from others. I tested that input is no problem, so the only question is output. Do you think this idea has enough merit to make it to PEP

Re: py2exe breaking wxPython?

2010-04-26 Thread Nick Ballard
On Apr 24, 6:53 pm, Alex Hall mehg...@gmail.com wrote: Hello all, I have a compiled version of my project, but the wx functions do not work. When run from the python source, instead of the compiled .exe file, wx works as expected. I am including msvcr90.dll in the dist folder. I looked for

ANN: expy 0.6.4 released!

2010-04-26 Thread Yingjie Lan
expy is an express way to extend python. It is written in pure python and very light weight. I have been using this in a big project and the outcome is quite satisfying. What's New: 1. now generated header files are separate from implementation files. 2. bug fixes. 3. updated documentation.

WIN32 - get the GUID of a Network Device

2010-04-26 Thread Richard Lamboj
Hello, is there a way to get the GUID from a Network Device? Kind Regard, Richi -- http://mail.python.org/mailman/listinfo/python-list

Re: WIN32 - get the GUID of a Network Device

2010-04-26 Thread Tim Golden
On 26/04/2010 09:06, Richard Lamboj wrote: is there a way to get the GUID from a Network Device? Are you talking about the MAC address? If so, here's one way: code import wmi for nic in wmi.WMI ().Win32_NetworkAdapterConfiguration (): print nic.caption, =, nic.MACAddress /code If you're

Re: how to debug python application crashed occasionally

2010-04-26 Thread Helmut Jarausch
On 04/25/10 08:32, jacky wang wrote: could anyone help me? On Apr 21, 2:55 pm, jacky wang bugking.w...@gmail.com wrote: Hello recently, I met a problem with one python application running with python2.5 | debian/lenny adm64 system: it crashed occasionally in our production

Re: WIN32 - get the GUID of a Network Device

2010-04-26 Thread Richard Lamboj
Am Monday 26 April 2010 10:14:24 schrieb Tim Golden: On 26/04/2010 09:06, Richard Lamboj wrote: is there a way to get the GUID from a Network Device? Are you talking about the MAC address? If so, here's one way: code import wmi for nic in wmi.WMI ().Win32_NetworkAdapterConfiguration

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Stefan Krah
Chris Rebert c...@rebertia.com wrote: c = decimal.Context(prec=5) decimal.Decimal(1234567).to_eng_string(c) '1234567' That is not an engineering notation string. Apparently either you and the General Decimal Arithmetic spec differ on what constitutes engineering notation, there's a

Completely Deleting A Directory

2010-04-26 Thread Lawrence D'Oliveiro
It doesn’t seem to mention in the documentation for os.walk http://docs.python.org/library/os.html that symlinks to directories are returned in the list of directories, not the list of files. This will lead to an error in the os.rmdir call in the example directory-deletion routine on that

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Stefan Krah
Keith keith.braff...@gmail.com wrote: Even though this uses the to_eng_string() function, and even though I am using the decimal.Context class: c = decimal.Context(prec=5) decimal.Decimal(1234567).to_eng_string(c) '1234567' That is not an engineering notation string. To clarify

Make money online

2010-04-26 Thread kutty
=== www.workpartorfulltime.blogspot.com === -- http://mail.python.org/mailman/listinfo/python-list

Re: Download Proprietary Microsoft Products Now

2010-04-26 Thread Lawrence D'Oliveiro
Just been looking at this review of Visual Studio 2010 http://www.theregister.co.uk/2010/04/26/blowing_bubbtles/: ... the 2GB ISO was quicker to download than it was to install - not even counting the several reboots required. Since when do you need to REBOOT just to install a

Re: WIN32 - get the GUID of a Network Device

2010-04-26 Thread Tim Golden
On 26/04/2010 09:49, Richard Lamboj wrote: thanks for your response. No, i don't mean the MAC Address. I mean the GUID - Sample: {1E2428C1-9F2C-48D7-AB53-3229DFB7E217} I want to change TcpAckFrequency and TcpDelTicks of a Network Interface. I Try to change it over the Registry, but maybe there

Re: DLLs loading in interpreter but not with direct run on Windows

2010-04-26 Thread JTimoty
Sorry guys, the problem seems to be less general. Actually, the error is triggered when I try to import numpy before PyQt4. It imports without any problems after PyQt4. I still don't know what the problem actually is, but at least my scripts work. Thanks, Tim. --

Re: WIN32 - get the GUID of a Network Device

2010-04-26 Thread Tim Golden
On 26/04/2010 11:47, Tim Golden wrote: OK; I'm going to hope that Tim Roberts or someone equally knowledgeable can kick in here as devices really isn't my area. However this looks like it *might* be doing what you want: code import wmi for nic in c.Win32_NetworkAdapter

Re: How to choose a debugger

2010-04-26 Thread Fabio Zadrozny
2010/4/25 sanam singh sanamsi...@hotmail.com: Hi, I want to debug my c++blocks which are dynamically loaded into python for execution. I am using wingide for debugging python. But its limitation is that when c++module is called in python script it doent take me into c++ module. What I want is

Re: Making special method names, work with __getattr__

2010-04-26 Thread Antoon Pardon
Op 2010-04-23, Chris Rebert schreef c...@rebertia.com: On Fri, Apr 23, 2010 at 2:41 AM, Antoon Pardon apar...@forel.vub.ac.be wrote: test() -- The result I get is: 5 8 15 Traceback (most recent call last):  File

Re: Making special method names, work with __getattr__

2010-04-26 Thread Chris Rebert
On Mon, Apr 26, 2010 at 3:57 AM, Antoon Pardon apar...@forel.vub.ac.be wrote: Op 2010-04-23, Chris Rebert schreef c...@rebertia.com: On Fri, Apr 23, 2010 at 2:41 AM, Antoon Pardon apar...@forel.vub.ac.be wrote: The result I get is: 5 8 15 Traceback (most recent call last):  File

Re: [ANN] pyjamas 0.7 released

2010-04-26 Thread Daniel Fetchinson
for fits and giggles, to show what's possible in only 400 lines of python, here is a game of asteroids, written by joe rumsey. yes, it runs under pyjamas-desktop too. http://pyjs.org/examples/asteroids/public/Space.html This URL returns a blank page for me on firefox 3.3.5 (linux) with

GOZERBOT 0.9.2 BETA1 released

2010-04-26 Thread Bart Thate
I just released the first BETA of GOZERBOT version 0.9.2 Please test this release if you can. Best is to run of the mercurial repo: hg clone http://core.gozerbot.org/hg/dev/0.9 or run easy_install -U gozerbot gozerplugs (make sure there is no gozerbot dir in your working directory.) docs are

Re: [ANN] pyjamas 0.7 released

2010-04-26 Thread Jean-Michel Pichavant
Luke Kenneth Casson Leighton wrote: [snip] Am I the only one getting this error ? easy_install --prefix /home/jeanmichel -m pyjamas Searching for pyjamas Reading http://pypi.python.org/simple/pyjamas/ Reading http://pyjs.org Best match: pyjamas 0.7 Downloading

Re: pyjamas 0.7 released

2010-04-26 Thread lkcl
On Apr 26, 12:45 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Luke Kenneth Casson Leighton wrote: [snip] Am I the only one getting this error ? yes, because you're the only one using easy_install. you'll need to read and follow the instructions in README and INSTALL.txt the

Re: pyjamas 0.7 released

2010-04-26 Thread lkcl
On Apr 25, 8:38 pm, Patrick Maupin pmau...@gmail.com wrote: On Apr 25, 8:49 am, Luke Kenneth Casson Leighton l...@lkcl.net wrote: pyjamas- the stand-alone python-to-javascript compiler, and separate GUI Widget Toolkit, has its 0.7 release, today.  this has been much delayed, in order to

Re: pyjamas 0.7 released

2010-04-26 Thread lkcl
On Apr 25, 9:37 pm, Wolfgang Strobl ne...@mystrobl.de wrote: Daniel Fetchinson fetchin...@googlemail.com: for fits and giggles, to show what's possible in only 400 lines of python, here is a game of asteroids, written by joe rumsey. yes, it runs underpyjamas-desktop too.    

RE: Need help with basic DOM XML tree traversing

2010-04-26 Thread Barak, Ron
-Original Message- From: Stefan Behnel [mailto:stefan...@behnel.de] Sent: Sunday, April 25, 2010 6:42 PM To: python-list@python.org Subject: Re: Need help with basic DOM XML tree traversing Barak, Ron, 25.04.2010 17:06: This is my first try at XML with Python, and though I tried

HOLLYWOOD ACTRESS BRITENY SPEARS ANGLIANA JOLI KATE VINSLATE NICOLE KIDMAN HOLLYWOOD ACTRESS BOLLYWOOD ACTRESS LOLLYWOOD ACTRES SEXY HOLLYWOOD ACTRESS GIRLS WITHOUT CLOTHS ON http

2010-04-26 Thread Naeem
HOLLYWOOD ACTRESS BRITENY SPEARS ANGLIANA JOLI KATE VINSLATE NICOLE KIDMAN HOLLYWOOD ACTRESS BOLLYWOOD ACTRESS LOLLYWOOD ACTRES SEXY HOLLYWOOD ACTRESS GIRLS WITHOUT CLOTHSON http://hollywood6y.blogspot.com/ HOLLYWOOD ACTRESS BRITENY SPEARS ANGLIANA JOLI KATE VINSLATE NICOLE KIDMAN

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Grant Edwards
On 2010-04-26, Keith keith.braff...@gmail.com wrote: I am considering writing a PEP for the inclusion of an engineering format specifier, and would appreciate input from others. I very regularly do something similar in various apps, though I often want to specify the exponent (e.g. I always

how to select column

2010-04-26 Thread mannu jha
Dear all, I am new in python, can anyone help me that how can I select two column out of 6 column from a file. For example if I have file like: a1 a2 a3 a4 a5 a6 b1 b2 b3 b4 b5 b6 c1 c2 c3 c4 c5 c6 d1 d2 d3 d4 d5 d6 and I want output like: a1 a4 b1 b4 c1 c4 d1 d4 then how to do Thanks --

PyDev : undefined variable from import

2010-04-26 Thread Wanderer
Since the last Java update, I get the error, undefined variable from import in Pydev in the Eclipse editor. I can still run the program in Eclipse. If I add a blank line and save the program, the error goes away, but that screws up the revision with SVN. Has anyone else seen this or have a fix.

Re: how to select column

2010-04-26 Thread Gary Herron
mannu jha wrote: Dear all, I am new in python, can anyone help me that how can I select two column out of 6 column from a file. For example if I have file like: a1 a2 a3 a4 a5 a6 b1 b2 b3 b4 b5 b6 c1 c2 c3 c4 c5 c6 d1 d2 d3 d4 d5 d6 and I want output like: a1 a4 b1 b4 c1 c4 d1 d4 then how

Re: how to select column

2010-04-26 Thread J. Cliff Dyer
It depends on what you mean by a column. I assume your data is more complex than what you've shown us. If your data is really single words separated by spaces, you can do: for line in open('file'): columns = line.split() return columns[0], columns[3] If your columns can

Python date time API

2010-04-26 Thread rk
Hi, I am python novice, trying to convert a boost::gregorian::date out to python using PyDateTime C-api interface. I was coring because the C- API failed to initialize. The error was: AttributeError: module object has not attribute datetime_CAPI As indicated by the error, a dir(datetime) gives

Re: Completely Deleting A Directory

2010-04-26 Thread MrJean1
Two comments: 1) Should delete_dir not be called instead of os.rmdir in this line (os.rmdir, os.remove)[os.path.islink(item)](item) 2) Function rmtree in the shutil module considers symlinks to a directory an error http://docs.python.org/library/shutil.html#module- shutil since

[ANN]: 'tren' Cross-Platform Batch Renaming Tool, Version 1.217 Released

2010-04-26 Thread Tim Daneliuk
'tren' Version 1.217 is now released and available for download at: http://www.tundraware.com/Software/tren - What's New In This Release? --- This is the initial public release. What Is

Re: Python date time API

2010-04-26 Thread Jason Scheirer
On Apr 26, 8:21 am, rk kadambi...@gmail.com wrote: Hi,  I am python novice, trying to convert a boost::gregorian::date out to python using PyDateTime C-api interface. I was coring because the C- API failed to initialize. The error was: AttributeError: module object has not attribute

running .py files on Linux

2010-04-26 Thread Tingting HAN
Dear Officer, I downloaded a C code packet which contains many .py files. When I try to run these.py files on my computer with Linux system, for every .py file the following error occurs: hantingt...@tityro:~/Downloads/triMC3D/python$ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC

Re: Completely Deleting A Directory

2010-04-26 Thread MrJean1
The answer to 1) is no, due to topdown = False in the call to os.walk. /Jean On Apr 26, 8:31 am, MrJean1 mrje...@gmail.com wrote: Two comments: 1) Should delete_dir not be called instead of os.rmdir in this line                 (os.rmdir, os.remove)[os.path.islink(item)](item) 2) Function

Re: Re: how to select column

2010-04-26 Thread mannu jha
Dear Sir, Thanks for your help..but yes my files are having column like: # RESIDUE AA STRUCTURE BP1 BP2 ACC N-H--OO--H-NN-H--O O--H-NTCO KAPPA ALPHA PHI PSIX-CA Y-CA Z-CA 12 A I 0 0 91 0, 0.038,-0.1 0, 0.0

Propietary binary serial port protocols

2010-04-26 Thread jon vs. python
Hi, I'm working in several helper tools to parse, simulate, etc. propietary binary serial port protocols. I'm trying to find out which is the best internal data representation. Bytearrays seem to be the best choice, but I'd like some feedback from more experienced developers; because I took a look

Re: running .py files on Linux

2010-04-26 Thread alex goretoy
make sure the tar, zip or package you downloaded isn't corrupt. verify it with a md5sum and then extract it. just a thought. Thank you, -Alex Goretoy http://launchpad.net/~a1g On Mon, Apr 26, 2010 at 11:05 AM, Tingting HAN hihigh...@gmail.com wrote: Dear Officer, I downloaded a C code packet

Some objects missing from tkinter

2010-04-26 Thread Shane
I'm new to Python, so I'll try to be clear about my problem. I'm using Python 3.1 (latest stable version from python.org) on Windows 7. I have a program using tkinter for UI, and it works properly from both pything GUI shell, and running from command prompt, EXCEPT that I have a menu command to

Re: Some objects missing from tkinter

2010-04-26 Thread Peter Otten
Shane wrote: I'm new to Python, so I'll try to be clear about my problem. I'm using Python 3.1 (latest stable version from python.org) on Windows 7. I have a program using tkinter for UI, and it works properly from both pything GUI shell, and running from command prompt, EXCEPT that I have

dictionary

2010-04-26 Thread gopi krishna
When I give a dictionary with key and value in order how can get back iy in same order -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary

2010-04-26 Thread Benjamin Kaplan
On Mon, Apr 26, 2010 at 2:04 PM, gopi krishna dasarathulag...@gmail.comwrote: When I give a dictionary with key and value in order how can get back iy in same order You can't using the standard dict type. If you're using Python 3.1, you can use collections.OrderedDict instead. Otherwise,

Re: dictionary

2010-04-26 Thread Peter Otten
gopi krishna wrote: When I give a dictionary with key and value in order how can get back iy in same order You can't. You either have to maintain a list of the keys in parallel, or use an ordered dictionary like the following: http://code.activestate.com/recipes/576693/ It will be included

Re: pyjamas 0.7 released

2010-04-26 Thread Patrick Maupin
On Apr 26, 8:44 am, lkcl luke.leigh...@googlemail.com wrote:  the purpose of browsers is to isolate the application, restrict its access to the rest of the desktop and OS, so that random applications cannot go digging around on your private data. Well, I would agree that a requirement for the

Re: Completely Deleting A Directory

2010-04-26 Thread Patrick Maupin
On Apr 26, 4:09 am, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: It doesn’t seem to mention in the documentation for os.walk http://docs.python.org/library/os.html that symlinks to directories are returned in the list of directories, not the list of files. This will lead to an

Re: Some objects missing from tkinter

2010-04-26 Thread Lie Ryan
On 04/27/10 03:50, Peter Otten wrote: It is a bit unfortunate that your editor has side effects on your program, and I recommend that you never trust the result of importing a module from within idle's shell completely. In fact, never trust IDLE. IDLE is a nice IDE when the alternative is

py2exe sets error message

2010-04-26 Thread Ron Adelman
getting following error message when trying to run my setup file ...\py2exe\build_exe.py:16: DeprecationWarning: the sets module is deprecated import sets Removing files in directory :./dist,keeping protedted files... python 2.65 new install. Any work arounds(Hacks)?? --

Re: py2exe sets error message

2010-04-26 Thread MRAB
Ron Adelman wrote: getting following error message when trying to run my setup file ...\py2exe\build_exe.py:16: DeprecationWarning: the sets module is deprecated import sets Removing files in directory :./dist,keeping protedted files... python 2.65 new install. Any work arounds(Hacks)??

Re: can't get python 2.5.5 to work on mac os x 10.4.11

2010-04-26 Thread Diez B . Roggisch
new2Cocos bchk...@gmail.com wrote: Hi everyone, I posted this in the cocos2d and pyglet discussion group, I thought I'll get a response right away since my problem is quite general but I got no response. I hope you will help me!!! this is the original post

chr(i) ASCII under Python 3

2010-04-26 Thread Dodo
Hi all, Under python 2.6, chr() Return a string of one character whose ASCII code is the integer i. (quoted from docs.python.org) Under python 3.1, chr() Return the string of one character whose Unicode codepoint is the integer i. I want to convert a ASCII code back to a character under

Re: chr(i) ASCII under Python 3

2010-04-26 Thread Alf P. Steinbach
On 26.04.2010 22:12, * Dodo: Hi all, Under python 2.6, chr() Return a string of one character whose ASCII code is the integer i. (quoted from docs.python.org) Under python 3.1, chr() Return the string of one character whose Unicode codepoint is the integer i. I want to convert a ASCII code back

Re: chr(i) ASCII under Python 3

2010-04-26 Thread Dodo
Le 26/04/2010 22:26, Alf P. Steinbach a écrit : On 26.04.2010 22:12, * Dodo: Hi all, Under python 2.6, chr() Return a string of one character whose ASCII code is the integer i. (quoted from docs.python.org) Under python 3.1, chr() Return the string of one character whose Unicode codepoint is

Re: pyjamas 0.7 released

2010-04-26 Thread lkcl
On Apr 26, 6:52 pm, Patrick Maupin pmau...@gmail.com wrote: On Apr 26, 8:44 am, lkcl luke.leigh...@googlemail.com wrote:  the purpose of browsers is to isolate the application, restrict its access to the rest of the desktop and OS, so that random applications cannot go digging around on

Re: WIN32 - get the GUID of a Network Device

2010-04-26 Thread Tim Roberts
Tim Golden wrote: On 26/04/2010 09:49, Richard Lamboj wrote: thanks for your response. No, i don't mean the MAC Address. I mean the GUID - Sample: {1E2428C1-9F2C-48D7-AB53-3229DFB7E217} I want to change TcpAckFrequency and TcpDelTicks of a Network Interface. I Try to change it over the

Re: Download Proprietary Microsoft Products Now

2010-04-26 Thread Andrej Mitrovic
On Apr 26, 12:16 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: Just been looking at this review of Visual Studio 2010 http://www.theregister.co.uk/2010/04/26/blowing_bubbtles/:     ... the 2GB ISO was quicker to download than it was to install - not     even counting the

Re: chr(i) ASCII under Python 3

2010-04-26 Thread Alf P. Steinbach
On 26.04.2010 22:26, * Dodo: Le 26/04/2010 22:26, Alf P. Steinbach a écrit : On 26.04.2010 22:12, * Dodo: Hi all, Under python 2.6, chr() Return a string of one character whose ASCII code is the integer i. (quoted from docs.python.org) Under python 3.1, chr() Return the string of one character

Re: pyjamas 0.7 released

2010-04-26 Thread Patrick Maupin
On Apr 26, 4:12 pm, lkcl luke.leigh...@googlemail.com wrote:  and, given that you can use AJAX (e.g. JSONRPC) to communicate with a server-side component, installed on 127.0.0.1 and effectively do the exact same thing, nobody bothers. I suppose, but again, that pushes off the security thing.

Re: PyDev : undefined variable from import

2010-04-26 Thread Fabio Zadrozny
On Mon, Apr 26, 2010 at 12:08 PM, Wanderer wande...@dialup4less.com wrote: Since the last Java update, I get the error, undefined variable from import in Pydev in the Eclipse editor. I can still run the program in Eclipse. If I add a blank line and save the program, the error goes away, but

Re: Completely Deleting A Directory

2010-04-26 Thread Lawrence D'Oliveiro
In message 86bb4820-ab5a-49cc-9e64-7f7e609e4...@y6g2000prk.googlegroups.com, MrJean1 wrote: 2) Function rmtree in the shutil module considers symlinks to a directory an error http://docs.python.org/library/shutil.html#module-shutil since Python 2.6. I don’t think that applies to

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Mark Dickinson
On Apr 26, 4:36 am, Keith keith.braff...@gmail.com wrote: I am considering writing a PEP for the inclusion of an engineering format specifier, and would appreciate input from others. [...] I am thinking that if we simply added something like %n (for eNgineer) to the list of format

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Mark Dickinson
On Apr 26, 6:47 am, Keith keith.braff...@gmail.com wrote: From that document it appears that my decimal.Decimal(1234567) example shows that the module has a bug: Doc says: [0,123,3] ===  123E+3 But Python does: import decimal decimal.Decimal(123000).to_eng_string() '123000' That's not

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Keith
Apparently either you and the General Decimal Arithmetic spec differ on what constitutes engineering notation, there's a bug in the Python decimal library, You've distilled it precisely, and as you've shown in a different post, it's the former. The Python decimal module seems to implement

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Keith
On Apr 26, 5:33 am, Stefan Krah stefan-use...@bytereef.org wrote: Keith keith.braff...@gmail.com wrote: Even though this uses the to_eng_string() function, and even though I am using the decimal.Context class: c = decimal.Context(prec=5) decimal.Decimal(1234567).to_eng_string(c)

Re: Engineering numerical format PEP discussion

2010-04-26 Thread MRAB
Mark Dickinson wrote: On Apr 26, 4:36 am, Keith keith.braff...@gmail.com wrote: I am considering writing a PEP for the inclusion of an engineering format specifier, and would appreciate input from others. [...] I am thinking that if we simply added something like %n (for eNgineer) to the

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Keith
On Apr 26, 7:56 pm, Mark Dickinson dicki...@gmail.com wrote: On Apr 26, 6:47 am, Keith keith.braff...@gmail.com wrote: From that document it appears that my decimal.Decimal(1234567) example shows that the module has a bug: Doc says: [0,123,3] ===  123E+3 But Python does: import

Re: Engineering numerical format PEP discussion

2010-04-26 Thread Keith
On Apr 26, 8:47 pm, MRAB pyt...@mrabarnett.plus.com wrote: t for powers of a thousand, perhaps? (Or m?) Both of those letters are fine. I kinda like m for the whole Greco- Roman angle, now that you point it out :-) --Keith Brafford -- http://mail.python.org/mailman/listinfo/python-list

Detect OS shutdown or user logout across different operating systems

2010-04-26 Thread python
Is there a OS portable way to have a Python script detect when its operating system is shutting down or a user is logging out? If not, any Windows specific tips on how to detect these events? Thank you, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: Detect OS shutdown or user logout across different operating systems

2010-04-26 Thread James Mills
On Tue, Apr 27, 2010 at 12:09 PM, pyt...@bdurham.com wrote: Is there a OS portable way to have a Python script detect when its operating system is shutting down or a user is logging out? In the Linux world, you would normally create an rc/init style script that is invoked at boot and shutdown

Re: Some objects missing from tkinter

2010-04-26 Thread Shane
On Apr 26, 11:58 am, Lie Ryan lie.1...@gmail.com wrote: On 04/27/10 03:50, Peter Otten wrote: It is a bit unfortunate that your editor has side effects on your program, and I recommend that you never trust the result of importing a module from within idle's shell completely. In fact,

hollywood sexiest scenes hollywood blue films hollywood actress hollywood actress wallpapers hollywood actress hot bed scene hollywood actress pictures hollywood actress angelina jolie

2010-04-26 Thread Naeem
hollywood sexiest scenes hollywood blue films hollywood actress hollywood actress wallpapers hollywood actress hot bed scene hollywood actress pictures hollywood actress angelina jolie ON http://hollywood6y.blogspot.com/ hollywood sexiest scenes hollywood blue films hollywood actress

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Francesco Del Degan
Changes by Francesco Del Degan f.delde...@ngi.it: Added file: http://bugs.python.org/file17085/timemodule-gmtime-r265.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6280 ___

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Francesco Del Degan
Changes by Francesco Del Degan f.delde...@ngi.it: Added file: http://bugs.python.org/file17086/timemodule-gmtime-r27b1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6280 ___

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Francesco Del Degan
Changes by Francesco Del Degan f.delde...@ngi.it: Added file: http://bugs.python.org/file17087/timemodule-gmtime-r312.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6280 ___

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Francesco Del Degan
Changes by Francesco Del Degan f.delde...@ngi.it: Added file: http://bugs.python.org/file17088/timemodule-gmtime-3-trunk.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6280 ___

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Francesco Del Degan
Changes by Francesco Del Degan f.delde...@ngi.it: Removed file: http://bugs.python.org/file16351/timemodule-gmtime-2-trunk.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6280 ___

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Francesco Del Degan
Changes by Francesco Del Degan f.delde...@ngi.it: Removed file: http://bugs.python.org/file16352/timemodule-gmtime-2-r27a3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6280 ___

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Francesco Del Degan
Changes by Francesco Del Degan f.delde...@ngi.it: Removed file: http://bugs.python.org/file16353/timemodule-gmtime-2-r311.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6280 ___

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Francesco Del Degan
Changes by Francesco Del Degan f.delde...@ngi.it: Removed file: http://bugs.python.org/file16354/timemodule-gmtime-2-r264.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6280 ___

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Francesco Del Degan
Francesco Del Degan f.delde...@ngi.it added the comment: Fixed typos, new patches added -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6280 ___

[issue8532] Refinements to Python 3 New GIL

2010-04-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - duplicate status: open - closed superseder: - Convoy effect with I/O bound threads and New GIL ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8532

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: That's what I thought at first too. But the user's sockets were set to blocking. That's one broken networking stack... In fact, I think it's a little silly that OS X raises the error rather than just saying that 0 bytes were

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Dave, In the current implementation, threads perform a timed-wait on a condition variable. If time expires and no thread switches have occurred, the currently running thread is forced to drop the GIL. A problem, as far as I can see, is that

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's what I thought at first too. But the user's sockets were set to blocking. If you set a timeout on a socket, it is really non-blocking internally (from the OS' point of view). So perhaps this is what you are witnessing. By the way,

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What is the mnemonic corresponding to errno 35 under OS X? (under Linux I get EDEADLOCK, which probably isn't the right one) -- ___ Python tracker rep...@bugs.python.org

[issue4171] SSL handshake fails after TCP connection in getpeername()

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, so I think we can close the issue then. Thank you! -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4171

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, DNS resolution should be disabled by default, as in most HTTP servers probably. -- nosy: +pitrou stage: - unit test needed ___ Python tracker rep...@bugs.python.org

[issue8513] subprocess: support bytes program name

2010-04-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: My patch changes: * os._execvpe(): support bytes type for the file argument (program name) * os.get_exec_path(): support bytes type for the PATH environment variable * Popen._execute_child(): decode the executable name before

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-26 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: And for this specific request, it fdqn is looked up only for logging to sys.stderr. Either removing the fqdn call or just caching per connection it as the patch does is both fine. I doubt if someone is relying this logging anywhere in the

[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-04-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: They're also useful for dealing with environment variables which are not strictly filesystem (fs) related but also suffer from the same issue requiring surrogate escape. Yes, Python3 decodes environment variables using

[issue8214] Add exception logging function to syslog module

2010-04-26 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com added the comment: I believe I have the first function implemented. See the attached patch for that code and feel free to review. -- keywords: +patch nosy: -haypo Added file: http://bugs.python.org/file17089/logexception.diff

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-04-26 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: If a test fails, regrtest writes the backtrace to sys.stdout. If the backtrace contains a non-ASCII characters, it's encoded using sys.stdout encoding. In some conditions, sys.stdout is unable to encode some or all non-ASCII

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-04-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- components: +Tests, Unicode ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8533 ___ ___

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: And for this specific request, it fdqn is looked up only for logging to sys.stderr. Either removing the fqdn call or just caching per connection it as the patch does is both fine. I doubt if someone is relying this logging anywhere in the

[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-04-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh! In Python3, ntpath.expanduser() supports bytes path and uses sys.getfilesystemencoding() to encode an unicode environment variable to a byte string. Should we remove bytes path support in ntpath.expanduser(), or support bytes

[issue8534] multiprocessing not working from egg

2010-04-26 Thread simon
New submission from simon ext-simon.stei...@nokia.com: testmultiprocessing.py: def main(): import multiprocessing proc = multiprocessing.Process(target=runhi) proc.start() proc.join() def runhi(): print 'hi' if __name__ == __main__: main()

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-26 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: On Mon, Apr 26, 2010 at 10:45:56AM +, Antoine Pitrou wrote: What do you mean? BaseHTTPRequestHandler is tested in test_httpservers. I meant specifically for that function which is logging to sys.stderr. No return values, state changes

  1   2   >