Re: Eclipse IDE printing values automatically

2014-01-29 Thread mick verdu
Thanks for reply. I am running file via ctrl+F11 and seeing output on pyDev Console. My code has got nested dictionaries, lists and tuples. What you want to see? -- https://mail.python.org/mailman/listinfo/python-list

Eclipse IDE printing values automatically

2014-01-28 Thread mick verdu
I am using Pydev 2.8 on Eclipse IDE. It is printing some values that haven't been printed with print command. How to deal with this problem? -- https://mail.python.org/mailman/listinfo/python-list

Re: Lists inside dictionary and how to look for particular value

2014-01-26 Thread mick verdu
ThanK you. It solved my problem. Can someone tell me how can i print particular value inside list of key. I know how to print J['PC2'][1] means will print IP. but I want the user to input some element and I will print element just before that element. e.g. if user inputs 192.168.0.2, program wil

Re: Lists inside dictionary and how to look for particular value

2014-01-26 Thread mick verdu
I have programming course and trying to learn things. This is of no human use. I am just following exercises. Just have to do steps as asked. -- https://mail.python.org/mailman/listinfo/python-list

Re: Lists inside dictionary and how to look for particular value

2014-01-26 Thread mick verdu
@Peter Otten: I have lists for keys. What I want is if host already exists it would overwrite otherwise add to database. And if host doesn't exist it will first add this host to database and then compare its IP with IPs of rest of hosts. If ip matches with any of the other hosts, it will delete

Lists inside dictionary and how to look for particular value

2014-01-26 Thread mick verdu
z={ 'PC2': ['02:02:02:02:02:02', '192.168.0.2', '200'], 'PC3': ['03:03:03:03:03:03', '192.168.0.3', '200'], 'PC1': ['01:01:01:01:01:01', '192.168.0.1', '200'] } My solution: z=raw_input("Enter Host, Mac, ip and time") t=z.split() t[0]=z[1:] for key in dic: if t[2] in dic[key]:

Re: python27.exe vs python2.7.exe ...

2010-09-14 Thread Trent Mick
x shortcuts. Also, this was a looong time ago (back when python 1.5, 1.6 and 2.0 were still relevant) so it could be there there *weren't* many of the typical (now) Linux "pythonX.Y" installed executables. Trent -- Trent Mick ActiveState -- http://mail.python.org/mailman/listinfo/python-list

Re: Accumulate function in python

