Emacs or xemacs for python[Solved]

I have decided to learn emacs, so I want to know which one should I install for python coding. And if the choice is xemacs the which addetional package should i install xemacs-sumo or xemacs-all-packages.
Last edited by jaideep_jdof (2009-09-25 06:09:47)

There are /two/ python plugins. On "official" emacs-plugin (bundled with Emacs) and one distributed by Python. They cannot be merge since whoever wrote the Python-Python mode didn't want to publish it under GPL or something like that (there is a long thread about it somewhere on usenet).
To summarize:
pyhton.el is included in emacs 23.
python-mode.el can be obtained from:
https://launchpad.net/python-mode
Or you could install emacs-python-mode from [community]
--Rasmus

Similar Messages

  • [Solved] Write a --help for Python program.

    Hello.
    I write programs in Python and I don't know one thing.
    How to write --help command for python program (like calc.py --help).
    And after this command you will see help.
    Anyone know how to do something like that?
    Thanks
    Last edited by SpeedVin (2009-09-26 16:53:14)

    genisis300 wrote:
    you need to use a module called option parser
    http://www.alexonlinux.com/pythons-optp … man-beings
    if you still need help let me know and i post an example.
    Regards
    Matthew
    Thanks that awesome!.
    But I added some arguments and when I try to run program I got:
    File "calculator.py", line 7
    (opts, args) = parser.parse_args()
    ^
    SyntaxError: invalid syntax
    Here is my code:
    1 #!/usr/bin/env python
    2 # -*- coding: utf-8 -*-
    3 import optparse
    4 parser = optparse.OptionParser()
    5 parser.add_option('-h', '--help', help='Show this help message'
    6
    7 (opts, args) = parser.parse_args()
    8 #
    9 #def help():
    10 # print "+ = plus"
    11 # print "- = minus"
    12 # print "* = multiplication"
    13 # print "/ = division"
    14 # print "// = floor division"
    15 # End of function.
    16 print "If you need help just write --help or -h."
    17 number1 = int(raw_input('Write a number: '))
    18 number2 = int(raw_input('Write a number nr.2: '))
    19 znak = raw_input('What to do?')
    20 if znak == '+':
    21 print number1 + number2
    22 elif znak == '-':
    23 print number1 - number2
    24 elif znak == '*':
    25 print number1 * number2
    26 elif znak == '/':
    27 print number1 / number2
    28 elif znak == '**':
    29 print number1 ** number2
    30 elif znak == '//':
    31 print number1 // number2
    32 else:
    33 print "I don't know what to do with " + znak
    34 #if raw_input() == help:
    35 # help()
    Last edited by SpeedVin (2009-09-26 09:40:26)

  • SQL Server module for Python

    Hi,
    I was wondering if there is a module for Python (3.4) to connect Django to SQL Server (Azure).
    Any help will be appreciated.
    Thank you,
    Ricardo

    Hello,
    Please try the following resources.
    http://code.google.com/p/django-mssql/
    http://code.google.com/p/django-pyodbc/
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Why is there not more support from VMware for Sprng 1.2 for Python

    It would seem that VMware/Pivotal would support the framework that was created for Python. What happened?

    If you want support from Apple you need to contact them by phone or visit a store.
    If you are still under warranty, that would be the best thing to do anyway.
    There are no Apple techs here on these forums. Apart from the hosts who manage the site, all the people posting here are volunteers; users, the same as you.
    The quality of the advice varies, and considering it costs nothing, I'd argue it is good value, but one should be prudent and not believe everything that is said, though you could also apply the same to life in general.
    This site is more extensive than many realize and finding the right place to post your problem can help enormously, as people tend to hang in the forums that they know most about.
    Here is a link to the site map to explore.
    http://www.apple.com/support/sitemap/
    Remember you can always contact an Apple store for professional help.

  • [Python] Building Extensions for Python in C

    I'm learning some of the more advanced features of Python (using 2.7 from repos), and one feature I want to learn is building extensions in C, but not many reliable tutorials exist online.  They are either outdated, or irrelevant (serving as ads for books).  The official documentation is very confusing as well; read it a few times and am still lost.  Is Python.h installed already with Arch, or is there a specifically needed package?  Must I do a custom build of python?

    Yannick_LM wrote:
    Just to be sure, by "official", you mean this doc:
    http://docs.python.org/extending/extending.html ?
    I personally found it quite clear :)
    You can still fall back to using swig if you don't mind trusting auto-generated code:
    http://www.swig.org/tutorial.html
    Exactly the documentation I was talking about.  I considered it official as it was hosted on their site along with all of the documentation for Python.  I'll go back and reread it a little more carefully, maybe give it a few days to "soak in."  Also, with SWIG (haven't looked just yet), is this a recommended option for an extension development system?  Auto-generated code always seems to be a big hit-or-miss, and I don't want to spend time learning how to use it if it's buggy.
    >> Is Python.h installed already with Arch ?
    Yes:
    /usr/include/python3.1/Python.h
    I am running Python 2.7, but after a quick look, I see it's in the same location.
    >> Must I do a custom build of python?
    I don't think that's necessary.
    Thank goodness.  I was afraid of the time it might have taken to do this.  Thank you for your help so far, Yannick; it really pushed me forward.

  • How to import SDK for python?

    Hi!
    I want to use the eBay SDK for python.
    How can i install the sdk?
    I'm ussing in VS2013.
    tnx.

    Hi Ori_H,
    Thank you for posting in the MSDN forum.
    Reference:
    http://developer.ebay.com/devzone/windowssdk/docs/getting%20started/GettingStartedGuide.html
    Based on the above link, it seems that the eBay SDK is the third party product, am I right? If so, actually it is out of support range of VS general forum.
    I did some research and found some information here:
    https://forums.developer.ebay.com/questions/8157/visual-studio-2010-not-compatible-with-ebay-sdk.html
    https://go.developer.ebay.com/developers/ebay/documentation-tools/sdks/dotnet
    It seems that it would be related to the real version, to help you resolve this issue, my suggestion is that you could discuss this issue with the eBay Developer Support experts, so we could know that whether it supports the VS2013 or which version you would
    install. I suggestion you post this issue to the eBay forum.
    The forum link:
    https://forums.developer.ebay.com/spaces/14/ebay-apis-net-sdk-for-trading-api.html
    Note: This response contains a reference to third party World Wide Web sites. Microsoft is providing this information as a convenience to you.
    Microsoft does not control these sites and has not tested any software or information found on these sites;
    Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Eric3 IDE for python

    Anybody here use eric3 IDE for python? I'm getting an install proble with the arch package: line 16 in ? from qt import QTextCodec, SIGNAL, SLOT, qApp; importerror: /usr/lib/python2.4/site-packages/qt.so:underined symbol: _ZN12QProgressBarD2Ev.

    Dusty wrote:
    Yeah, but the original question referred to eric3.
    Dusty
    yeah but we didnt have answers, so we did our best.

  • [SOLVED] Symbolic links for python (v2) modules

    I was blind, sry
    To solve the issue:
    https://code.google.com/p/git-repo/issues/detail?id=168
    rm ~/.repopickle_.gitconfig
    Didn't work before for me as I made a dumb fail...
    Hello,
    I tried to understand and follow the wiki (https://wiki.archlinux.org/index.php/an … nvironment) about building Android as good as I could.
    Everything works till the part with setting the virtualenv2 for using python 2 (python -V gives v2.7.9 back). I understood everything till there, and even after that. Sadly it still doesn't work
    The first problem accuring is that when issueing
    ln -s /usr/lib/python2.7/* /Data/Android_Build/venv/lib/python2.7/
    I get "file exists" for every existing file. Is that wanted as it only should "add" modules not being in 'android/venv/lib/python-2.7/' ? After that I tried issueing 'repo init -u' but sadly this just gives me a python error.
    $ repo init -u https://github.com/CyanogenMod/android.git -b cm-12.0
    Traceback (most recent call last):
    File "/home/leonard/android/system/.repo/repo/main.py", line 500, in <module>
    _Main(sys.argv[1:])
    File "/home/leonard/android/system/.repo/repo/main.py", line 476, in _Main
    result = repo._Run(argv) or 0
    File "/home/leonard/android/system/.repo/repo/main.py", line 155, in _Run
    result = cmd.Execute(copts, cargs)
    File "/home/leonard/android/system/.repo/repo/subcmds/init.py", line 390, in Execute
    self._SyncManifest(opt)
    File "/home/leonard/android/system/.repo/repo/subcmds/init.py", line 149, in _SyncManifest
    print('Get %s' % GitConfig.ForUser().UrlInsteadOf(opt.manifest_url),
    File "/home/leonard/android/system/.repo/repo/git_config.py", line 219, in UrlInsteadOf
    for new_url in self.GetSubSections('url'):
    File "/home/leonard/android/system/.repo/repo/git_config.py", line 206, in GetSubSections
    return self._sections.get(section, set())
    File "/home/leonard/android/system/.repo/repo/git_config.py", line 230, in _sections
    for name in self._cache.keys():
    File "/home/leonard/android/system/.repo/repo/git_config.py", line 247, in _cache
    self._cache_dict = self._Read()
    File "/home/leonard/android/system/.repo/repo/git_config.py", line 251, in _Read
    d = self._ReadPickle()
    File "/home/leonard/android/system/.repo/repo/git_config.py", line 269, in _ReadPickle
    return pickle.load(fd)
    File "/home/leonard/android/venv/lib/python2.7/pickle.py", line 1378, in load
    return Unpickler(file).load()
    File "/home/leonard/android/venv/lib/python2.7/pickle.py", line 858, in load
    dispatch[key](self)
    File "/home/leonard/android/venv/lib/python2.7/pickle.py", line 886, in load_proto
    raise ValueError, "unsupported pickle protocol: %d" % proto
    ValueError: unsupported pickle protocol: 4
    Last edited by LeonardK (2015-01-03 17:40:18)

    Yes! You are right. Now, this sounds so familiar. I vaguely remember doing this when I originally installed Arch on this laptop, but I must have done it as part of the "beginners guide" procedure. I guess this explains it:
    https://wiki.archlinux.org/index.php?ti … did=168068
    Now, I take it from this that I safely remove ALL the symlinks from my rc.local?
    rc.local:
    ln -s /dev/sr0 /dev/cdrom
    ln -s /dev/sr0 /dev/cdrw
    ln -s /dev/sr0 /dev/dvd
    ln -s /dev/sr0 /dev/dvdrw

  • Looking for very simple drawing app for tablet [Solved]

    Hey,
    Im running Arch with XFCE on an Asus T91MT tablet/netbook, with a resistive screen & pen.
    I'm looking for a very basic, lightweight, tablet-oriented drawing/sketching/doodling app, to make notes, draw ideas/concepts, etc.
    I've tried MyPaint, which doesn't work because the screen isn't pressure sensitive (I would only need one pen size anyway), and a few other apps.
    SmoothDraw (windows app) is exactly what i'm looking for, but it doesn't install on wine. And wine doesn't help with the "keeping it light" idea, so I would prefer something native.
    Any suggestion is welcome!
    Last edited by Feroxium (2011-07-29 01:13:00)

    Feroxium wrote:Yup, solved
    umm...yeah, edit the first post in this thread and append [SOLVED] to the thread subject/title.
    That way others looking for similar info, might be able to quickly gauge if a solution is available in the thread or not.

  • Does eMac support iTunes7 for iPhone?

    Since loading ios6 for iPhone it no longer connects to iTunes and I can't download iTunes 7 to my eMac. Is there a solution other than a new mac?

    iTunes 10.7 requires an Intel-based Mac. If your eMac is running Mac OS X 10.5.8, though, you can try iTunes 10.6.3:
    http://support.apple.com/kb/DL1575
    That's worked for some people who updated their iOS device to iOS 6. If not, then you'll need a newer Mac or Windows system.
    Regards.

  • Is there a limit on the size of the input for the Solve Linear Equations block?

    Hello,
    I'm trying to figure out why the Solve Linear Equations block will properly function with some sets of data and why it won't with others. What my program is doing is taking a signal and comparing it with a batch of sine and cosine waves to try and pick out patterns in the data. I have different sample sizes and it seems to work when I throw 3900 points at it. However, I have another set with 4550 points and it gives me incorrect amplitudes for my sinusoids.  Is there some limit to the size of the matrices that I can give this block? Or is there some other workaround that still allows me to keep all of my data?
    Thanks,
    David Joseph

    Well, the best way to show what I expect is to see the entire program. It's pretty evident that when looking at the graphs, something isn't right. What is supposed to happen is that the runout amplitudes are found, and then those sinusoids are subtracted from the initial data, leaving tooth to tooth data and noise. When I use the larger arrays, it seems as though not all of the data gets through (count the peaks on the product gear runout graph vs. initial) and the amplitudes are much to small, such that nothing is really taken out and the tooth to tooth data looks like the initial data.
    Also, we will also be using an FFT, but it will be limited to only determining the frequencies we should check. I've fought with the fft blocks quite a bit and I just prefer to not use them. Plus, the guy I'm writing this for wants exact answers and does not want to pad or resample the data or use windows.
    The exact number of data points isn't important (ie. 4550 vs 4551) since I use the array size block to index the for loop.
    As for typical values, they can change a lot based on materials. But, the original 3900 data point sets and the 4550 data point sets used practically identical gears. So, use the original 3900 sets I've included as references (check the RO array block numbers to compare).
    I've included 3 3900 samples, 3 4550 samples, and 3 4550 samples that have been truncated to 3900 or so as constants on the block diagram.
    Also, the check for additional runouts (like 3 per rev, 4 per rev, etc..) is optional, but if you choose to use it, use positive integers only.
    I don't know how much of this program will make sense and I have wires running everywhere.. so good luck. Keep in mind I'm only a student and I hadn't touched Labview until about 2 or 3 months ago.
    Thanks,
    David Joseph
    Attachments:
    Full example.vi ‏139 KB

  • EMac as monitor for laptop

    Does anyone know if it's possible to use an eMac as a second monitor for a Powerbook? I'm running one of the new 15" G4 Powerbooks, and would love to put my largely unused eMac to better use.

    Take a look at the post immediately below yours (at this moment, anyway): Will Woodgate, "eMac as a PC monitor?", 01:07pm Oct 31, 2005 CDT
    (Substitute the Mac software OSXvnc for the PC software UltraVNC. The UltraVNC FAQs remain valuable, through.)

  • Imac or emac to choose for next mac

    Hey everyone , I'm going to be looking for a newer mac soon and I have been looking on ebay a lot and cost wise an emac (700-1 ghz ) isn't much more and sometimes the same cost as a imac 500-700mhz) I'm looking and other than the speed differance wich would be a better buy . I love my imac and I don't realy play many games other than what you get on the web , but I see I need something ,more powerful when I watch Utube on my wifes 400 imac and it is seemless but mine choppy also needing DV ports for my camcorder .Need input on anything inherit with the emac I should look out for or would sticking with the trusty imac be better . Thanks

    "...kinda like the differance between a 49 Mercury and a 05 Mustang both look stunning in their own way and both will do the same thing only the Mustang will get you their faster but the Mercury get's you their with style."
    I like that analogy! Another good reason to keep my Blueberry iMac running, plus it makes a really cool alarm clock. I set the energy saver to turn on when I want to wake up and awake to the "bong".

  • Oracle workshop plugin for python?

    I am currently using oracle workshop for weblogic 10.3. Is there a python plugin available for this IDE?
    I tried pydev but it doesn't seem to be working in this IDE.

    Hello Shoaib,
    Didu find plugin and were u able to configure and deploy your application from JbuilderX?
    If you have then please let me know steps u have followed as I am facing few problems starting app server from jbuilder.
    I m getting these errors.
    04/10/20 13:47:54 Warning: Error reading transaction-log file (/C:/oracleas/j2ee/home/persistence/transaction.state) for recovery: premature end of file
    04/10/20 13:47:54 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    04/10/20 13:47:54 Recovery completed, 0 connections committed and 0 rolled back...
    If u did not find one, then you can find plugin for oracle 10g AS in borland web site.
    Sartiha

  • Less/more module for python?

    I've been searching for the longest time to find a python module that behaves like less or more with no luck. Even if I was able to harness the viewer from help() would be great but I can't figure out where that thing is on my system.
    Any ideas?

    From pydoc.py:
    pipepager and tempfilepager are constructed by passing os.environ['PAGER'] as the second arg.
    def pipepager(text, cmd):
    """Page through text by feeding it to another program."""
    pipe = os.popen(cmd, 'w')
    try:
    pipe.write(text)
    pipe.close()
    except IOError:
    pass # Ignore broken pipes caused by quitting the pager program.
    def tempfilepager(text, cmd):
    """Page through text by invoking a program on a temporary file."""
    import tempfile
    filename = tempfile.mktemp()
    file = open(filename, 'w')
    file.write(text)
    file.close()
    try:
    os.system(cmd + ' ' + filename)
    finally:
    os.unlink(filename)
    def ttypager(text):
    """Page through text on a text terminal."""
    lines = split(plain(text), 'n')
    try:
    import tty
    fd = sys.stdin.fileno()
    old = tty.tcgetattr(fd)
    tty.setcbreak(fd)
    getchar = lambda: sys.stdin.read(1)
    except (ImportError, AttributeError):
    tty = None
    getchar = lambda: sys.stdin.readline()[:-1][:1]
    try:
    r = inc = os.environ.get('LINES', 25) - 1
    sys.stdout.write(join(lines[:inc], 'n') + 'n')
    while lines[r:]:
    sys.stdout.write('-- more --')
    sys.stdout.flush()
    c = getchar()
    if c in ['q', 'Q']:
    sys.stdout.write('r r')
    break
    elif c in ['r', 'n']:
    sys.stdout.write('r r' + lines[r] + 'n')
    r = r + 1
    continue
    if c in ['b', 'B', 'x1b']:
    r = r - inc - inc
    if r < 0: r = 0
    sys.stdout.write('n' + join(lines[r:r+inc], 'n') + 'n')
    r = r + inc
    finally:
    if tty:
    tty.tcsetattr(fd, tty.TCSAFLUSH, old)
    def plainpager(text):
    """Simply print unformatted text. This is the ultimate fallback."""
    sys.stdout.write(plain(text))

Maybe you are looking for

  • I tried updating phone..now stuck..

    Ok so I plugged my phone into my computer..it synced fine..then it went to install new 2.1 update...Now it just flashing a screen with a picture of Itunes picture and USB driver..basicallyy telling me to plug into ITunes...well now my computer will n

  • Mail Not Saving Toolbar Configuration Changes

    After recovering my mail by deleting the Mail Data Envelope Index files, any changes that I make to Mail's Toolbar do not save. I can make the changes (add the printer icon, etc.). Close the Message Viewer window. Open it again. Then they are there i

  • IPad 2 hdmi connector problem

    Just bought a hdmi connector tonight with the intention of watching Netflix.  Video works great.  However,  the audio is not working.  Static is so bad I can't hear anything.  Is there a problem with my setting or is my iPad defective???

  • Firefox is Opening each new window in new tab even though I have this option turned off

    Firefox 6.0.2 on Windows 7. Under the '''Tools''' menu,''' Options''', '''Tabs''' "tab", I have "''open a new window in a new tab instead''" '''not''' checked. But, I am opening tabs galore. It is very frustrating. How do I get Firefox to navigate to

  • To show data( List of valueObjects   ,each vo contains List)using jsp tags

    I have set List in request attribute. List has value Object Class Objects. each value object contains get/set methods which get and set List of Strings and other get/set return and set Strings like: List getvaluesList() setValuesList(List list) Strin