Python iPod challenge

2007-11-08 Thread josetokyo
Hi! a friend and me are investigating how mother-tongue influences programming productivity. We need volunteers to take on a 3 minutes python language programming test. if you are interested please be so kind to visit: http://test-iq.web.cern.ch/test-iq/step1.php?lang=en

Re: easy 3D graphics for rendering geometry?

2007-11-08 Thread Kjell Magne Fauske
On Nov 8, 6:53 am, gsal [EMAIL PROTECTED] wrote: What would be the easiest way to go about offering 3D graphics for the purpose of rendering geometry? Suppose engineers (my co-workes) have to design some enclosure, nozzle, bracket, or whatever physical part/component, I would like to write a

Re: 911 operation by evil JEWS and Mossad

2007-11-08 Thread James Matthews
Thank You! Maybe we can get rid of this guy now... This is a python group... On Nov 8, 2007 12:28 PM, philipp neulist [EMAIL PROTECTED] wrote: On Nov 7, 4:08 pm, [EMAIL PROTECTED] wrote: 911 carried out by evil jews and mossadhttp://www.guba.com/watch/2000991770 911 truckload of

wxPython ListCtrl image configuring

2007-11-08 Thread vedrandekovic
Hello, Here is example of my ListCtrl items with image: ( filebox1 is ListCtrl ) il = wx.ImageList(16,16) images=[file1.png,folder.png] for i in images: il.Add(wx.Bitmap(i)) img_list=filebox1.SetImageList(il, wx.IMAGE_LIST_SMALL) j=1

pyparsing and svg

2007-11-08 Thread Donn Ingle
Hi - I have been trying, but I need some help: Here's my test code to parse an SVG path element, can anyone steer me right? d1= M 209.12237 , 172.2415 L 286.76739 , 153.51369 L 286.76739 , 275.88534 L 209.12237 , 294.45058 L 209.12237 , 172.2415 z #Try it with no enters d1=M

Re: help parsing ipv6 addresses and subnets

2007-11-08 Thread Thorsten Kampe
* Prabhu Gurumurthy (Wed, 07 Nov 2007 22:34:14 -0800) I would like to parse IPv6 addresses and subnet using re module in python. Just don't: http://pypi.python.org/pypi?%3Aaction=searchterm=ipv6 submit=search -- http://mail.python.org/mailman/listinfo/python-list

Re: manually cutting a picture