2010-07-19 Thread Mick Krippendorf
[['a'], ['b'], ['f'], ['s'], ['c'], ['g']], max)) ['a', 'b', 'f', 's', 's', 's'] or: >>> data = [[0], [1], [2], [1], [1], [2], [3]] >>> print list(acc(data, lambda x: float(sum(x)) / float(len(x [0.0, 0.5, 1.0, 1.0, 1.0, 1.1667, 1.4285714285714286] Endless possibilities in an endless universe. Regards, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Code generator and visitor pattern

2010-07-18 Thread Mick Krippendorf
Mark Lawrence wrote: > On 17/07/2010 20:38, Mick Krippendorf wrote: >> >> If Java were *really* a multiple dispatch language, it wouldn't be >> necessary to repeat the accept-code for every subclass. Instead a single >> accept method in the base class would suffice

Re: Code generator and visitor pattern

2010-07-17 Thread Mick Krippendorf
...Node and the operation classes. It Encapsulates What Varies and helps to uphold the Open/Closed Principle, because to add new operations one does not need to touch the ...Node classes. It implements double dispatching in a single dispatch language. Regards, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Code generator and visitor pattern

2010-07-17 Thread Mick Krippendorf
were *really* a multiple dispatch language, it wouldn't be necessary to repeat the accept-code for every subclass. Instead a single accept method in the base class would suffice. In fact, with true multiple dispatch VP wouldn't even be needed. Regards, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Where is the help function defined?

2010-06-22 Thread Trent Mick
init_pathinfo', '_test', 'abs__file__', 'addbuilddir', 'addpackage', 'addsitedir', 'addsitepackages', 'aliasmbcs', 'execsitecustomize', 'main', 'makepath', 'os', 'removedup paths', 'setBEGINLIBPATH', 'setcopyright', 'setencoding', 'sethelper', 'setquit', 'sys'] >>> site.__file__ 'C:\\Python24\\lib\\site.pyc' >>> "site.py" (at least in the Python trunk) has this: def sethelper(): __builtin__.help = _Helper() Trent -- Trent Mick http://www.activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Jewish Pirates of the Caribbean

2010-06-18 Thread Mick
George Neuner DESERVES his FREEDOM OF SPEECH. Freedom of speech dousn't guarantee an audience -- http://mail.python.org/mailman/listinfo/python-list

ANN: Komodo 6.0.0b1 -- adds Python 3 support

2010-06-11 Thread Trent Mick
ive us your feedback: emailhttp://listserv.activestate.com/mailman/listinfo/komodo-beta bugs http://bugs.activestate.com/enter_bug.cgi?product=Komodo forumhttp://community.activestate.com/products/Komodo Cheers, Trent -- Trent Mick Product Manager, Komodo and Python ActiveState

Re: ActiveState using different MS runtime files than official Python release? (was Re: Movable Python or ActivePython)

2010-05-06 Thread Trent Mick
.DLL in your ZIP release. I do see a MSVCR71.DLL. That is probably a bug in the ZIP package (the MSI is by far the primary package for Windows so gets more attention). I've started a bug for this: http://bugs.activestate.com/show_bug.cgi?id=86794 Thanks, Trent -- Trent Mick trentm at act

Re: ActiveState using different MS runtime files than official Python release? (was Re: Movable Python or ActivePython)

2010-05-05 Thread Trent Mick
used by the included PyWin32 extensions that have Python bindings for the Microsoft Foundation Classes GUI APIs. Trent -- Trent Mick trentm at activestate.com http://trentm.com/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Basic list/dictionary question

2009-11-11 Thread Mick Krippendorf
warning, but yes, it is useful sometimes. Here's a less error-prone version: >>> def bar(): ... def foo(z, a=[]): ... a.append(z) ... return a ... return foo ... >>> f = bar() >>> f(1) [1] >>> f(2) [1, 2] >>> g = bar() >>> g(3) [3] >>> g(4) [3, 4] Regards, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: list vs tuple for a dict key- why aren't both hashable?

2009-11-08 Thread Mick Krippendorf
teaches a lesson on how to implement __eq__ and __hash__, if you must. Just make sure your objects always do uphold the law above, and do not change in respect to __hash__ during their lifetime. OTOH it is possible to do otherwise, as long as you don't try to use these objects as elements of a set or keys in a dictionary. But then, why would you bother to implement your own __hash__ method? Regards, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: How convert string '1e7' to an integer?

2009-11-08 Thread Mick Krippendorf
gt; (27, 1114), (28, 1183), (29, 1254), (30, 1327), (31, 1402), (32, > 1479), (33, 1558), (34, 1639), (35, 1722), (36, 1807)] >>>> ([base, int('1e7', base=base)] for base in range(15,37)) > Because the former is a list comprehension, whereas the latter is a generator expr

Re: How convert string '1e7' to an integer?

2009-11-07 Thread Mick Krippendorf
Peng Yu wrote: > It seems that int() does not convert '1e7'. It seems it does, though: >>> int('1e7', base=16) 487 Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: list comprehension problem

2009-11-01 Thread Mick Krippendorf
Steven D'Aprano wrote: > On Sun, 01 Nov 2009 21:32:15 +0100, Mick Krippendorf wrote: >> >> (Ax)(x is a fire-breathing animal <-> x is a real number equal to >> sqrt(-1)). >> >> And since there are neither such things, it follows that s1 = s2. > >

Re: list comprehension problem

2009-11-01 Thread Mick Krippendorf
= b := (AabP)(Pa <-> Pb) AKA the Leibniz-Principle, but this definition is 2nd order logic. If we have sets at our disposal when we're axiomatisizing mathematics, we can also define it 1st-orderly: a = b := (Aabc)((a e c) <-> (b e c)) Regargs, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Feedback wanted on programming introduction (Python in Windows)

2009-10-29 Thread Trent Mick
Python 3 installers. They've had them almost since the day it was released. It's just not the default because many of the libraries people use haven't been ported yet. https://www.activestate.com/activepython/downloads/ Also: http://www.activestate.com/activepython/python3

Re: Aaaargh! "global name 'eggz' is not defined"

2009-10-29 Thread Mick Krippendorf
kj wrote: > How can one check that a Python script is lexically correct? By using pylint. Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: __eq__() inconvenience when subclassing set

2009-10-29 Thread Mick Krippendorf
Jess Austin wrote: > That's nice, but it means that everyone who imports my class will have > to import the monkeypatch of frozenset, as well. I'm not sure I want > that. More ruby than python, ne? I thought it was only a toy class? Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: __eq__() inconvenience when subclassing set

2009-10-28 Thread Mick Krippendorf
print "called %s.__eq__()" % self.__class__ if isinstance(other, (set, frozenset)): return True return super(eqmixin, self).__eq__(other) class set(eqmixin, set): pass class frozenset(eqmixin, frozenset): pass class MySet(set): pass Re

Re: What IDE has good git and python support?

2009-10-27 Thread Mick Krippendorf
Aweks schrieb: > what do you use? Either of the following: -> Vim + Eclim + Rope + pylint + PyDev + Eclipse + cygwin + WindowsXP -> Vim + Linux Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is __mul__ sufficient for operator '*'?

2009-10-25 Thread Mick Krippendorf
unchanged, whereas in the above code "inherited" methods are changed to expect and return Maybe objects. Some things don't work, though, e.g. slicing. But this could be implemented via specialized lifting functions for the __XXXitem__ methods. One thing that does work though, is that ordinary functions can be wrapped as Maybe objects which then "do the same thing" on other Maybe objects that the normal functions do on normal objects, like in the foo-example. So it's quite close to a monadic version, in that it "lifts" objects and functions from one type space into another one, the Maybe space. But compared to a real Monads it's much more pythonic, IMO. HTH, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is __mul__ sufficient for operator '*'?

2009-10-20 Thread Mick Krippendorf
. I found this, where Raymond Hettinger shows how this could be changed: http://mail.python.org/pipermail/python-bugs-list/2005-December/031439.html Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is __mul__ sufficient for operator '*'?

2009-10-19 Thread Mick Krippendorf
print boo.__mul__ b = boo() print b * 7 also explodes. Or am I misinterpreting the word "type" here? Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is __mul__ sufficient for operator '*'?

2009-10-19 Thread Mick Krippendorf
em y = Maybe(Nothing) print y >> lift(lambda v: v * 7) print y >> lift(lambda v: v * 7) >> idem 8<8<8<8<8< While I can see how this monadic stuff is usefull in Haskell et al., I'm still not sure how to apply it to Python. And for the impenetrable mathematical language in which Monads are usually presented, well... HTH, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Reverse Iteration Through Integers

2009-10-18 Thread Mick Krippendorf
logical consequence ;-) Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Relational Mappers are evil (a meditation)

2009-10-15 Thread Mick Krippendorf
Ben Finney schrieb: > Mick Krippendorf writes: > The word “anormal” appears to have been made up by you. > The negation of the word “normal” is “abnormal”, perhaps you meant > “First Abnormal Form”? Maybe my English (and my memory) is just not so good. I'm german, and he

Re: Object Relational Mappers are evil (a meditation)

2009-10-15 Thread Mick Krippendorf
Paul Rubin schrieb: > Ethan Furman writes: >> If I knew what First Anormal Form was I (hope!) > > It appears to be a made-up term. I read it somewhere once, I just can't find or even remember the source. I definitely didn't make it up, though I wish I had. Mick. -

Re: Object Relational Mappers are evil (a meditation)

2009-10-15 Thread Mick Krippendorf
inserts values in arbitrary order, or, if the one program expects ints, and the other inserts floats, maybe not even using dotted notation, but commas... you get the picture. In summa: FAN is evil. Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Relational Mappers are evil (a meditation)

2009-10-15 Thread Mick Krippendorf
Ethan Furman schrieb: > Mick Krippendorf wrote: >> BTW, the comma-separted-values-in-a-field is officially called the First >> Anormal Form. There *has to be* some value to it since I've seen it used >> quite a few times... > > Just because you've seen

Re: Object Relational Mappers are evil (a meditation)

2009-10-15 Thread Mick Krippendorf
it since I've seen it used quite a few times... Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: set using alternative hash function?

2009-10-15 Thread Mick Krippendorf
n isn't strong on encapsulation, so "extrinsic" functionality is quite common. Nothing to loose sleep over though, because, as Guido says, "we're all consenting adults here" :-) Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: () vs []

2009-10-15 Thread Mick Krippendorf
mattia schrieb: > Any particular difference in using for a simple collection of element () > over [] or vice-versa? Just try this and you'll see: tup = (1,2,3) tup.append(4) or: tup = (1,2,3) tup[0] = 4 HTH, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unexpected exit of Python script

2009-10-14 Thread Mick Krippendorf
x27; and 'contextlib' in your docs. HTH, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: setting variables in the local namespace

2009-10-13 Thread Mick Krippendorf
ow when, but one day it will happen. But at least it will not be my mistake anymore. Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: setting variables in the local namespace

2009-10-13 Thread Mick Krippendorf
ed on a name stored in a variable? What's your use case, I ask? > - have I missed something that lets me do this already? Yes, and, uh, yes. "locals()['foo'] = bar" works in that it does the same thing as "foo = bar". So why don't you write that instead? Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: deepcopy of class inherited from Thread

2009-10-12 Thread Mick Krippendorf
t;" ... Thread(target=MyClass().run).start() Thread(target=MyClass().run).start() Thread(target=MyClass().run).start() Thread(target=MyClass().run).start() Thread(target=MyClass().run).start() And *please* don't always quote the whole article in your answer. Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: deepcopy of class inherited from Thread

2009-10-12 Thread Mick Krippendorf
eaded stuff here """ Thread(target=threaded).start() Thread(target=threaded).start() Thread(target=threaded).start() Thread(target=threaded).start() Thread(target=threaded).start() Now threaded() runs five times. Python is not Java where one has to subclass from Th

Re: Why ELIF?

2009-10-11 Thread Mick Krippendorf
:-P. But this *is* pythonic. It must be, since Guido has identified it as a Pattern and named it the Dommand Dispatch Pattern. Also, it is in perfect compliance to The Zen (import this). Regards, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to specify a superclass at runtime?

2009-10-06 Thread Mick Krippendorf
ller = SimController else: Controller = RealController print Controller() Regards, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Dictionary with Lists

2009-10-04 Thread Mick Krippendorf
n a dictionary. Only if Shaun wanted to use lists as keys (which of course doesn't work). Luckily he just wants them as values. Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Dictionary with Lists

2009-10-03 Thread Mick Krippendorf
end("another") d["jim"].append("slow down, grasshopper") print d HTH, mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: python library call equivalent to `which' command

2009-06-29 Thread Trent Mick
ut I would like something more portable. I looked through the `os' and `os.path' modules but I didn't find anything. http://code.google.com/p/which/ Trent -- Trent Mick trentm at activestate.com http://trentm.com/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: "The system cannot execute the specified program."

2009-06-26 Thread Trent Mick
ed in the main download tables: http://www.activestate.com/activepython/downloads/ and not discussed in the install notes: http://docs.activestate.com/activepython/2.6/installnotes.html Cheers, Trent -- Trent Mick trentm at activestate.com http://trentm.com/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: "The system cannot execute the specified program."

2009-06-26 Thread Trent Mick
Just want to clarify something: the main AS distribution of Python (ActivePython) for Windows is an MSI. There is sometimes a .zip file with an install.bat -- but that isn't really intended for wide use. Is that what you are referring to here? Cheers, Trent -- Trent Mick trent

Re: Tools for web applications

2009-04-30 Thread Trent Mick
Lave my keyboard alone" guy like me. Do you mean Komodo? http://www.activestate.com/komodo/ Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ActiveState Komodo Edit?

2009-04-27 Thread Trent Mick
est nightly build: http://downloads.activestate.com/Komodo/nightly/ Cheers, Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ActiveState Komodo Edit?

2009-04-27 Thread Trent Mick
e (View -> View Line Numbers) then you can do what you want in the line numbers gutter. Cheers, Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with wxPython program :.: return 1?

2009-04-06 Thread Trent Mick
PythonWin) No, Komodo is not a wx app. Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ActivePython or Python from Python.org

2009-03-02 Thread Trent Mick
http://mail.python.org/pipermail/python-list/2007-July/447987.html Cheers, Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ActivePython 2.6.1.1 and 3.0.0.0 released!

2008-12-13 Thread Trent Mick
Kay Schluehr wrote: On 13 Dez., 00:16, Trent Mick wrote: Note that currently PyWin32 is not included in ActivePython 3.0. Is there any activity in this direction? The PyWin32 CVS tree is getting checkins from Mark Hammond and Roger Upole with a py3k tag. I'm not sure how close the

ActivePython 2.6.1.1 and 3.0.0.0 released!

2008-12-12 Thread Trent Mick
plications such as xCHM might find this useful. This package is installed by default on Windows. Extra bits are available from: http://downloads.activestate.com/ActivePython/etc/ Thanks, and enjoy! Trent, Python Tech Lead -- Trent Mick http://planet.activestate.com/ trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Debugging in Python

2008-12-01 Thread Trent Mick
ched to _you_, not a particular machine you run it on, as I remember. Also correct: with a Komodo IDE license you can use Komodo on any machine that you use. Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: RELEASED Python 3.0rc3

2008-11-24 Thread Trent Mick
idelib\idle.pyw I believe there is a problem with your install. My guess is that your ActivePython install is using an older python26.dll sitting around somewhere. Is there a python26.dll somewhere in your "C:\Python26" directory, or wherever you installed ActivePython 2.6? Tr

Installation on Vista (Was: ANN: ActivePython 2.6.0.0 is now available)

2008-11-17 Thread Trent Mick
strator account (which is disabled by default on Vista). If you have a way around that, then great. I believe that IDLE ran just fine when installed as a user in the admin group. Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: ActivePython 2.6.0.0 is now available

2008-11-17 Thread Trent Mick
wry with the ActivePython installer. Sincerely, Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

ANN: ActivePython 2.6.0.0 is now available

2008-11-14 Thread Trent Mick
p://www.activestate.com/products/komodo/ Thanks, and enjoy! Trent p.s. We hope to have ActivePython 3.0 builds out fairly soon. -- Trent Mick Python Tech Lead trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib fails to connect

2008-08-20 Thread Trent Mick
IE's proxy settings are effectively setting the Windows system networking proxy settings? Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ActiveState Python v2.5 doesn't come with Tkinter or Tk installed.

2008-08-14 Thread Trent Mick
depends on a separate install of either ActiveTcl or TclTkAqua to provide the Tk framework. Cheers, Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ActiveState Code (the new Python Cookbook) has been launched

2008-07-28 Thread Trent Mick
Nick Craig-Wood wrote: Trent Mick <[EMAIL PROTECTED]> wrote: I happy to announce that ActiveState Code has been taken out of beta. This is the new site replacing the ASPN Cookbooks -- in particular the Python Cookbook. http://code.activestate.com/ Looks great and much faste

Re: How to figure out if the platform is 32bit or 64bit?

2008-07-28 Thread Trent Mick
his thread. That test will just tell you if the Python *build* is 32-bit or 64-bit. If the answer is 32-bit, then that doesn't tell you if this is a 32-bit Python running on a 64-bit OS. Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How to figure out if the platform is 32bit or 64bit?

2008-07-25 Thread Trent Mick
6 (32-bit), IA64 (64-bit) and AMD64 (64-bit). Here is a "platinfo.py" module that might help if you need to do this for other platforms: http://svn.openkomodo.com/openkomodo/view/openkomodo/trunk/util/platinfo.py Cheers, Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Building a Python app with Mozilla

2008-07-14 Thread Trent Mick
sible -- but otherwise my experience in Komodo perf work has been algorithmic issues. Also, if Komodo hadn't been using Python for application logic since day one we probably wouldn't be much further than Notepad right now. :) Cheers, Trent (komodo developer) -- Trent Mick

Re: ActiveState Code: the new Python Cookbook site

2008-07-11 Thread Trent Mick
. I need to add that to the recipe add form: http://code.activestate.com/recipes/add/ Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ActiveState Code: the new Python Cookbook site

2008-07-10 Thread Trent Mick
Stef Mientki wrote: one small remark, If I want to browse 200 recipes, at 10 per page ... please make something like 100 available per page, are internet is fast enough nowadays. Touche. Done: http://code.activestate.com/recipes/?paginate_by=100 Cheers, Trent -- Trent Mick trentm at

Re: Does Python 2.5 include or not include SQLite engine?

2008-04-22 Thread Trent Mick
rwise, re: Linux releases of Python 2.5? I thought one of the major features of Python 2.5 was its embedded SQLite engine. Thoughts? -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

ANN: ActivePython 2.5.2.2 and 2.4.5.14 are now available

2008-04-09 Thread Trent Mick
w.activestate.com/products/komodo/ Thanks, and enjoy! Trent, Python Tech Lead -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Module not found in script that was found in command-line interpreter. Possible Path issue?

2008-04-03 Thread Trent Mick
al. Please let me know (or on the komodo-discuss list [^1] or Komodo bug database [^2]) if you have any problems getting that going. Cheers, Trent [1]: http://listserv.activestate.com/mailman/listinfo/Komodo-discuss [2]: http://bugs.activestate.com/query.cgi?product=Komodo -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: system32 directory

2008-03-06 Thread Trent Mick
on 2.5. Cheers, Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Error with Simplemapi.py

2007-08-27 Thread Mick Duprez
On Aug 27, 4:46 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 27 Aug 2007 03:05:30 -0300, Mick Duprez <[EMAIL PROTECTED]> > escribi?: > > > Thank you very much Gabriel, changing the NULL to None did the trick > > (it also helps i

Re: Error with Simplemapi.py

2007-08-26 Thread Mick Duprez
On Aug 27, 2:00 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 24 Aug 2007 04:03:05 -0300, Mick Duprez <[EMAIL PROTECTED]> > escribi?: > > > I have a small problem. I get an error I don't know how to resolve, > > any help would be much

Error with Simplemapi.py

2007-08-24 Thread Mick Duprez
apiRecipDesc * len(RecipWork) #size of struct?? rda = MapiRecipDesc_A() # isn't it MapiRecipDesc as declared?? There's some new stuff going on here I don't understand. thanks for your help, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Puzzled by "is"

2007-08-10 Thread Trent Mick
articular implementation would be different platform *builds* (my language). ActivePython is a separate (from python.org's) *distribution* of CPython -- i.e. the sample implementation as CPython (same source code). This is similar, in some respects, to SuSE, Debian, RedHat, Ubuntu, etc. b

pylint style convention

2007-07-23 Thread Mick Charles Beaver
" (should match (([A-Z_][A-Z1-9_]*)|(__.*__))$) C:170: Invalid name "args" (should match (([A-Z_][A-Z1-9_]*)|(__.*__))$) Which style convention is it referring to? Should these really be all caps? Thank you, Mick -- http://mail.python.org/mailman/listinfo/python-list

embedded python in dll with C

2007-07-15 Thread Mick Duprez
Hi All, I can't quite get my head around embedding Python in a C app and I have a few questions if I may, here is the background. I want to create a dll plugin that has the Python interpreter embedded in it for use in scripting an established application. So far I have created the interface dll and

Re: ActivePython

2007-07-04 Thread Trent Mick
udes an editor/IDE called PythonWin. <http://sourceforge.net/projects/pywin32/> [2] Komodo embeds its own Python build for doing a lot of the core logic. A custom Python build is generally necessary to avoid cross-talking between Komodo's Python and other possible Pythons on the system. -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: what is the PythonWin

2007-07-03 Thread Trent Mick
he hashlib libraries). As of ActivePython 2.5.0.0 full SSL support is available. Cheers, Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python command line error

2007-05-28 Thread Mick Duprez
On May 29, 11:33 am, Max Erickson <[EMAIL PROTECTED]> wrote: > Mick Duprez <[EMAIL PROTECTED]> wrote: > > Hi All, > > > I've installed Python 2.5 on a number of machines but on one I'm > > having problems with the CLI. > > If I fire up

Python command line error

2007-05-28 Thread Mick Duprez
o sp2 Python25 wxPython2.8 unicode PIL numpy any clues to what's causing this behavior? tia, Mick. -- http://mail.python.org/mailman/listinfo/python-list

Re: preferred windows text editor?

2007-05-09 Thread Trent Mick
on/ You should give Komodo Edit a try too: http://www.activestate.com/products/komodo_edit/ Cheers, Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

ANN: ActivePython 2.5.1.1 is now available

2007-05-04 Thread Trent Mick
n set. Linux users of applications such as xCHM might find this useful. This package is installed by default on Windows. Extra bits are available from: http://downloads.activestate.com/ActivePython/etc/ Thanks, and enjoy! Trent, Python Tech Lead -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Support SSL for Solaris 10

2007-04-05 Thread Trent Mick
olaris8-sparc" build) supports OpenSSL. Note that the Solaris on *x86* ActivePython build does not because there were build errors for that extension that haven't yet been resolved. http://www.activestate.com/products/activepython/ Cheers, Trent -- Trent Mick trentm at activestat

Re: Where to find pywin32/win32all for Python 1.5.2?

2007-04-03 Thread Trent Mick
load. Is it still available somewhere? Thanks! Python 1.5.2 was release way before ActiveState started doing ActivePython, so no luck there. :( -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: ActivePython 2.5.0.0 is now available

2007-03-15 Thread Trent Mick
y have changed though. Trent -- Trent Mick trentm at activestate.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: ActivePython 2.5.0.0 is now available

2007-03-13 Thread Trent Mick
Yes. Wensui Liu wrote: > Is it free of charge? > > On 3/13/07, Trent Mick <[EMAIL PROTECTED]> wrote: >>... >> ActivePython is ActiveState's binary distribution of Python. Builds for >> Windows, Mac OS X, Linux, HP-UX and AIX are made freely available. >

Re: ActivePython 2.5.0.0 is now available

2007-03-13 Thread Trent Mick
t possible to find the file". > > Is there a remedy for this problem? http://bugs.activestate.com/show_bug.cgi?id=68029 I don't currently have a work around for it. I should be able to fix this for the next release (but don't have a date for that yet). You could CC yourself to that b

ANN: ActivePython 2.5.0.0 is now available

2007-03-13 Thread Trent Mick
m: An MS compiled help collection of the full ActivePython documentation set. Linux users of applications such as xCHM might find this useful. This package is installed by default on Windows. Extra bits are available from: http://downloads.activestate.com/ActivePython/etc/ Thank

Re: Python for amd64 and x86 on Windows

2007-03-12 Thread Trent Mick
ile plus an install script" installer that ActivePython includes in addition to the usual (and preferred MSI installer). Trent p.s. ActivePython 2.5 builds will be out this week. -- Trent Mick [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: nokia s60 python code debugging with komodo

2007-03-09 Thread Trent Mick
port wasn't up to snuff. Cheers, Trent -- Trent Mick [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: pyxpcom

2006-11-29 Thread Trent Mick
hg wrote: > Trent Mick wrote: >>> My need is as follows: I have developed an activex component to access a >>> smart card on the client side / do some web site logon. >>> >>> Are xpcom / pyxpcom advanced/stable enough for such an implementation >>>

Re: pyxpcom

2006-11-28 Thread Trent Mick
ity for Firefox that your activex component does for IE? Yes, xpcom and pyxpcom are quite stable, however putting together a Firefox extension that gets PyXPCOM itself up and running in a client's Firefox install will be quite challenging. Trent -- Trent Mick [EMAIL PROTECTED] -- http://mai

Re: pyxpcom

2006-11-28 Thread Trent Mick
hg wrote: > Hi, > > Can one tell me what the status of this project is ?. I did google ... > but not much out there. PyXPCOM source is in the main Mozilla CVS tree. It is being maintained by Mark Hammond (the original developer of the extension). There isn't a lot of activity on it, I think, be

Re: Active State and Komodo...

2006-11-27 Thread Trent Mick
beta 1 is out now and beta 2 should be released later this week). Try it out: http://www.activestate.com/products/komodo/beta.plex#features Cheers, Trent -- Trent Mick [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: uninstall and Windows file associations

2006-11-02 Thread Trent Mick
t sure if the python.org Windows installer has that functionality (it probably does). Just try invoking the .msi file again. And, as Neil said, you can just reinstall. Trent -- Trent Mick [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >