Hi,
A new version of the web framework Karrigell is on line
The main changes are :
- more robust session management in multi-threaded and multi-process
environments
- Unicode management in the HTMLTags module (HTML generation in
Python)
- Unicode management and error reports in Karrigell
Hi,
I'm going to start my little journey into the Python's lands.
I have already red the old posts about but I suppose this is an evolving
topic.
I have understood Tk is the default Python's GUI toolkit, I have also
read that version 8.5 has native widgets and visual improvements.
My question is:
On 27 fév, 08:57, Pierre Quentel quentel.pie...@wanadoo.fr wrote:
Hi,
A new version of the web framework Karrigell is on line
The main changes are :
- more robust session management in multi-threaded and multi-process
environments
- Unicode management in the HTMLTags module (HTML
Are the new Tk comaprable with other toolkits(Qt, GTK,Wx?)?
Does Tk lack other features compared to the Qt,GTK,Wx...?
(Or: is there things you can't simply do with Tk?)
Thanks in advance for replying
tkinter is a good starting point. You can get some definite benefits
going to wx or Qt. I
Hi Pierre
Oops ! wrong group, sorry. It's for c.l.p.announce
Well, I for one was happy to learn of this release here - thanks
J^n
--
http://mail.python.org/mailman/listinfo/python-list
Michael Rudolf spamfres...@ch3ka.de wrote:
In Java, Method Overloading is my best friend
Guido wrote a nice article[1] on multimethods using decorators,
which Ian Bicking followed up on[2] with a non-global approach.
1: http://www.artima.com/weblogs/viewpost.jsp?thread=101605
2:
On Fri, 2010-02-26 at 13:49 -0300, Ricardo Aráoz wrote:
Does pydoc only deal with ASCII?
UTF-8 in docstrings works for me.
Maybe:
* Its actually not UTF-8
* The console you're using doesn't support UTF-8 well
(note: I'm on linux, maybe its a problem with windows?)
code
#!/usr/bin/env
Hi,
This morning I am working though Building Skills in Python and was
having problems with string.strip.
Then I found the input file I was using was in DOS format and I
thought it be best to convert it to UNIX and so I started to type perl
-i -pe 's/ and then I though, wait, I'm
On 02/27/10 09:36, @ Rocteur CC wrote:
cut dos2unix oneliners;python vs perl/sed/awk
Hi a couple of fragmented things popped in my head reading your
question, non of them is very constructive though in what you actually
want, but here it goes anyway.
- Oneline through away script with re as a
@ Rocteur CC wrote:
But then I found
http://wiki.python.org/moin/Powerful%20Python%20One-Liners
and tried this:
cat file.dos | python -c import sys,re;
[sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in
sys.stdin] file.unix
And it works..
- Don't build list
On Sat, 27 Feb 2010 10:36:41 +0100, @ Rocteur CC wrote:
cat file.dos | python -c import sys,re;
[sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in
sys.stdin] file.unix
Holy cow!!! Calling a regex just for a straight literal-to-literal
string replacement! You've been
On Fri, 26 Feb 2010 21:31:47 -0800, alex23 wrote:
Mensanator mensana...@aol.com wrote:
You're not getting the point.
If every link has to be accompanied by a summary of all of the
information at the end of it, what point is there to linking?
(Programmers are the _only_ people I know of
On 27 Feb 2010 03:33:57 GMT Steven D'Aprano
st...@remove-this-cybersource.com.au wrote:
exec 'myPrefix_turquoise' = 42
Not quite:
In [1]: exec 'myPrefix_turquoise' = 42
File string, line 1
SyntaxError: can't assign to literal
Call For Manuscripts
The Journal is currently accepting original high-quality research
manuscripts for publication. The Journal welcomes the submission of
manuscripts that meet the scientific criteria of significance and
academic excellence. All research articles submitted for the journal
will be
On 27 Feb 2010, at 12:44, Steven D'Aprano wrote:
On Sat, 27 Feb 2010 10:36:41 +0100, @ Rocteur CC wrote:
cat file.dos | python -c import sys,re;
[sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in
sys.stdin] file.unix
Holy cow!!! Calling a regex just for a straight
On Feb 24, 8:23 pm, Andreas Waldenburger use...@geekmail.invalid
wrote:
Hi all,
a company that works with my company writes a lot of of their code in
Python (lucky jerks). I've seen their code and it basically looks like
this:
Function that does stuff
def doStuff():
while not
On Feb 27, 2010, at 10:01 AM, @ Rocteur CC wrote:
Nothing to do with Perl, Perl only takes a handful of characters to do this
and certainly does not require the creation an intermediate file
Perl may be better for you for throw-away code. Use Python for the code you
want to keep (and read
@ Rocteur CC, 27.02.2010 10:36:
cat file.dos | python -c import
sys,re;[sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in
sys.stdin] file.unix
See:
http://partmaps.org/era/unix/award.html
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
On Friday 26 February 2010 21:49:00 Isaiah Coberly wrote:
Thanks for your help Rami.. I got it working.. I did some digging around
and found out that I needed to install opencv as admin.. Now Im trying to
run one of the samples and up against my next chalange.
Argg.. There are so many pit
On 2010-02-27, @ Rocteur CC mac...@rocteur.cc wrote:
Nothing to do with Perl, Perl only takes a handful of characters to do
this and certainly does not require the creation an intermediate file,
Are you sure about that?
Or does it just hide the intermediate file from you the way
that sed -i
On 2/24/2010 1:52 PM Arnaud Delobelle said...
a...@pythoncraft.com (Aahz) writes:
That seems to miss the point to some extent. If I post my recipe for
spinach lasagne here, is that spam?
Are they really good? Sounds good, spinach lasagne, I don't know a
recipe for them. Maybe you could
On 2/27/10 3:05 AM, Fabiano wrote:
Hi,
I'm going to start my little journey into the Python's lands.
I have already red the old posts about but I suppose this is an evolving
topic.
I have understood Tk is the default Python's GUI toolkit, I have also
read that version 8.5 has native widgets and
Will do.. Thanks again..
Sent from my iPhone
On Feb 27, 2010, at 8:36 AM, Rami Chowdhury rami.chowdh...@gmail.com
wrote:
On Friday 26 February 2010 21:49:00 Isaiah Coberly wrote:
Thanks for your help Rami.. I got it working.. I did some digging
around
and found out that I needed to
Steven D'Aprano st...@remove-this-cybersource.com.au writes:
Also, some assemblies perform the move in different directions according
to the arguments. So you might have:
mv AX,BX ; move contents of BX into AX
mv @CX,DX ; move contents of @CX into DX
Horrible, yes, but apparently some
sstein...@gmail.com sstein...@gmail.com writes:
On Feb 27, 2010, at 10:01 AM, @ Rocteur CC wrote:
Nothing to do with Perl, Perl only takes a handful of characters to
do this and certainly does not require the creation an intermediate
file
Perl may be better for you for throw-away code. Use
On Feb 27, 11:11 am, Kevin Walzer k...@codebykevin.com wrote:
(...snip...)
Kevin Walzer
Code by Kevinhttp://www.codebykevin.com
Great post Kevin! The only thing i would like to add are my two
favorite references for learning Tkinter. They are not geared around
the new ttk stuff, but still 95%
On 2/26/10, Victor Stinner victor.stin...@haypocalc.com wrote:
Le vendredi 26 février 2010 15:37:43, Daniel Fetchinson a écrit :
pysandbox is a new Python sandbox project
Out of curiosity, the python sandbox behind google app engine is open
source? If so, how is it different from your
* @ Rocteur CC:
On 27 Feb 2010, at 12:44, Steven D'Aprano wrote:
On Sat, 27 Feb 2010 10:36:41 +0100, @ Rocteur CC wrote:
cat file.dos | python -c import sys,re;
[sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in
sys.stdin] file.unix
Holy cow!!! Calling a regex just for
On Sat, 27 Feb 2010 16:01:53 +0100, @ Rocteur CC wrote:
On 27 Feb 2010, at 12:44, Steven D'Aprano wrote:
On Sat, 27 Feb 2010 10:36:41 +0100, @ Rocteur CC wrote:
cat file.dos | python -c import sys,re;
[sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in
sys.stdin] file.unix
On Feb 27, 2010, at 12:27 PM, John Bokma wrote:
sstein...@gmail.com sstein...@gmail.com writes:
On Feb 27, 2010, at 10:01 AM, @ Rocteur CC wrote:
Nothing to do with Perl, Perl only takes a handful of characters to
do this and certainly does not require the creation an intermediate
file
On 2010-02-27, @ Rocteur CC mac...@rocteur.cc wrote:
On 27 Feb 2010, at 12:44, Steven D'Aprano wrote:
On Sat, 27 Feb 2010 10:36:41 +0100, @ Rocteur CC wrote:
cat file.dos | python -c import sys,re;
[sys.stdout.write(re.compile('\r\n').sub('\n', line)) for line in
sys.stdin] file.unix
On Sat, 27 Feb 2010 07:29:46 -0800 (PST) John Pinner
funth...@gmail.com wrote:
A good way to control Python contractors is (given that firstly there
are functional specifications to comply with, and tests to pass) is to
impose the following condition:
that all code delivered must reach a
sstein...@gmail.com sstein...@gmail.com writes:
I'm not sure how use it for what it's good for has anything to do
with toes.
I've the feeling that some people who use Python are easily offended by
everthing Perl related. Which is silly; zealotism in general is, for
that matter.
I've written
On Feb 27, 2010, at 1:15 PM, John Bokma wrote:
I sure don't want to maintain Perl applications though; even ones I've
written.
Ouch, I am afraid that that tells a lot about your Perl programming
skills.
Nah, it tells you about my preferences.
I can, and have, written maintainable things
On 2/27/2010 3:21 AM, Pierre Quentel wrote:
Oops ! wrong group, sorry. It's for c.l.p.announce
Announcements also come to c.l.p and python-list. C.l.p.a should be a
low-traffic subset, perhaps with followups set to c.l.p for discussion.
--
In article 87mxyuzj13@castleamber.com,
John Bokma j...@castleamber.com wrote:
Amusing how long those Python toes can be. In several replies I have
noticed (often clueless) opinions on Perl. When do people learn that a
language is just a tool to do a job?
When do people learn that language
In article pan.2010.02.23.08.11...@remove.this.cybersource.com.au,
Steven D'Aprano ste...@remove.this.cybersource.com.au wrote:
[st...@sylar ~]$ cat ws-example.rb
Ahhh, you're a Heroes fan. ;-)
--
Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/
Many customs in
Hello,
Can someone please help.
I have a sed solution to the problems below but would like to rewrite
in python...
I need to strip out some data from a quirky xml file into a csv:
from something like this
. cust=dick product=eggs ... quantity=12
cust=tom product=milk
In article mailman.328.1267290305.4577.python-l...@python.org,
Emile van Sebille em...@fenx.com wrote:
On 2/24/2010 1:52 PM Arnaud Delobelle said...
a...@pythoncraft.com (Aahz) writes:
That seems to miss the point to some extent. If I post my recipe for
spinach lasagne here, is that spam?
Hal Styli silly...@yahoo.com writes:
Hello,
Can someone please help.
I have a sed solution to the problems below but would like to rewrite
in python...
I need to strip out some data from a quirky xml file into a csv:
from something like this
. cust=dick product=eggs ...
I think a big part of the problem is that the scoping rules in Python
are inconsistent because classes are a different kind of object. An
example helps:
This works:
x = 1
def f(y): return y + x
This works:
def f():
x = 1
def g(y): return x + y
return g(2)
But this doesn't work...
class
On Feb 27, 2010, at 6:57 PM, dontspamleo wrote:
http://bioscreencastwiki.com/Python_Variable_scope_gymnastics
Broken link:
Site settings could not be loaded
We were unable to locate the API to request site settings. Please see below for
debugging information.
HTTP Response Status Code:
In article 2fwdnxofjat-whnwnz2dnuvz_rgdn...@insightbb.com,
monkeys paw mon...@joemoney.net wrote:
On 2/23/2010 3:17 PM, Tim Chase wrote:
Sure you don't need this to be 'wb' instead of 'w'?
'wb' does the trick. Thanks all!
import urllib2
a = open('adobe.pdf', 'wb')
i = 0
for line in
Hi,
I am currently using oauth2.py library, and it works fine on one of my
PC's (python2.5), but later on when I tried to use it with python2.4
the following line (line 332 in
http://github.com/simplegeo/python-oauth2/blob/master/oauth2/__init__.py)
showed a syntax error
items = [(k, v if
On Sat, Feb 27, 2010 at 8:41 PM, tarek...@gmail.com tarek...@gmail.comwrote:
Hi,
I am currently using oauth2.py library, and it works fine on one of my
PC's (python2.5), but later on when I tried to use it with python2.4
the following line (line 332 in
Hi,
I have been trying to install python on my Win ME system for over two
years - gave up for a while and now I am back with a resolve to solve
the problem. I tried all versions of python but having installation
problems for all. Installation does not proceed and I get a message
saying dll
On Sat, 27 Feb 2010 12:50:38 -0800, Hal Styli wrote:
Hello,
Can someone please help.
I have a sed solution to the problems below but would like to rewrite in
python...
I need to strip out some data from a quirky xml file into a csv:
from something like this
. cust=dick
On Sat, Feb 27, 2010 at 5:41 PM, tarek...@gmail.com tarek...@gmail.com wrote:
Hi,
I am currently using oauth2.py library, and it works fine on one of my
PC's (python2.5), but later on when I tried to use it with python2.4
the following line (line 332 in
darnzen wrote:
Well, I got around this mess by putting all those static callbacks
into a separate module in a new class. I set them up to call a bound
method of that class which passes the arguments to the appropriate
bound methods of other class instances. I just have to keep a little
dict of
On Sat, 27 Feb 2010 17:41:09 -0800, tarek...@gmail.com wrote:
Hi,
I am currently using oauth2.py library, and it works fine on one of my
PC's (python2.5), but later on when I tried to use it with python2.4 the
following line (line 332 in
On Sat, 27 Feb 2010 11:27:04 -0600, John Bokma wrote:
When do people learn that a
language is just a tool to do a job?
When do people learn that there are different sorts of tools? A
professional wouldn't use a screwdriver when they need a hammer.
Perl has strengths: it can be *extremely*
tarek...@gmail.com wrote:
Hi,
I am currently using oauth2.py library, and it works fine on one of my
PC's (python2.5), but later on when I tried to use it with python2.4
the following line (line 332 in
http://github.com/simplegeo/python-oauth2/blob/master/oauth2/__init__.py)
showed a syntax
Mel wrote:
You could think of it as a not bad use of the design principle Clear The
Simple Stuff Out Of The Way First. Destinations are commonly a lot simpler
than sources
That's not usually true in assembly languages, though,
where the source and destination are both very restricted
and
Aahz wrote:
monkeys paw mon...@joemoney.net wrote:
On 2/23/2010 3:17 PM, Tim Chase wrote:
Sure you don't need this to be 'wb' instead of 'w'?
'wb' does the trick. Thanks all!
import urllib2
a = open('adobe.pdf', 'wb')
i = 0
for line in
On Feb 27, 7:48 pm, gujax rjngrj2...@gmail.com wrote:
Hi,
I have been trying to install python on my Win ME system for over two
years -
Wow 2 years!, you must have the patience of a saint!
Installation does not proceed and I get a message
saying dll required for installation could not be
I do not even
know what to do next. I also tried Activepython. It installs but when
I try to open it from Start-Programs-ActivePython 2.6, I get an
error window saying - upgrade windows.
Hmm, have you tried upgrading windows, just a wild guess!
Hey, not everyone can afford to upgrade
Hi,
I have been trying to install python on my Win ME system
Try this:
http://tinyurl.com/w7wgp
RD
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 27 Feb 2010 15:57:15 -0800, dontspamleo wrote:
I think a big part of the problem is that the scoping rules in Python
are inconsistent because classes are a different kind of object. An
example helps:
[...]
But this doesn't work...
class C:
x = 1
def f(self,y): return x + y
Gregory Ewing wrote:
Mel wrote:
You could think of it as a not bad use of the design principle Clear
The Simple Stuff Out Of The Way First. Destinations are commonly a
lot simpler than sources
That's not usually true in assembly languages, though,
where the source and destination are both
Rick Dooling wrote:
Hi,
I have been trying to install python on my Win ME system
Try this:
http://tinyurl.com/w7wgp
That explains how to install Python on Windows *XP*. Windows ME is no
longer a supported platform - the tools used to create it just aren't
able to support platforms that
On Feb 27, 8:48 pm, gujax rjngrj2...@gmail.com wrote:
I have been trying to install python on my Win ME system for over two
years - gave up for a while and now I am back with a resolve to solve
the problem.
Dude. Give up. There are a ton of __free__ distroz of linux out
there. Your
On 28 Feb, 01:48, gujax rjngrj2...@gmail.com wrote:
Hi,
I have been trying to install python on my Win ME system for over two
years - gave up for a while and now I am back with a resolve to solve
the problem. I tried all versions of python but having installation
problems for all.
Amusing how long those Python toes can be. In several replies I have
noticed (often clueless) opinions on Perl. When do people learn that a
language is just a tool to do a job?
When do people learn that language makes a difference? I used to be a
Perl programmer; these days, you'd have to
On Feb 27, 12:50 pm, Hal Styli silly...@yahoo.com wrote:
Hello,
Can someone please help.
I have a sed solution to the problems below but would like to rewrite
in python...
I need to strip out some data from a quirky xml file into a csv:
from something like this
. cust=dick
Steven D'Aprano wrote:
def pinned_gaussian(a, b, mu, sigma):
Return a Gaussian random number pinned to [a, b].
return min(b, max(a, random.gauss(mu, sigma)))
def truncated_gauss(a, b, mu, sigma):
Return a random number from a truncated Gaussian distribution.
while 1:
x =
Stefan Behnel-3 wrote:
alexander@gmail.com wrote:
I think the speed function may be broken from the turtle graphics package
from turtle import *
speed('fastest')
forward(50)
I have tried all of the different speed settings, but I get no change
in the turtle's speed
On Feb 27, 9:36 pm, Rick Dooling rpdool...@gmail.com wrote:
Hi,
I have been trying to install python on my Win ME system
Try this:
http://tinyurl.com/w7wgp
RD
I gave it a shot but the site installs the same version of
ActivePython which did install on my computer but does not open any
* Dr. Phillip M. Feldman:
Stefan Behnel-3 wrote:
alexander@gmail.com wrote:
I think the speed function may be broken from the turtle graphics package
from turtle import *
speed('fastest')
forward(50)
I have tried all of the different speed settings, but I get no change
in the
On Feb 27, 9:56 pm, staticd stat...@gmail.com wrote:
On Feb 27, 8:48 pm, gujax rjngrj2...@gmail.com wrote:
I have been trying to install python on my Win ME system for over two
years - gave up for a while and now I am back with a resolve to solve
the problem.
Dude. Give up. There are a
Am 27.02.2010 10:00, schrieb alex23:
Michael Rudolfspamfres...@ch3ka.de wrote:
In Java, Method Overloading is my best friend
Guido wrote a nice article[1] on multimethods using decorators,
which Ian Bicking followed up on[2] with a non-global approach.
1:
In article mailman.145.1266968505.4577.python-l...@python.org,
Tim Chase python.l...@tim.thechases.com wrote:
Luis M. González wrote:
If you want a list of items, you use tuples or lists. Examples:
('a', 'm', 'p') --- this is a tuple, and it's made with
parenthesis ()
Actually, a tuple
In article mailman.247.1267115557.4577.python-l...@python.org,
Robert Kern robert.k...@gmail.com wrote:
If you are storing the password instead of making your user remember
it, most platforms have some kind of keychain secure password
storage. I recommend reading up on the APIs available on your
Paper Presentation Topics.
Our database posses huge collection of topics for paper presentations
in all areas.
Check all our paper presentation topics at http://pptcontent.blogspot.com/
Paper Presentation Topics
a href=a href=Paper presentation topics for ece/a
Paper presentation topics
Ezio Melotti ezio.melo...@gmail.com added the comment:
Can this be fixed without breaking compatibility?
It also affects Python2.7 and maybe also Python 3.x (there the error is
different and might be intentional).
Copy/pastable snippet to reproduce the error on 2.x:
from urllib import urlopen
Ezio Melotti ezio.melo...@gmail.com added the comment:
All the examples there assume that a file object called f has already been
created. Using a 'with' there it's not a good idea because the users will have
to keep the instructions indented under the 'with'.
However I agree that it would be
New submission from Alexander Sulfrian alexan...@sulfrian.net:
Hi,
if using ccache (CC=ccache gcc --flags, CXX=g++) distutils will try to
execute something like g++ gcc --flags as linker for c++ libraries.
Patch attached.
Alex
--
assignee: tarek
components: Distutils
files:
Florent Xicluna florent.xicl...@gmail.com added the comment:
Fixed in r78497.
--
resolution: accepted - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7793
Georg Brandl ge...@python.org added the comment:
I do think a brief discussion after the moratorium is over would be good.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4199
___
New submission from 5houston cadab...@gmail.com:
Try to execute python -OO crashingMain.py using python 3.1 or 3.1.1.
It creates and starts 5 SendingProcess(es).
SendingProcess inherits from multiprocessing.Process and
multiprocessing.queue.Queue.
Each process starts a loop.
In the meanwhile
New submission from Trent Mick tre...@gmail.com:
According to
http://docs.python.org/reference/simple_stmts.html#the-print-statement the
following with result in the print statement NOT printing a trailing space:
import sys
print uASD,; sys.stdout.write(u)
However, 2to3 currently
Meador Inge mead...@gmail.com added the comment:
What about changing the exception test to something like what I did in
issue7232.4.diff?
That is definitely more succinct, but Lars' solution provides more information
about _why_ the test fails. IMHO, the descriptiveness is
more important
Ryan Coyner rcoy...@gmail.com added the comment:
Patch attached. Unit test and documentation included.
COMMITMSG:
Adds a new fixer to lib2to3 which replaces the deprecated builtin file with
open.
--
keywords: +patch
nosy: +rcoyner
Added file:
Brian Curtin cur...@acm.org added the comment:
Good point. How about version 5? It uses base Exception in the context manager,
which will allow us to differentiate between no exception being raised, and the
wrong one being raised. After the context manager, we check the type of the
exception
Éric Araujo mer...@netwok.org added the comment:
Hello
Minor note: I think magic methods shouldn’t have docstrings, because their name
is enough doc (or at least enough to go read the doc). At most a one-line
comment like “context protocol” can be useful. (The exception is __init__,
which
84 matches
Mail list logo