2007-11-08 Thread Amit Khemka
On 11/7/07, Cameron Walsh [EMAIL PROTECTED] wrote: Amit Khemka wrote: Cut image by m X m grid (bigger the m, the more varied shapes you would be able to generate), this will give you m*m square pieces. With each piece store a vector which represents the polygon (say by storing

Re: 911 operation by evil JEWS and Mossad

2007-11-08 Thread philipp neulist
On Nov 7, 4:08 pm, [EMAIL PROTECTED] wrote: 911 carried out by evil jews and mossadhttp://www.guba.com/watch/2000991770 911 truckload of Explosives on the George Washington Bridgehttp://www.youtube.com/watch?v=J520P-MD9a0 [...] I reported the first post in this thread (on Google groups) as

Linking debug C++ DLL with python dlls

2007-11-08 Thread moshehaim1
Hi, I am working with C++ code that needs to be maintained both in debug and release versions. The environment is Windows 32 bit with MSVC8. I downloaded the python installation for Win32 and installed it. When, however, I tried to compile my DLLs in debug mode i got link errors specifying that

Showing native 8-bit strings in Python interpreter

2007-11-08 Thread braver
I'm storing 8-bit characters from the 128-256 range in Python strings. They are Windows CP1251 Russian characters. When looking at those strings in the Python interpreter, they come up as codes inside the string. How can I teach Python to show those 8-bit characters in the native encoding of

Re: Showing native 8-bit strings in Python interpreter

2007-11-08 Thread Diez B. Roggisch
braver wrote: I'm storing 8-bit characters from the 128-256 range in Python strings. They are Windows CP1251 Russian characters. When looking at those strings in the Python interpreter, they come up as codes inside the string. How can I teach Python to show those 8-bit characters in the

Re: python in academics?

2007-11-08 Thread Nicolas DERAM
2007/11/6, Nicolas.Chauvat [EMAIL PROTECTED]: Le Mon, 29 Oct 2007 20:39:29 -0700, sandipm a écrit: seeing posts from students on group. I am curious to know, Do they teach python in academic courses in universities? I am teaching assistant for the course

Re: 911 operation by evil JEWS and Mossad

2007-11-08 Thread Simon Spiegel
On 2007-11-08 04:21:48 +0100, [EMAIL PROTECTED] said: 911 carried out by evil jews and mossad http://www.guba.com/watch/2000991770 I'm glad it was carried out by evil jews and not by nice ones. That rules me out. simon -- http://mail.python.org/mailman/listinfo/python-list

Re: easy 3D graphics for rendering geometry?

2007-11-08 Thread Marco Nawijn
On Nov 8, 6:53 am, gsal [EMAIL PROTECTED] wrote: What would be the easiest way to go about offering 3D graphics for the purpose of rendering geometry? Suppose engineers (my co-workes) have to design some enclosure, nozzle, bracket, or whatever physical part/component, I would like to write a

pyserial: loose connection after inactivity

2007-11-08 Thread Frank Aune
Hello, I configure the serial connection using: self.port = serial.Serial(baudrate=57600, timeout=0.06, parity=serial.PARITY_EVEN, stopbits=serial.STOPBITS_TWO,

Re: easy 3D graphics for rendering geometry?

2007-11-08 Thread Donn Ingle
I recommend taking a look at Blender 3D: http://www.blender.org/ Oh yeah, Blender is THE way to go. It's fantastic. \d -- http://mail.python.org/mailman/listinfo/python-list

Re: pyparsing and svg

2007-11-08 Thread Paul McGuire
On Nov 8, 3:14 am, Donn Ingle [EMAIL PROTECTED] wrote: float = nums + dot + nums Should be: float = Combine(Word(nums) + dot + Word(nums)) nums is a string that defines the set of numeric digits for composing Word instances. nums is not an expression by itself. For that matter, I see in

Re: permuting over nested dicts?

2007-11-08 Thread Boris Borcic
Boris Borcic wrote: Christian Meesters wrote: Hoi, I have the following data structure (of variable size actually, to make things simple, just that one): d = {'a': {'x':[1,2,3], 'y':[4,5,6]}, 'b': {'x':[7,8,9], 'y':[10,11,12]}} This can be read as a dict of possibilities: The entities

Re: Using python as primary language

2007-11-08 Thread Jens
On 8 Nov., 08:52, Michel Albert [EMAIL PROTECTED] wrote: In our company we are looking for one language to be used as default language. So far Python looks like a good choice (slacking behind Java). A few requirements that the language should be able cope with are: * Database access to

Re: pyparsing and svg

2007-11-08 Thread Arkanes
Paul McGuire wrote: On Nov 8, 3:14 am, Donn Ingle [EMAIL PROTECTED] wrote: float = nums + dot + nums Should be: float = Combine(Word(nums) + dot + Word(nums)) nums is a string that defines the set of numeric digits for composing Word instances. nums is not an expression by

Re: wxPython ListCtrl image configuring

2007-11-08 Thread kyosohma
On Nov 8, 5:45 am, [EMAIL PROTECTED] wrote: Hello, Here is example of my ListCtrl items with image: ( filebox1 is ListCtrl ) il = wx.ImageList(16,16) images=[file1.png,folder.png] for i in images: il.Add(wx.Bitmap(i))

System exit hanging in Leopard

2007-11-08 Thread Tony Mullen
Hello, I'm using Tkinter to create widgets in Python 2.5 on OS X 10.5. When I call root.quit or sys.exit in any way, the following traceback appears, after which the application stops responding and just gives the spinning rainbow cursor. The IDLE editor and the Python shell remain responsive,

Re: 911 operation by evil JEWS and Mossad

2007-11-08 Thread thermate
On Nov 8, 3:28 am, philipp neulist [EMAIL PROTECTED] wrote: On Nov 7, 4:08 pm, [EMAIL PROTECTED] wrote: 911 carried out by evil jews and mossadhttp://www.guba.com/watch/2000991770 911 truckload of Explosives on the George Washington Bridgehttp://www.youtube.com/watch?v=J520P-MD9a0 [...]

Re: Python iPod challenge

2007-11-08 Thread scripteaze
On Nov 8, 2:21 am, [EMAIL PROTECTED] wrote: Hi! a friend and me are investigating how mother-tongue influences programming productivity. We need volunteers to take on a 3 minutes python language programming test. if you are interested please be so kind to visit:

Re: Python iPod challenge

2007-11-08 Thread Tim Chase
if you are interested please be so kind to visit: http://test-iq.web.cern.ch/test-iq/step1.php?lang=en Well, just out of curosity, i started the test, however, it seems a little bugy. My answer to the first question one was: [snipped] getting the following error: SYNTAX

[win32] spawn background process and detach it w/o problems

2007-11-08 Thread Dmitry Teslenko
Hello! How to write portable (win32, unix) script that launches another program and continues its execution? I've looked at spawn*() but it doesn't look in PATH dirs on windows so it's totally unusable when you don't know where exactly program is. I've looked at fork() way but there's no fork

Re: Can local function access local variables in main program?

2007-11-08 Thread Antoon Pardon
On 2007-11-03, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Sat, 03 Nov 2007 17:30:45 -, Sullivan WxPyQtKinter [EMAIL PROTECTED] declaimed the following in comp.lang.python: Actually I am quite satisfied with and error, which is my expectation. But the implicit global variable access

Re: why did these companies choose Tcl over Python

2007-11-08 Thread Kryvor
As an electronics engineer I use some very expensive EDA CAD tool programs that are scriptable using Tcl. I was wondering why these companies have choose to use Tcl instead of Python. Some of these are: Mentor Graphics ModelTech VHDL and Verilog simulator Synopsys Design Compiler

optional arguments with compact reporting in optparse

2007-11-08 Thread braver
Posted to the Optik list, but it seems defunct. Optik is now Python's optparse. I wonder how do you implement optional arguments to Optik. I.e., you can have an option -P [file] -- the filename is optional, with a default data,pikl. It works as follows: -- if no -P is given, no pickle is

http question

2007-11-08 Thread steven depret
hello there, a question that keeps me puzzled for some time now: basically i want to fetch the output from an http page. The page exists out of an input field and a button to calculate my data. The problem is that I simply cannot get my hands on the output, but only on the page itself.

How to output newline or carriage return with optparse

2007-11-08 Thread john . m . roach
I'm trying to implement some simple command line options. Some of the 'help' sections are long and I would like to control line breaks. How do you do this? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to output newline or carriage return with optparse

2007-11-08 Thread Tim Chase
ASIDE: I've started refactoring this bit out in my local source...how would I go about contributing it back to the Python code-base? I didn't get any feedback from posting to the Optik site. You can post a patch to bugs.python.org, but it will probably just get forwarded to the optik

Re: How to output newline or carriage return with optparse

2007-11-08 Thread Steven Bethard
Tim Chase wrote: ASIDE: I've started refactoring this bit out in my local source...how would I go about contributing it back to the Python code-base? I didn't get any feedback from posting to the Optik site. You can post a patch to bugs.python.org, but it will probably just get forwarded

Re: How to output newline or carriage return with optparse

2007-11-08 Thread john . m . roach
On Nov 8, 11:46 am, Tim Chase [EMAIL PROTECTED] wrote: I'm trying to implement some simple command line options. Some of the 'help' sections are long and I would like to control line breaks. How do you do this? I had this problem earlier and solved it here:

Re: How to output newline or carriage return with optparse

2007-11-08 Thread Steven Bethard
Tim Chase wrote: ASIDE: I've started refactoring this bit out in my local source...how would I go about contributing it back to the Python code-base? I didn't get any feedback from posting to the Optik site. You can post a patch to bugs.python.org, but it will probably just get forwarded

Re: Is pyparsing really a recursive descent parser?

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 3, 10:49 am, Paul McGuire [EMAIL PROTECTED] wrote: grammar ((word + grammar) | (word + Literal(end))) which works. [Clarifies that the common (and similar) solution doesn't work -- this works only because the literal binds tightly to the word, so you can't get a word that matches on

Catching and automating a win32 MessageBox

2007-11-08 Thread Xavier Homs
Hi, I'm using an application that shows a standard (YES/NO) reconnect MessageBox each time if loses conection with its server. It defaults to YES. Is there any way to hook such a MessageBox a send a default action (yes) from a Python Script? All I've been able to do is to get a HWND with

Re: optional arguments with compact reporting in optparse

2007-11-08 Thread Steven Bethard
braver wrote: Posted to the Optik list, but it seems defunct. Optik is now Python's optparse. I wonder how do you implement optional arguments to Optik. You may want to check out argparse: http://argparse.python-hosting.com/ It supports optional arguments like this:: parser =

Re: Linking debug C++ DLL with python dlls

2007-11-08 Thread brzrkr0
On Nov 8, 4:07 am, [EMAIL PROTECTED] wrote: I tried to change the code above (just for fun) so in both cases i'll use python25.lib and in debug compilation I got linker errors on unresolved externals. seems like the debug version exports more methods than the release version. I usually just

Re: How to output newline or carriage return with optparse

2007-11-08 Thread Tim Chase
I'm trying to implement some simple command line options. Some of the 'help' sections are long and I would like to control line breaks. How do you do this? I had this problem earlier and solved it here:

Re: finding bluetooth serial port

2007-11-08 Thread Paul Sijben
thanks very much! Grant Edwards wrote: On 2007-11-07, Paul Sijben [EMAIL PROTECTED] wrote: To automate/ease configuration in my app I am trying to find out to which serial port a certain bluetooth device is connected. With pybluez I can find out which bluetooth devices I have, but it will

Re: http question

2007-11-08 Thread Joe Riopel
On Nov 8, 2007 11:02 AM, steven depret [EMAIL PROTECTED] wrote: I get a lot of stuff in my output, but simply NOT the a=xx and the b = yy. What the heck am I doing wrong ? What kind of stuff are you getting? Are you getting all the contents of the HTTP response and/or HTML? --

Re: How to output newline or carriage return with optparse

2007-11-08 Thread Tim Chase
Thanks for the help Tim. I just copied and pasted your code into a file in my $PYTHONPATH (IndentedHelpFormatterWithNL.py), but I'm getting the following error: class IndentedHelpFormatterWithNL(IndentedHelpFormatter): NameError: name 'IndentedHelpFormatter' is not defined I tried

Old version of sqlite3

2007-11-08 Thread Colin J. Williams
sqlalchemy gives the following error message for sqlite: C:\Python25\lib\site-packages\sqlalchemy\databases\sqlite.py:167: RuntimeWarning: The installed version of sqlite (3.3.4) is out-dated, and will cause errors in some cases. Version 3.3.13 or greater is recommended.

Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
I'm trying to get a list of messages from GMAIL using it's new IMAP access. So far I've tried running this command but it just hangs. Any ideas? import imaplib M=imaplib.IMAP4('imap.gmail.com',993) I figured that's the first line to run from this example:

Re: Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread Jason
On Nov 8, 11:41 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to get a list of messages from GMAIL using it's new IMAP access. So far I've tried running this command but it just hangs. Any ideas? import imaplib M=imaplib.IMAP4('imap.gmail.com',993) I figured that's the

Creating a cell 'by hand'

2007-11-08 Thread Prepscius, Colin (IT)
The last argument to new.function takes a closure, which is a tuple of cell objects. Does anybody know how to create those cell objects 'by hand'? Thanks! Colin NOTICE: If received in error, please destroy and notify sender. Sender does

RE: Using python as primary language

2007-11-08 Thread Michael Bacarella
How do you feel about multithreading support? A multithreaded application in Python will only use a single CPU on multi-CPU machines due to big interpreter lock, whereas the right thing happens in Java. Note that this is untrue for many common uses of threading (e.g. using threads

Re: Some pythonic suggestions for Python

2007-11-08 Thread Bruno Desthuilliers
Frank Samuelson a écrit : I love Python, and it is one of my 2 favorite languages. I would suggest that Python steal some aspects of the S language. --- 1. Currently in Python def foo(x,y): ... assigns the name foo to a function

Re: Using python as primary language

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 2:09 pm, Michael Bacarella [EMAIL PROTECTED] wrote: In our company we are looking for one language to be used as default language. So far Python looks like a good choice (slacking behind Java). A few requirements that the language should be able cope with are: How do you feel

Re: Creating a cell 'by hand'

2007-11-08 Thread Chris Mellon
On Nov 8, 2007 5:30 PM, Prepscius, Colin (IT) [EMAIL PROTECTED] wrote: The last argument to new.function takes a closure, which is a tuple of cell objects. Does anybody know how to create those cell objects 'by hand'? Beyond copying them from an existing closure, you'll have to use the C API

Re: Creating a cell 'by hand'

2007-11-08 Thread Jean-Paul Calderone
On Thu, 8 Nov 2007 18:30:15 -0500, Prepscius, Colin \(IT\) [EMAIL PROTECTED] wrote: The last argument to new.function takes a closure, which is a tuple of cell objects. Does anybody know how to create those cell objects 'by hand'? Here's one approach: def f(): ... x = 10 ...

Re: Using python as primary language

2007-11-08 Thread Chris Mellon
On Nov 8, 2007 5:22 PM, Michael Bacarella [EMAIL PROTECTED] wrote: How do you feel about multithreading support? A multithreaded application in Python will only use a single CPU on multi-CPU machines due to big interpreter lock, whereas the right thing happens in Java. Note

Re: Is pyparsing really a recursive descent parser?

2007-11-08 Thread [david]
Kay Schluehr wrote: Could you please learn some parser theory 101 and then come back when you have complaints about one or the other implemententation of a particular Python parser? When some guy enters a forum with a newbie question most of the time people are willing to give a fair and

Please post Python jobs to the Python Job Board (was: Python Developers needed for...)

2007-11-08 Thread Ben Finney
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: Hello! Please feel free to forward this on to your network. All those interested in this position, please email me at [...] This forum is not an appropriate place to post job advertisements. Instead, please use the Python Job Board

Re: Python on Leopard issues

2007-11-08 Thread Nicholas Bastin
On Nov 8, 2007 4:59 PM, Nicholas Bastin [EMAIL PROTECTED] wrote: Also, Apple distributes the standard library in a zip file, so you won't find all the packages just lying around. They should all be stored in /Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip. I'll eat my

Re: Python on Leopard issues

2007-11-08 Thread Nicholas Bastin
On Nov 8, 2007 4:13 PM, Chris [EMAIL PROTECTED] wrote: Are others having fundamental issues on OSX 10.5 with python 2.5.1? I was excited that Python 2.5 was included, but this excitement was very short lived. Almost nothing works. Upon startup I get this message: 'import site' failed; use -v

Re: Anyone had success using NetUseAdd() on shares accessed through a Windows 2003 DFS root?

2007-11-08 Thread kyosohma
On Nov 8, 2:23 pm, Sean Peterson [EMAIL PROTECTED] wrote: Has anyone had success using NetUseAdd() on shares that were replica links on a Windows 2003 DFS root? In my code, I'm getting error: pywintypes.error: (67, 'NetUseAdd', 'The network name cannot be found.') This is my scenario:

Re: Some pythonic suggestions for Python

2007-11-08 Thread Raymond Hettinger
On Nov 8, 12:00 pm, Frank Samuelson [EMAIL PROTECTED] wrote: def foo(x,y): ... assigns the name foo to a function object. Why not use the = operator like most other assignments? FWIW, the also binds the __name__ attribute: foo = lambda(x,y): ... foo.__name__ = 'foo' Raymond --

Re: Old version of sqlite3

2007-11-08 Thread Martin v. Löwis
Any suggestions for a workaround? You could silence the warning, using the warnings module. Alternatively, I think you should be able to replace sqlite3.dll with a newer version. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Anyone had success using NetUseAdd() on shares accessed through a Windows 2003 DFS root?

2007-11-08 Thread Sean Peterson
Has anyone had success using NetUseAdd() on shares that were replica links on a Windows 2003 DFS root? In my code, I'm getting error: pywintypes.error: (67, 'NetUseAdd', 'The network name cannot be found.') This is my scenario: Win2003 Server hosting DFS root #NTS-03

Re: Linking debug C++ DLL with python dlls

2007-11-08 Thread Mathieu Gontier
Hello, I often build Python on Windows. What I can say is it not so trivial to build debug libraries for Python: each debug library must have the postfix *_d.dll/.pyd. Another useful information. On Windows, a shared library is linked to our application though a associated file with the .lib

Re: How to output newline or carriage return with optparse

2007-11-08 Thread John
On Nov 8, 12:40 pm, Tim Chase [EMAIL PROTECTED] wrote: Thanks for the help Tim. I just copied and pasted your code into a file in my $PYTHONPATH (IndentedHelpFormatterWithNL.py), but I'm getting the following error: class IndentedHelpFormatterWithNL(IndentedHelpFormatter):

Re: Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 2:22 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Nov 8, 1:52 pm, Jason [EMAIL PROTECTED] wrote: On Nov 8, 11:41 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to get a list of messages from GMAIL using it's new IMAP access. So far I've tried running

Re: help parsing ipv6 addresses and subnets

2007-11-08 Thread Hyuga
On Nov 8, 3:11 am, Thorsten Kampe [EMAIL PROTECTED] wrote: * Prabhu Gurumurthy (Wed, 07 Nov 2007 22:34:14 -0800) I would like to parse IPv6 addresses and subnet using re module in python. Just don't:http://pypi.python.org/pypi?%3Aaction=searchterm=ipv6 submit=search And even if you do

RE: Using python as primary language

2007-11-08 Thread Michael Bacarella
In our company we are looking for one language to be used as default language. So far Python looks like a good choice (slacking behind Java). A few requirements that the language should be able cope with are: How do you feel about multithreading support? A multithreaded application in Python

Re: Some pythonic suggestions for Python

2007-11-08 Thread Carl Banks
On Nov 8, 3:00 pm, Frank Samuelson [EMAIL PROTECTED] wrote: I know these ideas are not perfect, but I think they may be better... Fire away. Python isn't Lisp. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list

*** Revealing New Video on VP Dick Cheney's ILLUSTRIOUS Career ***

2007-11-08 Thread thermate
Take a break from a stressful day, and educate yourself !!! Below is the optimum browsing order. http://novakeo.com/?p=151 http://www.youtube.com/watch?v=oEenyyiQGGQ http://www.youtube.com/watch?v=tRfhUezbKLw http://www.youtube.com/watch?v=PtpvLIpdXPQ

Re: Using python as primary language

2007-11-08 Thread kyosohma
On Nov 8, 1:09 pm, Michael Bacarella [EMAIL PROTECTED] wrote: In our company we are looking for one language to be used as default language. So far Python looks like a good choice (slacking behind Java). A few requirements that the language should be able cope with are: How do you feel

Re: Looking for a good Python environment

2007-11-08 Thread PyScripter
On Nov 7, 6:50 pm, Paul Rubin http://[EMAIL PROTECTED] wrote: Colin J. Williams [EMAIL PROTECTED] writes: Could you elaborate on lightweight please? I findPyScripterto be a powerful editor/debugger combination. What functionality does Eclipse have thatPyScripterdoes not? While we're at

Re: Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 1:52 pm, Jason [EMAIL PROTECTED] wrote: On Nov 8, 11:41 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to get a list of messages from GMAIL using it's new IMAP access. So far I've tried running this command but it just hangs. Any ideas? import imaplib

Re: spawn background process and detach it w/o problems

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 8:09 am, Dmitry Teslenko [EMAIL PROTECTED] wrote: Hello! How to write portable (win32, unix) script that launches another program and continues its execution? I've looked at spawn*() but it doesn't look in PATH dirs on windows so it's totally unusable when you don't know where

Re: Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 1:52 pm, Jason [EMAIL PROTECTED] wrote: On Nov 8, 11:41 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to get a list of messages from GMAIL using it's new IMAP access. So far I've tried running this command but it just hangs. Any ideas? import imaplib

Re: Using python as primary language

2007-11-08 Thread kyosohma
On Nov 8, 1:52 am, Michel Albert [EMAIL PROTECTED] wrote: In our company we are looking for one language to be used as default language. So far Python looks like a good choice (slacking behind Java). A few requirements that the language should be able cope with are: * Database access to

Some pythonic suggestions for Python

2007-11-08 Thread Frank Samuelson
I love Python, and it is one of my 2 favorite languages. I would suggest that Python steal some aspects of the S language. --- 1. Currently in Python def foo(x,y): ... assigns the name foo to a function object. Is this pythonic? Why not use

Re: Linking debug C++ DLL with python dlls

2007-11-08 Thread Martin v. Lo
So I decided to download and build the debug version of python2.5.1/ As it seems I also need to compile all relevant extension modules (*.pyd) in debug as well - is this correct? That's correct. I tried to change the code above (just for fun) so in both cases i'll use python25.lib and in

Re: Anyone had success using NetUseAdd() on shares accessed through a Windows 2003 DFS root?

2007-11-08 Thread kyosohma
On Nov 8, 2:23 pm, Sean Peterson [EMAIL PROTECTED] wrote: Has anyone had success using NetUseAdd() on shares that were replica links on a Windows 2003 DFS root? In my code, I'm getting error: pywintypes.error: (67, 'NetUseAdd', 'The network name cannot be found.') This is my scenario:

Re: Some pythonic suggestions for Python

2007-11-08 Thread Jarek Zgoda
Frank Samuelson pisze: foo = function(x,y) x+y*2 # Example S language code Ugly. -- Jarek Zgoda http://zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Python on Leopard issues

2007-11-08 Thread Chris
Are others having fundamental issues on OSX 10.5 with python 2.5.1? I was excited that Python 2.5 was included, but this excitement was very short lived. Almost nothing works. Upon startup I get this message: 'import site' failed; use -v for traceback and sure enough, all of the built-in

Re: Some pythonic suggestions for Python

2007-11-08 Thread Diez B. Roggisch
Frank Samuelson schrieb: I love Python, and it is one of my 2 favorite languages. I would suggest that Python steal some aspects of the S language. --- 1. Currently in Python def foo(x,y): ... assigns the name foo to a function object.

Re: Some pythonic suggestions for Python

2007-11-08 Thread Ben Finney
Frank Samuelson [EMAIL PROTECTED] writes: I love Python, and it is one of my 2 favorite languages. I would suggest that Python steal some aspects of the S language. I would suggest each of these be discussed in a separate thread, each with a specific Subject field, rather than three

Re: Python on Leopard issues

2007-11-08 Thread Diez B. Roggisch
Chris schrieb: Are others having fundamental issues on OSX 10.5 with python 2.5.1? I was excited that Python 2.5 was included, but this excitement was very short lived. Almost nothing works. Upon startup I get this message: 'import site' failed; use -v for traceback and sure enough, all

Python Developers needed for Rackspace Managed Hosting-full time employment opportunities

2007-11-08 Thread [EMAIL PROTECTED]
Hello! Please feel free to forward this on to your network. All those interested in this position, please email me at [EMAIL PROTECTED] Thanks!-Amanda Papp Python Developer Job Description: Rackspace is a highly awarded and respected managed web hosting company. We earned our place by approaching

RE: Catching and automating a win32 MessageBox

2007-11-08 Thread Ryan Ginstrom
On Behalf Of Xavier Homs Is there any way to hook such a MessageBox a send a default action (yes) from a Python Script? A pure Python solution is pywinauto: http://www.openqa.org/pywinauto/ Another solution is AutoIt http://www.autoitscript.com/autoit3/ It has a COM server, which you can

Version 0.6.0 of CodeInvestigator

2007-11-08 Thread Hans Moleman
CodeInvestigator version 0.6.0 was released on November 8. This version adds support for input() and raw_input() functions. The main changes: * The 'Details' button on the file selection screen gives access to statistics, stdin and stdout for the running program. Control Z

Re: Some pythonic suggestions for Python

2007-11-08 Thread Steven D'Aprano
On Thu, 08 Nov 2007 15:00:03 -0500, Frank Samuelson wrote: 1. Currently in Python def foo(x,y): ... assigns the name foo to a function object. Is this pythonic? Why not use the = operator like most other assignments? Why? What benefit do you gain? Define function objects as functions,

RE: Using python as primary language

2007-11-08 Thread Michael Bacarella
A multithreaded application in Python will only use a single CPU on multi-CPU machines due to big interpreter lock, whereas the right thing happens in Java. Note that this is untrue for many common uses of threading (e.g. using threads to wait on network connections, or

[OT] Stupid email disclaimers (was: Creating a cell 'by hand')

2007-11-08 Thread Ben Finney
Prepscius, Colin (IT) [EMAIL PROTECTED] writes: NOTICE: If received in error, If I've received it, it's not received in error, it's received successfully. If, instead, you're referring to the actual recipient being different from the intended recipient, why are you putting this judgement onto

recording sound with python

2007-11-08 Thread jesse j
Hello Everyone, I'm new to python. I have worked through some tutorials and played around with the language a little bit but I'm stuck. I want to know how I can make python run a program. More specifically, I want to get python to work with SOX to record a sound through the microphone, save

Re: Questions on Using Python to Teach Data Structures and Algorithms

2007-11-08 Thread Scott David Daniels
Wayne Brehaut wrote: ... For learning DSA it's more important to have a clear, well-written and well-documented implementation in a language of interest (again, especially, the core language in one's programs) than just using or even inspecting and trying to learn subtle details of some

Re: easy 3D graphics for rendering geometry?

2007-11-08 Thread Scott David Daniels
gsal wrote: What would be the easiest way to go about offering 3D graphics for the purpose of rendering geometry? Take a look at VPython. If you are pretty bright, give up a weekend and do all you can in that one weekend. I think you will be amazed. You will one day get to a point where it is

Re: Some pythonic suggestions for Python

2007-11-08 Thread Scott David Daniels
Frank Samuelson wrote: I love Python, and it is one of my 2 favorite languages. I would suggest that Python steal some aspects of the S language. I generally agree with the various naye-sayers, but find one argument missing: --- 2. Allow

Re: Is pyparsing really a recursive descent parser?

2007-11-08 Thread Kay Schluehr
On Nov 9, 12:28 am, [david] [EMAIL PROTECTED] wrote: Kay Schluehr wrote: Could you please learn some parser theory 101 and then come back when you have complaints about one or the other implemententation of a particular Python parser? When some guy enters a forum with a newbie question

Re: Using python as primary language

2007-11-08 Thread Terry Reedy
Michael Bacarella [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | It's pretty uncommon. There are relatively few CPU bound tasks that | are a) highly parallel and b) can't be easily scaled between | processes. Python is not (by itself) an especially good tool for those | tasks. |

Expanding the size of wx Frame

2007-11-08 Thread sundarvenkata
hello all, is there a way to make wxpython frame to expand itself as we add controls to it -- http://mail.python.org/mailman/listinfo/python-list

Re: pyserial: loose connection after inactivity

2007-11-08 Thread Hendrik van Rooyen
Frank Aune Fran...park.no wrote: Hello, I configure the serial connection using: self.port = serial.Serial(baudrate=57600, timeout=0.06, parity=serial.PARITY_EVEN,

operator overloading on built-ins

2007-11-08 Thread r . grimm
Hallo, could you explaint me the difference between the two following statements. Python 2.5 (r25:51908, Oct 7 2006, 23:45:05) [GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] on linux2 Type help, copyright, credits or license for more information. (1).__cmp__(10) -1 1.__cmp__(10) File stdin,

Re: operator overloading on built-ins

2007-11-08 Thread Steven Bethard
[EMAIL PROTECTED] wrote: (1).__cmp__(10) -1 Integer object (1) followed by method call .__cmp__(10) 1.__cmp__(10) File stdin, line 1 1.__cmp__(10) ^ SyntaxError: invalid syntax Floating point number 1. followed by __cmp__(10). STeVe --

Re: operator overloading on built-ins

2007-11-08 Thread Marc 'BlackJack' Rintsch
On Thu, 08 Nov 2007 22:53:16 -0800, r.grimm wrote: (1).__cmp__(10) -1 As the dot is an operator like ``+`` or ``/`` you can also add spaces to avoid the ambiguity: In [493]: 1 . __cmp__(10) Out[493]: -1 In [494]: 1 .__cmp__(10) Out[494]: -1 Ciao, Marc 'BlackJack' Rintsch --

[issue1401] urllib2 302 POST

2007-11-08 Thread Andres Riancho
Andres Riancho added the comment: As mentioned in the RFC, and quoted by orsenthil, however, most existing user agent implementations treat 302 as if it were a 303 response, which is true for urllib2.py too ( see line 585 ): http_error_301 = http_error_303 = http_error_307 = http_error_302

  1   2   >