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
>> 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
> 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
>>
>> # 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,
>>>
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
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
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
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
>>> 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
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
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
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
d by all our language analyzers,"
make me jumping ;-) Googlers can't be wrong.
Vladimir Ignatov
--
http://mail.python.org/mailman/listinfo/python-list
> 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
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
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
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
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
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
"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
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
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
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!
&
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
>> 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
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
26 matches
Mail list logo