Re: Strong typing implementation for Python

2015-10-11 Thread Vladimir Ignatov
Hi, > You might like to investigate Boo, which is a .NET-based > language with a Python-like syntax: AFAIK Unity just dropped Boo support from version 5.0 because virtually nobody used it. Those little known niche languages are destined to extinct. Interesting language is Apple's Swift. While it

Re: Python handles globals badly.

2015-09-08 Thread Vladimir Ignatov
>> I had some experience programming in Lua and I'd say - that language >> is bad example to follow. >> Indexes start with 1 (I am not kidding) > > What is so bad about that? It's different from the rest 99.9% of languages for no particular reason. ( => perfect example of "design smell" => not a

Re: Python handles globals badly.

2015-09-04 Thread Vladimir Ignatov
> To me, marking a variable as global in a large number of functions is > a code smell that indicates that you're probably overusing globals. > Lua is an example of a language that takes the opposite approach: in > Lua, every variable is global unless you explicitly mark it as local. > Lua is a fin

Fwd: Strange location for a comma

2015-09-03 Thread Vladimir Ignatov
>> >> # On appelle la fonction setup >> setup( >>name = "salut", >>version = "0.1", >>description = "Ce programme vous dit bonjour", >>executables = [Executable("salut.py")],# <--- HERE >> ) >> >> > > Ok its understood, it's a 1 element only tuple > > example: > A = 5, >>>

Re: Python handles globals badly.

2015-09-02 Thread Vladimir Ignatov
Hi, my 0.02 I don't personally use globals. And don't like "object oriented" code (my code more inclined toward "functional" style). But sometimes I feel like passing various minor values (like settings) all around app via regular parameters is just too much work. So I use "pseudo-global" object

Re: packing unpacking depends on order.

2015-09-02 Thread Vladimir Ignatov
b, a[b] = a[b], b Nice. If I ever notice that kind of code in our codebase I'll 1) check file history to find out the "author" 2) ask that guy to remove it immediately :-) Vladimir http://itunes.apple.com/us/app/python-code-samples/id1025613117 -- https://mail.python.org/mailman/listinf

Re: how to handle cpu cache in python ( or fastest way to call a function once)

2015-08-23 Thread Vladimir Ignatov
Hi, >> for i in range(100): #just to create a time interval, seems this disturb >> cpu cache? >> pass Python interpreter consumes memory quite extensively because "everything is object". So constructions like: range(100): _take_ memory. Additionally it will trigger garbage collec

Re: Old DbaseV DOS Programmer wants to step over to new/actual modern program software

2015-08-16 Thread Vladimir Ignatov
On Sun, Aug 16, 2015 at 1:11 PM, Rustom Mody wrote: >> I have some ideas in mind like Java with (ECLIPS) because it is very >> popular, it is the most widely used and can get tutorials and videos all >> over the internet. >> I've read a lot of good things about Python, that it is much easier bu

Re: looking for standard/builtin dict-like data object

2015-08-11 Thread Vladimir Ignatov
>>> I also thought the stdlib had some kind of "namespace" class with this >>> kind >>> of API, but I can't find it now:-( >> >> >> It does - types.SimpleNamespace(). It accepts keyword arguments, and >> will let you create more attributes on the fly (unlike a namedtuple). > > > Yes, that's it. Tha

looking for standard/builtin dict-like data object

2015-08-10 Thread Vladimir Ignatov
Hi, In my code I often use my own home-brewed object for passing bunch of data between functions. Something like: class Data(object): def __init__ (self, **kwargs): self.__dict__ = kwargs return Data(attr1=..., attr2=..., attr3=...) Logically it works like plain dictionary bu

Re: Tools for refactoring/obfuscation

2012-03-26 Thread Vladimir Ignatov
at nobody answers. I think that such tool is nearly impossible given the dynamic Python's nature. But if you put little discipline/restrictions in your source code, when doing obfuscation could be much more easier. Almost trivial I would say. Javier, you can contact me directly if you are in

Re: PyCharm

2010-10-14 Thread Vladimir Ignatov
I don't see a way how a "perfect" refactoring can be done even in a theory. PyDev tends to do the very same things. Okay, at least that saves me $199. Not bad. Vladimir Ignatov -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-04 Thread Vladimir Ignatov
d by all our language analyzers," make me jumping ;-) Googlers can't be wrong. Vladimir Ignatov -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-04 Thread Vladimir Ignatov
> That is partially why I created this search engine for python, to see > what parameters other people feed in. > http://nullege.com/ Thank you for excellent effort! I found it very useful and start using it on almost everyday basis. It's much simple to learn from real live examp

Re: Dreaming of new generation IDE

2010-02-03 Thread Vladimir Ignatov
it > does :-) I believe it still live under the hood of PyDev plugin. I use it almost every day and need to say that it don't provide much more than simple renaming (which works right in 80% of cases in recent version). Vladimir Ignatov -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-03 Thread Vladimir Ignatov
nerates code out of this internal data. Yes, it is imaginable system, I don't have any working prototype yet. But about to start making it. For prototype I choose python 2.x as implementation language, sqlite as internal database and Django as UI. Vladimir Ignatov -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-03 Thread Vladimir Ignatov
bjects this object/function interacts with? Popular functions, dead/unused functions. 4) Code smell detector - too long functions, too much interaction with other objects, global objects, etc. ... Vladimir Ignatov -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-03 Thread Vladimir Ignatov
med method? How will IDE "classify" calls and renames only some of calls and not others? Vladimir Ignatov -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-03 Thread Vladimir Ignatov
No, I think about more "classic" text view. But back-ended with "smart" underlying system - not just obvious "text". Vladimir Ignatov -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-03 Thread Vladimir Ignatov
"understands" that are you doing (typing) on. So your types goes in "datastore" first and then renders back as a text representation. Something like this. Vladimir Ignatov -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-03 Thread Vladimir Ignatov
benefits (easy refactoring for example). As with your example with "parameter x", some additional information can be "attached" to this paramer. Later it can be used during code-generation phase and placed as "comment" in source code or placed in popup tag in html-style presentation. Vladimir Ignatov -- http://mail.python.org/mailman/listinfo/python-list

