Re: Is this valid ?

2008-03-20 Thread castironpi
On Mar 20, 6:06 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Thu, 20 Mar 2008 15:09:08 +0100, Rolf van de Krol wrote: > > > John Machin wrote: > >> Of course. You can chain comparisons as much as you like and is > >> (semi-)sensible, e.g. > > > Hmm, 'of course' is not the

Re: finding items that occur more than once in a list

2008-03-20 Thread castironpi
On Mar 20, 2:07 am, John Machin <[EMAIL PROTECTED]> wrote: > On Mar 20, 12:50 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote:> En Wed, 19 Mar 2008 20:16:36 -0300, John Machin <[EMAIL PROTECTED]>   > > escribió: > > > > On Mar 20, 9:14 am, sturlamolden <[EMAIL PROTECTED]> wrote: > > >> Is a Pyt

Re: Improving datetime

2008-03-20 Thread castironpi
On Mar 19, 5:32 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Wed, 19 Mar 2008 17:40:39 -0400, Nicholas F. Fabry wrote: > > To summarize my proposal VERY briefly: > > > - Make aware datetime objects display in local time, but calculate/ > > compare in UTC. > > What possible

Re: Removal of tkinter from python 3.0? [was: Fate of the repr modulein Py3.0]

2008-03-20 Thread Terry Reedy
"Simon Forman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | I've been thinking of volunteering to "port" Tkinter to Python 3.0, I | hadn't noticed that there was any discussion of removing it. It would | be a shame IMHO. Sure it has warts, but it /works/ and good for quick | an

seek into file-like for ipc

2008-03-20 Thread castironpi
Hive: How about a shared-memory/file-map to a Python object? Seek and tell. Has its own GIL? Raises Exceptions? Standard C++ prohibits returning pointer-to-members. File runs in its own thread, can callback host and raise its own exceptions, iow file process. Think live persistence. Client

Re: Anomaly in time.clock()

2008-03-20 Thread Godzilla
Just found out that win32api.GetTickCount() returns a tick count in milli-second since XP started. Not sure whether that is reliable. Anyone uses that for calculating elapsed time? -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I change the font size for the default coordinates in matplotlib?

2008-03-20 Thread [EMAIL PROTECTED]
On Mar 20, 8:20 pm, Carl <[EMAIL PROTECTED]> wrote: > I've searched the user manual (and this forum) but I don't see > anything that helps. Did you mean the font size for the ticks or for the labels? Here's an example: from pylab import * x = arange(0, 2*pi, 0.01) y = sin(2*pi*x) rcParams.up

sex sex downlond

2008-03-20 Thread حوووبي
sex sex downlond http://www.al-lail.com/vb/showthread.php?goto=newpost&t=4454 -- http://mail.python.org/mailman/listinfo/python-list

Re: Improving datetime

2008-03-20 Thread Tim Roberts
Christian Heimes <[EMAIL PROTECTED]> wrote: > >Yes, it sounds like a good idea. The low hanging fruits (aka easy tasks) >could be implemented for 2.6 and 3.0. The more complex tasks may have to >wait for 2.7 and 3.1 I thought there wasn't going to be a 2.7... -- Tim Roberts, [EMAIL PROTECTED] P

Re: os.path.getsize() on Windows

2008-03-20 Thread Tim Roberts
Sean DiZazzo <[EMAIL PROTECTED]> wrote: > >The overall idea is to be able to tell if a file has finished being >placed in a directory without any control over what is putting it >there. There is simply no way to do this on Windows that works in the general case. -- Tim Roberts, [EMAIL PROTECTED]

Re: What Programming Languages Should You Learn Next?

2008-03-20 Thread Paul Rubin
"Terry Reedy" <[EMAIL PROTECTED]> writes: > What would be amazing would be a algorithm that could rewrite the > external-arrays Haskell/Python code to the equivalent of the in-place C > code. I don't think JHC (a fancy optimizing Haskell compiler) goes quite that far, but it compiles Haskell to

Re: Removal of tkinter from python 3.0? [was: Fate of the repr modulein Py3.0]

2008-03-20 Thread 7stud
On Mar 20, 8:42 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message > > news:[EMAIL PROTECTED] > | "Daniel Fetchinson" <[EMAIL PROTECTED]> writes: > | > Is it just me or others also think that it would be a major loss to > | > remove tkinter

Re: Trouble with variable "leakage"?

2008-03-20 Thread John Machin
On Mar 21, 2:05 pm, Jeremy N <[EMAIL PROTECTED]> wrote: > I am working with Python in Maya, and have run into a problem with a > variable changing its contents without being scripted to do so. The > various print() statements below were from my efforts to track down > where it was occurring. I left

