"Gandalf" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On May 30, 12:14 am, John Henderson <[EMAIL PROTECTED]> wrote:
>> Gandalf wrote:
>> > how do i write this code in order for python to understand it
>> > and print me the x variable
>>
>> > x=1
>> > def ():
>> > x++
>>
On May 29, 11:30 pm, Nikhil <[EMAIL PROTECTED]> wrote:
> 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 so
"D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote:
> I guess I am still new to this group and don't understand its charter.
> I wasn't aware that it was a Flaming Blunder group. Can someone please
> point me to a newsgroup or mailing list dedicated to the Python
> programming language?
>
A minor poin
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 this thread. One should stay on topic in
*every* thread.
Tschö,
Torsten.
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 memory, and after exit
> > thread doesn't freed it. When i leaved my
Alan Isaac <[EMAIL PROTECTED]> writes:
> This thread raises two questions for me.
>
> 1. I take it from this thread that in Python 3 the following are
> equivalent:
>
>class Test: pass
>
>class Test(object): pass
>
> Is that correct, and if so, where is it stated explicitly?
> (I k
alex23 <[EMAIL PROTECTED]> writes:
> Which is very handy, like most of IPython.
+1 QOTW
--
Pete Forman-./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
[EMAIL PROTECTED]-./\.- the opinion of Schlumberger or
h
> Check if either x or y are NULL.
They aren't. Just did an explicit check.
--
http://mail.python.org/mailman/listinfo/python-list
free computer studies
free computer programmes
free computer education
http://foodplantss.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
2008/5/29 Alan Isaac <[EMAIL PROTECTED]>:
> This thread raises two questions for me.
>
>
>
> 1. I take it from this thread that in Python 3 the
>
> following are equivalent:
>
>
>
> class Test: pass
>
>
>
> class Test(object): pass
>
>
>
> Is that correct, and if so, where is it stated
On May 27, 12:28 pm, "inhahe" <[EMAIL PROTECTED]> wrote:
> Does anybody know of a list for canonical prefixes to use for hungarian
> notation in Python? Not that I plan to name all my variables with hungarian
> notation, but just for when it's appropriate.
If it was me, I'd use an empty-defined c
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
>
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
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
access all computer tutorials for free visit
http://freecomputertutorialz1.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
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
>
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
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
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
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
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
[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
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
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
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:
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
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
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
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
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
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
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
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
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
"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
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
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
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
"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
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'
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
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
[ 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
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
>
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
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
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
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 !!!
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
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
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
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
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
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
[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
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
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
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
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
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
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
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-
>> 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
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
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
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
"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
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/
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
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
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
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
>> 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.
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 =
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
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
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:
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
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,
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
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,
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
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
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",
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
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
> 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
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 = [
[ 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
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
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,
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
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
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
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:
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
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
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
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
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
1 - 100 of 111 matches
Mail list logo