[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2019-04-01 Thread Robert Marshall


Robert Marshall  added the comment:

The pull request is now ready for a review.

Apologies for the delay - took me a bit longer to circle back on this than I 
would have liked.

--

___
Python tracker 
<https://bugs.python.org/issue13501>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2019-02-27 Thread Robert Marshall


Robert Marshall  added the comment:

I have rebased this to recent master hash 53b9e1a1c1 and submitted a pull 
request.

It built in my CI environment, so seems to be OK as far as compiling.

I'll run the test suite against it later this evening when I have time to stand 
up a quick build enviroment with the full dependency list.

--
nosy: +Robert Marshall
pull_requests: +12095
Added file: 
https://bugs.python.org/file48175/0001-Build-or-disable-readline-module-with-Editline.patch

___
Python tracker 
<https://bugs.python.org/issue13501>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Python for IPSA (Power flow analysis)

2013-05-28 Thread Robert Marshall
On Tue, May 28 2013, Debbie dia.sus...@gmail.com wrote:

 Hi there, I am new to Python, and wondering if you could help me with
 python based coding for the IPSA (Power system analysis software). I
 have a electrical distribution network with generators, buses and
 loads, on which I am performing the load flow analysis every 1 hour
 for a period of 1 year.

 The code to perform instantaneous load/power flow analysis is given
 below. I need to modify it such that I can perform this load flow
 analysis every 1 hour for a period of 1 year. Please help.

 from ipsa import *

 ipsasys = IscInterface()
 net = ipsasys.ReadFile(refinery.iif)
 bok = net.DoLoadFlow();
 if bok:
 busbars = net.GetBusbars()
...
 for bus in busbars.itervalues():
 name = bus.GetName()
..
 else:
 print Load Flow failed!


I think Dave's suggestions are useful, a few years ago I was one of the
developers for the IPSA python API, I'm not sure how things have moved
on since then but you need somewhere to incorporate some time modelling
- at the moment I'm not sure how and if that was done. In any case I
doubt if the simulation would give rigourous results over a simulation
period of that length

Is what you really have  a set of iif files with current voltages over a
set of periods within that year, if so you need to iterate though those,
loading each one and doing individual load flows.

IPSA has a linkedin discussion group and current IPSA developers will I
think respond to you there (if you have an account)

Robert
-- 
La grenouille songe..dans son château d'eau
Links and things http://rmstar.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: OT: Text editors

2012-07-29 Thread Robert Marshall
On Sun, 29 Jul 2012, python.l...@tim.thechases.com wrote:

 On 07/29/12 05:28, Mark Lawrence wrote:
 On 29/07/2012 06:08, Ben Finney wrote:
 Tim Chase python.l...@tim.thechases.com writes:
 Learn one of Emacs or Vim well, and you won't need to worry
 about text editors again.
 
 Point taken, snag being I've never used any nix box in anger.
 This thread reminds of the good 'ole days when I were a lad using
 TPU on VMS. Have we got any VMS aficionados here?
 
 Though I'm personally far more vitriolic about VMS vs $OS (had a few
 souring experiences with VMS in college) than I am regarding Vim vs.
 Emacs, you can get Vim for at least OpenVMS:
 
 http://www.vim.org/download.php#others
 
 I presume sources compile fairly well on other flavors of VMS if
 needed, and I'd expect Emacs can do likewise[1]
 

I used to use tpu (used to have piles of tpu macros..) and I first got used
to emacs by using its tpu mode - I see that still exists so you can use
emacs and pretend it is really tpu!

Robert
-- 
La grenouille songe..dans son château d'eau
Links and things http://rmstar.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: your favorite debugging tool?

2009-08-25 Thread Robert Marshall
On 24 Aug 2009, Paul Rubin wrote:

 Esmail ebo...@hotmail.com writes:
 What is your favorite tool to help you debug your
 code? I've been getting along with 'print' statements
 but that is getting old and somewhat cumbersome.
 
 Beyond print statements, I use pdb a lot.  Winpdb (www.winpdb.org) is
 even better, but is kind of cumbersome to get working.