Re: Trouble with variable "leakage"?

2008-03-20 Thread MRAB
On Mar 21, 3:05 am, Jeremy N <[EMAIL PROTECTED]> wrote: > I am working with Python in Maya, and have run into a problem with a > variable changing its contents without being scripted to do so. The > various print() statements below were from my efforts to track down > where it was occurring. I left

Re: parsing json output

2008-03-20 Thread Tim Roberts
Gowri <[EMAIL PROTECTED]> wrote: > >I understand it's JSON. My problem is that it just prints crazy >characters instead of the JSON data. Ah, I see. I didn't get that from your original post. >Like I mentioned, this happens on >my windows machine which has python 2.5. On the other hand, the same

Re: An Application Program to Play a CD

2008-03-20 Thread Jeff McNeil
I don't know of any Python specific stuff to do this, but have you looked at Asterisk? I know it's quite configurable and allows you to setup dial plans and route extensions and whatnot. http://www.asterisk.org/ That's probably a better fit. On 3/20/08, W. Watson <[EMAIL PROTECTED]> wrote: > How

An Application Program to Play a CD

2008-03-20 Thread W. Watson
How difficult would it be to write a Python program that would play a specific track on a CD from say 8 am to 6 pm each weekday on a PC's speaker, and switch tracks each day? That is, what library capabilities might be able to do that. Are they already available. Extra points. Now imagine the s

How do I change the font size for the default coordinates in matplotlib?

2008-03-20 Thread Carl
I've searched the user manual (and this forum) but I don't see anything that helps. -- http://mail.python.org/mailman/listinfo/python-list

Trouble with variable "leakage"?

2008-03-20 Thread Jeremy N
I am working with Python in Maya, and have run into a problem with a variable changing its contents without being scripted to do so. The various print() statements below were from my efforts to track down where it was occurring. I left them in so that anyone running this will more easily see what's

Re: zope and python 2.5.1

2008-03-20 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, hberig <[EMAIL PROTECTED]> wrote: > Hi, > I'm sorry if this is an off-topic message, but I didn't found other > group. > I've read some articles about Zope, and since I like very much python, > I would like to run a webserver application using Zope instead other >

Re: Removal of tkinter from python 3.0? [was: Fate of the repr modulein Py3.0]

2008-03-20 Thread Terry Reedy
"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message news:[EMAIL PROTECTED] | "Daniel Fetchinson" <[EMAIL PROTECTED]> writes: | > Is it just me or others also think that it would be a major loss to | > remove tkinter from the python core? | | That would be terrible. Every time I've tri

Re: What Programming Languages Should You Learn Next?

2008-03-20 Thread Terry Reedy
"Reedick, Andrew" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Quicksort in Haskell versus C is amazing: | http://www.haskell.org/haskellwiki/Introduction#What.27s_good_about_functional_programming.3F Sorry, bogus comparison, and not so amazing. 1.The short doubly recursive de

script won't run using cron.d or crontab

2008-03-20 Thread Bjorn Meyer
I appologize if this been discussed previously. If so, just point me to that information. I have done a fair bit of digging, but I haven't found a description of what to actually do. I have a fairly lengthy script that I am able to run without any problems from a shell. My problem is, now I am wa

A-Z about Operating systems and other programming languages

2008-03-20 Thread Gokul
Hai friends. Welcome to Comp.lang.c group. Today I found a website where it gives the entire details about C++ and other IT related tools such as SQL server 2008 updates, IBM tools and techniques and a lot more in the field of Information Technology. http://www.sqlserversoftware.blogspot.com -- h

Distributing Python Apps on Linux\BSD

2008-03-20 Thread PurpleServerMonkey
Working on a rather large open source python application that I want to release for Linux and BSD and was wondering what methods others are using to distribute large and complex applications. Setuptools and friends seem to be focused on distributing modules, I'm at the other end of the scale where

Re: Removal of tkinter from python 3.0? [was: Fate of the repr module in Py3.0]

2008-03-20 Thread Paul Boddie
On 21 Mar, 01:43, Simon Forman <[EMAIL PROTECTED]> wrote: > > I've been thinking of volunteering to "port" Tkinter to Python 3.0, I > hadn't noticed that there was any discussion of removing it. That's because the forum for discussing these things wasn't mentioned on comp.lang.python until two day

Re: Removal of tkinter from python 3.0? [was: Fate of the repr module in Py3.0]

