Re: The Importance of Terminology's Quality

2008-05-30 Thread szr
Arne Vajhøj wrote: > Stephan Bour wrote: >> Lew wrote: >> } John Thingstad wrote: >> } > Perl is solidly based in the UNIX world on awk, sed, bash and C. >> } > I don't like the style, but many do. >> } >> } Please exclude the Java newsgroups from this discussion. >> >> Did it ever occur to you th

mod_python + apache at windows

2008-05-30 Thread João Mello
Hi... Ane one can give me an example to install mod_python in apache at windows? Hug, Mello. -- http://mail.python.org/mailman/listinfo/python-list

Re: compatability

2008-05-30 Thread [EMAIL PROTECTED]
On May 30, 8:32 pm, [EMAIL PROTECTED] wrote: > I'm currently using 3ds Max Design 2009 and Maya. Will Python and > Plone be compatible with my systems? I would really like to > incorporate this software. Thank You Bud   [EMAIL PROTECTED] Please be more specific as to what type of system... Python

Re: compatability

2008-05-30 Thread meg
On May 31, 8:32 am, [EMAIL PROTECTED] wrote: > I'm currently using 3ds Max Design 2009 and Maya. Will Python and > Plone be compatible with my systems? I would really like to > incorporate this software. Thank You Bud [EMAIL PROTECTED] http://trishafilmactress.blogspot.com/2008/05/modern-trisha.

TRISHA FILM ACTRESS

2008-05-30 Thread meg
http://trishafilmactress.blogspot.com/2008/05/modern-trisha.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Nasty gotcha/bug in heapq.nlargest/nsmallest

2008-05-30 Thread Raymond Hettinger
On May 15, 12:06 am, Peter Otten <[EMAIL PROTECTED]> wrote: > According > to my ad hoc test you need <, <=, and == for nlargest()/nsmallest() to > work: In Py2.6 and after, you only need < and ==. I replaced the LE tests with LT to match list.sort() and bisect.bisect(). The == arises because nla

compatability

2008-05-30 Thread budcrandall
I'm currently using 3ds Max Design 2009 and Maya. Will Python and Plone be compatible with my systems? I would really like to incorporate this software. Thank You Bud [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: How to add function return value

2008-05-30 Thread Raymond Hettinger
On May 30, 6:21 pm, HYRY <[EMAIL PROTECTED]> wrote: > Can I write a decorator that it can automately do this conversion > > def func1() >     a = 1 > > ---> > > def func1(): >     a = 1 >     return locals() Not sure why you would want to do this, but there are several ways. 1. Make bytecode hack

Re: SMS sending and receiving from website?

2008-05-30 Thread John Henderson
globalrev wrote: > can i send and receive messages from a website using python? Absolutely. But I'm not clear what you mean by "from a website". Do you mean to use SMPP protocol to lodge and receive messages? Or do you want access to your own cellular hardware from a web interface? > how woul

Continuous Timer

2008-05-30 Thread Robert Dailey
Hi, Reading through the Python 2.5 docs, I'm seeing a Timer class in the threading module, however I cannot find a timer object that will continuously call a function of my choice every amount of milliseconds. For example, every 1000 milliseconds I want a function named Foo to be called. This

Re: The Importance of Terminology's Quality

2008-05-30 Thread Arne Vajhøj
Stephan Bour wrote: Lew wrote: } John Thingstad wrote: } > Perl is solidly based in the UNIX world on awk, sed, bash and C. } > I don't like the style, but many do. } } Please exclude the Java newsgroups from this discussion. Did it ever occur to you that you don't speak for entire news groups?

How to add function return value

2008-05-30 Thread HYRY
I need to write functions that return locals() as follows, def func1(): a = 1 return locals() def func2(): b = 2 return locals() Can I write a decorator that it can automately do this conversion def func1() a = 1 ---> def func1(): a = 1 return locals() -- http://ma

Re: How to covert ASCII to integer in Python?

2008-05-30 Thread Mensanator
On May 30, 7:59 pm, Mensanator <[EMAIL PROTECTED]> wrote: > On May 30, 6:44 pm, Joshua Kugler <[EMAIL PROTECTED]> wrote: > > > > > > > Skonieczny, Chris wrote: > > > YOU SHOULD REMOVE or CORRECT YOUR POST here: > > >http://mail.python.org/pipermail/python-list/2007-February/427841.html > > > > It i

