Jake,
Don't you lock yourself in twisted application server only? I doubt you will be
able easily migrate to WSGI compatible application server as your needs grow.
Andriy
> From: jake.ang...@gmail.com
> Date: Mon, 4 Mar 2013 10:35:41 +1100
> Subject: Re: Twist
[- Tue 5.Mar'13 at 2:42:07 + Steven D'Aprano :-]
> On Mon, 04 Mar 2013 11:09:10 -0500, David Robinow wrote:
>
> > But here's what I don't understand. Why does somebody who posts as
> > much as Steven (and thanks for that. Getting cussed at occasionally is a
> > cheap pric
Hi
On 3/1/13 1:39 AM, Michael Torrie wrote:
On 02/28/2013 05:28 PM, Jake Angulo wrote:
My requirements for this framework in descending order: 1) Easy to
use API 2) Widely available documentation / Examples / Community
contributions 3) Feature-wise - kinda most that you commonly need is
there
#
=
# display download button for each file and downlaod it on click
#
=
On 03/05/2013 04:00 AM, Νίκος Γκρ33κ wrote:
#
=
# display download button for each file and downlaod it on click
#
Hi All,
I'm pleased to announce the release of testfixtures 3.0.0. The big
change for this release is that testfixtures now supports Python 2.6,
2.7, 3.2 and 3.3!
As a result, some changes have been made to TempDirectory to support
encoding and decoding. There's also a nice little addition o
On 03/05/2013 04:00 AM, Νίκος Γκρ33κ wrote:
for filename in os.walk(path):
But os.walk() doesn't return a filename. It returns a tuple. Have you
tested any of this code outside of a server?
Also, you're using tabs here. They don't show up in most email
programs, so you're
Τη Τρίτη, 5 Μαρτίου 2013 11:45:09 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε:
> It would be useful to actually specifying the context of this fragment
>
> of code. Presumably it's running on a web server somewhere, and you're
>
> expecting the filenames to somehow show up on a browser. Which OS
On 03/05/2013 04:48 AM, Νίκος Γκρ33κ wrote:
Τη Τρίτη, 5 Μαρτίου 2013 11:45:09 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε:
It would be useful to actually specifying the context of this fragment
of code. Presumably it's running on a web server somewhere, and you're
expecting the filenames to some
Τη Τρίτη, 5 Μαρτίου 2013 11:51:41 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε:
> On 03/05/2013 04:00 AM, Νίκος Γκρ33κ wrote:
>
> >
>
> >
>
>
>
> > for filename in os.walk(path):
>
>
>
> But os.walk() doesn't return a filename. It returns a tuple. Have you
>
> tested any of this code
On Monday, March 4, 2013 4:37:11 PM UTC, Ian wrote:
> On Mon, Mar 4, 2013 at 7:34 AM, Bryan Devaney wrote:
>
> >> if character not in lettersGuessed:
>
> >>
>
> >> return True
>
> >>
>
> >> return False
>
> >
>
> > assuming a function is being used to pass each letter of the
Νίκος Γκρ33κ writes:
> How is this lien supposed to be written do to iterate over a list of
> filenames?
>
> for filename in list( os.walk(path) ):
>
> i tried the above but still it doesn't work out.
Please learn how Python itself can help you:
$ python
Python 2.7.3 (default, Jan 2 2
On 05/03/2013 02:54, Chris Angelico wrote:
On Tue, Mar 5, 2013 at 1:42 PM, Steven D'Aprano
wrote:
It's easy for him to
deal with it, all he has to do is get a goat to eat the garden waste I
toss over the fence, and his problem is solved.
Sounds like someone got Steven's goat.
*dives for cove
On Friday, March 1, 2013 8:59:12 PM UTC, leonardo selmi wrote:
> hi
>
>
>
> is there anyone can suggest me a good book to learn python? i read many but
> there is always something unclear or examples which give me errors.
>
> how can I start building a sound educational background
>
>
>
> t
On Tuesday 05 March 2013 06:54:14 Mark Lawrence did opine:
> On 05/03/2013 02:54, Chris Angelico wrote:
> > On Tue, Mar 5, 2013 at 1:42 PM, Steven D'Aprano
> >
> > wrote:
> >> It's easy for him to
> >> deal with it, all he has to do is get a goat to eat the garden waste
> >> I toss over the fenc
I suggest theses( answers from quora:
https://www.quora.com/Python-programming-language-1/How-can-I-learn-to-program-in-Python):
The Official Python Tutorial - docs.python.org/tutorial/
"Dive Into Python", by Mark Pilgrim - www.diveintopython.net/
"A Byte of Python" - swaroopch.com/notes/Python
G
Please help me correct thois code, iam tryign ti for hours and i cant seem to
get it workingit irritates me
path = "/home/nikos/public_html/data/files/"
for filename in os.walk(path):
try:
#find the needed counter for the page URL
cur.execute('''SEL
On Tue, Mar 5, 2013 at 8:01 AM, Νίκος Γκρ33κ wrote:
> Please help me correct thois code, iam tryign ti for hours and i cant seem
> to get it workingit irritates me
>
There is no question here. No indication of what isn't working as you
like. No traceback.
>
> path = "/home/nikos/publi
On 05/03/2013 09:00, Νίκος Γκρ33κ wrote:
#
=
# display download button for each file and downlaod it on click
#
===
Τη Τρίτη, 5 Μαρτίου 2013 3:38:49 μ.μ. UTC+2, ο χρήστης Vytas D. έγραψε:
> Hi,
>
> It is really complicated to reproduce the errors you get by running your code
> since it involves database queries.
>
> Though one thing that really needs your attention is how you handle the
> results from os.wal
I need a simple GUI toolkits like easygui pythoncard. The main reason I
discount both of those is that they are effectively dead as I can see.
Last updates in the 2010/2011 range. Has there been some toolkit to
replace them? And no, the existing wxpython/gtk/qt/... toolkits really
aren't accept
On 3/5/13 9:20 AM, Eric Johansson wrote:
The main reason I discount both of those is that they are effectively
dead as I can see. Last updates in the 2010/2011 range.
Why not give EasyGUI a try? The site is still active, and two years
isn't without an update doesn't mean a project is dead, esp
On 05/03/2013 14:55, Kevin Walzer wrote:
> On 3/5/13 9:20 AM, Eric Johansson wrote:
>> The main reason I discount both of those is that they are effectively
>> dead as I can see. Last updates in the 2010/2011 range.
>
> Why not give EasyGUI a try?
or PyGUI:
http://www.cosc.canterbury.ac.nz/gr
Hello!
I have to make a script that calculates temperature, but one of the
parameters is the temperature in the iteration before, for example:
temp = (temp_-1)+1
it = 0
temp = 3
it = 1
temp = 3+1
it = 2
temp = 4+1
How can I do this in a simple way?
Thanks a lot!
--
http://mail.python.org/mai
2013/3/5 Eric Johansson :
> I need a simple GUI toolkits like easygui pythoncard. The main reason I
> discount both of those is that they are effectively dead as I can see. Last
> updates in the 2010/2011 range. Has there been some toolkit to replace them?
> And no, the existing wxpython/gtk/qt/...
Psychopath Jack Wesolowski trolling and spamming the UseNet as Gary
Sokolisch wrote in
news:tv04oi1c11wu.1gv33jqjim98d$.d...@40tude.net:
> 3463
>
> W Gary Sokolich
> 801 Kings Road
> Newport Beach, CA 92663-5715
> (949) 650-5379
> Local PD
> 949-644-3681
>
> Residence:
> 1029 S Point View St
On 03/05/2013 10:32 AM, Ana Dionísio wrote:
Hello!
I have to make a script that calculates temperature, but one of the
parameters is the temperature in the iteration before, for example:
temp = (temp_-1)+1
it = 0
temp = 3
it = 1
temp = 3+1
it = 2
temp = 4+1
How can I do this in a simple way?
2013/3/5 Ana Dionísio :
> Hello!
>
> I have to make a script that calculates temperature, but one of the
> parameters is the temperature in the iteration before, for example:
> temp = (temp_-1)+1
>
> it = 0
> temp = 3
>
> it = 1
> temp = 3+1
>
> it = 2
> temp = 4+1
>
> How can I do this in a simple
Yes, I simplified it a lot.
I need to run it 24 times. What I don't really understand is how to put the
final temperature (result) in it = 0 in temp_-1 in it =1
--
http://mail.python.org/mailman/listinfo/python-list
comment récupérer la couleur d'un canvas ou id d'un canvas?
--
http://mail.python.org/mailman/listinfo/python-list
Any ideas on hopw to embed some html data at the end of each python script?
--
http://mail.python.org/mailman/listinfo/python-list
On 05/03/2013 17:11, Νίκος Γκρ33κ wrote:
Any ideas on hopw to embed some html data at the end of each python script?
Write some code.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
On Mon, Mar 04, 2013 at 09:22:38AM -0800, Ferrous Cranus wrote:
> can i just put the liens you provided me inside "files.html" and thwy
> will work?
>
> Thats pure pythjon code!
There are several template-engines where you more or less include
python-code into the template, e.g.: empy, mako,
On Tue, Mar 5, 2013 at 12:19 PM, Mark Lawrence wrote:
> On 05/03/2013 17:11, Νίκος Γκρ33κ wrote:
>
>> Any ideas on hopw to embed some html data at the end of each python
>> script?
>>
>
http://redwing.hutman.net/~mreed/warriorshtm/ferouscranus.htm
>
>>
> Write some code.
>
> --
> Cheers.
>
> Mark
On 3/5/2013 10:06 AM, Tim Golden wrote:
On 05/03/2013 14:55, Kevin Walzer wrote:
On 3/5/13 9:20 AM, Eric Johansson wrote:
The main reason I discount both of those is that they are effectively
dead as I can see. Last updates in the 2010/2011 range.
Why not give EasyGUI a try?
or PyGUI:
htt
On Tue, Mar 5, 2013 at 12:39 PM, Νίκος Γκρ33κ wrote:
> But i did, I just tried this:
>
> # open html template
> if htmlpage.endswith('.html'):
> f = open( "/home/nikos/public_html/" + htmlpage )
>
> htmldata = f.read()
> counter =
What extra triple quote?
There are 2 sets of triple quotes the counter's and the print's !!
in case htmlpage variable is a .py file i must append a print '''html''' in
order for .py code to absorve that code properly no?
--
http://mail.python.org/mailman/listinfo/python-list
On 05/03/2013 17:39, Νίκος Γκρ33κ wrote:
But i did, I just tried this:
# open html template
if htmlpage.endswith('.html'):
f = open( "/home/nikos/public_html/" + htmlpage )
htmldata = f.read()
counter = ''' mailto:supp...@sup
I finally have an intern helping me with my various accessibility
projects. We need to do pair programming so he can write the code in my
head that I can't express by broken hand or speech recognition (yet).
The best technique with come up with so far is to use putty sessions
with the same lay
On 03/05/2013 12:49 PM, Νίκος Γκρ33κ wrote:
What extra triple quote?
There are 2 sets of triple quotes the counter's and the print's !!
There are 3 pairs of triple-quotes. But one pair is nested inside the
other, so the interpreter will not handle it the way you apparently
want. If you have
On 03/05/2013 12:56 PM, Eric Johansson wrote:
I finally have an intern helping me with my various accessibility
projects. We need to do pair programming so he can write the code in my
head that I can't express by broken hand or speech recognition (yet).
The best technique with come up with so fa
On 3/5/2013 1:38 PM, Dave Angel wrote:
On 03/05/2013 12:56 PM, Eric Johansson wrote:
I finally have an intern helping me with my various accessibility
projects. We need to do pair programming so he can write the code in my
head that I can't express by broken hand or speech recognition (yet).
Th
Let's focus on just the following snipper please:
f = open( some_python_file )
htmldata = f.read()
counter = ''' print( "
mailto:supp...@superhost.gr";>
Αριθμός
Επισκεπτών
On 2013-03-05, Ana Dion?sio wrote:
> Yes, I simplified it a lot.
>
> I need to run it 24 times. What I don't really understand is
> how to put the final temperature (result) in it = 0 in temp_-1
> in it =1
One way to compose a function that recurses by calling itself is
to first write the simples
On Tue, Mar 5, 2013 at 1:53 PM, Νίκος Γκρ33κ wrote:
> Let's focus on just the following snipper please:
>
> f = open( some_python_file )
>
> htmldata = f.read()
> counter = ''' print( "
> mailto:supp...@superhost.gr";>
>
>bgcolor=bla
On 03/05/2013 01:53 PM, Νίκος Γκρ33κ wrote:
Let's focus on just the following snipper please:
Once again, I repeat. Make a fragment that contains enough information
to actually run. Explain in what environment it's running, and what you
hoped would happen. For example, why on earth would y
#open html template
if htmlpage.endswith('.html'):
f = open( "/home/nikos/public_html/" + htmlpage )
htmldata = f.read()
counter = ''' mailto:supp...@superhost.gr";>
I'm curious about using configuration files. Can someone tell me how they are
used? I'm writing a podcast catcher and would like to set up some default
configurations, e.g. directory, etcOther than default directory, what are
some of the things that are put in a configuration file? They
Instead of:
1.8e-04
I need:
1.8e-004
So two zeros before the 4, instead of the default 1.
--
http://mail.python.org/mailman/listinfo/python-list
On 03/05/2013 03:09 PM, fa...@squashclub.org wrote:
Instead of:
1.8e-04
I need:
1.8e-004
So two zeros before the 4, instead of the default 1.
You could insert a zero two characters before the end,
num = "1.8e-04"
num = num[:-2] + "0" + num[-2:]
But to get closer to your problem, could yo
On 03/05/2013 03:04 PM, Νίκος Γκρ33κ wrote:
#open html template
if htmlpage.endswith('.html'):
f = open( "/home/nikos/public_html/" + htmlpage )
htmldata = f.read()
counter = ''' mailto:supp...@superhost.gr";>
On 2013-03-05 12:09, Chuck wrote:
> I'm curious about using configuration files. Can someone tell me
> how they are used? I'm writing a podcast catcher and would like
> to set up some default configurations, e.g. directory, etcOther
> than default directory, what are some of the things that
On Tue, 05 Mar 2013 21:04:59 +0100, Νίκος Γκρ33κ
wrote:
#open html template
if htmlpage.endswith('.html'):
f = open( "/home/nikos/public_html/" + htmlpage )
htmldata = f.read()
counter = ''' mailto:supp...@superhost.gr";> src="/data/images/ma
Τη Τρίτη, 5 Μαρτίου 2013 11:02:18 μ.μ. UTC+2, ο χρήστης Dave Angel έγραψε:
> In other words, you're just trying to waste our time. Thanks for
>
> telling us.
Honestly, its not in my intentions to waste your time.
I appreciate all the great help you have provided me in all of my questions, i
r
comment prendre la valeur de couleur de point dans canvas python tkinter
comme :
(x,y).cget('bg')!='white'???
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 05 Mar 2013 23:47:18 +0100, Νίκος Γκρ33κ
wrote:
Thank you very much! This is what i was looking for and here is my code
after receiving your help.
So, with the command you provided to me i can actually run the .py
script ans save its output and then append from there!! Great!
Her
Eric Johansson wrote:
the only thing that would make it better is
if either of these kits used standard Rich text edit controls under
Windows so I can speech enable these applications.
PyGUI's TextEditor is based on the rich edit control in
Windows. It doesn't currently expose all of its capab
Hi guys, i have a program like this: (A lot of code is not included)
run = 0
while run == 0:
raw_input("Type in a function:")
if function == "Example":
print ("Hello World!")
else:
print ("blah blah blah")
The problem is that whenever i type in example with a space after it th
On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote:
> Hi guys, i have a program like this: (A lot of code is not included)
>
> run = 0
>
> while run == 0:
>
>raw_input("Type in a function:")
>
>if function == "Example":
>
> print ("Hello World!")
>
>else:
>
> pri
htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' +
htmlpage )
htmldata = subprocess.check_output( ['/usr/bin/python',
'/home/nikos/public_html/cgi-bin/' + htmlpage] )
Both of the above statemnts fail i'am afraid with the same error message.
--
http://mail.python.org/mailm
On 03/05/2013 03:33 PM, eli m wrote:
On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote:
Hi guys, i have a program like this: (A lot of code is not included)
run = 0
while run == 0:
function = raw_input("Type in a function:")
if function == "Example":
whenever function isn't _
Thanks Tim! So much stuff I haven't thought of before. Out of curiosity,
what's the benefit of caching the download, instead of downloading to the
final destination? So much stuff they never teach you school.So much
theory & not enough practice. :(
--
http://mail.python.org/mailman/l
On Wed, 06 Mar 2013 00:39:31 +0100, Νίκος Γκρ33κ
wrote:
htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' +
htmlpage )
htmldata = subprocess.check_output( ['/usr/bin/python',
'/home/nikos/public_html/cgi-bin/' + htmlpage] )
Both of the above statemnts fail i'am afr
On 2013-03-05 15:58, Chuck wrote:
> Thanks Tim! So much stuff I haven't thought of before. Out of
> curiosity, what's the benefit of caching the download, instead of
> downloading to the final destination?
If your connection gets interrupted, the server goes down, etc, you
have a partial downl
I have a listbox with two strings "Fixed" and "Random". It is bound by the
following statement:
lbLengthtype.bind('',set_lengthtype)
Here's the beginning of the set_lengthtype code:
def set_lengthtype(event=None):
s=lbLengthtype.get(tk.ACTIVE)
print(s)
.
The print(s) statement
On Tuesday, March 5, 2013 6:54:45 PM UTC-6, Rex Macey wrote:
> I have a listbox with two strings "Fixed" and "Random".
> [...] Here's the beginning of the set_lengthtype code:
>
> def set_lengthtype(event=None):
>s=lbLengthtype.get(tk.ACTIVE)
>print(s)
>.
>
> The print(s) state
On 3/5/2013 6:18 PM, Gregory Ewing wrote:
Eric Johansson wrote:
the only thing that would make it better is if either of these kits
used standard Rich text edit controls under Windows so I can speech
enable these applications.
PyGUI's TextEditor is based on the rich edit control in
Windows. I
On Wed, 27 Feb 2013 15:25:25 -0800 (PST), alex23 wrote:
> On Feb 27, 1:13 pm, Rick Johnson wrote:
>
> > [...] do you /really/ expect that people
> > have the time to open an issue on the bug tracker?
>
> If someone can write a paragraph on their blog or this list
> complaining about a problem, t
On Tuesday, March 5, 2013 3:47:31 PM UTC-8, emile wrote:
> On 03/05/2013 03:33 PM, eli m wrote:
>
> > On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote:
>
> >> Hi guys, i have a program like this: (A lot of code is not included)
>
> >>
>
> >> run = 0
>
> >>
>
> >> while run == 0:
>
> >
[Sorry for the double-post -- I somehow had Followup-To set to
poster in the first post.]
On Wed, 27 Feb 2013 15:25:25 -0800 (PST), alex23 wrote:
> On Feb 27, 1:13 pm, Rick Johnson wrote:
>
> > [...] do you /really/ expect that people
> > have the time to open an issue on the bug tracker?
>
> I
[Sorry for the double-post -- I somehow had Followup-To set to
poster in the first post.]
On Wed, 27 Feb 2013 15:25:25 -0800 (PST), alex23 wrote:
> On Feb 27, 1:13 pm, Rick Johnson wrote:
>
> > [...] do you /really/ expect that people
> > have the time to open an issue on the bug tracker?
>
> I
On 06/03/2013 01:43, Bob Hanson wrote:
On Wed, 27 Feb 2013 15:25:25 -0800 (PST), alex23 wrote:
On Feb 27, 1:13 pm, Rick Johnson wrote:
[...] do you /really/ expect that people
have the time to open an issue on the bug tracker?
If someone can write a paragraph on their blog or this list
com
On Tue, 05 Mar 2013 12:09:38 -0800, Chuck wrote:
> I'm curious about using configuration files. Can someone tell me how
> they are used? I'm writing a podcast catcher and would like to set up
> some default configurations, e.g. directory, etcOther than default
> directory, what are some of
Second on django. This'll do.
https://bitbucket.org/jespern/django-piston/
Build whatever data models you want on the back-end and start spitting out JSON
with a couple lines of code.
Used this to build an IAP server for iOS apps. This one hasn't gone into
production yet but I know of at lea
On Tue, 05 Mar 2013 17:51:36 -0800, Bob Hanson wrote:
> I've tried twice to register with the bug tracker -- including just
> before sending this post. Both times I got something like this:
>
> Subject: Failed issue tracker submission From: Python tracker
> Date: Wed, 06 Mar 2013
>
On Tue, 05 Mar 2013 18:15:20 -0600, Tim Chase wrote:
> On 2013-03-05 15:58, Chuck wrote:
>> Thanks Tim! So much stuff I haven't thought of before. Out of
>> curiosity, what's the benefit of caching the download, instead of
>> downloading to the final destination?
>
> If your connection gets in
On Wed, Mar 6, 2013 at 2:31 PM, Steven D'Aprano
wrote:
> What configuration settings does your podcast catcher software need? What
> makes you think it needs any? Don't over-engineer your application from
> the start. Begin with the simplest thing that works, and go from there.
Agreed. The way I
I guess my question was more what is a config.file & why/how do I use one.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Mar 6, 2013 at 3:07 PM, Chuck wrote:
> I guess my question was more what is a config.file & why/how do I use one.
> Thanks
In its simplest form, a config file is one way to change a program's
behaviour without editing the code. They're helpful when you want to
be able to run the same prog
On Wed, 06 Mar 2013 15:19:53 +1100, Chris Angelico wrote:
> On Wed, Mar 6, 2013 at 3:07 PM, Chuck wrote:
>> I guess my question was more what is a config.file & why/how do I use
>> one. Thanks
>
> In its simplest form, a config file is one way to change a program's
> behaviour without editing th
Eric Johansson wrote:
On 3/5/2013 6:18 PM, Gregory Ewing wrote:
PyGUI's TextEditor is based on the rich edit control in
Windows. It doesn't currently expose all of its capabilities,
but if speech is all you want, it might be sufficient.
Do you know which one?
Vendor Control Class
Microsoft E
On 3/5/2013 3:09 PM, fa...@squashclub.org wrote:
Instead of:
1.8e-04
I need:
1.8e-004
So two zeros before the 4, instead of the default 1.
The standard e and g float formats do not give you that kind of control
over the exponent. You have to write code that forms the string you
want. You can
On Wed, Mar 6, 2013 at 3:54 PM, Steven D'Aprano
wrote:
> On Wed, 06 Mar 2013 15:19:53 +1100, Chris Angelico wrote:
>
>> On Wed, Mar 6, 2013 at 3:07 PM, Chuck wrote:
>>> I guess my question was more what is a config.file & why/how do I use
>>> one. Thanks
>>
>> In its simplest form, a config file
Τη Τετάρτη, 6 Μαρτίου 2013 2:06:33 π.μ. UTC+2, ο χρήστης Michael Ross έγραψε:
> On Wed, 06 Mar 2013 00:39:31 +0100, Νίκος Γκρ33κ
>
> wrote:
>
>
>
> > htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' +
>
> > htmlpage )
>
> >
>
> > htmldata = subprocess.check_output(
Τη Τετάρτη, 6 Μαρτίου 2013 2:06:33 π.μ. UTC+2, ο χρήστης Michael Ross έγραψε:
> check_output is available as of Python 2.7
>
>
>
> I guess you are still on version 2.6 ?
Indeed!
i just checked it's Python 2.6.6: /usr/bin/python and i have asked the linxu
admins @ hostgator.com to update pytho
I'am using this snipper to read a current directory and insert all filenames
into a databse and then display them.
But what happens when files are get removed form the directory?
The inserted records into databse remain.
How can i update the databse to only contain the existing filenames without
86 matches
Mail list logo