And you can run it (pdb) within emacs - though I find a little roughness
in working out the exact interactions keeps ending up (ie the source
buffer displayed) in the wrong stack frame - afaict

Robert
-- 
La grenouille songe..dans son château d'eau
Links and things http://rmstar.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Gmane's been quiet ...

2007-08-29 Thread Robert Marshall
On Wed, 29 Aug 2007, Steve Holden wrote:

 
 Lawrence Oluyede wrote:
 Grant Edwards [EMAIL PROTECTED] wrote:
 Posting that were made to mailing lists via gmane?

 That, I do not know

 Given that I have now read a reply to my post-via-gmane on gmane
 before seeing the original post appear there I shall assume they've
 been having some sort of issue.
 

See http://news.gmane.org/gmane.discuss for some discussion of this...

Robert
-- 
La grenouille songe..dans son château d'eau
Links and things http://rmstar.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: 2 new comment-like characters in Python to aid development?

2007-03-09 Thread Robert Marshall
On Fri, 09 Mar 2007, Bruno Desthuilliers wrote:

 
 Nick Craig-Wood a écrit :
 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  What if 2 new 'special' comment-like characters were added to
  Python?:


  1. The WIP (Work In Progress) comment:

 I use # FIXME for this purpose or /* FIXME */ in C etc.

 I have an emacs macro which shows it up in bright red / yellow text
 so it is easy to see
 
 ot
 Care to share this macro ?
 /ot

I have this

(cond (window-system
   (progn
 (font-lock-add-keywords 
'python-mode '((\\FIXME: .*$ 0 font-lock-warning-face prepend))

Robert
-- 
La grenouille songe..dans son château d'eau
Links and things http://rmstar.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: 2 new comment-like characters in Python to aid development?

2007-03-09 Thread Robert Marshall
On 09 Mar 2007, Matthew Woodcraft wrote:

 Bruno Desthuilliers  [EMAIL PROTECTED] wrote:
 Nick Craig-Wood a ecrit :
 I use # FIXME for this purpose or /* FIXME */ in C etc.

 I have an emacs macro which shows it up in bright red / yellow
 text so it is easy to see
 
 Thanks you both.
 
 For what it's worth, sufficiently recent versions of emacs
 python-mode have this built in.
 

Is this with xemacs python mode or have you downloaded python mode
separately from emacs?  I've got the latest emacs cvs (well a week
old) and it doesn't have it, or is it very,very recent?

Robert
-- 
La grenouille songe..dans son château d'eau
Links and things http://rmstar.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Determining when a file is an Open Office Document

2007-01-19 Thread Robert Marshall
On Fri, 19 Jan 2007, Steven D'Aprano wrote:

 On Fri, 19 Jan 2007 12:22:04 +1100, Ben Finney wrote:
 
 tubby [EMAIL PROTECTED] writes:
 
 Silly question, but here goes... what's a good way to determine
 when a file is an Open Office document? I could look at the file
 extension, but it seems there would be a better way.
 snip
 The Unix 'file' command determines the type of a file by its
 contents, not its name. This functionality is essentially a
 database of magic byte patterns mapping to file types,
 
 Ah, another lousy, unreliable way to make a definite statement about
 the actual contents of a file. Looking at magic bytes inside a file
 is hardly bullet-proof (although file seems to be moderately
 reliable in practice, at least under Linux).
 
 Simple example: is the file consisting of two bytes x09x0A meant
 to be a text file with a tab and a newline, or a binary file
 consisting of a single two-byte int? There's no way to tell just
 from the contents.  

And see for example the problem that development versions of emacs is
(were?) having with C files that started #define and were then treated
as graphics files!

http://thread.gmane.org/gmane.emacs.devel/64823/focus=65228


Robert
-- 
La grenouille songe..dans son château d'eau
Links and things http://rmstar.blogspot.com/
-- 
http://mail.python.org/mailman/listinfo/python-list