ANN: Dao Language v.0.9.6-beta is release!

2005-12-02 Thread Alexander Zatvornitskiy
Hello, [EMAIL PROTECTED] 28 nov 2005 at 02:48, [EMAIL PROTECTED] wrote: p> This is just to let you know that the lastest version Dao language is p> released. Please wrote "hello world" example for us, and some more simple examples which highlight major features of this language. I think, it is

Jargons of Info Tech industry

2005-08-25 Thread Alexander Zatvornitskiy
Привет Xah! 11 aug 2005 at 18:23, Xah Lee wrote: XL> Jargons of Info Tech industry XL> (A Love of Jargons) XL> Xah Lee, 2002 Feb XL> People in the computing field like to spur the use of spurious ...skipped... Look at this site for some info: http://lleo.aha.ru/na/en Alexander, [EMAIL PROT

eric3 question

2005-06-01 Thread Alexander Zatvornitskiy
Привет F.! 31 мая 2005 в 06:08, F. Petitjean в своем письме к All писал: >> I'am using eric3 IDE under win32 (snapshot 2005-04-10), and have a >> trouble. I use this code:print "enter q to quit, or smthing else >> to continue"while not sys.stdin.readline()=="q": >> smthing(else) FP>

eric3 question

2005-06-01 Thread Alexander Zatvornitskiy
Привет Magnus! 31 мая 2005 в 13:46, Magnus Lycka в своем письме к All писал: ML> The readline method includes the whole line, including the ML> linefeed character if you press q followed by ENTER. If you ML> change it to... ML> while not sys.stdin.readline()=="q\n": ps. I'am usually u

eric3 question

2005-05-30 Thread Alexander Zatvornitskiy
Hello All! I'am using eric3 IDE under win32 (snapshot 2005-04-10), and have a trouble. I use this code: print "enter q to quit, or smthing else to continue" while not sys.stdin.readline()=="q": smthing(else) I can't run this code to debug in eric3. The questions are - how to fix i

trouble with copy/deepcopy

2005-05-22 Thread Alexander Zatvornitskiy
Привет Mike! 17 мая 2005 в 16:38, Mike Meyer в своем письме к Alexander Zatvornitskiy писал: MM> Actually, it is shared - but only for reference. If you assign to it, MM> you'll create an instance variable of the same name. As Peter MM> explained, if you remove the instance varia

trouble with copy/deepcopy

2005-05-17 Thread Alexander Zatvornitskiy
Привет Marc! 16 мая 2005 в 22:18, Marc 'BlackJack' Rintsch в своем письме к All писал: MR> That clears only one dictionary at class level. Which is visible on MR> both instances. MR> class Distribution: MR> def __init__(self): MR> self.__gr_on_transp = dict() MR> self.

trouble with copy/deepcopy

2005-05-16 Thread Alexander Zatvornitskiy
Hello! I have trouble with copy/deepcopy. It seems, I just don't understand something. Please explain where things goes wrong and how to do it the right way. I have one class: class Distribution: __gr_on_transp=dict() __ostatok_m=dict() and so on And, I want to make full copy of it: d1=Dist

problem with recursion

2005-03-03 Thread Alexander Zatvornitskiy
Привет vegetax! 03 марта 2005 в 13:54, vegetax в своем письме к All писал: v> I need this in order to print a directory tree with htmlgen library v> which uses nested lists to represent trees. As you see from output of your code, you simply add items to the only list. Try this: v> def rec(f):

variable declaration

2005-02-09 Thread Alexander Zatvornitskiy
Hi, Steve! 07 feb 2005 at 17:51, Steve Holden wrote: >> information about variable S to the memory. I don't find big >> difference. By the way keyword "def" is as bad as "var", from your >> point of view? :) SH> If your colloquial English is good enough to understand the word SH> "bollocks" t

variable declaration

2005-02-09 Thread Alexander Zatvornitskiy
Hi, Elspeth! 09 feb 2005 at 14:44, Elspeth Thorne wrote: >> You may say: give better names for your variables! Ha, I'am often >> don't understand that they mean! They are written for me by an >> engineer! ET> Hang on, though - if you don't understand what you are programming, ET> then how can

graph visualisation

2005-02-08 Thread Alexander Zatvornitskiy
Hello, All! I need routines for visualization of graphs, like this for Matlab: === You can visualize an arbitrary graph (such as one learned using the structure learning routines) with Matlab code contributed by Ali Taylan Cemgil from the University of Nijmegen. For static BNs, call it as follows:

variable declaration

2005-02-08 Thread Alexander Zatvornitskiy
Hi, Peter! 05 feb 2005 at 15:28, Peter Otten wrote: >> variable names. You have to move the code into a function, though: $ >> cat epsilon.py ...skipped... $ pychecker epsilon.py epsilon.py:6: >> Local variable (epselon) not used Well, I can change it a little to >> pass this check. Just add

variable declaration

2005-02-07 Thread Alexander Zatvornitskiy
Привет Nick! 06 февраля 2005 в 02:54, Nick Coghlan в своем письме к Python List писал: NC> An alternate proposal, where the decision to request rebinding NC> semantics is made at the point of assignment: NC> epsilon = 0 NC> S = 0 NC> while epsilon < 10: NC>S .= S + epsilon NC>epsel

variable declaration

2005-02-07 Thread Alexander Zatvornitskiy
Привет Alex! 05 февраля 2005 в 17:00, Alex Martelli в своем письме к All писал: >> AM> The fact that in Python there are ONLY statements, NO >> AM> declarations, >> What is "global"? Statement? Ok, I fill lack of "var" statement:) AM> 'global' is an ugly wart, Ok, === def hi(): print "hel

variable declaration

2005-02-05 Thread Alexander Zatvornitskiy
Hi, Alex! 05 feb 2005 at 12:52, Alex Martelli wrote: >> declarations, another (this problem is common with C/C++) >> is: === print 1/2 0 === (I understand why it is so, but I don't like >> it anyway. Such behaviour also can cause some hard-to-find-bugs) AM> You're conflating a fundamental, cru

variable declaration

2005-02-05 Thread Alexander Zatvornitskiy
Hi, Alex! 31 jan 2005 at 13:46, Alex Martelli wrote: (sorry for the delay,my mail client don't highlight me your answer) AM> Since the lack of declarations is such a crucial design choice for AM> Python, then, given that you're convinced it's a very bad thing, I AM> suggest you give up Python

variable declaration

2005-02-05 Thread Alexander Zatvornitskiy
Привет Peter! 31 января 2005 в 09:09, Peter Otten в своем письме к All писал: PO> pychecker may help you find misspelled variable names. You have to PO> move the code into a function, though: PO> $ cat epsilon.py ...skipped... PO> $ pychecker epsilon.py PO> epsilon.py:6: Local variable (epse

variable declaration

2005-02-05 Thread Alexander Zatvornitskiy
Hi Paddy! 03 Feb 2005 at 21:58, Paddy McCarthy wrote: >> Explicit' keyword! May be, python also have such a feature, I just >> don't know about it? Alexander, [EMAIL PROTECTED] PM> Advocates always say Type Checking, but so often it seems like Type PM> Constriction. - To hell with it! PM> I d

dict indexed by lists - ?

2005-02-04 Thread Alexander Zatvornitskiy
Привет All! 04 февраля 2005 в 02:47, Alexander Zatvornitskiy в своем письме к All писал: AZ> I'am trying to make something like this: AZ> CPT={ ['b0','c0']:1, ['b0','c1']:0, ['b1','c0']:3, ['b1','c1']:

dict indexed by lists - ?

2005-02-03 Thread Alexander Zatvornitskiy
Hello All! I'am trying to make something like this: CPT={ ['b0','c0']:1, ['b0','c1']:0, ['b1','c0']:3, ['b1','c1']:1 } but python says "TypeError: list objects are unhashable" I can replace list with touple: CPT={ ('b0','c0'):1, ('b0','c1'):0, ...and so on. But, where is one problem: indexes (o

variable declaration

2005-01-30 Thread Alexander Zatvornitskiy
Hello All! I'am novice in python, and I find one very bad thing (from my point of view) in language. There is no keyword or syntax to declare variable, like 'var' in Pascal, or special syntax in C. It can cause very ugly errors,like this: epsilon=0 S=0 while epsilon<10: S=S+epsilon epselon=ep