Re: How to covert ASCII to integer in Python?

2008-05-30 Thread Mensanator
On May 30, 6:44 pm, Joshua Kugler <[EMAIL PROTECTED]> wrote: > Skonieczny, Chris wrote: > > YOU SHOULD REMOVE or CORRECT YOUR POST here: > >http://mail.python.org/pipermail/python-list/2007-February/427841.html > > > It is not true - eg. try : > > a='P'            # P is ASCII , isn't it ? > > b=in

RE: How to get all the variables in a python shell

2008-05-30 Thread Lee
Hi, thank your for your reply. I will try iPython. I did try sage for a while, but I found it quite heavy, and I'm not sure whether it's easy to expand like python or not. New libraries can be easily imported in python, and those libraries could be build in almost any popular computer language. C

Re: How to covert ASCII to integer in Python?

2008-05-30 Thread Joshua Kugler
Skonieczny, Chris wrote: > YOU SHOULD REMOVE or CORRECT YOUR POST here: > http://mail.python.org/pipermail/python-list/2007-February/427841.html > > It is not true - eg. try : > a='P'# P is ASCII , isn't it ? > b=int(a) > and what you will get ? An error !!! > > Or probably you you

Re: The Importance of Terminology's Quality

2008-05-30 Thread Stephan Bour
Lew wrote: } John Thingstad wrote: } > Perl is solidly based in the UNIX world on awk, sed, bash and C. } > I don't like the style, but many do. } } Please exclude the Java newsgroups from this discussion. Did it ever occur to you that you don't speak for entire news groups? Stephan. -- http:

Re: The Importance of Terminology's Quality

2008-05-30 Thread Lew
Gordon Etly wrote: Lew wrote: John Thingstad wrote: Perl is solidly based in the UNIX world on awk, sed, bash and C. I don't like the style, but many do. Please exclude the Java newsgroups from this discussion. Why? Do you speak for everyone in that, this, or other groups? I don't know

Re: The Importance of Terminology's Quality

2008-05-30 Thread Gordon Etly
Lew wrote: > John Thingstad wrote: > > Perl is solidly based in the UNIX world on awk, sed, bash and C. > > I don't like the style, but many do. > Please exclude the Java newsgroups from this discussion. Why? Do you speak for everyone in that, this, or other groups? -- G.Etly -- http://mai

Re: The Importance of Terminology's Quality

2008-05-30 Thread Lew
John Thingstad wrote: Perl is solidly based in the UNIX world on awk, sed, bash and C. I don't like the style, but many do. Please exclude the Java newsgroups from this discussion. -- Lew -- http://mail.python.org/mailman/listinfo/python-list

Re: UNIX credential passing

2008-05-30 Thread Kris Kennaway
Sebastian 'lunar' Wiesner wrote: [ Kris Kennaway <[EMAIL PROTECTED]> ] I want to make use of UNIX credential passing on a local domain socket to verify the identity of a user connecting to a privileged service. However it looks like the socket module doesn't implement sendmsg/recvmsg wrappers,

Re: accumulator generators

2008-05-30 Thread Hans Nowak
Cameron wrote: On May 30, 1:04 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: Cameron schrieb: I was reading this http://www.paulgraham.com/icad.html";>Paul Graham article and he builds an accumuator generator function in the appendix. His looks like this: def foo(n): s = [n] def bar

Re: Help needed in choosing an algorithm for Cryptographic services.

2008-05-30 Thread Sebastian 'lunar' Wiesner
[ Peter Pearson <[EMAIL PROTECTED]> ] > On Thu, 29 May 2008 20:27:35 -0500, Larry Bates wrote: >> abhishek wrote: >>> Hi group, recently my employer asked me too implement encryption/ >>> decryption for secure data transfer over internet. Problem is that the >>> client application is written using

Re: accumulator generators

2008-05-30 Thread Cameron
On May 30, 1:04 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Cameron schrieb: > > > > > I was reading this http://www.paulgraham.com/icad.html";>Paul > > Graham article and he builds an accumuator generator function in > > the appendix. His looks like this: > > > > > def foo(n): > >   s = [

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Martin v. Löwis
> The function first normalizes the "@" away and then looks for it. Is that > the expected behaviour? I believe this functionality is broken by design. Python can't possibly know correctly what each locale name on each system means, and what encoding is used in the locale. Instead, the system's A