Dreaming of new generation IDE

2010-02-03 Thread Vladimir Ignatov
interesting it that soft of stuff, I would like to talk and discuss this system. Vladimir Ignatov -- http://mail.python.org/mailman/listinfo/python-list

Re: A beginner question about GUI use and development

2009-11-13 Thread Vladimir Ignatov
starters I would recommend to try a PyQT first (IMHO good commercial background/support is a big plus for any open-source project). Another option (my person choise so far) is to switch to web-based interface. My personal choice - web based interface using Django. Vladimir Ignatov >> Hi! &

Re: Help resolve a syntax error on 'as' keyword (python 2.5)

2009-11-03 Thread Vladimir Ignatov
Hi, "except Exception as variable" is a new python-3 syntax. You should use "except Exception, variable" syntax in 2.x series. Vladimir Ignatov On Tue, Nov 3, 2009 at 4:06 PM, Oltmans wrote: > Hi, all. All I'm trying to do is to print the error message using t

Re: Business issues regarding adapting Python

2009-09-30 Thread Vladimir Ignatov
>> Python-related programming job. Positions both very rare (comparing >> with Java/C++ - maybe 1/100) and not pays well. And about 99% of them >> are web+Django. > > To who/what are you replying? Nope. Just a replic. BTW I agreed - just peek a good programmers and let them learn python. Literally

Re: Business issues regarding adapting Python

2009-09-28 Thread Vladimir Ignatov
Ha-ha-ha (sorry, can't resist). Here is at Moscow/Russia I have had a tought time finding a Python-related programming job. Positions both very rare (comparing with Java/C++ - maybe 1/100) and not pays well. And about 99% of them are web+Django. -- http://mail.python.org/mailman/listinfo/python-l