UliPad is a flexible editor, based on wxPython. It's has many features,just
like:class browser, code auto-complete, html viewer, directory browser, wizard,
etc. The main feature is the usage of mixin. This makes UliPad can be
extended easily. So you can write your own mixin or plugin, or simple
good job!
enjoy now!
2008/4/25 limodou [EMAIL PROTECTED]:
UliPad is a flexible editor, based on wxPython. It's has many features,just
like:class browser, code auto-complete, html viewer, directory browser,
wizard,
etc. The main feature is the usage of mixin. This makes UliPad can be
bryan rasmussen top-posted:
On Thu, Apr 24, 2008 at 9:55 PM, Stefan Behnel [EMAIL PROTECTED] wrote:
from lxml import etree
tree = etree.parse(thefile.xhtml)
tree.write(thefile.html, method=html)
http://codespeak.net/lxml
wow, that's pretty nice there.
Just to know: what's
Great both methods worked! I dont quite understand this since i imported the
whole module with import MySQLdb
Thanks!
On Fri, Apr 25, 2008 at 12:45 AM, Paul McNett [EMAIL PROTECTED] wrote:
Vaibhav.bhawsar wrote:
I have been trying to get the DictCursor working with mysqldb module but
can't
Rogério Brito wrote:
i = 2
while i = n:
if a[i] != 0:
print a[i]
i += 1
You can spell this as a for-loop:
for p in a:
if p:
print p
It isn't exactly equivalent, but gives the same output as we know that a[0]
and a[1] are also 0.
Peter
--
In my view using a conversion tool on an ongoing basis is
not an option. It just adds a dependancy. What happens when
the conversion tool is upgraded in a non-backwards-compatible
way? Or do we have assurance that it won't be ;)?
The latter: if you include a copy of the converter with your
Peter Otten wrote:
Rogério Brito wrote:
i = 2
while i = n:
if a[i] != 0:
print a[i]
i += 1
You can spell this as a for-loop:
for p in a:
if p:
print p
It isn't exactly equivalent, but gives the same output as we know that a[0]
and a[1] are also 0.
On Apr 25, 5:44 pm, Robert Bossy [EMAIL PROTECTED] wrote:
Peter Otten wrote:
Rogério Brito wrote:
i = 2
while i = n:
if a[i] != 0:
print a[i]
i += 1
You can spell this as a for-loop:
for p in a:
if p:
print p
It isn't exactly equivalent, but
John Machin wrote:
On Apr 25, 5:44 pm, Robert Bossy [EMAIL PROTECTED] wrote:
Peter Otten wrote:
Rogério Brito wrote:
i = 2
while i = n:
if a[i] != 0:
print a[i]
i += 1
You can spell this as a for-loop:
for p in a:
if p:
print p
Rogério Brito:
Hi, All.
I'm just getting my feet wet on Python and, just for starters, I'm coding some
elementary number theory algorithms (yes, I know that most of them are already
implemented as modules, but this is an exercise in learning the language
idioms).
As you can see from the
also, i would recommend you to visit projecteuler.net
you can solve math tasks and then see how others have done the same.
you can fetch very good and pythonic solution there.
--
http://mail.python.org/mailman/listinfo/python-list
hellt [EMAIL PROTECTED] writes:
my variant of the sieve
Since you posted it, you are also looking for advice to improve your
code ;)
def GetPrimes(N):
arr = []
for i in range(1,N+1):
arr.append(i)
This is the same as:
arr = range(1, N+1)
!-)
#Set first item to
On 25 апр, 13:29, Arnaud Delobelle [EMAIL PROTECTED] wrote:
hellt [EMAIL PROTECTED] writes:
my variant of the sieve
Since you posted it, you are also looking for advice to improve your
code ;)
def GetPrimes(N):
arr = []
for i in range(1,N+1):
arr.append(i)
This is
On Fri, Apr 25, 2008 at 6:28 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hello all, I learned Python with the book Programming Python by John
Zelle. But today this book is a little bit old. My Python is some kind
old. I need a book that will help me brush my style and keep me up to
date.
Hello all, I learned Python with the book Programming Python by John
Zelle. But today this book is a little bit old. My Python is some kind
old. I need a book that will help me brush my style and keep me up to
date. I would like one with practical examples.
Can you recommend one?
--
On Fri, 25 Apr 2008 10:24:16 +0200, Robert Bossy wrote:
John Machin wrote:
On Apr 25, 5:44 pm, Robert Bossy [EMAIL PROTECTED] wrote:
Peter Otten wrote:
If the OP insists in not examining a[0] and a[1], this will do exactly
the same as the while version:
for p in a[2:]:
if p:
[EMAIL PROTECTED] wrote:
Hello all, I learned Python with the book Programming Python by John
Zelle. But today this book is a little bit old. My Python is some kind
old. I need a book that will help me brush my style and keep me up to
date. I would like one with practical examples.
Can you
En Thu, 24 Apr 2008 11:10:55 -0300, Paul McGuire [EMAIL PROTECTED]
escribió:
On Apr 21, 9:01 pm, Gabriel Genellina [EMAIL PROTECTED]
wrote:
Perhaps you can manage to keep your code compatible with all versions,
but
AFAIK the reccomended strategy is to write code compatible with Python
My two favorites:
- Core Python Programming by Chun
- Learning Python by Lutz
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Hi everybody,
I'm using the win32 console and have the following short program
excerpt
# media is a binary string (mysql escaped zipped file)
print media
xワユロ[ヨ...
(works)
print unicode(media)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position
1: ordinal not in range(128)
On 25 апр, 15:02, Max M [EMAIL PROTECTED] wrote:
Rogério Brito skrev:
Hi, All.
What I would like is to receive some criticism to my code to make it
more Python'esque and, possibly, use the resources of the computer in a
more efficient way (the algorithm implemented below is the Sieve of
Rogério Brito skrev:
Hi, All.
What I would like is to receive some criticism to my code to make it
more Python'esque and, possibly, use the resources of the computer in a
more efficient way (the algorithm implemented below is the Sieve of
Eratosthenes):
I agree with the rest here. Your
On 25 апр, 15:09, Malcolm Greene [EMAIL PROTECTED] wrote:
My two favorites:
- Core Python Programming by Chun
- Learning Python by Lutz
Malcolm
Learning Python (Lutz) is very good, reading right now.
--
http://mail.python.org/mailman/listinfo/python-list
On 25 Apr, 03:05, Alexandre Gillet [EMAIL PROTECTED] wrote:
I am trying to build python-2.4.5 on Centos 5.1, which is a virtual
machine running with xen.
I am not able to build python. The compilation crash with the following:
gcc -pthread -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I.
Vaibhav.bhawsar wrote:
[top-posting amended: see below]
On Fri, Apr 25, 2008 at 12:45 AM, Paul McNett [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Vaibhav.bhawsar wrote:
I have been trying to get the DictCursor working with mysqldb
module but can't seem to. I have
Arnaud,
Wow!!! That's beautiful. Thank you very much!
Malcolm
snip
I think it's straightforward enough to be dealt with simply. Here is
a solution that doesn't handle errors but should work with well-formed
input and handles recursive expansions.
expand(filename) returns an iterator over
[EMAIL PROTECTED] wrote:
# media is a binary string (mysql escaped zipped file)
print media
x???[?...
(works)
Which encoding, perhaps UTF-8 or ISO8859-1?
print unicode(media)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in
position 1: ordinal not in range(128)
(ok i
sturlamolden wrote:
On Apr 22, 1:07 pm, GD [EMAIL PROTECTED] wrote:
Multiple inheritance is bad for design, rarely used and contains
many problems for usual users.
Every program can be designed only with single inheritance.
That's how the Java designers were thinking as well: If MI is
[EMAIL PROTECTED] wrote:
Thanks for the help guys, it works! I used the
ldap.set_option(ldap.OPT_REFERRALS, 0) from http://peeved.org/blog/2007/11/20/
Hmm, maybe I should generally switch off referral chasing in python-ldap
forcing applications to enable it if needed overriding libldap's
I am trying to parse a file whose contents are :
parameter=current
max=5A
min=2A
for a single line I used
for line in file:
print re.search(parameter\s*=\s*(.*),line).groups()
is there a way to match multiple patterns using regex and return a
dictionary. What I am looking for is
I need an ioctl call equivalent to this C code:
my_struct s;
s.p = p; a pointer to an array of char
s.image_size = image_size;
return (ioctl(fd, xxx, s));
I'm thinking to use python array for the array of char, but I don't see how
to put it's address into the structure. Maybe
Steve Holden [EMAIL PROTECTED] wrote:
Ken wrote:
Steve Holden [EMAIL PROTECTED] wrote in message
[...]
def mean(*x):
total = 0.0
for v in x:
total += v
return v/len(x)
think you want total/len(x) in return statement
Yes indeed, how glad I am I
Rogério Brito [EMAIL PROTECTED] wrote:
I'm just getting my feet wet on Python and, just for starters, I'm coding
some
elementary number theory algorithms (yes, I know that most of them are
already
implemented as modules, but this is an exercise in learning the
language idioms).
When
HAI !
EARN MORE MONEY INTERESTED HERE.SEE IN
MY SITE.
THEY DO DIFFERENT THINGS TO
GET HERE
www.getitlove.blogspot.com
www.doitbetter5.blogspot.com
--
micron_make [EMAIL PROTECTED] writes:
I am trying to parse a file whose contents are :
parameter=current
max=5A
min=2A
for a single line I used
for line in file:
print re.search(parameter\s*=\s*(.*),line).groups()
is there a way to match multiple patterns using regex and return
On Apr 25, 9:15 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi everybody,
I'm using the win32 console and have the following short program
excerpt
# media is a binary string (mysql escaped zipped file)
print media
xワユロ[ヨ ...
(works)
print unicode(media)
UnicodeDecodeError:
hellt skrev:
Most code is not like that so perhaps you should try something more
usual like sending email, fetching webpages etc. to get a feel for the
language.
em, i would say, that python (esp. with NumPy+Psyco) is very popular
in numerical processing also.
I know, and I might be way
Paul Boddie wrote:
On 25 Apr, 03:05, Alexandre Gillet [EMAIL PROTECTED] wrote:
I am trying to build python-2.4.5 on Centos 5.1, which is a virtual
machine running with xen.
I am not able to build python. The compilation crash with the following:
gcc -pthread -c -DNDEBUG -g -O3 -Wall
On Apr 25, 10:01 pm, Bjoern Schliessmann usenet-
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
# media is a binary string (mysql escaped zipped file)
print media
x???[? ...
(works)
Which encoding, perhaps UTF-8 or ISO8859-1?
print unicode(media)
UnicodeDecodeError: 'ascii'
Nick Craig-Wood wrote:
Steve Holden [EMAIL PROTECTED] wrote:
Ken wrote:
Steve Holden [EMAIL PROTECTED] wrote in message
[...]
def mean(*x):
total = 0.0
for v in x:
total += v
return v/len(x)
think you want total/len(x) in return statement
Yes indeed, how glad I am
On Apr 25, 12:37 am, Steve Holden [EMAIL PROTECTED] wrote:
Sean McDaniel wrote:
Hi y'all,
I'm trying to perform a local install of python at work in my user
directory. Everything compiles correctly, but I can't seem to tell the
configure script the location of the bin and lib directories
On Apr 24, 11:48 pm, Farsheed Ashouri [EMAIL PROTECTED] wrote:
Hi everyone. I create a little browser with wxpython and IEHtmlWindow.
But I have a little problem here.
When I press enter in the html page, The focus goes to another panel.
Why this happens?
I want to load a html page and it
i have a working MySQLdb module (/usr/lib/python2.4/site-packages/
MySQL_python-1.2.2-py2.4-linux-i686.egg), using it without problems.
clean shell after login:
python -c import MySQLdb reports no errors
if i export PYTHONPATH:
export PYTHONPATH=/var/www/projects/uv_portal/portal
python -c
Arnaud Delobelle wrote:
micron_make [EMAIL PROTECTED] writes:
I am trying to parse a file whose contents are :
parameter=current
max=5A
min=2A
for a single line I used
for line in file:
print re.search(parameter\s*=\s*(.*),line).groups()
is there a way to match multiple
On Apr 24, 1:34 pm, Paul Rubin http://[EMAIL PROTECTED] wrote:
Paul Boddie [EMAIL PROTECTED] writes:
simple Python-only modules, all you'd really need to do to prove the
concept is to develop the client-side Windows software (eg. apt-get
for Windows) which downloads package lists, verifies
Aljosa Mohorovic schrieb:
i have a working MySQLdb module (/usr/lib/python2.4/site-packages/
MySQL_python-1.2.2-py2.4-linux-i686.egg), using it without problems.
clean shell after login:
python -c import MySQLdb reports no errors
if i export PYTHONPATH:
export
Marc 'BlackJack' Rintsch wrote:
Indeed. Would it be a sensible proposal that sequence slices should
return an iterator instead of a list?
I don't think so as that would break tons of code that relies on the
current behavior. Take a look at `itertools.islice()` if you want/need
an
[EMAIL PROTECTED] wrote:
Hi everybody,
I'm using the win32 console and have the following short program
excerpt
# media is a binary string (mysql escaped zipped file)
print media
xワユロ[ヨ...
(works)
print unicode(media)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in
Environment variable set up is the most confusing part for me all the
time. Please help me with the following questions:
When I install python in a new system, I will go to environment
variables (system variables) and set path pointing to C:\Python25
and thats all I do.
I type python from cmd
On Apr 25, 8:07 am, Krishna [EMAIL PROTECTED] wrote:
Environment variable set up is the most confusing part for me all the
time. Please help me with the following questions:
When I install python in a new system, I will go to environment
variables (system variables) and set path pointing to
jmDesktop wrote:
Hi, I wanted to buy a book on Python, but am concerned that some of
them are too old. One I had come to after much research was Core
Python by Wesley Chun. I looked at many others, but actually saw this
one in the store and liked it. However, it is from 2006. I know
there is
Hi, I wanted to buy a book on Python, but am concerned that some of
them are too old. One I had come to after much research was Core
Python by Wesley Chun. I looked at many others, but actually saw this
one in the store and liked it. However, it is from 2006. I know
there is free documentation
jmDesktop wrote:
Hi, I wanted to buy a book on Python, but am concerned that some of
them are too old. One I had come to after much research was Core
Python by Wesley Chun. I looked at many others, but actually saw this
one in the store and liked it. However, it is from 2006. I know
there
Krishna wrote:
Environment variable set up is the most confusing part for me all the
time. Please help me with the following questions:
When I install python in a new system, I will go to environment
variables (system variables) and set path pointing to C:\Python25
and thats all I do.
I type
On Apr 25, 9:17 am, Mike Driscoll [EMAIL PROTECTED] wrote:
On Apr 25, 8:07 am, Krishna [EMAIL PROTECTED] wrote:
Environment variable set up is the most confusing part for me all the
time. Please help me with the following questions:
When I install python in a new system, I will go to
Nick Stinemates schrieb:
While I certainly prefer to use Python wherever I can, that does not mean
that there aren't cases where legacy systems or other constraints make this
impossible. If I have e.g. a type3-based website - how on earth should I
replace that with Python (without wasting a
On Apr 25, 6:28 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hello all, I learned Python with the book Programming Python by John
Zelle. But today this book is a little bit old. My Python is some kind
old. I need a book that will help me brush my style and keep me up to
date. I would like
On Apr 25, 2:03 pm, Bjoern Schliessmann usenet-
[EMAIL PROTECTED] wrote:
That's how the Java designers were thinking as well: If MI is
allowed, programmers will suddenly get an irresistible urge to use
MI to write unmaintainable spaghetti code. So let's disallow MI
for the sake of common
On linux, I don't understand why:
f = open ('/dev/eos', 'rw')
m = mmap.mmap(f.fileno(), 100, prot=mmap.PROT_READ|mmap.PROT_WRITE,
flags=mmap.MAP_SHARED)
gives 'permission denied', but this c++ code works:
#include sys/mman.h
#include fcntl.h
#include sys/types.h
#include sys/stat.h
#include
How about this?
for line in file:
# ignore lines without = assignment
if '=' in line:
property, value = line.strip().split( '=', 1 )
property = property.strip().lower()
value = value.strip()
# do something with property, value
Malcolm
--
Brand Watches Seiko Men's Premier Alarm Chronograph Watch # SNA209P1
Discount, Swiss, Fake
Browse our Seiko Men's Premier Alarm Chronograph Watch # SNA209P1
Swiss watches, which is sure the watch you are looking for at low
price. There are more high quality designer watch Swiss for selection
Brand Watches Ebel Women's 1911 Two-Tone Watch #1087221-9365P
Discount, Swiss, Fake
Browse our Ebel Women's 1911 Two-Tone Watch #1087221-9365P Swiss
watches, which is sure the watch you are looking for at low price.
There are more high quality designer watch Swiss for selection
Ebel Women's 1911
On Apr 24, 3:38 am, A.T.Hofkamp [EMAIL PROTECTED] wrote:
On 2008-04-23, blaine [EMAIL PROTECTED] wrote:
On Apr 23, 2:01 pm, Martin Blume [EMAIL PROTECTED] wrote:
blaine schrieb
No,
while 1:
r = self.fifodev.readline()
if r: print r
else: time.sleep(0.1)
is ok
On Apr 25, 8:26 am, Krishna [EMAIL PROTECTED] wrote:
On Apr 25, 9:17 am, Mike Driscoll [EMAIL PROTECTED] wrote:
On Apr 25, 8:07 am, Krishna [EMAIL PROTECTED] wrote:
Environment variable set up is the most confusing part for me all the
time. Please help me with the following questions:
I want to subclass list so that each value in it is calculated at call
time. I had initially thought I could do that by defining my own
__getitem__, but 1) apparently that's deprecated (although I can't
find that; got a link?), and 2) it doesn't work.
For example:
class Foo(list):
... def
On 25 Apr, 14:16, Paul Melis [EMAIL PROTECTED] wrote:
The bug is not reproducible, so it is likely a hardware or OS problem.
This line is printed by GCC itself, not the OP
It's a strange thing for anyone to claim in an error message, though,
especially if it is reproducible. Perhaps some
Hello,
I'm having some trouble with the Queue class, for some reason, if I do
this (ch == ) :
q = Queue.Queue(0)
repr(ch)
q.put(ch, True)
len(q.queue)
where the output is :
'\x02'
0
why isn't the character/string being put it in the queue?
Thank you,
Gabriel
--
Paul Rubin wrote:
Paul Boddie [EMAIL PROTECTED] writes:
simple Python-only modules, all you'd really need to do to prove the
concept is to develop the client-side Windows software (eg. apt-get
for Windows) which downloads package lists, verifies signatures, and
works out where to put the
On Apr 25, 4:38 pm, Gabriel Rossetti
[EMAIL PROTECTED] wrote:
Hello,
I'm having some trouble with the Queue class, for some reason, if I do
this (ch == ) :
q = Queue.Queue(0)
repr(ch)
q.put(ch, True)
len(q.queue)
from Queue import Queue
q = Queue(0)
s = '\x02'
q.put(s,True)
Brian Munroe a écrit :
Ok, so thanks everyone for the helpful hints. That *was* a typo on my
part (should've been super(B...) not super(A..), but I digress)
I'm building a public API. Along with the API I have a few custom
types that I'm expecting API users to extend, if they need too. If I
On Apr 23, 9:13 pm, [EMAIL PROTECTED] wrote:
A simple yet dangerous and rather rubbish solution (possibly more of a
hack than a real implementation) could be achieved by using a
technique described above:
?php
echo exec('python foo.py');
This will spawn a Python interpreter, and
On Apr 24, 10:11 pm, Arnaud Delobelle [EMAIL PROTECTED] wrote:
In python, use attributes starting with a single underscore (such as
_name). It tells users that they shouldn't mess with them. By
design, python doesn't include mechanisms equivalent to the Java / C++
'private'.
Arnaud,
Arimaz SA
Av. du 24 Janvier 11
Ateliers de la Ville de Renens, Atelier 5
1020 Renens, Switzerland
www.mydeskfriend.com
Mob: +41-(0)79-539-0069
Tel: +41-(0)21-566-7343
sturlamolden wrote:
On Apr 25, 4:38 pm, Gabriel Rossetti
[EMAIL PROTECTED] wrote:
Hello,
I'm having some trouble with
snip...
I use wxPython most of the time, however effbot has a good tutorial on
scrollbars for Tkinter that I think you might find helpful:
http://effbot.org/zone/tkinter-scrollbar-patterns.htm
Here's another link on the subject:
On Apr 25, 4:03 pm, Kirk Strauser [EMAIL PROTECTED] wrote:
I want to subclass list so that each value in it is calculated at call
time. I had initially thought I could do that by defining my own
__getitem__, but 1) apparently that's deprecated (although I can't
find that; got a link?), and 2)
I'm desperately spending too much time trying to understand wxPython and it's
leading me nowhere.
I'm trying to make a script that will create a window, and then immediately
fill this window with a background color. I also want to be able to fill this
window with a background color anytime I
On Fri, Apr 25, 2008 at 11:11 AM, Gabriel Rossetti
[EMAIL PROTECTED] wrote:
yes, if you do it that way (s = '\x02') it works, but I read the data from
a file, and I that way it doesn't work
It does work (using Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45)
[MSC v.1310 32 bit (Intel)] on
I would like to subclass datetime.date so that I can write:
d = date2('12312008')
I tried:
from datetime import date
class date2(date):
def __init__( self, strng ):
mm,dd,yy = int(strng[:2]), int(strng[2:4]), int(strng[4:])
date.__init__(self,yy,mm,dd)
But then this statement:
d =
Brand Watches Seiko Men's Watches Premier SNA745P - AA Discount,
Swiss, Fake
Browse our Seiko Men's Watches Premier SNA745P - AA Swiss watches,
which is sure the watch you are looking for at low price. There are
more high quality designer watch Swiss for selection
Seiko Men's Watches Premier
Brand Watches Ebel Classic Brown Leather Strap Date Mens Watch
9120F51.6235134 Discount, Swiss, Fake
Browse our Ebel Classic Brown Leather Strap Date Mens Watch
9120F51.6235134 Swiss watches, which is sure the watch you are looking
for at low price. There are more high quality designer watch
The access writes to easy-install.pth for regular users is read and
execute.
The output of sys.path for regular users is:
['', 'C:\\Program Files\\Python25\\lib\\site-packages\
\setuptools-0.6c8-py2.5.eg
g', 'C:\\Program Files\\Python25\\python25.zip', 'C:\\Program Files\
\Python25\\D
LLs',
Since their introduction in Python 2.5 I only reviewed the new
relative import notation briefly by reading the What's new in
Python 2.5 article. Now I wanted checkout if I get comfortable with
them.
Opening the tutorial I found following notice ( 6.4.2 ):
Note that both explicit and implicit
In article [EMAIL PROTECTED],
Martin v. Löwis [EMAIL PROTECTED] wrote:
I still think it's a shame
[...]
pps: I have to note that it would be nice if the
ad-hominem (sp?) invective would drop out of
these threads -- it doesn't add a lot, I think.
shame
1 a. a painful emotion
In Python the standard patten for declaring variables is just to assign to
them as they are needed. If you want the effect of a declaration as you
would do in C, you can just define the variable and initialize it to 0 or
None. (Or {} for a new dictionary, or [] for a new list.)
Yep, I
I've discovered the cause of the problem. At some point previously,
Windows Vista had created a copy of the site-packages directory in a
virtual store for the user account. The easy-install.pth file in the
virtual store did not contain the same path information as the easy-
install.pth that the
Stefan Behnel wrote:
bryan rasmussen top-posted:
On Thu, Apr 24, 2008 at 9:55 PM, Stefan Behnel [EMAIL PROTECTED] wrote:
from lxml import etree
tree = etree.parse(thefile.xhtml)
tree.write(thefile.html, method=html)
http://codespeak.net/lxml
wow, that's pretty
On Apr 25, 7:03 am, Kirk Strauser [EMAIL PROTECTED] wrote:
I want to subclass list so that each value in it is calculated at call
time. I had initially thought I could do that by defining my own
__getitem__, but 1) apparently that's deprecated (although I can't
find that; got a link?), and 2)
Hmm that explains it! Thank you.
v
On Fri, Apr 25, 2008 at 7:38 AM, Steve Holden [EMAIL PROTECTED] wrote:
Vaibhav.bhawsar wrote:
[top-posting amended: see below]
On Fri, Apr 25, 2008 at 12:45 AM, Paul McNett [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] wrote:
Vaibhav.bhawsar wrote:
On Apr 25, 4:02 pm, sturlamolden [EMAIL PROTECTED] wrote:
On Apr 23, 9:13 pm, [EMAIL PROTECTED] wrote:
A simple yet dangerous and rather rubbish solution (possibly more of a
hack than a real implementation) could be achieved by using a
technique described above:
?php
echo
bryan rasmussen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'll second the recommendation to use xsl-t, set the output to html.
The code for an XSL-T to do it would be basically:
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
version=1.0
xsl:output
Hi all. I'm trying to do something with python import but isn't working for me.
Using python 2,5 I've a program structured like this:
* a main module called (for example) mommy with an __init__.py and a
file called mommy.py
* a __version__ var defined inside the main __init__.py
From the
Thanks for your answers. I did solve my problem.
I upgraded my glibc libraries and it seems to solve the problem.
I was able to build python-2.4.5 using gcc 4.1.2 (glibc-2.5-18.el5_1.1)
Alex
On Thu, 2008-04-24 at 18:05 -0700, Alexandre Gillet wrote:
Hi,
I am trying to build python-2.4.5 on
Luca wrote:
Hi all. I'm trying to do something with python import but isn't working for me.
Using python 2,5 I've a program structured like this:
* a main module called (for example) mommy with an __init__.py and a
file called mommy.py
* a __version__ var defined inside the main __init__.py
On 25 Apr., 20:03, Luca [EMAIL PROTECTED] wrote:
Hi all. I'm trying to do something with python import but isn't working for
me.
Using python 2,5 I've a program structured like this:
* a main module called (for example) mommy with an __init__.py and a
file called mommy.py
* a __version__
Hi,
None = 0
True
Why?
Is there a logical reason?
Gregor
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Other idea (old style school):
def printing():
f=open(lpt1, w)
f.write(\nSomething to print\f)
f.close()
Cheers..
- Ibanez -
- Original Message -
From: [EMAIL PROTECTED]
Newsgroups: comp.lang.python
To: python-list@python.org
Sent: Wednesday, April 23, 2008 10:27 PM
None = 0
True
Why?
Is there a logical reason?
None is smaller than anything. The choice of
making it so is arbitrary, however, Python 2.x
tries to impose a total order on all objects (with varying
success), therefore, it is necessary to take arbitrary
choices.
(FWIW, in 2.x, x=4?, it's
On Fri, 25 Apr 2008 20:27:15 +0200
Gregor Horvath [EMAIL PROTECTED] wrote:
None = 0
True
Why?
Why not?
Is there a logical reason?
Everything in Python can compare to everything else. It is up to the
programmer to make sure that they are comparing reasonable things.
--
D'Arcy J.M.
Gregor Horvath wrote:
None = 0
True
More accurately:
None 0
True
Why?
Is there a logical reason?
None is less than everything except for itself:
None 'a'
True
None False
True
None == None
True
In my humble opinion, I think that comparisons involving None should
return None,
D'Arcy J.M. Cain schrieb:
On Fri, 25 Apr 2008 20:27:15 +0200
Gregor Horvath [EMAIL PROTECTED] wrote:
None = 0
True
Why?
Why not?
Because, from http://www.python.org/dev/peps/pep-0020/ :
Errors should never pass silently.
In the face of ambiguity, refuse the temptation to guess.
Greg
--
1 - 100 of 269 matches
Mail list logo