Is it possible to pass my own dll's (already loaded) handle as an
argument to load/attach to the very same instance of dll? Thing is
that I've done plugin (dll) to a host app and the SDK's function
pointers are assigned once the dll is loaded in the host process. I'd
like to fire up python code wit
On 11/17/2011 7:03 PM, W. eWatson wrote:
I have not found any successful way to get to IDLE.
Use the start menu to start IDLE once. Then pin it to your taskbar.
If you do not have STart/ all programs / Python / IDLE, then your
installation is bad.
As for the right click problem, you probabl
Roy Smith writes:
> In article <874ny2fzn6@no-fixed-abode.cable.virginmedia.net>,
> Paul Rudin wrote:
>
>>
>> Maybe I'm missing something - but if I want to do this I just mess about
>> with sys.path at the top of my python script/program. Always seems to
>> work... is there a situation in
On Thu, 17 Nov 2011 21:07:23 -0800, John Ladasky wrote:
> One of my questions was: would there be any merit to having the Python
> "pass" token itself defined exactly as _pass() is defined above?
No.
The pass statement compiles to nothing at all. Your _pass() function
compiles to a function obj
On Nov 18, 2:21 pm, "W. eWatson" wrote:
> Because some people think that's a solution, and ask. It's not. It
> leads to an error message.
No, people are saying "manually add IDLE _the correct way that Windows
can recognise_", not recommending you stuff random .pyw files into the
context menu and
On Nov 18, 12:59 pm, Chris Angelico wrote:
> If you call your dummy function something else, it may help
> readability/self-documentation too.
Or replace the pass with a docstring for the same effect:
def silent(*args):
"""Null Object to repress reporting"""
--
http://mail.python.org/mai
On Thu, Nov 17, 2011 at 9:34 PM, Chris Angelico wrote:
> On Fri, Nov 18, 2011 at 4:07 PM, John Ladasky wrote:
>> One of my questions was: would there be any merit to having the Python
>> "pass" token itself defined exactly as _pass() is defined above?
>
> No, there wouldn't. The Python 'pass' st
On Fri, Nov 18, 2011 at 4:07 PM, John Ladasky wrote:
> One of my questions was: would there be any merit to having the Python "pass"
> token itself defined exactly as _pass() is defined above?
No, there wouldn't. The Python 'pass' statement is a special statement
that indicates a lack of anythin
On Thu, Nov 17, 2011 at 11:21 PM, W. eWatson wrote:
>
> On 11/17/2011 7:59 PM, Dave Angel wrote:
>>
>> On 11/17/2011 03:31 PM, W. eWatson wrote:
>>>
>>> On 11/17/2011 9:39 AM, John Gordon wrote:
>>>
Can you add IDLE manually to the associated applications list?
>>> Tried that by se
On Thursday, November 17, 2011 8:34:22 PM UTC-8, Dennis Lee Bieber wrote:
> On Thu, 17 Nov 2011 18:18:11 -0800 (PST), John Ladasky
> declaimed the following in
> gmane.comp.python.general:
> > def _pass(*args):
> > pass
> >
> This is the equivalent of
>
> def _pass(*args):
> retur
On Thursday, November 17, 2011 6:45:58 PM UTC-8, Chris Rebert wrote:
> Seems fine to me (good use of the null object pattern), although I
> might define _pass() to instead take exactly 1 argument, since that's
> all you ever call report() with in your example.
Oops, I over-simplified the calls to
Maybe take a look outside python:
- Puppet
On Fri, Nov 18, 2011 at 3:49 PM, snorble wrote:
> On Nov 17, 4:31 pm, Irmen de Jong wrote:
>> On 17-11-2011 5:17, snorble wrote:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> > I'm writing a tool for monitoring the workstations and servers in our
>> > office. I plan t
On Nov 17, 4:31 pm, Irmen de Jong wrote:
> On 17-11-2011 5:17, snorble wrote:
>
>
>
>
>
>
>
>
>
> > I'm writing a tool for monitoring the workstations and servers in our
> > office. I plan to have a server and a client service that runs on each
> > workstation and reports back to the server (heart
On 11/17/2011 7:04 PM, alex23 wrote:
On Nov 18, 2:55 am, "W. eWatson" wrote:
Comments?
Are you using the vanilla installer or ActiveState's ActivePython? I
find the latter integrates better with Windows.
Also, out of curiousity, 32 or 64 bit Windows?
64-bit and plain old python msi installe
On 11/17/2011 4:24 PM, Steven D'Aprano wrote:
On Thu, 17 Nov 2011 16:03:14 -0800, W. eWatson wrote:
I have not found any successful way to get to IDLE. It's on on the
right-click of a py menu, and, if I go the ...lib/idle.pyw, it fails
with a "invalid Win32 app" msg.
If you associate .pyw fil
On 11/17/2011 7:59 PM, Dave Angel wrote:
On 11/17/2011 03:31 PM, W. eWatson wrote:
On 11/17/2011 9:39 AM, John Gordon wrote:
Can you add IDLE manually to the associated applications list?
Tried that by sending it directly to idle.pyw, but then trying to get
there through the Edit with menu
On 11/17/2011 03:31 PM, W. eWatson wrote:
On 11/17/2011 9:39 AM, John Gordon wrote:
Can you add IDLE manually to the associated applications list?
Tried that by sending it directly to idle.pyw, but then trying to get
there through the Edit with menu caused a "invalid Win32 app."
You've bee
John Ladasky writes:
> So, pass does not appear to be a function, nor even an object. Is it
> nothing more than a key word?
Yes. Unlike some languages where the program is a collection of
expressions, a Python program is a series of statements which themselves
may or may not be expressions.
htt
On Nov 18, 11:36 am, Roy Smith wrote:
> What if the first import of a module is happening inside some code you
> don't have access to?
No import will happen until you import something. As long as you
change sys.path before you do, all subsequent imports will use that
path.
--
http://mail.python
On Nov 18, 2:55 am, "W. eWatson" wrote:
> Comments?
Are you using the vanilla installer or ActiveState's ActivePython? I
find the latter integrates better with Windows.
Also, out of curiousity, 32 or 64 bit Windows?
--
http://mail.python.org/mailman/listinfo/python-list
On 11/17/2011 6:45 PM, Chris Rebert wrote:
On Thu, Nov 17, 2011 at 6:18 PM, John Ladasky wrote:
Hi folks,
I'm trying to write tidy, modular code which includes a long-running process.
From time to time I MIGHT like to check in on the progress being made by that
long-running process, in vari
On Fri, Nov 18, 2011 at 1:18 PM, John Ladasky wrote:
> def _pass(*args):
> pass
>
> def long_running_process(arg1, arg2, arg_etc, report = _pass):
>
For some compactness at the expense of brevity, you could use a lambda:
def long_running_process(arg1, arg2, arg_etc, report = lambda msg: None)
On Thu, Nov 17, 2011 at 6:18 PM, John Ladasky wrote:
> Hi folks,
>
> I'm trying to write tidy, modular code which includes a long-running process.
> From time to time I MIGHT like to check in on the progress being made by
> that long-running process, in various ways. Other times, I'll just wan
On Nov 18, 1:48 am, candide wrote:
> # a.py
> import math as _math
>
> # b.py
> from a import *
>
> print _math.sin(0) # raise a NameError
> print math.sin(0) # raise a NameError
>
> so the as syntax is also seful for hiding name, isn'it ?
Not exactly. It's the * import mechanism her
On Nov 17, 1:24 pm, Ethan Furman wrote:
> If you do need to sometimes call it from a method then still leave off
> the '@staticmethod', and give 'self' a default of 'None':
>
> def _get_next_id(self=None):
> [blah, blah, blah]
> return id
>
> user_id = IntField(required=Tru
Hi folks,
I'm trying to write tidy, modular code which includes a long-running process.
From time to time I MIGHT like to check in on the progress being made by that
long-running process, in various ways. Other times, I'll just want to let it
run. So I have a section of code which, generally
In article ,
Tycho Andersen wrote:
> While I agree there's a lot of things you can't control for, you can
> get a more accurate picture by using CPU time instead of wall time
> (e.g. the clock() system call). If what you care about is mostly CPU
> time [...]
That's a big if. In some cases, CPU
On 17/11/2011 23:54, W. eWatson wrote:
My mistake above. I was talking about the previous 2.5.2 of install in
Win7. Where I'm at is 2.7.2 now. However, I still find in very odd there
is no Edit with IDLE when I right-click on junk.py. That's the way it
worked on 2.5.2 on my XP and earlier, 2010,
In article ,
Duncan Booth wrote:
> Roy Smith wrote:
>
> > In some cases, I own the machine and can make changes to /usr/local/lib
> > if I want to. But what about on a shared machine? I don't want to (or
> > perhaps can't) play with what's in /usr/local/lib just to make my stuff
> > load
In article <874ny2fzn6@no-fixed-abode.cable.virginmedia.net>,
Paul Rudin wrote:
> Roy Smith writes:
>
>
> > But, you're talking about installers. I'm talking about if I've already
> > got something installed, how do I force one particular python process to
> > pull in a local copy of a
On Thu, 17 Nov 2011 16:03:14 -0800, W. eWatson wrote:
> I have not found any successful way to get to IDLE. It's on on the
> right-click of a py menu, and, if I go the ...lib/idle.pyw, it fails
> with a "invalid Win32 app" msg.
If you associate .pyw files with pythonw.exe, and then open idle.pyw,
On 11/17/2011 2:12 PM, Terry Reedy wrote:
On 11/17/2011 11:55 AM, W. eWatson wrote:
Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
uninstalled and installed. Same problem. If one right-clicks on a py
file, IDLE is not shown in the menu as Edit with IDLE. After playing
wi
On 11/17/2011 12:59 PM, MRAB wrote:
On 17/11/2011 20:31, W. eWatson wrote:
On 11/17/2011 9:39 AM, John Gordon wrote:
In "W. eWatson"
writes:
Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
uninstalled and installed. Same problem. If one right-clicks on a py
file, IDLE
On 11/17/2011 12:46 PM, spartan.the wrote:
On Nov 17, 10:31 pm, "W. eWatson" wrote:
On 11/17/2011 9:39 AM, John Gordon wrote:> In"W.
eWatson"writes:
Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
uninstalled and installed. Same problem. If one right-clicks o
On 17-11-2011 5:17, snorble wrote:
I'm writing a tool for monitoring the workstations and servers in our
office. I plan to have a server and a client service that runs on each
workstation and reports back to the server (heartbeat, disk free
space, etc).
So far I am considering XMLRPC, or a clien
On 11/17/2011 11:55 AM, W. eWatson wrote:
Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
uninstalled and installed. Same problem. If one right-clicks on a py
file, IDLE is not shown in the menu as Edit with IDLE. After playing
with matters I gave up, and uninstalled 2.5.2
On Nov 17, 4:03 pm, Roy Smith wrote:
> In article ,
> Ulrich Eckhardt wrote:
>
> > Yes, this is surely something that is necessary, in particular since
> > there are no clear success/failure outputs like for unit tests and they
> > require a human to interpret them.
>
> As much as possible, you
On Nov 17, 10:31 pm, "W. eWatson" wrote:
> On 11/17/2011 9:39 AM, John Gordon wrote:> In "W.
> eWatson" writes:
>
> >> Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
> >> uninstalled and installed. Same problem. If one right-clicks on a py
> >> file, IDLE is not shown i
On 17/11/2011 20:31, W. eWatson wrote:
On 11/17/2011 9:39 AM, John Gordon wrote:
In "W. eWatson"
writes:
Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
uninstalled and installed. Same problem. If one right-clicks on a py
file, IDLE is not shown in the menu as Edit with
On Wed, Nov 16, 2011 at 09:36:40AM -0500, Roy Smith wrote:
> In article <95bcp8-bft@satorlaser.homedns.org>,
> Ulrich Eckhardt wrote:
>
> > Hi!
> >
> > I'm currently trying to establish a few tests here that evaluate certain
> > performance characteristics of our systems. As part of this,
On Fri, Nov 18, 2011 at 7:31 AM, W. eWatson wrote:
> I installed it [Windows 7] about April 2010, and it worked for months. I then
> stopped
> using it until around July 2011. It no longer worked in the IDLE sense.
>
Microsoft have broken things in many Windowses, and it's often hard to
figure o
On 11/17/2011 9:39 AM, John Gordon wrote:
In "W. eWatson" writes:
Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
uninstalled and installed. Same problem. If one right-clicks on a py
file, IDLE is not shown in the menu as Edit with IDLE. After playing
with matters I ga
On 11/17/2011 9:39 AM, John Gordon wrote:
In "W. eWatson" writes:
Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
uninstalled and installed. Same problem. If one right-clicks on a py
file, IDLE is not shown in the menu as Edit with IDLE. After playing
with matters I ga
On Thu, 17 Nov 2011 08:55:36 -0800, W. eWatson wrote:
> Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
> uninstalled and installed. Same problem. If one right-clicks on a py
> file, IDLE is not shown in the menu as Edit with IDLE. After playing
> with matters I gave up, an
On behalf of Twisted Matrix Laboratories, I am pleased to announce the
release of Twisted 11.1.
Highlights of the 185 tickets closed include:
* The poll reactor as default where applicable, instead of select
everywhere.
* A new SSL implementation only relying on OpenSSL for cryptography,
In "W. eWatson" writes:
> Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
> uninstalled and installed. Same problem. If one right-clicks on a py
> file, IDLE is not shown in the menu as Edit with IDLE. After playing
> with matters I gave up, and uninstalled 2.5.2 and t
On 17 Nov, 18:55, "W. eWatson" wrote:
> Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
> uninstalled and installed. Same problem. If one right-clicks on a py
> file, IDLE is not shown in the menu as Edit with IDLE. After playing
> with matters I gave up, and uninstalled 2.
On Friday, November 18, 2011 12:55 AM, W. eWatson wrote:
Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago
I uninstalled and installed. Same problem. If one right-clicks on a py
file, IDLE is not shown in the menu as Edit with IDLE. After playing
with matters I gave up, and
Roy Smith writes:
> But, you're talking about installers. I'm talking about if I've already
> got something installed, how do I force one particular python process to
> pull in a local copy of a module in preference to the installed one?
>
> In some cases, I own the machine and can make chang
Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I
uninstalled and installed. Same problem. If one right-clicks on a py
file, IDLE is not shown in the menu as Edit with IDLE. After playing
with matters I gave up, and uninstalled 2.5.2 and turned to 2.7.2. Same
results.
If
Thanks to all
Le 12/11/2011 13:27, Chris Angelico a écrit :
> On Sat, Nov 12, 2011 at 10:56 PM, candide wrote:
>> import foo as f
>>
>> equivalent to
>>
>> import foo
>> f = foo
>>
>
> Not quite, it's closer to:
>
> import foo
> f = foo
> del foo
>
Le 12/11/2011 13:43, Tim Chase a écrit :
Le 12/11/2011 13:29, Arnaud Delobelle a écrit :
-- The second case seems to be rather widespread and causes math attribute
to be private but I don't figure out why this matters.
This way math doesn't get bound in the global namespace when doing
"from module import *"
To contextualize more,
Roy Smith wrote:
> In some cases, I own the machine and can make changes to /usr/local/lib
> if I want to. But what about on a shared machine? I don't want to (or
> perhaps can't) play with what's in /usr/local/lib just to make my stuff
> load first.
>
Have you considered running your code
In article <1s1fp8-6la@pluto.solar-empire.de>,
Marc Christiansen wrote:
> > So, is there any way to get my local copy of mongoengine loaded instead
> > of the system egg? I could probably import sys, and do an egg-ectomy on
> > sys.path before importing mongoengine, but that's too gross t
In article ,
Ulrich Eckhardt wrote:
> Yes, this is surely something that is necessary, in particular since
> there are no clear success/failure outputs like for unit tests and they
> require a human to interpret them.
As much as possible, you want to automate things so no human
intervention
On Thu, Nov 17, 2011 at 10:13 PM, Dotan Cohen wrote:
> I'm at work far from Idle.
Taken out of context, I'm sure your boss is pleased. :)
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Nov 17, 2011 at 09:37, Ian Kelly wrote:
> On Wed, Nov 16, 2011 at 11:44 PM, Dotan Cohen wrote:
>> Try this (untested):
>>
>> class C:
>> @staticmethod
>> def foo():
>> pass
>>
>> print "inside", C.foo, callable(C.foo)
>
> If you had tested this, you would have found that you g
Hi All,
I am using Python 2.7, windows Env.
I have an Installer written in Python(45%) and Powershell(55%) which is used to
install Virtual Machines at specific locations. It is single threaded.
I am trying to implement a ProgressBar for this installer. So that the user
will come to know the pr
On Thu, Nov 17, 2011 at 1:51 AM, Anushree Tripathi
wrote:
> When I run script file(i.e.,model-default.py) on IDLE interface,I m
> getting this error:
> read_al_373E> Protein specified in ALIGN_CODES(i) was not found in the
> alignment file; ALIGN_CODES( 1) = 2hyd
Such an error is entirely
Roy Smith wrote:
> I'm trying to use a custom version of mongoengine. I cloned the git
> repo and put the directory on my PYTHONPATH, but python is still
> importing the system's installed version. Looking at sys.path, it's
> obvious why:
>
> $ echo $PYTHONPATH
> /home/roy/songza:/home/roy/
When I run script file(i.e.,model-default.py) on IDLE interface,I m
getting this error:
read_al_373E> Protein specified in ALIGN_CODES(i) was not found in the
alignment file; ALIGN_CODES( 1) = 2hyd
--
http://mail.python.org/mailman/listinfo/python-list
Am 17.11.2011 03:30 schrieb Roy Smith:
When I run this (python 2.6.1):
class C:
@staticmethod
def foo():
pass
print "inside", foo, callable(foo)
print "outside", C.foo, callable(C.foo)
I get:
inside False
outside True
Right. The reason is that on an attribute acce
Am 16.11.2011 15:36, schrieb Roy Smith:
It's really, really, really hard to either control for, or accurately
measure, things like CPU or network load. There's so much stuff you
can't even begin to see. The state of your main memory cache. Disk
fragmentation. What I/O is happening directly ou
On Nov 16, 10:50 pm, Peter Otten <__pete...@web.de> wrote:
> sword wrote:
> > Thanks for your reply. I tried to edit the source a bit, now the
> > main.py looks like this:
> > #main.py
> > import logging
> > from logging import Filter
> > import a
> > import b
>
> > logging.basicConfig(level=loggin
Hi,
why not try out emacs-for-python
https://github.com/gabrielelanaro/emacs-for-python
It's has everything included one needs as a python programmer on emacs
and even if it's not your choice you can lookup pymacs configuration there.
HTH && have a nice day
Basti
Am 17.11.2011 00:42, schrie
65 matches
Mail list logo