On 26.06.2013 16:28, William Ray Wing wrote:
On Jun 26, 2013, at 7:49 AM, Fábio Santos mailto:fabiosantos...@gmail.com>> wrote:
On 26 Jun 2013 11:45, mailto:jim...@aol.com>> wrote:
>
> On Tuesday, June 25, 2013 9:30:54 PM UTC+5:30, Ian wrote:
> > In my experience the sorts of people who preach
On 13.06.2013 20:00, Νικόλαος Κούρας wrote:
if '-' not in name + month + year:
cur.execute( '''SELECT * FROM works WHERE clientsID =
(SELECT id FROM clients WHERE name = %s) and MONTH(lastvisit) = %s and
YEAR(lastvisit) = %s ORDER BY lastvisit ASC''', (name, month, year) )
On 07.06.2013 18:53, letsplaysf...@gmail.com wrote:
I was planning on making a small 2D game in Python. Are there any libraries for
this? I know of:
• Pygame - As far as I know it's dead and has been for almost a year
• PyOgre - Linux and Windows only(I do have those, but I want multi-platform)
On 06.04.2013 01:41, Satabdi Mukherjee wrote:
i am a rookie in python and i am trying to develop a simple webpage using
jinja2.
can anyone please help me how to do that
i am trying in this way but showing invalid syntax error
[...]
{% for item in navigation %}
{{ item.ca
On 03.04.2013 04:05, Rotwang wrote:
Hi all,
Here's a Python problem I've come up against and my crappy solution.
Hopefully someone here can suggest something better. I want to decorate
a bunch of functions with different signatures; for example, I might
want to add some keyword-only arguments to
On 19.03.2013 21:01, maiden129 wrote:
Hello,
I'm using python 3.2.3 and I'm making a program that show the of occurrences of
the character in the string in Tkinter.
My questions are:
How can I make an empty Entry object that will hold a word that a user will
enter?
How to make an empty Entr
ou want match
which might follow.
Regular expressions don't have to include catching groups in order to work.
But when you use them yourself somehow, its quite simple I think.
I guess you are anyhow busy mangling with pyLint, PEP-Standards and
pyOpenGL - so good luck with that :)
Jan Riechers
--
http://mail.python.org/mailman/listinfo/python-list
On 20.08.2012 20:34, Christian Heimes wrote:
> Am 19.08.2012 19:35, schrieb Jan Riechers:
>
> Hello Jan,
>
> we decided against ImageMagick and pgmagick for several reasons. For one
> we were already using FreeImage in other projects (Delphi projects and
> through ctypes bin
On 14.08.2012 21:22, Christian Heimes wrote:
Hello fellow Pythonistas,
Performance
===
smc.freeimage with libjpeg-turbo read JPEGs about three to six times
faster than PIL and writes JPEGs more than five times faster.
[]
Python 2.7.3
read / write cycles: 300
test image: 1210x17
On 23.07.2012 16:55, Henrik Faber wrote:
On 23.07.2012 15:52, Henrik Faber wrote:
but I would hate for
Python to include them into identifiers. Then again, I'm pretty sure
this is not planned anytime soon.
Dear Lord.
Python 3.2 (r32:88445, Dec 8 2011, 15:26:58)
[GCC 4.5.2] on linux2
Type "h
On 22.07.2012 20:01, Steven D'Aprano wrote:
[SNIP]
map is faster than an ordinary for-loop if the function you are applying
is a builtin like int, str, etc. But if you have to write your own pure-
Python function, the overhead of calling a function negates the advantage
of map, which is no faster
On 22.07.2012 20:03, David Robinow wrote:
On Sun, Jul 22, 2012 at 12:20 PM, Jan Riechers wrote:
On 22.07.2012 18:39, Alister wrote:
looks like a classic list comprehension to me and can be achieved in a
single line
MODUS_LIST=[int(x) for x in options.modus_list]
Hi,
I am not sure why
On 22.07.2012 18:39, Alister wrote:
On Sun, 22 Jul 2012 10:29:44 -0500, Tony the Tiger wrote:
I came up with the following:
# options.modus_list contains, e.g., "[2,3,4]"
# (a string from the command line)
# MODUS_LIST contains, e.g., [2,4,8,16]
# (i.e., a list of integers)
if
On 21.07.2012 12:06, Steven D'Aprano wrote:
But in general, you're worrying too much about trivia. One way or the
other, any speed difference will be trivial. Write whatever style reads
and writes most naturally, and only worry about what's faster where it
actually counts.
Notice that I try
On 21.07.2012 11:02, Andrew Berg wrote:
On 7/21/2012 2:33 AM, Jan Riechers wrote:
Block
...
versus this block:
...
Now, very briefly, what is the better way to proceed in terms of
execution speed, readability, coding style?
Using if/else is the most readable in the general sense. Using return
Hello Pythonlist,
I have one very basic question about speed,memory friendly coding, and
coding style of the following easy "if"-statement in Python 2.7, but Im
sure its also the same in Python 3.x
Block
#--
if statemente_true:
doSomething()
else:
16 matches
Mail list logo