Stephen Berman writes:
> On Sun, 04 Sep 2022 16:47:07 -0300 Meredith Montgomery
> wrote:
>
>> Meredith Montgomery writes:
>>
>>> Meredith Montgomery writes:
>>>
>>> [...]
>>>
I would also be interested in a command that restarts the REPL afresh
and reloads my buffer --- sort of like
On Sun, 04 Sep 2022 16:47:07 -0300 Meredith Montgomery
wrote:
> Meredith Montgomery writes:
>
>> Meredith Montgomery writes:
>>
>> [...]
>>
>>> I would also be interested in a command that restarts the REPL afresh
>>> and reloads my buffer --- sort of like keyboard's [F5] of the IDLE.
>>
>> A
Meredith Montgomery writes:
> Meredith Montgomery writes:
>
> [...]
>
>> I would also be interested in a command that restarts the REPL afresh
>> and reloads my buffer --- sort of like keyboard's [F5] of the IDLE.
>
> A partial solution for this is the following procedure.
>
> (defun python-reve
Meredith Montgomery writes:
[...]
> I would also be interested in a command that restarts the REPL afresh
> and reloads my buffer --- sort of like keyboard's [F5] of the IDLE.
A partial solution for this is the following procedure.
--8<---cut here---start->8
gt; yourself!
>
> Hmm, I noticed that too, but I thought it was a change in python-mode
> itself. I just got used to it. I didn't bother trying to chase it down.
These little conveniences are so important. :-)
> To start a new process, try C-u C-c C-p .
Oh, thank you!
--
https://mail.python.org/mailman/listinfo/python-list
Perhaps this isn't the right newsgroup, but I kinda feel I will find
more GNU EMACS users running the native python-mode here than in GNU
EMACS newsgroups. Not every GNU EMACS user cares about Python.
(Right?)
A sort of a complaint is that when I used to run GNU EMACS 24.3.1, I'd
open
Hi,
I am using python-mode to write python code in Emacs, and when I use the
useful C-c C-c key combination to interpret the buffer, Emacs always
opens another window inside the window I am using.
I prefer using Emacs split in two windows (one on each physical screen)
where I program in one
On Jul 9, 8:42 pm, Piet van Oostrum wrote:
> > Lacrima (L) wrote:
> >L> Thank you for really useful and detailed explanation. Now I can test
> >L> my code usingEmacs.
> >L> But I think it works for me in a little bit different way.
> >L> My file contains only the print 'hello world'.
> >L> If
> Lacrima (L) wrote:
>L> Thank you for really useful and detailed explanation. Now I can test
>L> my code using Emacs.
>L> But I think it works for me in a little bit different way.
>L> My file contains only the print 'hello world'.
>L> If I have no python shell running, then:
>L> a) C-c RET
and py-execute-import-or-reload
> >L> which is an interactive Lisp function in `python-mode'..." and so
> >L> on.
> >L> And still when I do C-c RET, I receive "(Shell command succeeded with
> >L> no output)"
> >L> Any more help would
>>>>> Lacrima (L) wrote:
>L> Thanks for your reply!
>L> My file name is 'trains.py'.
>L> When I do C-h k C-c RET, it shows me help from manual: "C-c RET runs
>L> the command py-execute-import-or-reload
>L>which is an interactiv
>L> Why in the first case I get no output?
>
> Can you check in the buffer where you have the python code what command
> C-c RET is bound to?
> With C-h k C-c RET
>
> Shell command succeeded with no output suggests that is has a different
> binding than the standard one in pyt
python code what command
C-c RET is bound to?
With C-h k C-c RET
Shell command succeeded with no output suggests that is has a different
binding than the standard one in python-mode.
Did you happen to name your file 'test' or 'test.py?
C-c RET does an import and 'import test&
Hello!
I have just started using Emacs to write python scripts.
I installed python-mode.el
Then I just tried this code:
print 'hello world'
When I press C-c RET, new blank window is opened and emacs says:
(Shell command succeeded with no output)
So where is my 'hello world'?
When I do C-c C-c,
stop! Use the editor you are comfortable with. No flame wars please, even
though Emacs is the way to enlightenment :)
On Fri, May 29, 2009 at 4:10 PM, Barry Warsaw wrote:
> On May 28, 2009, at 7:09 AM, Andreas Roehler wrote:
>
> python-mode.el was its bloody-minded determination to regard '_' a
On May 28, 2009, at 7:09 AM, Andreas Roehler wrote:
python-mode.el was its bloody-minded determination to regard '_' as
a word
character, something which caused me more typing that it ever saved.
Its just one line to comment in python-mode.el, like this:
;; (modify-syntax-entry ?\_ "w" p
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Nov 27, 2008, at 3:13 AM, Andreas Roehler wrote:
Eric S. Johansson wrote:
Andreas Roehler wrote:
with python-mode.el from
http://sourceforge.net/projects/python-mode/
I think there's something wrong with the site because it tells me
cnb wrote:
a = parsing.unserialize("C:/users/saftarn/desktop/twok.txt")
Traceback (most recent call last):
File "C:\Python25\lib\pickle.py", line 1126, in find_class
klass = getattr(mod, name)
when reporting a traceback, please include the error message that
follows after the stack
>>> a = parsing.unserialize("C:/users/saftarn/desktop/twok.txt")
Traceback (most recent call last):
File "", line 1, in
File "C:\Python25\Progs\NetflixRecSys\parsing.py", line 91, in
unserialize
return pickle.load(open(filename, 'r'))
File "C:\Python25\lib\pickle.py", line 1370, in load
Rustom Mody wrote:
When I start python mode I get the error:
idle error: # -Wrong number of arguments : # 2"
The Python mode version is 4.78
Is this a known problem?
there are plenty of google hits for that message, and they all seem to
agree that the problem is caused by using ELC
When I start python mode I get the error:
idle error: # -Wrong number of arguments : # 2"
The Python mode version is 4.78
Is this a known problem?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
uot;)
>>> (require 'ipython)
>>>
>>> to your .emacs. It is nice since I get the occasion to try ipython.el
>>> which I am
>>> sure I will like ;)
>>
>> So, I'm looking at the .el, but I'm not sure. What else does
>> ipyth
ince I get the occasion to try ipython.el
>> which I am
>> sure I will like ;)
>
> So, I'm looking at the .el, but I'm not sure. What else does
> ipython.el give you than just the ipython shell?
What else could you possibly want? :)
Seriously, ipython.el is a simpl
On Fri, Aug 8, 2008 at 7:32 AM, Michele Simionato
<[EMAIL PROTECTED]> wrote:
> On Aug 7, 5:55 pm, Alexander Schmolck <[EMAIL PROTECTED]> wrote:
...
>
> I have solved by using ipython.el which was already installed. For the
> sake of
> future googlers using Ubuntu 8.04, emacs and ipython, it is enou
not FSF blessed
> python-mode.el (http://sourceforge.net/projects/python-mode/), which should
> come with install instructions. If you use ipython you might additionally
> want to install ipython.el, which comes with the ipython tar ball.
I have solved by using ipython.el which was already
Bruno Desthuilliers wrote:
> Michele Simionato a écrit :
>> I have noticed that the python-mode for Emacs that comes with the
>> latest Ubuntu is missing the class browser. Moreover if works
>> differently from the python-mode I was used to (for instance CTRL-c-c
>> wor
Michele Simionato <[EMAIL PROTECTED]> writes:
> I have noticed that the python-mode for Emacs that comes with the
> latest Ubuntu is missing the class browser. Moreover if works
> differently from the python-mode I was used to (for instance CTRL-c-c
> works as CTRL-c-! whereas C
Michele Simionato a écrit :
I have noticed that the python-mode for Emacs that comes with the
latest Ubuntu is missing the class browser. Moreover if works
differently from the python-mode I was used to (for instance CTRL-c-c
works as CTRL-c-! whereas CTRL-c-! is missing, etc). How can I go back
I have noticed that the python-mode for Emacs that comes with the
latest Ubuntu is missing the class browser. Moreover if works
differently from the python-mode I was used to (for instance CTRL-c-c
works as CTRL-c-! whereas CTRL-c-! is missing, etc). How can I go back
to the old python-mode
or at
or ( v == 2 )
> or ( v == 3 ) ):
> pass
>
> It works great for me in C-mode. Does anyone know how to jimmie up
> python-mode so it would know how to do this?
Not sure about the python.el that ships with emacs 21, but the python-
mode.el that is used in emacs 20, it can&
On Mar 31, 10:32 am, "Steven W. Orr" <[EMAIL PROTECTED]> wrote:
> Here's what I want to do:
>
> if ( ( v == 1 )
> or ( v == 2 )
> or ( v == 3 ) ):
> pass
>
python indenting = 4 spaces
--
http://mail.python.org/mailman/listinfo/python-list
En Mon, 31 Mar 2008 16:36:13 -0300, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> escribió:
> On 31 mar, 18:32, "Steven W. Orr" <[EMAIL PROTECTED]> wrote:
>> Here's what I want to do:
>>
>> if ( ( v == 1 )
>>or ( v == 2 )
>>or ( v == 3 ) ):
>> pass
>
> Why the parens ?
>
> if a == 1 \
>
On 31 mar, 18:32, "Steven W. Orr" <[EMAIL PROTECTED]> wrote:
> Here's what I want to do:
>
> if ( ( v == 1 )
>or ( v == 2 )
>or ( v == 3 ) ):
> pass
Why the parens ?
if a == 1 \
or b == 2 \
or c == 3:
pass
--
http://mail.python.org/mailman/listinfo/python-list
Here's what I want to do:
if ( ( v == 1 )
or ( v == 2 )
or ( v == 3 ) ):
pass
but emacs (left to its own devices, does this.
if ( ( v == 1 )
or ( v == 2 )
or ( v == 3 ) ):
pass
It works great for me in C-mode. Does anyone know how to jimmie up
python-mode
I use emacs 22 and python-mode. Emacs can display utf8 characters
(e.g. when I open a utf8-encoded file with Chinese, those characters
show up fine), and I'd like to see utf8-encoded output from my python
session.
>From googling, I've found references to
* locale.getdefaultlocal
On Dec 5, 7:01 pm, Toby <[EMAIL PROTECTED]> wrote:
> For some reason, emacs python-mode has stopped working for me. It has
> been working without any problems since I installed it on Ubuntu Gutsy
> Gibbon, but now the "Start Interpreter" causes emacs to hang requiring
For some reason, emacs python-mode has stopped working for me. It has
been working without any problems since I installed it on Ubuntu Gutsy
Gibbon, but now the "Start Interpreter" causes emacs to hang requiring
me to kill emacs. Other parts of python-mode seem to work okay,
t
Hi guys,
I'm playing with Python in emacs, with python mode.
I'd like to be able to press a key to toggle the code comments on and
off -- to switch between beautiful clean Python code, and the full
text that tells me what's going in in English.
Is this currently possible? I
ibles which I'd be happy to help fix and improve but the EmacsWiki
page about python mode seems to imply that one or both or no longer
maintained or acceprting patches.
Thanks,
-Emin
--
http://mail.python.org/mailman/listinfo/python-list
Edward Loper wrote:
>> Anyone testing on xemacs? I tried it, and C-c C-c sent xemacs into an
>> infinite loop (apparantly).
I may have tracked down the cause of this problem. Please download the
most recent version, and try again. And when you do, let me know
whether that fixed it. :)
-Edwar
Edward Loper wrote:
>> Anyone testing on xemacs? I tried it, and C-c C-c sent xemacs into an
>> infinite loop (apparantly).
>
> It works fine for me in XEmacs 21.4 (patch 17) (i386-debian-linux,
> Mule). If you could answer a few questions, it might help me track down
> the problem:
>
> - What
I'm starting to learn how to use emacs (on Mac OS 10.4)
and I found that you can load something called python-mode.el which
looks like it can help when writing Python
code in emacs. I'm hoping it can color python syntax as well as
indent it correctly, etc.
My problems are:
1. Where should
> Anyone testing on xemacs? I tried it, and C-c C-c sent xemacs into an
> infinite loop (apparantly).
It works fine for me in XEmacs 21.4 (patch 17) (i386-debian-linux,
Mule). If you could answer a few questions, it might help me track down
the problem:
- What version of xemacs are you runnin
Anyone testing on xemacs? I tried it, and C-c C-c sent xemacs into an
infinite loop (apparantly).
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 7 Aug 2007, Edward Loper wrote:
> [John J Lee]
>> Is it possible to get doctest-mode to work with mmm-mode and python-mode
>> nicely so that docstrings containing doctests are editable in doctest-mode?
>
> I recently released a new version of doctest-mode [1], a
[John J Lee]
> Is it possible to get doctest-mode to work with mmm-mode and python-mode
> nicely so that docstrings containing doctests are editable in
> doctest-mode?
I recently released a new version of doctest-mode [1], and I came across
your email [2] (it was on the first page
[EMAIL PROTECTED] writes:
> Thomas> I'm trying to customize the python interpreter that is used to
> Thomas> execute my scripts from within WinXP, XEmacs, python-mode
> Thomas> version $Revision4.70$, but cannot get it to work.
>
> Thomas>
Thomas> I'm trying to customize the python interpreter that is used to
Thomas> execute my scripts from within WinXP, XEmacs, python-mode
Thomas> version $Revision4.70$, but cannot get it to work.
Thomas> The only thing that works is M-x customize-group pytho
I'm trying to customize the python interpreter that is used to execute
my scripts from within WinXP, XEmacs, python-mode version
$Revision4.70$, but cannot get it to work.
The only thing that works is M-x customize-group python, and change the
value of 'Python Command'. However, t
John J. Lee wrote:
> bruno at modulix <[EMAIL PROTECTED]> writes:
>
>
>>John J Lee wrote:
>>
>>>Is it possible to get doctest-mode to work with mmm-mode and python-mode
>>>nicely so that docstrings containing doctests are editable in doctest-mode?
&g
bruno at modulix <[EMAIL PROTECTED]> writes:
> John J Lee wrote:
> > Is it possible to get doctest-mode to work with mmm-mode and python-mode
> > nicely so that docstrings containing doctests are editable in doctest-mode?
>
> I don't know.
>
>
John J Lee wrote:
> Is it possible to get doctest-mode to work with mmm-mode and python-mode
> nicely so that docstrings containing doctests are editable in doctest-mode?
I don't know.
(snip)
>
> Any tips appreciated!
>
Seems like comp.emacs could be a good pla
Is it possible to get doctest-mode to work with mmm-mode and python-mode
nicely so that docstrings containing doctests are editable in
doctest-mode?
In my utter e-lisp ignorance, I tried this:
(require 'mmm-auto)
(setq mmm-global-mode 'maybe)
(mmm-add-classes
'(
(doctes
vinjvinj wrote:
> Unfortunately this in not an options since all the processes share
> objects in memory which are about 1gig for each node. Having a copy of
> this in each user process is just not an options. I think I'm going to
> use RestrictedPython from zope3 svn which should take care of 70-
Unfortunately this in not an options since all the processes share
objects in memory which are about 1gig for each node. Having a copy of
this in each user process is just not an options. I think I'm going to
use RestrictedPython from zope3 svn which should take care of 70-80 %
of the problem.
--
vinjvinj wrote:
> 2. restrict the amount of memory a module uses as well. For instance
> how can I restrict a user from doing a = range(100) or similar
> tasks so that my whole compute farm does not come down.
The safest way to do this in unix is to run the model in a separate process,
a
vinjvinj wrote:
> I have an application which allows multiple users to write models.
> These models get distributed on a grid of compute engines. users submit
> their models through a web interface. I want to
>
> 1. restrict the user from doing any file io, exec, import, eval, etc. I
> was thinkin
This can not be done at compile time but can be cought at execution
time on linux by the following recipe:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307871
vinjvinj
--
http://mail.python.org/mailman/listinfo/python-list
"vinjvinj" <[EMAIL PROTECTED]> writes:
> No. I was hoping to leverage the work done for restricted pythonscript
> by zope at:
>
> http://www.zope.org/Control_Panel/Products/PythonScripts/Help/PythonScript.py
How does Pythonscript deal with
xxx = 'x' * 10
as a memory DOS attack?
--
htt
No. I was hoping to leverage the work done for restricted pythonscript
by zope at:
http://www.zope.org/Control_Panel/Products/PythonScripts/Help/PythonScript.py
which is similar to what I want to do as well.
vinjvinj
--
http://mail.python.org/mailman/listinfo/python-list
vinjvinj wrote:
> I have so many things to do to get this to production and writing a
> mini language would be a full project in itself. :-<.
>
> Is there an easy way to do this? If not, I'll go with the steps
> outlined in my other post.
Do you really think it will be faster to start parsing Pyt
I have so many things to do to get this to production and writing a
mini language would be a full project in itself. :-<.
Is there an easy way to do this? If not, I'll go with the steps
outlined in my other post.
vinjvinj
--
http://mail.python.org/mailman/listinfo/python-list
I'm more worried about incompetent users then malicious users. I'm
going to take the following steps:
1. My users will be paying a decent amount of money to run models on
the compute grid. If they are intentionaly writing malicious code then
their account will be disabled.
2. Since their models w
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> I suspect your best bet might be to write a mini-language using
> Python, and get your users to use that. You will take a small
> performance hit, but security will be very much improved.
>
> What do others think?
That is the only approach that makes
vinjvinj wrote:
> While I understand 2 is very hard (if not impossible) to do in single
> unix process. I'm not sure why 1 would be hard to do. Since I have
> complete control to what code I can allow or not allow on my grid. Can
> i not just search for certain strings and disallow the model if it
"vinjvinj" <[EMAIL PROTECTED]> writes:
> While I understand 2 is very hard (if not impossible) to do in single
> unix process. I'm not sure why 1 would be hard to do. Since I have
> complete control to what code I can allow or not allow on my grid. Can
> i not just search for certain strings and d
While I understand 2 is very hard (if not impossible) to do in single
unix process. I'm not sure why 1 would be hard to do. Since I have
complete control to what code I can allow or not allow on my grid. Can
i not just search for certain strings and disallow the model if it
fails certain conditions
"vinjvinj" <[EMAIL PROTECTED]> writes:
> 1. restrict the user from doing any file io, exec, import, eval, etc. I
> was thinking of writing a plugin for pylint to do all the checks? Is
> this is a good way given that there is no restricted python. What are
> the things I should serach for in python
On 7 Nov 2005 12:54:40 -0800, vinjvinj <[EMAIL PROTECTED]> wrote:
>I have an application which allows multiple users to write models.
>These models get distributed on a grid of compute engines. users submit
>their models through a web interface. I want to
>
>1. restrict the user from doing any file
I have an application which allows multiple users to write models.
These models get distributed on a grid of compute engines. users submit
their models through a web interface. I want to
1. restrict the user from doing any file io, exec, import, eval, etc. I
was thinking of writing a plugin for py
he `Emacs goodies`_ page at python.org
Marcio> .. _`Emacs goodies`: http://www.python.org/emacs/
Marcio> where I was redirected to the `python-mode`_ page at
Marcio> SourceForge. There I could only find version 1.0alpha (4.6) (the
Marcio> one said too old in the thread_)
I
Hi all,
My first try on using RST to write an email. so I can (will) make
mistakes :-)
I am experiencing the problem shown in this thread_ of the
`python-mode`_ discussion list hosted at SourceForge.
.. _thread:
https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1215039&
Unfortunatly the only tip I can give you is that there's a list for
mode-python in http://mail.python.org/mailman/listinfo/python-mode, but
you probably already know about it.
Regards,
Tiago S DaitxOn 6/4/05, Skip Montanaro <[EMAIL PROTECTED]> wrote:
Can someone who uses Emacs
Can someone who uses Emacs's python-mode, pdbtrack and gdb take a look at
this simple but ancient patch:
http://sourceforge.net/tracker/index.php?func=detail&aid=785816&group_id=86916&atid=581351
As you'll see from the discussion, Barry had problems with it from XEma
Skip Montanaro wrote:
>
> test1dellboy3> I am exploring python-mode on emacs. When I open foo.py
> test1dellboy3> in emacs and hit C-!, it starts the python interpreter in
> test1dellboy3> another window. Next, I execute -
>
> ...
>
> That'
test1dellboy3> I am exploring python-mode on emacs. When I open foo.py
test1dellboy3> in emacs and hit C-!, it starts the python interpreter in
test1dellboy3> another window. Next, I execute -
...
That's not really intended to be used as an interactive session wit
Hi,
I am exploring python-mode on emacs. When I open foo.py in emacs and
hit C-!, it starts the python interpreter in another window. Next, I
execute -
import rlcompleter, readline
readline.parse_and_bind('tab: complete')
Now I will test the completion by trying to complete sys.v (w
4 spaces
© # 4 level, 2 tabs.
©
© who the fuck coded the python mode in emacs? fuckhead please peruse:
© http://xahlee.org/UnixResource_dir/writ/responsible_license.html
I hope you never need a favor or interview for a job with someone who
reads news groups. You're committing eSuicide by posting i
[Xah Lee]
...
> © who the fuck coded the python mode in emacs?
The major contributors are listed at the top of python-mode.el.
> fuckhead please peruse:
> © http://xahlee.org/UnixResource_dir/writ/responsible_license.html
OK, I read it, but have no idea what point you're tryin
Xah Lee wrote:
[...]
©
© who the fuck coded the python mode in emacs? fuckhead please peruse:
© http://xahlee.org/UnixResource_dir/writ/responsible_license.html
©
Pure egotism. Not to mention bad language.
regards
Steve
--
Steve Holden http://www.holdenweb.com/
Python Web
el, 2 tabs.
©
© who the fuck coded the python mode in emacs? fuckhead please peruse:
© http://xahlee.org/UnixResource_dir/writ/responsible_license.html
©
© PS Thanks for the tip on (setq-default indent-tabs-mode nil).
©
© Xah
© [EMAIL PROTECTED]
© http://xahlee.org/PageTwo_dir/mor
Xah Lee wrote:
does anyone know why the Python mode in emacs uses spaces for first
level indentation but one tab for second level?
i'm using emacs 21.3.50.1.
You probably have tab-width set to 8 spaces, but indentation in python
set to 4 spaces.
-- MJF
--
http://mail.python.org/ma
Xah Lee, SÃbado 15 Janeiro 2005 13:24, wrote:
> does anyone know why the Python mode in emacs uses spaces for first
> level indentation but one tab for second level?
>
> i'm using emacs 21.3.50.1.
> Xah
> [EMAIL PROTECTED]
> http://xahlee.org/PageTwo_dir/more.html
I
does anyone know why the Python mode in emacs uses spaces for first
level indentation but one tab for second level?
i'm using emacs 21.3.50.1.
Xah
[EMAIL PROTECTED]
http://xahlee.org/PageTwo_dir/more.html
--
http://mail.python.org/mailman/listinfo/python-list
Thomas> I assume you meant the python-mode project?
Whoops. Yeah. Thanks.
Skip
--
http://mail.python.org/mailman/listinfo/python-list
Thomas> How can I change the behaviour so that the cursor stays where it
> Thomas> was before? I'm using Revision 4.29, if it matters.
>
> I'd class this behavior as a bug. It's not fixed in the latest version.
> Can you file a bug report on SF <http://sf
Thomas> When I edit a Python script with XEmacs, then hit C-c C-c, the
Thomas> script is executed, the output is shown in a *Python Output*
Thomas> buffer, and the cursor is moved into this buffer.
Thomas> How can I change the behaviour so that the cursor stays where it
Thomas
When I edit a Python script with XEmacs, then hit C-c C-c, the script is
executed, the output is shown in a *Python Output* buffer, and the
cursor is moved into this buffer.
How can I change the behaviour so that the cursor stays where it was
before? I'm using Revision 4.29, if it matters.
Thank
88 matches
Mail list logo