In development environment I suggest to use build-in webserver from wsgiref
module, see http://docs.python.org/2/library/wsgiref.html#examples
Then it's easy to run webserver in console and kill&start it with Ctrl+C
keystroke. In production environment, use your prefered webserver like
apache,n
In article <78312fc7-adf1-4324-82f3-c53a4622b...@googlegroups.com>,
stanw...@gmail.com wrote:
> I have installed "Mac OS X 64-bit/32-bit Installer (3.3.3) for Mac OS X 10.6
> and later" (file: python-3.3.3-macosx10.6.dmg) and installed the "ActiveTcl
> 8.6.1 for Mac OS X (10.5+, x86_64/x86)" (fi
On Sun, Dec 29, 2013 at 10:29 PM, Steven D'Aprano wrote:
> On Mon, 30 Dec 2013 10:30:11 +1100, Chris Angelico wrote:
>
> > On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano
> > wrote:
> >> So you need to X-forward from the remote machine to the machine you are
> >> physically on, or perhaps it's
On Sunday, December 29, 2013 5:18:18 PM UTC-5, Stan Ward wrote:
Note: I do not get the "WARNING: The version of Tcl/Tk (8.5.9) in use may be
unstable." message when I run python directly from bash (Mac "Terminal"), but I
do get it in the IDLE.app Shell Window, run as follows, based on the
recom
On Mon, Dec 30, 2013 at 2:29 PM, Steven D'Aprano wrote:
> On Mon, 30 Dec 2013 10:30:11 +1100, Chris Angelico wrote:
>
>> On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano
>> wrote:
>>> So you need to X-forward from the remote machine to the machine you are
>>> physically on, or perhaps it's the o
On Mon, 30 Dec 2013 10:30:11 +1100, Chris Angelico wrote:
> On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano
> wrote:
>> So you need to X-forward from the remote machine to the machine you are
>> physically on, or perhaps it's the other way (X is really weird). I
>> have no idea how to do that,
On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano
wrote:
> So you need to X-forward from the remote machine to the machine you are
> physically on, or perhaps it's the other way (X is really weird). I have no
> idea how to do that, but would love to know.
With SSH, that's usually just "ssh -X tar
Michael Matveev wrote:
> Hi,
> I use live Debian on VM and trying to compile this code.
>
>
> import Tkinter
>
> root = Tkinter.Tk()
>
> root.title("Fenster 1")
> root.geometry("100x100")
>
> root.mainloop()
>
>
> The shell gives out that kind of message:
>
> File "test.py", line 5, in
> Actively working on this... may try to create a symbolic link from
> /System/Library/Frameworks/Tcl.framework/Versions/Current to
> /Library/Frameworks/Tcl.framework/Versions/Current
Symbolic link (ln -s) does not seem to have worked either. G.
Tried
/System/Library/Frameworks/Tcl.frame
> Is there a PATH setting or something I can use to force the use of the
> ActiveTcl Tcl/Tk located in:
> /Library/Frameworks/Tcl.framework/Versions/8.5/Tcl and
> /Library/Frameworks/Tk.framework/Versions/8.5/Tk
Correction. The ActiveTcl /Library directions are:
/Library/Frameworks/Tcl.framew
On Mon, Dec 30, 2013 at 7:20 AM, Michael Matveev
wrote:
> The shell gives out that kind of message:
>
> File "test.py", line 5, in
> root = Tkinter.Tk()
> File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__
> self.tk = _tkinter.create(screenName, baseName, className, interactive,
On Mon, Dec 30, 2013 at 6:35 AM, wrote:
> Hi all,
> I am facing a script issue whenever i run my script in /var/log/messages
> and it gives error something as below:
>
>
> abrt: detected unhandled Python exception in x.py.
>
> Can anybody help me figuring out how do i know which line numbe
--
https://mail.python.org/mailman/listinfo/python-list
> Is there a PATH setting or something I can use to force the use of the
> ActiveTcl Tcl/Tk located in:
> /Library/Frameworks/Tcl.framework/Versions/8.5/Tcl and
> /Library/Frameworks/Tk.framework/Versions/8.5/Tk
Correction. The ActiveTcl /Library directions are:
/Library/Frameworks/Tcl.framew
Hi,
I use live Debian on VM and trying to compile this code.
import Tkinter
root = Tkinter.Tk()
root.title("Fenster 1")
root.geometry("100x100")
root.mainloop()
The shell gives out that kind of message:
File "test.py", line 5, in
root = Tkinter.Tk()
File "/usr/lib/python2.7/lib-tk/Tkint
Hi Ned,
I am running into the same problem described by Bart. I am teaching my kids to
program using the Python For Kids book on a Mac OSX 10.8.5.
I have installed "Mac OS X 64-bit/32-bit Installer (3.3.3) for Mac OS X 10.6
and later" (file: python-3.3.3-macosx10.6.dmg) and installed the "Act
Hi all,
I am facing a script issue whenever i run my script in /var/log/messages and
it gives error something as below:
abrt: detected unhandled Python exception in x.py.
Can anybody help me figuring out how do i know which line number has thrown the
python exception?
Regards
Pradeep
--
On Sun, Dec 29, 2013 at 7:44 AM, Burak Arslan
wrote:
> On 12/29/13 07:06, Ian Kelly wrote:
>> On Sat, Dec 28, 2013 at 5:35 PM, Burak Arslan
>> wrote:
>>> On 12/29/13 00:13, Burak Arslan wrote:
Hi,
Have a look at the following code snippets:
https://gist.github.com/plq/8164035
Hi there,
Please create an issue in the PyDev tracker for that:
https://sw-brainwy.rhcloud.com/tracker/PyDev/
Cheers,
Fabio
On Fri, Dec 27, 2013 at 4:54 PM, zhaoyunsong wrote:
> dear all,
> I am trying to configure eclipse + pydev as my ide, but there seems to be
> some problem on code compl
On 12/29/13 07:06, Ian Kelly wrote:
> On Sat, Dec 28, 2013 at 5:35 PM, Burak Arslan
> wrote:
>> On 12/29/13 00:13, Burak Arslan wrote:
>>> Hi,
>>>
>>> Have a look at the following code snippets:
>>> https://gist.github.com/plq/8164035
>>>
>>> Observations:
>>>
>>> output2: I can break out of outer
On 12/28/13 11:21 PM, Joseph L. Casale wrote:
I have a script that accepts cmdline arguments and receives input via stdin.
I have a unit test for it that uses Popen to setup an environment, pass the args
and provide the stdin.
Problem is obviously this does nothing for providing coverage. Given
"Bala Ji" wrote in message
news:11c1b4ef-07a3-4424-b356-9a9cf635f...@googlegroups.com...
>
>
> hello,
>
> thank you for your help
>
> i wrote this:
>
> x="nam1"
> y="F"
>
> names = [("nam1", "F", "Y"), ("nam2", "M", "N")]
> l = len(names)
> for i in range(0,l):
> print names[i][0]
> prin
On Sun, Dec 29, 2013 at 3:49 PM, Bala Ji wrote:
>
>
> hello,
>
> thank you for your help
>
> i wrote this:
>
> x="nam1"
> y="F"
>
> names = [("nam1", "F", "Y"), ("nam2", "M", "N")]
> l = len(names)
> for i in range(0,l):
> print names[i][0]
> print names[i][1]
> if x == nam
Oh sorry it's a Y (in french it's O) sorry for the mistake
Le dimanche 29 décembre 2013 00:30:23 UTC+1, Bala Ji a écrit :
> Hello guys,
>
> i need some help with is program
>
>
>
> I have a txt file "test.txt" where there is Name;Sexe;Answer(Y or N)
>
> example of txt file:
>
>
hello,
thank you for your help
i wrote this:
x="nam1"
y="F"
names = [("nam1", "F", "Y"), ("nam2", "M", "N")]
l = len(names)
for i in range(0,l):
print names[i][0]
print names[i][1]
if x == names[i][0] and y == names[i][1]:
message = "right"
else
Bala Ji writes:
> Hello guys,
> i need some help with is program
>
> I have a txt file "test.txt" where there is Name;Sexe;Answer(Y or N)
> example of txt file:
> --
> nam1;F;Y
> nam2;M;N
> nam3;F;Y
> nam4;M;N
> halo;M;Y
> rock;M;N
> nam1;F;N
>
> As the script is being invoked with Popen, I lose that luxury and only gain
> the assertions tests but that of course doesn't show me untested branches.
Should have read the docs more thoroughly, works quite nice.
jlc
--
https://mail.python.org/mailman/listinfo/python-list
Hello guys,
i need some help with is program
I have a txt file "test.txt" where there is Name;Sexe;Answer(Y or N)
example of txt file:
--
*nam1;F*;Y
nam2;M;N
nam3;F;Y
nam4;M;N
halo;M;Y
rock;M;N
nam1;F;N
_
so my program will ask t
28 matches
Mail list logo