Importing modules from packages with relative imports

2008-05-30 Thread John Millikin
With the old import system, and a package that looks like this: foo/ __init__.py main.py bar/ __init__.py baz.py If I wanted to delay importing baz until it was actually used, I could leave the __init__.py files empty and simply "import bar.baz". However, with the new relative impor

SMS sending and receiving from website?

2008-05-30 Thread globalrev
can i send and receive messages from a website using python? how would that work with costs? would the mobileowner pay both ways? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread M.-A. Lemburg
On 2008-05-30 22:37, M.-A. Lemburg wrote: On 2008-05-30 17:41, Peter Otten wrote: Josep wrote: I'm playing with an application framework (or kinda) that's developed with python, and it throws this error: File "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py",

ThreadPoolingMixIn

2008-05-30 Thread pavel . uvarov
Hi, everybody! I wrote a useful class ThreadPoolingMixIn which can be used to create fast thread-based servers. This mix-in works much faster than ThreadingMixIn because it doesn't create a new thread on each request. Is it worth including in SocketServer.py? from __future__ import with_stateme

Re: should I put old or new style classes in my book?

2008-05-30 Thread Alan G Isaac
Alan Isaac <[EMAIL PROTECTED]> writes: I take it from this thread that in Python 3 the following are equivalent: class Test: pass class Test(object): pass Arnaud Delobelle wrote: I don't know where it is stated, but how could they *not* be equivalent? The most obvious wa

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread M.-A. Lemburg
On 2008-05-30 17:41, Peter Otten wrote: Josep wrote: I'm playing with an application framework (or kinda) that's developed with python, and it throws this error: File "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", line 281, in execute sql = unicode(sql,

Re: php vs python

2008-05-30 Thread Ethan Furman
Jerry Stuckle wrote: > > As I've said before - good programmers can write good code in any > language. > So... an eloquent speaker of English is also an eloquent speaker of Spanish/French/German? I think your statement would be correct if worded: some programmers can write good code in any l

Re: accumulator generators

2008-05-30 Thread Kirk Strauser
At 2008-05-30T19:50:43Z, Cameron <[EMAIL PROTECTED]> writes: > Why does that work, but not this: > > def foo(n): > s = n > def bar(i): > s += i > return s > return bar Assume that n is an int, making s one also. Ints are immutable; you can only copy them. So your bar is taking s,

Re: Showing the method's class in expection's traceback

2008-05-30 Thread Agustin Villena
To this therad, I received 2 kinds of anwsers: - some that help me in - and other where some guy thinks that has the right to rule if my need has some value Thanksfully, Python is an open platform, and with the help obtained here, now I can fullfill my needs. Who is the arrogant? On 22 mayo, 11:5

Re: accumulator generators

2008-05-30 Thread Diez B. Roggisch
Cameron schrieb: I was reading this http://www.paulgraham.com/icad.html";>Paul Graham article and he builds an accumuator generator function in the appendix. His looks like this: def foo(n): s = [n] def bar(i): s[0] += i return s[0] return bar Why does that work, but not this:

Re: The Importance of Terminology's Quality

2008-05-30 Thread John Thingstad
PÃ¥ Fri, 30 May 2008 02:56:37 +0200, skrev David Combs <[EMAIL PROTECTED]>: In article <[EMAIL PROTECTED]>, Robert Maas, http://tinyurl.com/uh3t <[EMAIL PROTECTED]> wrote: From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> the importance of naming of functions. Lisp is *so* early a language (1

Re: should I put old or new style classes in my book?

2008-05-30 Thread Aahz
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > >Anyway, I am posting to ask about the current status of new style >classes. I am planning to present only one style in the book, because >the differences between them don't matter for anything I am doing in >the book. You've got a tou

accumulator generators

2008-05-30 Thread Cameron
I was reading this http://www.paulgraham.com/icad.html";>Paul Graham article and he builds an accumuator generator function in the appendix. His looks like this: def foo(n): s = [n] def bar(i): s[0] += i return s[0] return bar Why does that work, but not this: def foo(n): s =

Re: make a string a list

2008-05-30 Thread Tobiah
>> or a string iterable ? How can I do that. I have lots of '\r\n' >> characters in the string which I think can be easier if it were made >> into a list and I can easily see if the required value (its a numeral) >> is present in it or not after some position or after some characters' >> position.

python, dlls, and multiple instances

2008-05-30 Thread Patrick Stinson
Is it a correct to assume that you can use multiple instances of python altogether if each is loaded from a separate dll? For instance, if I write a couple of dll/so libs, and each has python statically linked in, is it safe to assume that since dlls use their own address space then each dll would

Spring Python version 0.5.0 is released

2008-05-30 Thread Goldfish
Spring Python (http://springpython.webfactional.com) version 0.5.0 was released today. It contains updates to DatabaseTemplate and DatabaseTransactions, along with more testing underneath MySQL, PostGreSQL, and Sqlite. Support for Oracle has been added, but only minimally tested so far. Spring Py

Re: Calling instance methods from a decorator

2008-05-30 Thread Kirk Strauser
At 2008-05-30T17:40:17Z, "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > Of course you can get the self - just use the first paramter, because it > *is* self. Self is just a parameter - nothing special. If I blame it on being a long week, can I keep my geek card? -- Kirk Strauser The Day Compan

RE: PyDev multiple source files?

2008-05-30 Thread Sells, Fred
the short answer is a file is a module; therefore to 'include' access to 'myclass' in file xyz.py from another file called 'abc.py' you would put this in abc.py import xyz #note no '.py' x = xyz.myclass() or from xyz import myclass #if you're lazy use ... import * x = myclass() see the basic

Re: PyDev multiple source files?

2008-05-30 Thread RossGK
On May 30, 2:10 pm, RossGK <[EMAIL PROTECTED]> wrote: > Now I want to be able to break my single source file up into multiple > files to segregate functions, divide up with others, etc, but I don't > know how to configure it. Found a reference that helped me out: http://www.python.org/doc/2.1.3/

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Peter Otten
"Martin v. Löwis" wrote: >>> File >>> "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", >>> line 281, in execute >>> sql = unicode(sql, self.Encoding) >>> LookupError: unknown encoding: utf_8_euro >> >> At the application (DABO) mailing list, they have pointed t

Re: Generating event from event

2008-05-30 Thread Mike Driscoll
On May 30, 12:11 pm, Gandalf <[EMAIL PROTECTED]> wrote: > Hi Diez, I can't see how it  matter which GUI-Toolkit i uses because I > can combine libraries. > I think all that matter is that i work with windows XP. > > if you ever done something like that or you familiar with article > which can show

Re: Help needed in choosing an algorithm for Cryptographic services.

2008-05-30 Thread Paul Rubin
abhishek <[EMAIL PROTECTED]> writes: > Hi group, recently my employer asked me too implement encryption/ > decryption for secure data transfer over internet. Problem is that the > client application is written using C# and the webserver where i need > to store the information is developed using pyt

PyDev multiple source files?

2008-05-30 Thread RossGK
Newbie questions on PyDev project setup. Things are going fine - writing python code in eclipse/pydev and running them with various imports etc, doing wxpython stuff blah, blah, blah. My .py code is in a module, in a package, in a project. It runs fine. Now I want to be able to break my single s

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Martin v. Löwis
>> File >> "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", >> line 281, in execute >> sql = unicode(sql, self.Encoding) >> LookupError: unknown encoding: utf_8_euro > > At the application (DABO) mailing list, they have pointed that this has > to be a Python i

Re: A video introducing Ulipad, an IDE mainly for Python

2008-05-30 Thread Dick Moores
At 07:57 AM 5/30/2008, David C. Ullrich wrote: In article <[EMAIL PROTECTED]>, Dick Moores <[EMAIL PROTECTED]> wrote: > I've been using Ulipad, a free IDE mainly for Python, and written in > wxPython, for a couple of years, and think it's terrific. Now another > user, Kelie Feng, has made an 8-

Re: Calling instance methods from a decorator

2008-05-30 Thread Diez B. Roggisch
Kirk Strauser schrieb: I'm trying to write a decorator that would do something like: def trace(before, after): def middle(func): def inner(*args, **kwargs): func.im_self.debugfunction(before) result = func(*args, **kwargs) func.im_self.debugfunctio

Calling instance methods from a decorator

2008-05-30 Thread Kirk Strauser
I'm trying to write a decorator that would do something like: def trace(before, after): def middle(func): def inner(*args, **kwargs): func.im_self.debugfunction(before) result = func(*args, **kwargs) func.im_self.debugfunction(after) retu

Re: Generating event from event

2008-05-30 Thread Gandalf
Hi Diez, I can't see how it matter which GUI-Toolkit i uses because I can combine libraries. I think all that matter is that i work with windows XP. if you ever done something like that or you familiar with article which can show me how to implement what I asked it would help me Thank you very m

Re: how can i stop script from running on login ?

2008-05-30 Thread abhilash pp
thanks Benjamin, i have to try it out On Fri, May 30, 2008 at 6:31 PM, Benjamin Kaplan <[EMAIL PROTECTED]> wrote: > > > On Fri, May 30, 2008 at 8:44 AM, abhilash pp <[EMAIL PROTECTED]<[EMAIL > PROTECTED]>> > wrote: > >> Hi all, >> >> One of my friends played some tricky thing, and now I am in gr

Re: Python and Flaming Thunder

2008-05-30 Thread Torsten Bronger
Hallöchen! Grant Edwards writes: > On 2008-05-30, Torsten Bronger <[EMAIL PROTECTED]> wrote: > >> Duncan Booth writes: >> >>> [...] >>> >>> I don't understand your problem: it's just a single thread so >>> killfile or skip it. >> >> Although I agree with you that there is no problem, *this* is no

Re: Generating event from event

2008-05-30 Thread Diez B. Roggisch
Gandalf schrieb: On May 30, 3:43 pm, Larry Bates <[EMAIL PROTECTED]> wrote: Gandalf wrote: I have script which being triggered by pressing CTRL+Right mouse click from any place in my O.P , Now I need to generate automatically event like copy my selected item or double clicking the right mouse c

Re: running on WinPC + comunication via USB

2008-05-30 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: Hello, I have two questions. 1/ If I want to use Python and let my WinPC communicate via RS-232 with external embedded computer I know there is a pyserial module, which I can use it. But what will happen if I want to replace RS-232 by USB? I know I can have virtual COM

Re: help

2008-05-30 Thread J. Cliff Dyer
Take a look at django's built in pagination features: http://www.djangoproject.com/documentation/generic_views/ http://www.djangoproject.com/documentation/pagination/ Also, take a look at the django specific mailing list. [EMAIL PROTECTED] Cheers, Cliff On Fri, 2008-05-30 at 12:59 +, ha bo

Re: Python and Flaming Thunder

2008-05-30 Thread Grant Edwards
On 2008-05-30, Torsten Bronger <[EMAIL PROTECTED]> wrote: > Hall?chen! > > Duncan Booth writes: > >> [...] >> >> I don't understand your problem: it's just a single thread so >> killfile or skip it. > > Although I agree with you that there is no problem, *this* is not a > good justification for thi

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Peter Otten
Josep wrote: > I'm playing with an application framework (or kinda) that's developed > with python, and it throws this error: > > >> File >> "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", >> line 281, in execute >> sql = unicode(sql, self.Encoding) >> Lookup

Re: How to covert ASCII to integer in Python?

2008-05-30 Thread Mensanator
On May 30, 10:03�am, Philipp Pagel <[EMAIL PROTECTED]> wrote: > Skonieczny, Chris <[EMAIL PROTECTED]> wrote: > > YOU SHOULD REMOVE or CORRECT YOUR POST here: > >http://mail.python.org/pipermail/python-list/2007-February/427841.html� > > > It is not true - eg. try : > > a='P' � � � � � �# P is ASCII

running on WinPC + comunication via USB

2008-05-30 Thread martin . nkm
Hello, I have two questions. 1/ If I want to use Python and let my WinPC communicate via RS-232 with external embedded computer I know there is a pyserial module, which I can use it. But what will happen if I want to replace RS-232 by USB? I know I can have virtual COM port, but all the configurati

Re: definition of a highlevel language?

2008-05-30 Thread Dan Upton
On Mon, May 26, 2008 at 5:06 PM, Paul Miller <[EMAIL PROTECTED]> wrote: > On Mon, 26 May 2008 15:49:33 -0400, Dan Upton wrote: > >> On Mon, May 26, 2008 at 3:22 PM, <[EMAIL PROTECTED]> wrote: > >> I don't know if it would necessarily look like the CPython VM, except >> for the decode stage (this b

Re: How to covert ASCII to integer in Python?

2008-05-30 Thread Philipp Pagel
Skonieczny, Chris <[EMAIL PROTECTED]> wrote: > YOU SHOULD REMOVE or CORRECT YOUR POST here: > http://mail.python.org/pipermail/python-list/2007-February/427841.html > > It is not true - eg. try : > a='P'# P is ASCII , isn't it ? > b=int(a) > and what you will get ? An error !!!

Re: A video introducing Ulipad, an IDE mainly for Python

2008-05-30 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Dick Moores <[EMAIL PROTECTED]> wrote: > I've been using Ulipad, a free IDE mainly for Python, and written in > wxPython, for a couple of years, and think it's terrific. Now another > user, Kelie Feng, has made an 8-minute video showing it off. The > visual clar

Re: Help needed in choosing an algorithm for Cryptographic services.

2008-05-30 Thread Peter Pearson
On Thu, 29 May 2008 20:27:35 -0500, Larry Bates wrote: > abhishek wrote: >> Hi group, recently my employer asked me too implement encryption/ >> decryption for secure data transfer over internet. Problem is that the >> client application is written using C# and the webserver where i need >> to stor

Re: Getting up and running with Python on a Mac

2008-05-30 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > I've just bought an iMac (OS X 10.5.2, will almost immediately jump to > 10.5.3), and am looking to install Python on it, and to use it with > XCode, Apple's IDE. If that's what you really want to do then start XCode, select New Projec

Re: Generating event from event

2008-05-30 Thread Gandalf
On May 30, 3:43 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > Gandalf wrote: > > I have script which being triggered by pressing CTRL+Right mouse click > > from any place in my O.P , Now I need to generate automatically event > > like copy my selected item or double clicking the right mouse cursor >

Re: UNIX credential passing

2008-05-30 Thread Sebastian 'lunar' Wiesner
[ Kris Kennaway <[EMAIL PROTECTED]> ] > I want to make use of UNIX credential passing on a local domain socket > to verify the identity of a user connecting to a privileged service. > However it looks like the socket module doesn't implement > sendmsg/recvmsg wrappers, and I can't find another mod

Re: definition of a highlevel language?

2008-05-30 Thread Henrique Dante de Almeida
On May 26, 6:06 pm, Paul Miller <[EMAIL PROTECTED]> wrote: > On Mon, 26 May 2008 15:49:33 -0400, Dan Upton wrote: > > On Mon, May 26, 2008 at 3:22 PM,  <[EMAIL PROTECTED]> wrote: > > I don't know if it would necessarily look like the CPython VM, except > > for the decode stage (this being said with

Re: How to covert ASCII to integer in Python?

2008-05-30 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, "Skonieczny, Chris" <[EMAIL PROTECTED]> wrote: > YOU SHOULD REMOVE or CORRECT YOUR POST here: > http://mail.python.org/pipermail/python-list/2007-February/427841.html Why? There's nothing wrong there. > It is not true - eg. try : > a='P'# P is ASC

Re: convert string containing list to list (or tuple) type

2008-05-30 Thread Poppy
Arrgh. One of those days where I find an answer just after posting. I spend hours on the code below only to find I don't know how to use split to it's fullest. >>> b.strip(",").split(",") ['I', 'G', 'AQ', 'ET', 'K', 'BF'] "Poppy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'

Re: convert string containing list to list (or tuple) type

2008-05-30 Thread Duncan Booth
"Poppy" <[EMAIL PROTECTED]> wrote: > a = ',P,' > b = ',I,G,AQ,ET,K,BF,' > c = ',DZ,' > > for ea in (a,b,c): > print lst_codes(ea.strip(",")) > Why not just use: ea.strip(',').split(',') ? -- Duncan Booth http://kupuguy.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

convert string containing list to list (or tuple) type

2008-05-30 Thread Poppy
I'm reading from a database a column that has a list of codes (comma seperated). When I read in the list I have a single value, see code sample below values for a, b, and c. These represent possible values in my database. I need to loop through each value so I can expand my data from this compr

Has a file been opened by another program ?

2008-05-30 Thread dj
Hello All, First, Is there a python library, method or module that will tell you if a file has been opened by another program (i.e: Word, PowerPoint, IE etc.), the methods I have found in the standard library will only work with the python open method. Second, I want to take the time to thank eac

Re: Generating event from event

2008-05-30 Thread Larry Bates
Gandalf wrote: I have script which being triggered by pressing CTRL+Right mouse click from any place in my O.P , Now I need to generate automatically event like copy my selected item or double clicking the right mouse cursor without user interfering. how can i implement this width python? thank

Re: should I put old or new style classes in my book?

2008-05-30 Thread Arnaud Delobelle
"Eduardo O. Padoan" <[EMAIL PROTECTED]> writes: > On Thu, May 29, 2008 at 3:06 PM, Jason <[EMAIL PROTECTED]> wrote: >> I've got Python 3.0 alpha 2. In this version, it looks like you can >> define classes in either the old style or new style. (I snipped the >> top line a bit in the following exa

Re: Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Sanoski
On May 30, 8:24 am, Josep <[EMAIL PROTECTED]> wrote: > I'm playing with an application framework (or kinda) that's developed > with python, and it throws this error: > > > File > > "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", > > line 281, in execute > >     sq

SQLObject 0.10.2

2008-05-30 Thread Oleg Broytmann
Hello! I'm pleased to announce version 0.10.2, a bugfix release of 0.10 branch of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to u

SQLObject 0.9.7

2008-05-30 Thread Oleg Broytmann
Hello! I'm pleased to announce version 0.9.7, a minor bug fix release of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to use and qu

Re: seg. fault with Py_BuildValue?

2008-05-30 Thread Christian Meesters
Ok now, I know where the error is: "y" actually contained refcounts. This, of course, is complete nonsense and causes the interpreter to crash at some point. Thanks to all of you: You helped at least to track down the problem. Christian -- http://mail.python.org/mailman/listinfo/python-list

help

2008-05-30 Thread ha bo
hi i wanna paginate my table (x lines per pages),the size of my table is changing according to the user. i wanna know if paginator.py can help me ,if yes how? some one can help me ps:i use django thank you _ Découvrez Windows Live

Re: how can i stop script from running on login ?

2008-05-30 Thread Benjamin Kaplan
On Fri, May 30, 2008 at 8:44 AM, abhilash pp <[EMAIL PROTECTED]<[EMAIL PROTECTED]>> wrote: > Hi all, > > One of my friends played some tricky thing, and now I am in great trouble, > please help > Here is the scenario [windows xp ]: > > He wrote one login script and put it on the start program fol

Generating event from event

2008-05-30 Thread Gandalf
I have script which being triggered by pressing CTRL+Right mouse click from any place in my O.P , Now I need to generate automatically event like copy my selected item or double clicking the right mouse cursor without user interfering. how can i implement this width python? thanks! -- http://mail

Re: How to get all the variables in a python shell

2008-05-30 Thread caca
Your project interests me. Actually I was thinking about doing the same. I hadn't worked on it at all, but I though about it and had the idea about reading the session namespace directly, which I though would be stored in the __dict__ attribute of something. After reading your post, I have bee

how can i stop script from running on login ?

2008-05-30 Thread abhilash pp
Hi all, One of my friends played some tricky thing, and now I am in great trouble, please help Here is the scenario [windows xp ]: He wrote one login script and put it on the start program folder under 'All Users' The script is like this it will issue a log off command when we login; due to this

Python 2.5.2 on Ubuntu Hardy Utf-8-Euro error

2008-05-30 Thread Josep
I'm playing with an application framework (or kinda) that's developed with python, and it throws this error: > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg/dabo/db/dCursorMixin.py", > line 281, in execute > sql = unicode(sql, self.Encoding) > LookupError: unknown encoding:

Re: should I put old or new style classes in my book?

2008-05-30 Thread Eduardo O. Padoan
On Thu, May 29, 2008 at 3:06 PM, Jason <[EMAIL PROTECTED]> wrote: > I've got Python 3.0 alpha 2. In this version, it looks like you can > define classes in either the old style or new style. (I snipped the > top line a bit in the following example): Wrong. Py3k Classes are always new-style. They

Re: Hungarian Notation

2008-05-30 Thread Michael Mabin
Variable names should have prefixes or suffixes (as I prefer) that represent the "kind" of data they represent rather than the data type itself. For example account_bal_am, order_qt, line_ct, first_nm. Where am is amount, qt is quantity and ct is count. Coding standards could impose rules on data

Re: should I put old or new style classes in my book?

2008-05-30 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Hi All, I am working on a revised edition of How To Think Like a Computer Scientist, which is going to be called Think Python. It will be published by Cambridge University Press, but there will still be a free version under the GNU FDL. You can see the latest versio

Re: Finding file details...

2008-05-30 Thread Kalibr
On May 30, 3:03 pm, Kam-Hung Soh <[EMAIL PROTECTED]> wrote: > Kalibr wrote: > > On May 30, 1:41 am, "Roger Upole" <[EMAIL PROTECTED]> wrote: > >> You can use the shell COM objects to access media properties > >> as shown by Explorer. > > >> import win32com.client > >> sh=win32com.client.Dispatch('S

Re: ctypes, function pointers and a lot of trouble

2008-05-30 Thread Nick Craig-Wood
Matt <[EMAIL PROTECTED]> wrote: > Okay, thanks a lot for your reply Nick, I think you pushed me back on > the right way. Good! > Now I started with trying to implement the callback functions and am > stuck at the following point: > > I define my classes/structures/unions: > > class cdSt

Re: Saving tif file from tricky webserver

2008-05-30 Thread Diez B. Roggisch
schweet1 schrieb: Greetings, I am attempting to automate accessing and saving a file (a TIF) from the following URL: http://patimg1.uspto.gov/.DImg?Docid=US007376435&PageNum=1&IDKey=E21184B8FAD5 I have tried some methods using urllib, httplib, and web32com.client(InternetExplorer), but haven't

Re: Python threads and memory usage

2008-05-30 Thread Mike
On May 30, 9:42 am, Mike <[EMAIL PROTECTED]> wrote: > On May 30, 9:16 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > > > > On Thu, 29 May 2008 12:01:30 -0700 (PDT), Mike <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > > > > I observed, that every thread reserved some me

Re: Assignment and comparison in one statement

2008-05-30 Thread alex23
On May 30, 7:39 pm, Lie <[EMAIL PROTECTED]> wrote: > An example is python's notion for 'for' loop, which can > only loop a list[...] Actually, the for statement steps through any object that provides an iterator interface. Lists just happen to be one such object type. -- http://mail.python.org/ma

Re: should I put old or new style classes in my book?

2008-05-30 Thread sturlamolden
On May 29, 6:07 pm, [EMAIL PROTECTED] wrote: > The current edition of the book presents old style classes. I am > considering > switching to new style classes on the assumption that this should be > the default > choice for new programs. The drawback is that a lot of the online > documentation >

FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO VBScript, SAP - ABAP and more...

2008-05-30 Thread Dhanabal
access all computer tutorials for free visit http://freecomputertutorialz1.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Assignment and comparison in one statement

2008-05-30 Thread Lie
On May 24, 5:59 am, Johannes Bauer <[EMAIL PROTECTED]> wrote: > Hello group, > > I'm just starting with Python and am extremely unexperienced with it so > far. Having a strong C/C++ background, I wish to do something like > > if (q = getchar()) { >         printf("%d\n", q); > > } > > or translated

How to covert ASCII to integer in Python?

2008-05-30 Thread Skonieczny, Chris
YOU SHOULD REMOVE or CORRECT YOUR POST here: http://mail.python.org/pipermail/python-list/2007-February/427841.html It is not true - eg. try : a='P'# P is ASCII , isn't it ? b=int(a) and what you will get ? An error !!! Or probably you yourself should - quote : "You probably s

Re: should I put old or new style classes in my book?

2008-05-30 Thread Carl Banks
On May 29, 12:07 pm, [EMAIL PROTECTED] wrote: > The current edition of the book presents old style classes. I am > considering > switching to new style classes on the assumption that this should be > the default > choice for new programs. The drawback is that a lot of the online > documentation >

  1   2   >