Hi all,
I have a feeling that I should solve this by a context manager but
since I've never used them I'm not sure what the optimal (in the
python sense) solution is. So basically what I do all the time is
this:
for line in open( 'myfile' ):
if not line:
# discard empty lines
On 11/28/14, Dave Angel wrote:
> On 11/28/2014 10:04 AM, fetchinson . wrote:
>> Hi all,
>>
>> I have a feeling that I should solve this by a context manager but
>> since I've never used them I'm not sure what the optimal (in the
>> python sense) solution
>> Did you ever hit the "Socialize" button?
No, but it doesn't bother me.
>> Are you eager to see the latest
>> tweets when you are reading a PEP?
No, but it doesn't bother me either. You can easily block twitter
related things by a number of ways, firewalls, /etc/hosts, etc.
>> Do you run away
>> Lest it seem like I am agreeing with these complaints, I'd like to say:
>> Either python goes this way or the way of Fortran and Cobol.
>
> You mean if Cobol had a shiny but disfunctional website we'd be using that
> instead of Python?
Why would he mean that?
If !A implies !B, it does *not* fo
>> > Many links are broken. When you click on the broken link, it says that
> it
>> > has been reported and will be fixed, but weeks later it remains broken,
>> > e.g.:
>> >
>> > https://www.python.org/doc/essays/metaclasses/Eiffel.py
>>
>> What makes you think that this page is ought to return act
On 12/9/14, Ethan Furman wrote:
> On 12/05/2014 03:30 AM, Fetchinson responded to
>> Steven D'Aprano's rant of:
>>>
>>> Many links are broken. When you click on the broken link, it says that
>>> it
>>> has been reported and will be fixed, but
> Is it possible in python:
>
> if ((x = a(b,c)) == 'TRUE'):
> print x
Nope. Assignment is not allowed in a conditional.
Cheers,
Daniel
> Thanks.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
--
https://m
Hi all,
I was using sl4a for quite some time on android and it basically
worked very well although some features are missing. It looks like
sl4a is dead, although I could be wrong. Does anyone knowledgeable
have any further info on the future of sl4a? For instance it doesn't
work with android 5 an
efully it will be around for a while and won't evaporate like sl4a :)
Cheers,
Daniel
> According to wikipedia http://en.wikipedia.org/wiki/Guido_van_Rossum Guido
> works for dropbox.
>
> Billy
>
> On Thu, Dec 25, 2014 at 9:31 AM, Fetchinson .
> wrote:
>
>> H
On 12/26/14, Steven D'Aprano wrote:
> Fetchinson . wrote:
>
>> Guido is still working at google, right?
>
>
> No. Google is still using Python for lots of things, but Guido is now
> working for Dropbox.
>
> https://www.python.org/~guido/
Thanks, I missed the t
On 12/26/14, iMath wrote:
> 在 2014年12月25日星期四UTC+8下午11时31分24秒,Fetchinson .写道:
>> Hi all,
>>
>> I was using sl4a for quite some time on android and it basically
>> worked very well although some features are missing. It looks like
>> sl4a is dead, altho
On 1/23/15, Steven D'Aprano wrote:
> Terry Reedy wrote:
>
>> On 1/22/2015 10:59 PM, Chris Angelico wrote:
>>> On Fri, Jan 23, 2015 at 2:22 PM, Terry Reedy wrote:
This idea is so brilliant that it is already an option in mypy and is
part
of the new type-hint proposal. The separate
On 1/23/15, Chris Angelico wrote:
> On Sat, Jan 24, 2015 at 12:23 AM, Fetchinson .
> wrote:
>> In any case, I'm pretty sure it was said before, but I can't really
>> find it anywhere, can someone tell me what the rationale is for
>> *function signature* type
On 1/24/15, Steven D'Aprano wrote:
> Fetchinson . wrote:
>
>> On 1/23/15, Steven D'Aprano wrote:
> [...]
>>> Cobra is especially close to Python-like syntax, and supports unit tests
>>> as well:
>>>
>>>
>>>
Hi all, the mobile-sig mailing list is alive:
https://mail.python.org/pipermail/mobile-sig/2015-January/thread.html
If you are interested in python on smart phones that's the place to go!
Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
--
https://mail.python.o
On 3/15/15, Mark Lawrence wrote:
> On 15/03/2015 19:05, John Nagle wrote:
>> On 3/14/2015 1:00 AM, Marko Rauhamaa wrote:
>>> John Nagle :
I'm approaching the end of converting a large system from Python 2
to Python 3. Here's why you don't want to do this.
>>>
>>> A nice report, thanks
>> In an altercation with the police, complying with their orders greatly
>> increases your chances of survival.
>
> Ah, the definition of a police state: where ordinary people, whether
> breaking the law or not, are forced by fear of death to obey the police at
> all times, whether the police are
I'm looking into a robust solution for web application testing. While
selenium is great for the actual testing, I'm thinking of a scheduler
as the final piece in the pipeline. Let's say I have 4 websites that I
need to test periodically, A, B, C, D. I'd like to be able to define
things like "run th
On 5/12/15, Chris Angelico wrote:
> On Tue, May 12, 2015 at 6:31 AM, Fetchinson .
> wrote:
>> I'm looking into a robust solution for web application testing. While
>> selenium is great for the actual testing, I'm thinking of a scheduler
>> as the final piece i
funcs = [ lambda x: x**i for i in range( 5 ) ]
print funcs[0]( 2 )
print funcs[1]( 2 )
print funcs[2]( 2 )
This gives me
16
16
16
When I was excepting
1
2
4
Does anyone know why?
Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
--
http://mail.python.org/mail
> funcs = [ lambda x: x**i for i in range( 5 ) ]
> print funcs[0]( 2 )
> print funcs[1]( 2 )
> print funcs[2]( 2 )
>
> This gives me
>
> 16
> 16
> 16
>
> When I was excepting
>
> 1
> 2
> 4
>
> Does anyone know why?
And more importantly, what's the simplest way to achieve the latter? :)
--
Psss,
>>> funcs = [ lambda x: x**i for i in range( 5 ) ]
>>> print funcs[0]( 2 )
>>>
>>> This gives me
>>> 16
>>>
>>> When I was excepting
>>> 1
>>>
>>> Does anyone know why?
>
>Just the way Python lambda expressions bind their variable
> references. Inner 'i' references the outer scope's 'i' variabl
>> You should not be using lambda in this case
>> .for x in [2, 3]:
>> .funcs = [x**ctr for ctr in range( 5 )]
>> .for p in range(5):
>> .print x, funcs[p]
>> .print
>
> If you change the requirements, it's always easy to solve problems. But
> it is the wrong problem that you ha
I've noticed a strange thing with python lately:
Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> def f(): print x
...
>>> f()
terminate called after throwing an instance o
>> I've noticed a strange thing with python lately:
>>
>>
>>
>> Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57)
>> [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
> def f(): print x
>> ...
> f()
>> terminate called
Hi folks,
I'm using a stand alone window manager without gnome or kde or any
other de. But I still would like to have a system tray or notification
area and so far used stalonetray for this. Stalonetray is written in C
and is a GTK application, works all right but sometimes it doesn't.
For instanc
>> Hi folks,
>>
>> I'm using a stand alone window manager without gnome or kde or any
>> other de. But I still would like to have a system tray or notification
>> area and so far used stalonetray for this. Stalonetray is written in C
>> and is a GTK application, works all right but sometimes it doe
Hi folks,
So I thought I would write a brand new stand alone system tray or
notification area in python. I guess I need to use gtk bindings or
some such but don't really know what my options are.
Where would I start something like this?
Any pointers would be great
>> So I thought I would write a brand new stand alone system tray or
>> notification area in python. I guess I need to use gtk bindings or
>> some such but don't really know what my options are.
>>
>> Where would I start something like this?
>> Any pointers would be greatly
> can we append a list with another list in Python ? using the normal routine
> syntax but with a for loop ??
x = [1,2,3]
y = [10,20,30]
x.extend( y )
print x
this will give you [1,2,3,10,20,30] which I guess is what you want.
Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress
Hi folks, I swear I used to know this but can't find it anywhere.
Say I have a list x = [ 1,2,3,4,5 ] and only care about the first two items.
I'd like to assign the first two items to two variables, something like,
a, b, _ = x
but the above will not work, of course, but what is the common idiom
Hi folks, I swear I used to know this but can't find it anywhere:
What's the standard idiom for unpacking the first few items of an
iterable whose total length is unknown?
Something like
a, b, c, _ = myiterable
where _ could eat up a variable number of items, in case I'm only
interested in the
>>Hi folks, I swear I used to know this but can't find it anywhere:
>>
>>What's the standard idiom for unpacking the first few items of an
>>iterable whose total length is unknown?
>>
>>Something like
>>
>>a, b, c, _ = myiterable
>>
>>where _ could eat up a variable number of items, in case I'm onl
Hi folks, I swear I used to know this but can't find it anywhere:
What's the standard idiom for unpacking the first few items of an
iterable whose total length is unknown?
Something like
a, b, c, _ = myiterable
where _ could eat up a variable number
Hi folks, I realize this is slightly off topic and maybe belongs to a
gnome email list but it's nevertheless python:
I use an old python program that was written for gnome 2 and gtk 2 and
uses the function get_local_path_from_uri. More specifically it uses
gnomevfs.get_local_path_from_uri.
Now wi
>> Hi folks, I realize this is slightly off topic and maybe belongs to a
>> gnome email list but it's nevertheless python:
>>
>> I use an old python program that was written for gnome 2 and gtk 2 and
>> uses the function get_local_path_from_uri. More specifically it uses
>> gnomevfs.get_local_path_
> I'm new to python, got 10-20 years perl and C experience, all gained on unix
> alike machines hacking happily in vi, and later on in vim.
>
> Now it's python, and currently mainly on my kubuntu desktop.
Welcome to the club!
> Do I really need a real IDE, as the windows guys around me say I do,
Hi folks, often times in science one expresses a value (say
1.03789291) and its error (say 0.00089) in a short way by parentheses
like so: 1.0379(9)
One can vary things a bit, but let's take the simplest case when we
only keep 1 digit of the error (and round it of course) and round the
value corre
>> Hi folks, often times in science one expresses a value (say
>> 1.03789291) and its error (say 0.00089) in a short way by parentheses
>> like so: 1.0379(9)
>>
>> One can vary things a bit, but let's take the simplest case when we
>> only keep 1 digit of the error (and round it of course) and roun
On 2/16/12, Ian Kelly wrote:
> On Thu, Feb 16, 2012 at 1:36 AM, Daniel Fetchinson
> wrote:
>>>> Hi folks, often times in science one expresses a value (say
>>>> 1.03789291) and its error (say 0.00089) in a short way by parentheses
>>>> like so: 1.0379(9
>> Thanks, it's simpler indeed, but gives me an error for value=1.267,
>> error=0.08:
>>
>> Traceback (most recent call last):
>> File "/home/fetchinson/bin/format_error", line 26, in
>>print format_error( sys.argv[1], sys.argv[2] )
>&
>> Hi folks, often times in science one expresses a value (say
>> 1.03789291) and its error (say 0.00089) in a short way by parentheses
>> like so: 1.0379(9)
>
> Before swallowing any Python solution, you should
> realize, the values (value, error) you are using are
> a non sense :
>
> 1.03789291 +
On 3/23/12, Sangeet wrote:
> Hi,
>
> I've got to fetch data from the snippet below and have been trying to match
> the digits in this to specifically to specific groups. But I can't seem to
> figure how to go about stripping the tags! :(
>
> Sum class="green">24511 align='center'>02561.496
> [min]
It's also quite ironic that the initial complaining started from how
the domain name www.pyjs.org is not available only pyjs.org is. At the
same time the Rebel Chief's listed domain name on github, see
https://github.com/xtfxme, gives you a server not found:
http://the.xtfx.me/ :)
On 5/9/12, ant
> the original goal was to purchase a domain and fork --
> i made this very clear in my notes -- `uxpy.net`. however, the most
> respectable member of the commit IMO convinced me otherwise.
(I'm a total outsider, never used pyjs.)
Anthony, you never explained what the reasoning behind the advice
> Blatantly the pyjs ownership change turned out to be an awkward
> operation (as reactions on that ML show it), but a fork could also have
> very harmfully "split" pyjs-interested people, so all in all I don't
> think there was a perfect solution - dictatorships never fall harmlessly.
You say "f
> >From the Zen of Python ("import this"):
>
> Namespaces are one honking great idea -- let's do more of those!
>
>
> Inspired by this, I have a decorator that abuses function closures to
> create a namespace type with the following properties:
>
> - all methods are static methods that do not take
>> Funny, you got to the last line of "import this" but apparently
>> skipped the second line:
>>
>> Explicit is better than implicit.
>>
>> And you didn't even post your message on April 1 so no, I can't laugh
>> even though I'd like to.
>
> Can you be less condescending?
Of course! :)
Anyway, t
>
> I'm a new list member from the United States. Long time programmer,
> fairly new to Python and absolutely loving it so far! I'm 36, live in
> Oklahoma, and own a small Linux software development and consulting
> firm. Python has made my life a *lot* easier and, the more I learn,
> the easier i
Hi folks, I know this comes up regularly but the thing is that the
quality of service changes also quite regularly with many of the
hosting companies. What's currently the best option for shared hosting
of a turbogears application? I'm thinking of dreamhost and webfaction
does anyone have any recen
>> Hi folks, I know this comes up regularly but the thing is that the
>> quality of service changes also quite regularly with many of the
>> hosting companies. What's currently the best option for shared hosting
>> of a turbogears application? I'm thinking of dreamhost and webfaction
>> does anyone
I'll be 59 in a couple of months.
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
--
http://mail.python.org/mailman/listinfo/python-list
>> >I have developed one big Machine Learning software a Machine
>> >Translation system in Python.
>> >Now, I am thinking to make a User Interface of it and upload it in a
>> >web site.
>>
>> Do you mean you want people to download this from a web site as an
>> executable, and then run it locally o
>> what is the character limit on a one liner :P.
>
> For PEP 8 compliance, 80 characters. :-)
Yeah, but we don't live in the 80's or 90's anymore and our screens
can support xterms (or let alone IDE widows) much wider than 80
characters. I'm using 140 for python these days. Seriously, who would
w
what is the character limit on a one liner :P.
>>>
>>> For PEP 8 compliance, 80 characters. :-)
>>
>> Yeah, but we don't live in the 80's or 90's anymore and our screens can
>> support xterms (or let alone IDE widows) much wider than 80 characters.
>> I'm using 140 for python these days. Serio
Hi folks,
In order to test my own modules with various python versions I've
installed python 2.4, 2.5, 2.6, 2.7, 3.1, 3.2. The original
installation on my fedora box was 2.6 and all 3rd party modules so far
were installed under /usr/lib/python2.6/site-packages. Since now the
executable 'python' po
> There's a postmortem on the failure of Unladen Swallow by one of the
> developers at:
>
> http://qinsb.blogspot.com/2011/03/unladen-swallow-retrospective.html
This outcome of things is really a testament to the hard work of the pypy folks.
They, a volunteer bunch, beat google!
And that's somethi
Thanks a million Oleg!
Cheers,
Daniel
On 11/20/11, Oleg Broytman wrote:
> Hello!
>
> I'm pleased to announce version 1.2.0, the first stable release of branch
> 1.2 of SQLObject.
>
>
> What is SQLObject
> =
>
> SQLObject is an object-relational mapper. Your database tables are
> My Python script makes a bunch of images that I want to use as frames
> in a movie. I've tried searching for a module that will take these
> images and put them together in a Quicktime or mpeg movie, but haven't
> found anything. My images are currently pdfs, but I could make them
> into just a
> Hello everybody,
>
> I just joined this mailing list. Thanks for your comments about gluon.
>
> I have posted a short video about it and I am planning to make more
> over the week-end.
>
> http://www.youtube.com/watch?v=VBjja6N6IYk
>
> About some of your comments:
> - the most complex modules (li
> ... I almost forgot ...
>
> another difference between Gluon and Django,TG is that in Gluon if
> you write controllers without view you automatically get generic view
> that render and BEAUTIFY() the variables returned by the controllers.
> That means you can develop the logic of your application
> hi to everyone
> I wondered if this might be the right place to ask for some ideas for
> python project for university.
> I'd like it to be something useful and web-based. And the project must
> be complete in 2-3 months by 2-3 person group.
> May be something useful for open source or python com
> I'm an old programmer coming from a cobol background and started to
> learn python. I'm using javasript for web based applications but after I
> started to learn python, the javascript language started to seem ugly to
> me. Now I'm wondering why there is java support on web browsers but no
> pyth
Hi list, I've been following a discussion on a new way of defining
getters and setters on python-dev and just can't understand what the
purpose is. Everybody agreed on the dev list that this is a good idea
so I guess it must be right :)
The whole thing started with this post of Guido:
http://mail
> > Hi list, I've been following a discussion on a new way of defining
> > getters and setters on python-dev and just can't understand what the
> > purpose is. Everybody agreed on the dev list that this is a good idea
> > so I guess it must be right :)
> >
> > The whole thing started with this post
> Today, I am very excited to announce the first release of the Apydia
> API reference documentation generator for Python. It's designed as an
> instantly serviceable replacement for Pudge's API documentation
> generator. It won't generate complete websites from reST etc. like
> Pudge does, though
Hi list,
This is way off topic but maybe somebody knowledgeable can help.
I'm looking for the most minimalist web server ever that does nothing
else than return a fixed static page for every request. Regardless of
what the request is, it just needs to be an HTTP request to port 80,
the web se
> > I'm looking for the most minimalist web server ever that does nothing
> > else than return a fixed static page for every request. Regardless of
> > what the request is, it just needs to be an HTTP request to port 80,
> > the web server should return always the same html document. What would
> >
Maybe I found what I'm looking for: cheetah, a web server that is 600
lines of C code and that's it :)
http://freshmeat.net/projects/cheetahd/
On 12/1/07, Daniel Fetchinson <[EMAIL PROTECTED]> wrote:
> > > I'm looking for the most minimalist web server ever tha
> > The reason I need this is that my current best strategy to avoid ads in
> > web pages is putting all ad server names into /etc/hosts and stick my
> > local ip number next to them (127.0.0.1) so every ad request goes to my
> > machine. I run apache which has an empty page for 404 errors so I'll
> > Well we Python folks are spoiled but for most people C++ counts as a
> > high level language
>
> Well, some parts are high-level, but it's full of very
> deep elevator shafts for you to accidentally fall
> into...
>
> A truly high-level language also *doesn't* have low
> level parts (or at leas
On 12/4/07, Daniel Fetchinson <[EMAIL PROTECTED]> wrote:
> > > Well we Python folks are spoiled but for most people C++ counts as a
> > > high level language
> >
> > Well, some parts are high-level, but it's full of very
> > deep elevator shafts for
> I am looking for an open source project to contribute to, to enhance
> my python skills. I have about 6 months experience in the language. I
> have searched freshmeat.net, but as I'm pretty new, I'm not sure which
> projects I would be able to contribute to.
>
> If anyone can suggest any open sou
> Using DSL (Damn Small Linux) try apache! Or you can try litehttpd
>
>
> > Hi list,
> >
> > This is way off topic but maybe somebody knowledgeable can help.
> >
> > I'm looking for the most minimalist web server ever that does nothing
> > else than return a fixed static page for every request.
On 1/5/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm developing a Python-based web ap, but don't understand how to best
> organize the modules and set permissions for maximum security.
>
> Here's how the Python code for my ap is organized:
>
> 1) I have Python modules in a proje
> Basically, I have created a program using tkinter without using any class
> structure, simply creating widgets and functions (and finding ways around
> passing variables from function to function, using global variables etc).
> The program has become rather large ( lines?) I am trying to now put
Many times a more user friendly date format is convenient than the
pure date and time.
For example for a date that is yesterday I would like to see
"yesterday" instead of the date itself. And for a date that was 2 days
ago I would like to see "2 days ago" but for something that was 4 days
ago I wou
> For PARSING see http://code-bear.com/code/parsedatetime/
>
> The OP was looking for presentation though. I know roundup has code for
> this if an independent library can't be found.
Thanks for all the responses!
Indeed I was looking for presentation and not parsing, I'll take a
look at roundup
> > > The OP was looking for presentation though. I know roundup has
> > > code for this if an independent library can't be found.
> >
> > Thanks for all the responses!
> > Indeed I was looking for presentation and not parsing, I'll take a
> > look at roundup.
>
> Yes, that's why I indicated that C
> I'm new to Python, and OOP. I've read most of Mark Lutz's book and more
> online and can write simple modules, but I still don't get when __init__
> needs to be used as opposed to creating a class instance by assignment. For
> some strange reason the literature seems to take this for granted. I'd
Please keep discussion on the list..
> > I'm not sure if I understand your question correctly but maybe this will
> > help:
> >
> > If you want code to be run upon creating an instance of your class you
> > would use __init__. Most common examples include setting attributes on
> > the instance
> I do not understand why no one has answered the following question:
>
> Has anybody worked with Gene Expression Programming
Hm, maybe because nobody did? Just a thought. It can also be that
everyone worked with it but everyone is part of a big conspiracy not
to answer any of your emails
>> To Anyone,
> >
> >
> >
> > Has anyone worked with Gene Expression Programming??? Specifically, has
> > anyone out there worked with pygep software package??? I have a few
> > questions
> >
> >
> > David Blubaugh
> > --
Actually, it turns out I might say I'm a world known expert of Gene
Hi folks,
There is a withdrawn PEP about a new syntax for dict comprehension:
http://www.python.org/dev/peps/pep-0274/ which says:
"Substantially all of its benefits were subsumed by generator
expressions coupled with the dict() constructor."
What does the author mean here? What's the Preferably
> > Hi folks,
> >
> > There is a withdrawn PEP about a new syntax for dict comprehension:
> > http://www.python.org/dev/peps/pep-0274/ which says:
> >
> > "Substantially all of its benefits were subsumed by generator
> > expressions coupled with the dict() constructor."
> >
> > What does the author
> Depends entirely on the operative meaning of standardized. Formal
> standards body? Obviously no.
>
> Specified in a standard-setting document? Yes. In fact, in someways,
> Python is better standardized that C, for instance, in that the Python
> standard usefully standardizes some things that t
Hi pythoneans,
I'm looking for a simple text based GUI definition format and
associated python modules to work with it that is capable of defining
simple GUI's for *both* the web and the desktop. I have an application
that is accessible through the web and also through desktop
applications and bot
> >> >> > I'm looking for a simple text based GUI definition format and
> >>
> >> [...]
> >>
> I believe Glade produces XML descriptions of its interfaces, so wxGlade
> >> >> would be one possible starting-point.
> >> >>
> >> >
> >> > Glade does, but dont confuse it with wxGlade. wxGlad
> > It's clear to me that the logic behind a web interface and a desktop
> > interface are two totally different things. I don't want a magic
> > method to convert an html/javascript based web app to a desktop app as
> > this is clearly impossible.
>
> But it is not impossible to embed a server on
> > I'm looking for a simple text based GUI definition format and
> > associated python modules to work with it that is capable of defining
> > simple GUI's for *both* the web and the desktop. I have an application
> > that is accessible through the web and also through desktop
> > applications and
> >> On the other hand, if you want pure HTML for your web app, maybe you
> should
> >> consider making the desktop app HTML-based, too?
> >
> > Jorge Godoy brought that up too, sounds pretty good, but how would
> > that work? The desktop app would launch a mini webserver and the user
> > would use
> Are there any Python libraries implementing measurement of similarity
> of two strings of Latin characters?
>
> I'm writing a script to guess-merge two tables based on people's
> names, which are not necessarily spelled the same way in both tables
> (especially the given names). I would like som
> > > I am not, however, an in depth language nutter, so would
> > > appreciate any of our more learned readers comments.
Maybe I'm missing the obvious here, but what does Cobra have to do
with Microsoft?
(Apart from being .NET oriented.) It seems it's an open source project
of a guy who doesn't
> I have discontinued the use of ?? a long time ago. Why is this
> still a problem?
Welcome to bewildering yet joyful world of usenet!
It seems you are already having quite some fun!
--
http://mail.python.org/mailman/listinfo/python-list
> in python im doing the problem 255/494
Try this:
>>> 255.0/494.0
0.51619433198380571
>>> float(255)/float(494)
0.51619433198380571
> it keeps giving me 0 instead of .51
> what am i doing wrong?
Nothing, integer division is not wrong :)
> please help me I have been looking for hours
On 2/18/08, SPE - Stani's Python Editor <[EMAIL PROTECTED]> wrote:
> I'm pleased to announce the release of Phatch which is a
> powerful batch processor and renamer. Phatch exposes a big part of the
> Python Imaging Library through an user friendly GUI. (It is using
> python-pyexiv2 to offer more e
> > > I'm pleased to announce the release of Phatch which is a
> > > powerful batch processor and renamer. Phatch exposes a big part of the
> > > Python Imaging Library through an user friendly GUI. (It is using
> > > python-pyexiv2 to offer more extensive EXIF and IPTC support.) Phatch
> > > is no
> I'm pleased to announce the release of Phatch which is a
> powerful batch processor and renamer. Phatch exposes a big part of the
> Python Imaging Library through an user friendly GUI. (It is using
> python-pyexiv2 to offer more extensive EXIF and IPTC support.) Phatch
> is not targeted at manipu
> After deciding choosing python as my future killer application language
> for writing web applications, I need from you guys still some support,
> if you apologize.
>
> Question:
> Which is the most loved template engine for python?
AFAIK, there is no single blessed template system. If you're up
> > > I am having a minor problem when I try and do this:
> > > c.execute("insert into [tblTranscripts] (MovieID,Transcript)
> > > Values(" + movieID + ",'" + formatText + "');") (don't even bother
> > > commenting of the sql style I know its bad form but this is a simple
> > > script). Whenever I
1 - 100 of 499 matches
Mail list logo