Network Simulator
Hello everyone. I plan on starting to write a network simulator on python for testing a modified version of TCP. I am wondering if a python network simulator exists? Also, if anyone tried using simpy for doing a simulation. Thank you -- http://mail.python.org/mailman/listinfo/python-list
networking simulator on python
Hello everyone. I plan on starting to write a network simulator on python for testing a modified version of TCP. I am wondering if a python network simulator exists? Also, if anyone tried using simpy for doing a simulation. Thank you -- http://mail.python.org/mailman/listinfo/python-list
ODE, GUI, plotter in Python
Hello everyone. I am starting on implementing a simulator using python, and since it's the first time I code in python would appreciate a few pointers: The simulator will use a coupled ODE for the most part of the simulation, I plan to use scipy. (Anything considered faster/better than scipy for solving coupled ODEs? ) I plan for a GUI program with network graph plotting. I am leaning towards using Qt for the GUI (internet forums seem to recommend it, anyone got other preferences? ) Since the GUI application will contain few buttons and a plot, I am planning to implement matplotlib into the GUI. But does anyone know if matplotlib allows for interaction with the graph plot? (say for a network simulation, allowing to right click on nodes and disable them for instance, or alter some other properties of nodes and/or links across them). I am just starting out, hence I'd rather get some advice and experiment a bit for my self as I go along. Thank you. -- http://mail.python.org/mailman/listinfo/python-list
Ubigraph vs Matplotlib (dynamic plotting, event handling)
Hello everyone, I intend to use python for some network graph plotting, with event handling (clicking on network nodes, zooming in/out etc..) and so far I have come across two good candidates which are Matplotlib and Ubigraph. Did anyone have any experience with either of them for dynamic plotting (a slider bar on a Qt interface causing the graph to be replotted for each value for example), as well as event handling? (it seems on first notice that Ubigraph will have an upperhand on that), as well as event handling such as mouse clicks? (on this one Matplotlib has good documentation showing it does achieve that while I find ubigraph's documentation lacking, but I'd preffere to have the opinion of those who have used them before). Thank you. -- http://mail.python.org/mailman/listinfo/python-list
Re: [perl-python] 20050116 defining a function
Xah Lee wrote: © my $n= @_[0]; Do you ever test your code before making fun of yourself in front of millions? *plonk* --Ala -- http://mail.python.org/mailman/listinfo/python-list
Re: 20050126 find replace strings in file
[EMAIL PROTECTED] wrote: Xah Lee wrote: close(F1) or die "Perl fucked up. Reason: $!"; close(F2) or die "Perl fucked up. Reason: $!"; Same here. Never seen Perl fuck up on closing a file. Usually something in the OS or file system that does it. In this case, I'm pretty sure it's the user. --Ala -- http://mail.python.org/mailman/listinfo/python-list
Re: python vs perl lines of code
Edward Elliott wrote:
> John Bokma wrote:
>>
>>Without seeing the actual code this is quite meaningless.
>
>
> Evaluating my experiences yes, relating your own no.
Well, quality of code is directly related to its author. Without knowing
the author personally, or at least seeing the code, your anecdote
doesn't really mean anything.
A colleague of mine, who is efficient at programming, and pretty decent
at Perl, routinely does something like:
if ($var =~ /something and something else/) {
$var =~ /(something) and (something else)/;
my $match1 = $1;
my $match2 = $2;
...
}
Needless to say, this adds a lot of unnecessary redundancy, which will
go towards increasing your character count. Being an avid Perl Golfer
(although not one of the best) I can almost guarantee that any python
code can be written more succinctly in Perl, although readability will
suffer. Plus, the extensibility argument is very subjective, and is
closely related to personal coding style.
Btw, do you include space chars that go toward indentating Python code
in your count? If not, you should since they are required. Not so for Perl.
--Ala
--
http://mail.python.org/mailman/listinfo/python-list