2008-03-20 Thread dave_mikesell
On Mar 20, 2:39 am, "Daniel Fetchinson" <[EMAIL PROTECTED]> wrote: > Is it just me or others also think that it would be a major loss to > remove tkinter from the python core? PEP 3108 starts off with: I really like Python since I started using it a couple years ago, but this is a huge turnoff an

Re: Removal of tkinter from python 3.0? [was: Fate of the repr module in Py3.0]

2008-03-20 Thread Simon Forman
On Mar 19, 11:39 pm, "Daniel Fetchinson" <[EMAIL PROTECTED]> wrote: > > Was looking at PEP 3108,http://www.python.org/dev/peps/pep-3108/, > > and saw that the repr module was slated for vaporization. I've only > > used the module a few times ever. I'm curious if the community wants > > it kept arou

Re: Need help calling a proprietary C DLL from Python

2008-03-20 Thread Craig
On Mar 20, 6:26 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > On 20 Mar, 19:09, Craig <[EMAIL PROTECTED]> wrote: > > > The following is the C++ prototype for one of the functions: > > short FAR PASCAL VmxOpen(BSTR*Filespec, > > LPSHORT lpLocatorSize, > >

Re: Pycon disappointment

2008-03-20 Thread atom . anderson
On Mar 20, 2:53 pm, Erich <[EMAIL PROTECTED]> wrote: > On Mar 20, 12:39 pm, Ed Leafe <[EMAIL PROTECTED]> wrote: > > > > > On Mar 20, 2008, at 11:54 AM, [EMAIL PROTECTED] wrote: > > > > Number Three: Too much code, not enough concept. > > > > Presenters this one's for you. I can't count the number

Re: Is this valid ?

2008-03-20 Thread Steven D'Aprano
On Thu, 20 Mar 2008 15:09:08 +0100, Rolf van de Krol wrote: > John Machin wrote: >> Of course. You can chain comparisons as much as you like and is >> (semi-)sensible, e.g. >> > Hmm, 'of course' is not the correct word for it. Not at all. The Original Poster tried something, and it worked. Th

Re: os.path.getsize() on Windows

2008-03-20 Thread Steven D'Aprano
On Thu, 20 Mar 2008 10:45:03 -0700, Sean DiZazzo wrote: > After trying again this morning, the file is opened for reading. I must > have had some wonky permissions on that file, so the error method won't > work. Then fix the permissions. -- Steven -- http://mail.python.org/mailman/listinfo/p

Re: URLError

2008-03-20 Thread Steven D'Aprano
On Thu, 20 Mar 2008 10:26:14 -0700, Jim wrote: > The program is my first and I'm not a programmer so it will take me some > time to get your recommendation to work. So far the program runs after I > added code based on your example but the program still aborts and none > of the code ("Temporary fa

Re: What is The Eric4 IDE???

2008-03-20 Thread king kikapu
I use it for some time now and i think it is the best Python IDE out there, especially if someone wants to "play" with Qt. If you are on Windows, just install the Windows binary, it' all there! -- http://mail.python.org/mailman/listinfo/python-list

Re: os.path.getsize() on Windows

2008-03-20 Thread Steven D'Aprano
On Thu, 20 Mar 2008 13:42:22 +, Duncan Booth wrote: > Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >> On Wed, 19 Mar 2008 12:34:34 +, Duncan Booth wrote: >>> By default Python on Windows allows you to open a file for reading >>> unless you specify a sharing mode which prevents it: >> >>

Re: eval and unicode

2008-03-20 Thread Jonathan Gardner
On Mar 20, 2:20 pm, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > > >>  >>> eval( u'"徹底したコスト削減 ÁÍŰŐÜÖÚÓÉ трирова"' ) == eval( '"徹底し > >> たコスト削減 ÁÍŰŐÜÖÚÓÉ трирова"' ) > >> True > > > When you feed your unicode data into eval(), it doesn't have any > > encoding or decoding work to do. > > Yes, but what ab

CDF python

2008-03-20 Thread Josef
Hi, I have a bunch of CDF files that I need to read/process and I'd like to use python for that. Does anybody know an API for interfacing with CDF? So far I only found pycdf for netCDF, and pytables for HDF but nothing for CDF. Josef -- http://mail.python.org/mailman/listinfo/python-list

What is The Eric4 IDE???

2008-03-20 Thread some one
I wanted to ask some opinions on the Eric4 Python IDE, It was the second result from google using the search term "Python IDE" (Quotes Included in the search), the first being http://wiki.python.org/moin/IntegratedDevelopmentEnvironments ! I haven't downloaded or installed it yet, since it has

Re: putting text through pager

2008-03-20 Thread Michael Goerz
Michael Goerz wrote, on 03/20/2008 04:43 PM: > Hi, > > I'm trying to print some variable through a pager (i.e. 'less') on a > linux system. My attempt was this: > > > == snip here == > import subprocess > > def put_through_pager(displaystring): > less_pipe = subprocess.Popen(\ >

Re: Need help calling a proprietary C DLL from Python

2008-03-20 Thread sturlamolden
On 20 Mar, 19:09, Craig <[EMAIL PROTECTED]> wrote: > The following is the C++ prototype for one of the functions: > short FAR PASCAL VmxOpen(BSTR*Filespec, > LPSHORT lpLocatorSize, > LPSHORT lpOmode, > LPHANDLE lphwmc

Re: Pycon disappointment

2008-03-20 Thread Erich
On Mar 20, 12:39 pm, Ed Leafe <[EMAIL PROTECTED]> wrote: > On Mar 20, 2008, at 11:54 AM, [EMAIL PROTECTED] wrote: > > > Number Three: Too much code, not enough concept. > > > Presenters this one's for you. I can't count the number of > > presentations I attended where the presenter would click th

Re: Code folder with Emacs

2008-03-20 Thread Michael Wieher
I don't use emucks, but in vim its very simple. :set foldmethod=indent and instantly anything indented (ie: all python blocks) are folded. to unfold a fold zo to close an opened fold zc that outta be enough to get any fellow vim-heads going =) 2008/3/20, Grant Edwards <[EMAIL PROTECTED]>: > >

Re: Need help calling a proprietary C DLL from Python

2008-03-20 Thread Craig
On Mar 20, 4:55 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On Thu, Mar 20, 2008 at 3:42 PM, Craig <[EMAIL PROTECTED]> wrote: > > > On Mar 20, 2:38 pm, Craig <[EMAIL PROTECTED]> wrote: > > > On Mar 20, 2:29 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > > > > > On 20 Mar, 19:09, Craig <[EMAIL

Code folder with Emacs

2008-03-20 Thread Grant Edwards
Has anybody figured out how to do code folding of Python source files in emacs? I tried "hide-show" minor mode, but it doesn't really work for Python code: the only think it knows how to hide/show are function bodies. It can't do normal things like hide/show a code block like it can for other l

Re: eval and unicode

2008-03-20 Thread Laszlo Nagy
>> I tried to use eval with/without unicode strings and it worked. Example: >> >> >>> eval( u'"徹底したコスト削減 ÁÍŰŐÜÖÚÓÉ трирова"' ) == eval( '"徹底し >> たコスト削減 ÁÍŰŐÜÖÚÓÉ трирова"' ) >> True >> > When you feed your unicode data into eval(), it doesn't have any > encoding or decoding work to do. >

Re: os.path.getsize() on Windows

2008-03-20 Thread Duncan Booth
Sean DiZazzo <[EMAIL PROTECTED]> wrote: > In this case, there will be so few people touching the system, that I > think I can get away with having the copy be done from Unix, but it > would be nice to have a general way of knowing this on Windows. > Doesn't the CreateFile call I posted earlier d

RE: Haskell vs ??

2008-03-20 Thread Reedick, Andrew
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Michael Wieher > Sent: Thursday, March 20, 2008 4:36 PM > To: python-list@python.org > Subject: Haskell vs ?? > > Just to help clear up my own understanding of this discussion, this > is basically a language that obfuscates de

Re: Problem with PARAGRAPH SEPARATOR

2008-03-20 Thread Matt Nordhoff
[EMAIL PROTECTED] wrote: > Actually that's what I tried to do, for example: > outputString = myString.encode('iso-8859-1','ignore') > > However, I always get such messages (the character, that's causing problems > varies, but its always higher than 127 ofc...) > > 'ascii' codec can't decode byte

Re: Is this valid ?

2008-03-20 Thread John Machin
On Mar 21, 1:09 am, Rolf van de Krol <[EMAIL PROTECTED]> wrote: > John Machin wrote: > > Of course. You can chain comparisons as much as you like and is > > (semi-)sensible, e.g. > > Hmm, 'of course' is not the correct word for it. 'Of course' was short for: Given alternative hypotheses H0 = "Pyth

Re: Change user on UNIX

2008-03-20 Thread Preston Landers
On Mar 20, 9:46 am, Jonathan Gardner <[EMAIL PROTECTED]> wrote: > In the unix world, this is highly discouraged. You shouldn't have to > change your user. The only user who can change roles---and who should > change roles for security reasons---is root. IMHO this statement is a bit too broad. Th

Re: Strange behavior of the Eclipse embedded console

2008-03-20 Thread Preston Landers
On Mar 20, 9:09 am, hellt <[EMAIL PROTECTED]> wrote: > "The eclipse console is not an exact copy of a shell... one of the > changes is that when you press in a shell, it may give you a > \r, \n or \r\n as an end-line char, depending on your platform. Python > does not expect this -- from the docs

Re: Need help calling a proprietary C DLL from Python

2008-03-20 Thread Chris Mellon
On Thu, Mar 20, 2008 at 3:42 PM, Craig <[EMAIL PROTECTED]> wrote: > > On Mar 20, 2:38 pm, Craig <[EMAIL PROTECTED]> wrote: > > On Mar 20, 2:29 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > > > > > On 20 Mar, 19:09, Craig <[EMAIL PROTECTED]> wrote: > > > > > The culprit i here: > > > > > > Be

putting text through pager

2008-03-20 Thread Michael Goerz
Hi, I'm trying to print some variable through a pager (i.e. 'less') on a linux system. My attempt was this: == snip here == import subprocess def put_through_pager(displaystring): less_pipe = subprocess.Popen(\ 'less', shell=True, \ stdin

Re: Need help calling a proprietary C DLL from Python

2008-03-20 Thread Craig
On Mar 20, 2:38 pm, Craig <[EMAIL PROTECTED]> wrote: > On Mar 20, 2:29 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > > > On 20 Mar, 19:09, Craig <[EMAIL PROTECTED]> wrote: > > > The culprit i here: > > > > Before - X = 0, CacheSize = 0, OpenMode = 3, vHandle = 0 > > > This binds these names to Pyth

Re: A question about a metacharacter

2008-03-20 Thread ajaksu
On Mar 20, 8:19 am, igbt <[EMAIL PROTECTED]> wrote: > However, if you don't enter anything the > script works but if you enter a dot (.) the script does not work. Have you tried it with other non-metacharacter values? > sss = entryName.get_text()      # The script gets the text >         if sss =

Haskell vs ??

2008-03-20 Thread Michael Wieher
Just to help clear up my own understanding of this discussion, this is basically a language that obfuscates details and makes low-level decisions in a "average-best" way, and thus allows for lazy people to write kind of decent code quickly? -- http://mail.python.org/mailman/listinfo/python-list

RE: What Programming Languages Should You Learn Next?

2008-03-20 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Donn Cave > Sent: Thursday, March 20, 2008 3:39 PM > To: python-list@python.org > Subject: Re: What Programming Languages Should You Learn Next? > > > Worth repeating. > > One of the perhaps s

Re: Removal of tkinter from python 3.0? [was: Fate of the repr module inPy3.0]

2008-03-20 Thread Ron Provost
I would really hate to see Tkinter removed from 3.0. Because it's part of the distribution and extremely easy to create simple GUIs I use it all the time. Isn't Python supposed to be a "Batteries Included" language? Can that be said anymore without a GUI library? And do we want to drop Tkint

Re: Pycon disappointment

2008-03-20 Thread Greg Lindstrom
,,,... Let's see some code! Let's see > stuff working (and sometimes crashing!), and how changes affect the > results. When I've presented at PyCon and other conferences, that's > the part that I spend the most time on: preparing demonstrations. It's > not easy to do; certainly much more difficult

Floating-point support

2008-03-20 Thread Blubaugh, David A.
Would anyone know as to how to develop floating point support for the MyHDL module? Has anyone worked with any alternative versions of the IEEE standard for floating -point? Also, has anyone developed a floating-point library for a module within the python environment in order to execute numerica

Re: What Programming Languages Should You Learn Next?

2008-03-20 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: ... > I think it's easier to write complex code in Haskell because: > > 1) it has a powerful static type system that lets you express > important invariants and have them enforced at compile time. This not > only cat

Issues with XMLTreeBuilder in cElementTree and ElementTree

2008-03-20 Thread Michael Becker
I had some xmls being output by an application whose formating did not allow for easy editing by humans so I was trying to write a short python app to pretty print xml files. Most of the data in these xml files is in the attributes so I wanted each attribute on its own line. I wrote a short app usi

Re: forkpty not working?

2008-03-20 Thread Dan Stromberg
If you google a bit, I believe you'll find one or more python modules for working with ssh. Also, if you want to roll your own, the easiest way to get around the password requirement is to use ssh passwordless authentication using DSA or RSA public/private keypairs: http://stromberg.dnsalias.

Re: Python to C/C++

2008-03-20 Thread Dan Stromberg
On Wed, 19 Mar 2008 10:24:16 -0700, Patrick Mullen wrote: > (sorry michael, didn't mean to personal post > > On Wed, Mar 19, 2008 at 9:24 AM, Michael Wieher wrote: > > I think py2exe does this, but it might be a bit bloated > > No, py2exe basically bundles the main script and the interpreter >

Re: Need help calling a proprietary C DLL from Python

2008-03-20 Thread Craig
On Mar 20, 2:29 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > On 20 Mar, 19:09, Craig <[EMAIL PROTECTED]> wrote: > > The culprit i here: > > > Before - X = 0, CacheSize = 0, OpenMode = 3, vHandle = 0 > > This binds these names to Python ints, but byref expects C types. > > Also observe that CacheSi

Re: Need help calling a proprietary C DLL from Python

2008-03-20 Thread sturlamolden
On 20 Mar, 19:09, Craig <[EMAIL PROTECTED]> wrote: The culprit i here: > Before - X = 0, CacheSize = 0, OpenMode = 3, vHandle = 0 This binds these names to Python ints, but byref expects C types. Also observe that CacheSize and OpenMode should be c_short. -- http://mail.python.org/mailman

Re: Pycon disappointment

2008-03-20 Thread Ed Leafe
On Mar 20, 2008, at 11:54 AM, [EMAIL PROTECTED] wrote: > Number Three: Too much code, not enough concept. > > Presenters this one's for you. I can't count the number of > presentations I attended where the presenter would click through three > slides of pycode just to show us a two or three-line

Need help calling a proprietary C DLL from Python

2008-03-20 Thread Craig
I use a proprietary dll from Software Source (vbis5032.dll). I have successfully used it from Visual Basic 6, Fujitsu Cobol and from Perl. I would now like to use it from Python. The following is the C++ prototype for one of the functions: short FAR PASCAL VmxOpen(BSTR*Filespec,

Re: Can I run a python program from within emacs?

2008-03-20 Thread Paulo da Costa
Jeff Schwab wrote: > Paulo da Costa wrote: > >> People who say Emacs often mean GNU Emacs. > > That's funny; to me, Emacs usually means XEmacs. :) Which is often a cause of confusion. Paulo -- http://mail.python.org/mailman/listinfo/python-list

Re: wxFormBuilder

2008-03-20 Thread sturlamolden
On 20 Mar, 17:21, Stef Mientki <[EMAIL PROTECTED]> wrote: > I've tried several of the above mentioned builders, > with the same result. > I've also looked at wxFormBuilder, > but I found it far too difficult and > fully unreadable (how can you create actions/bindings on components you don't > see

Re: Import a file to namespace

2008-03-20 Thread Pedro Machado Santa
On Mar 20, 5:24 pm, Jeffrey Froman <[EMAIL PROTECTED]> wrote: > This method should work fine. Modules are effectively singletons, so running > this code one time anywhere in your application will cause the changes to > appear in all references to the original module. Yhea. I got it now. :) It alre

Re: os.path.getsize() on Windows

2008-03-20 Thread Sean DiZazzo
On Mar 20, 6:42 am, Duncan Booth <[EMAIL PROTECTED]> wrote: > Steven D'Aprano <[EMAIL PROTECTED]> wrote: > > On Wed, 19 Mar 2008 12:34:34 +, Duncan Booth wrote: > >> By default Python on Windows allows you to open a file for reading > >> unless you specify a sharing mode which prevents it: > >

Re: if __name__ == '__main__':

2008-03-20 Thread Bhagwat Kolde
Thanks all my problem cleared. Bhagwat On Thu, Mar 20, 2008 at 11:02 PM, 7stud <[EMAIL PROTECTED]> wrote: > On Mar 20, 10:21 am, "Simon Brunning" <[EMAIL PROTECTED]> > wrote: > > On Thu, Mar 20, 2008 at 4:12 PM, Bhagwat Kolde <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > I am new to the python and

Re: zope and python 2.5.1

2008-03-20 Thread Diez B. Roggisch
hberig wrote: > Hi, > I'm sorry if this is an off-topic message, but I didn't found other > group. > I've read some articles about Zope, and since I like very much python, > I would like to run a webserver application using Zope instead other > web application server. I've difficulties to install

Re: if __name__ == '__main__':

2008-03-20 Thread 7stud
On Mar 20, 10:21 am, "Simon Brunning" <[EMAIL PROTECTED]> wrote: > On Thu, Mar 20, 2008 at 4:12 PM, Bhagwat Kolde <[EMAIL PROTECTED]> wrote: > > Hi, > > I am new to the python and not getting meaning of following line, > > > if __name__ == '__main__': > >       main() > The if statement is used to

Re: URLError

2008-03-20 Thread Jim
On Mar 19, 6:50 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Wed, 19 Mar 2008 14:45:39 -0700, Jim wrote: > > Program randomly aborts when looking up url. The program loop thru > > 4000+ records looking > > up ID via internet and returnshtmlcode which is used in subsequent

Re: Import a file to namespace

2008-03-20 Thread Jeffrey Froman
Pedro Machado Santa wrote: > import testpackage > > class testClass(): > #... > > testpackage.testClass =  testClass This method should work fine. Modules are effectively singletons, so running this code one time anywhere in your application will cause the changes to appear in all references t

zope and python 2.5.1

2008-03-20 Thread hberig
Hi, I'm sorry if this is an off-topic message, but I didn't found other group. I've read some articles about Zope, and since I like very much python, I would like to run a webserver application using Zope instead other web application server. I've difficulties to install zope 3 and zope 2 on linux

Re: wxFormBuilder

2008-03-20 Thread sturlamolden
On 20 Mar, 17:21, Stef Mientki <[EMAIL PROTECTED]> wrote: > I've tried several of the above mentioned builders, > with the same result. > I've also looked at wxFormBuilder, > but I found it far too difficult and > fully unreadable (how can you create actions/bindings on components you don't > see

Re: Can I run a python program from within emacs?

2008-03-20 Thread Jeff Schwab
Grant Edwards wrote: > On 2008-03-20, Jeff Schwab <[EMAIL PROTECTED]> wrote: > http://www.google.com/search?q=emacs+python >>> Gee. Thanks. >> I believe Grant was suggesting that Emacs often serves a similar purpose >> on Unix to what Visual Studio does on Windows, which seemed to be what

Re: Can I run a python program from within emacs?

2008-03-20 Thread Jeff Schwab
Paulo da Costa wrote: > People who say Emacs often mean GNU Emacs. That's funny; to me, Emacs usually means XEmacs. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Pycon disappointment

2008-03-20 Thread atom . anderson
Okay! I just read this entire thread to be caught up. I am a first time PyCon-goer (as my previous post states). Because I have nothing to compare this year's experience to, I'll give it to you as I saw it. None of this is intended as a rant, (except maybe the lightning talk section;) Gripes --

Import a file to namespace

2008-03-20 Thread Pedro Machado Santa
Hi all, I'm really a newbie in Python, and I wanted to do a tricky thing. I don't know if it is possible but my intention was: I have a package (namely breve) and I want to alter (override?) some of it's functions preserving the original library/package - in order if I update it, I do not lose my

Re: Problem with PARAGRAPH SEPARATOR

2008-03-20 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Would that mean that the string "myString" is an ascii-string or what? It would mean it was a byte encoded string already, yes. When you try to encode it, Python tries to coerce it to Unicode and it's equivalent to: myString.decode(

Re: if __name__ == '__main__':

2008-03-20 Thread Michael Wieher
Well, consider this: you have a file named .py, built like this: ~ #!/usr/bin/python def : return if __name__=="__main__": print "Unit test" else: pass #module imported by another module/script ~~ If you type, on command line, >pytho

Re: Can I run a python program from within emacs?

2008-03-20 Thread Diez B. Roggisch
Grant Edwards wrote: > On 2008-03-20, Jeff Schwab <[EMAIL PROTECTED]> wrote: > http://www.google.com/search?q=emacs+python >> >>> Gee. Thanks. >> >> I believe Grant was suggesting that Emacs often serves a similar purpose >> on Unix to what Visual Studio does on Windows, which seemed to be

Re: wxFormBuilder

2008-03-20 Thread Stef Mientki
sturlamolden wrote: > I just discovered wxFormBuilder. After having tried several GUI > builders for wx (including DialogBlocks, wxGlade, XRCed, Boa > constructor), this is the first one I can actually use. > > To use it wxFormBuilder with wxPython, I generated an xrc resource and > loaded it with

OS.remove and threads

2008-03-20 Thread rodmc
Hi, I am writing a small application which uploads files in a thread via an ftp connection. However anytime I use the os.remove(filename) command to delete files the thread crashes, even if the file being removed has nothing to do with the one being uploaded. Are the OS commands incompatible with

Re: if __name__ == '__main__':

2008-03-20 Thread Simon Brunning
On Thu, Mar 20, 2008 at 4:12 PM, Bhagwat Kolde <[EMAIL PROTECTED]> wrote: > Hi, > I am new to the python and not getting meaning of following line, > > if __name__ == '__main__': > main() -- Cheers, Simon B.

Re: Pycon disappointment

2008-03-20 Thread atom . anderson
On Mar 17, 1:20 am, Paul Rubin wrote: > Stephan Deibel <[EMAIL PROTECTED]> writes: > > I have to admit, I'll keep coming to PyCon even if all the talks suck > > abysmally as long as there's good hallway time, open space, BoFs, and > > sprints. ;-) > > OK, so why not get r

RE: paramiko

2008-03-20 Thread Tarun Kapoor
I have some code that uses paramiko, establishes an SFTP connection with a remote server and downloads some files. This code works perfect if run on a windows XP machine. However, I get an error in the "RandomPool" class. Anyone tried paramiko on a windows server box ? Thanks !! Tk -Original

Re: Can I run a python program from within emacs?

2008-03-20 Thread Grant Edwards
On 2008-03-20, jmDesktop <[EMAIL PROTECTED]> wrote: >> I believe Grant was suggesting that Emacs often serves a >> similar purpose on Unix to what Visual Studio does on Windows, >> which seemed to be what you were asking.  When asking about >> Mac OS X here, you are likely to get a lot of generic

if __name__ == '__main__':

2008-03-20 Thread Bhagwat Kolde
Hi, I am new to the python and not getting meaning of following line, if __name__ == '__main__': main() Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

pep 3108

2008-03-20 Thread Daniel Fetchinson
Hi Brett, I've just looked through pep 3108 and since Raymond Hettinger suggested contacting you if we "have issues with it", here it goes: I don't think it would be a great idea to move tkinter from the core to a third party library because once that happens we can no longer assume that any GUI

Re: Can I run a python program from within emacs?

2008-03-20 Thread Grant Edwards
On 2008-03-20, Jeff Schwab <[EMAIL PROTECTED]> wrote: >>> http://www.google.com/search?q=emacs+python > >> Gee. Thanks. > > I believe Grant was suggesting that Emacs often serves a similar purpose > on Unix to what Visual Studio does on Windows, which seemed to be what > you were asking. When

Re: Can I run a python program from within emacs?

2008-03-20 Thread Grant Edwards
On 2008-03-20, jmDesktop <[EMAIL PROTECTED]> wrote: > On Mar 20, 11:21 am, Grant Edwards <[EMAIL PROTECTED]> wrote: >> On 2008-03-20, jmDesktop <[EMAIL PROTECTED]> wrote: >> >> > Hi, I'm trying to learn Python.  I using Aquamac an emac >> > implementation with mac os x.  I have a program.  If I go

Re: Can I run a python program from within emacs?

2008-03-20 Thread jmDesktop
On Mar 20, 11:44 am, Jeff Schwab <[EMAIL PROTECTED]> wrote: > jmDesktop wrote: > > On Mar 20, 11:21 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > >> On 2008-03-20, jmDesktop <[EMAIL PROTECTED]> wrote: > > >>> Hi, I'm trying to learn Python.  I using Aquamac an emac > >>> implementation with mac os

Re: Can I run a python program from within emacs?

2008-03-20 Thread Paulo da Costa
Jeff Schwab wrote: > jmDesktop wrote: >> On Mar 20, 11:21 am, Grant Edwards <[EMAIL PROTECTED]> wrote: >>> On 2008-03-20, jmDesktop <[EMAIL PROTECTED]> wrote: >>> Hi, I'm trying to learn Python. I using Aquamac an emac implementation with mac os x. I have a program. If I go to the

Re: wxFormBuilder

2008-03-20 Thread DoxaLogos
On Mar 20, 8:41 am, sturlamolden <[EMAIL PROTECTED]> wrote: > I just discovered wxFormBuilder. After having tried several GUI > builders for wx (including DialogBlocks, wxGlade, XRCed, Boa > constructor), this is the first one I can actually use. > > To use it wxFormBuilder with wxPython, I generat

Re: Can I run a python program from within emacs?

2008-03-20 Thread Jeff Schwab
jmDesktop wrote: > On Mar 20, 11:21 am, Grant Edwards <[EMAIL PROTECTED]> wrote: >> On 2008-03-20, jmDesktop <[EMAIL PROTECTED]> wrote: >> >>> Hi, I'm trying to learn Python. I using Aquamac an emac >>> implementation with mac os x. I have a program. If I go to the >>> command prompt and type py

  1   2   >