Carlos Nepomuceno wrote:
>Python really writes '\n\r' on Windows. Just check the files.
It actually writes \r\n, but it's not Python that's doing it. It's the C
runtime library.
And, of course, you can eliminate all of that by opening the file in binary
mode open
ill automatically
refer to the global class. It won't. The only way to solve this dilemma
is to change the name you use in the "while" loop.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
latin-1'? Because that's the default character set
for pymysql. You could have learned this yourself -- you have the full
source code for pymysql on your machine.
You can override the default character set:
con = pymysql.connect( db = 'metrites', host = 'lo
#x27;s domain.
When ASCII became unavoidable, most programs changed to using 5x 12-bit
"bytes" per word.
Ah, memories. I spent 10 years working for Control Data.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
is not a tuple. My guess is that this will
work fine:
cur.execute(
"SELECT * FROM works WHERE YEAR(lastvisit)=%s ORDER BY lastvisit",
(year,) )
It seems silly to fire up a regular expression compiler to look for a
single character.
if name.find('=') < 0 and month.find('=') < 0 and year.find('=') < 0:
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Fábio Santos wrote:
>On 5 Jun 2013 06:23, "Tim Roberts" wrote:
>> A single machine word was 60 bits, so a single register read got you 10
>> characters.
>
>10 characters! Now that sounds like it's enough to actually store a word.
>However long words c
, or if they're all true,
the last value. Why? Because it can't know whether the whole expression
is true unless it looks at every value. So:
0 and 1 and 'what' ==> 0
1 and 0 and 'what' ==> 0
1 and None and 0 ==> None
1 and 1 and 'what' ==> 'what'
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Nick the Gr33k wrote:
>
>On 16/6/2013 4:55 ??, Tim Roberts wrote:
>
>> Nick the Gr33k wrote:
>> Because Python lets you use arbitrary values in a Boolean context, the net
>> result is exactly the same.
>
>What is an arbitrary value? don even knwo what arbit
%1" %*
You can create your own, if you want. If you want files with a .script
extension to run PythonW, you can type:
assoc .script=Python.NoConFile
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
h a block of
IP addresses. That does not necessarily bear any resemblence to the actual
location of the user. It tells you the location of the Internet provider
that registered the IP addresses.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Joshua Landau wrote:
>
>Isn't a superscript "c" the symbol for radians?
That's very rarely used. More common is "rad". The problem with a
superscript "c" is that it looks too much like a degree symbol.
--
Tim Roberts, t...@probo.com
Providenza
onts directory. Linux doesn't even
have a dedicated windowing system.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
re supposed to have dicts in a tuple.
What you have is a dict in a tuple in a tuple.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ck. After all, you don't patch code on a byte-by-byte basis
-- you just change function bindings. That can be done atomically.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
cheetah wrote:
>
>I don't need it.
It's not worth worrying about. You're talking about way less than a
megabyte of disk space, and there is no performance penalty unless you're
using it.
In general, the parts of the Python standard library are not individually
sele
or
substitution should have been able to do this in two seconds.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
esting that it DOESN'T happen in Python 2. The first "i" is of
type list, the second "i" is of type string, and both are restartable.
What's the type of "i" in the second case in Python 3?
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ramework.
IronPython is written in C#. It generates code that runs in the .NET
Framework.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
fined as
__cdecl. Try cdll.LoadLibrary instead of oledll.LoadLibrary.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
aries can be used to talk to USB devices. There
is a Python binding. On Windows, you still need to have a driver, but the
libusbx instructions can help you find an install one.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
sb_setup_async] invalid
>endpoint 0x02\n'
USB endponts only go in one direction. There will be one endpoint for
outoging data, and one endpoint for incoming data.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
sys.exit( {'Cope':1,'Perform':2}.get(sR,3) )
The best way to convert a batch file to Python is to convert the whole file
to a Python script.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
nts ( 3/4 string arguments, containing whitespaces like spaces, etc )
>to a python script, remote.py running on 'remote' (the remote machine).
You haven't provided very many details, so it's possible ssh is the
low-impact solution, but don't discard the possibility of usi
You will not find generic mechanisms wrapping them.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Control Data 6000/Cyber series had sign bit and 11-bit exponent, with
either a 48-bit mantissa or a 96-bit mantissa, packed into one or two
60-bit words. Values were not automatically normalized, so there was no
assumed 1 bit, as in IEEE-754.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
for top-posting. My Xoom makes bottom-posting awkward.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
Dave Angel wrote:
On 09/22/2012 05:05 PM, Tim Roberts wrote:
> Dennis Lee Bieber wrote:
>> On 22 Sep 2012 01:36:59 GMT, Steven D'Aprano wrote:
>>> For
Paul Rubin wrote:
>
>Tim Roberts: reasons to want to do this might involve a shared host
>where excessive cpu usage affects other users;
That's what priorities are for.
>...or a computer with
>limited power consumption, where prolonged high cpu activity causes
>thermal or
ds of thousands of people reading this
forum. A few of those people probably don't like you. So what?
Illegitemi non carborondum -- don't let the bastards wear you down.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ility
>and searching above pinpointing files in heirarchies.
>
>I invite you to try it.
Without intending to detract from your work in any way, are you familiar
with the IPython project?
http://ipython.org/
You may find some interesting synergy with them.
--
Tim Roberts, t...@prob
e PHP code (it generates data access objects from a live
database schema).
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
not "www.bigsite.com", that
receipient can tell exactly who is supposed to get the message.
So, a web proxy receives requests intended for other sites, and forwards
them on, possibly after restricting or modifying them. That's it.
--
Tim Roberts, t...@probo.com
Providenza & Boeke
>= n:
yield iter[:n]
iter = iter[n:]
Now you can do this:
def main(data):
for first3 in N_at_a_time(data, 3):
print CalcCenter(first3)
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
;re talking about real-time response makes me think you
might be misunderstanding this.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
OS_:
extract the 15 lines starting with T(est) from the file out-Dy-eos2 to
a temporary file
extract the 2nd field from the line with T(est) in it
extract the 6th field from the first line with "s1,torque"
extract the 7th field from the first line with "s1,torque&quo
ystem), and
that command has a different output format. The csh "time" command is
different yet again.
>1) how can I recover that third digit from the subprocess?
Do you actually believe that the third decimal place has any meaning at
all? It doesn't.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
andrea crotti wrote:
>I have very long processes to spawn which I want to lauch as separate
>processes (and communicate with ZeroMQ), but now the problem is that the
>forked process appears in "ps" with the same name as the launcher
>process.
http://code.google.com/p/py
place
almost every use case for os.system and os.popen.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
areful about spelling (and
pronouncing) the whole word "peephole". The word as you have spelled it
here (twice) is a vulgarity.
Now, I'm all in favor of the occasional vulgarity, but if this is a
misunderstanding, you could find yourself as the butt of some awkward jokes
at s
asily, no. It's not really a USB device -- I'm betting it doesn't
even enumerate. It's just sucking power from the USB wires. There's
nothing to control.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
more obscure:
two = lamba : "one"
one = two
Which one of these is the "name" of the function?
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ng also
contains one instance of \\] .
Who is doing the JSON encoding? It appears to be doing it incorrectly.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
x27;t know just one name, and when a function object is invoked, it has
NO IDEA what name was used to invoke it. The information is simply not
available.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
train it every time
>anew? Is there no way to save its trained values?
When you say "train on data", what do you mean? If your training creates
computed data in other members, those members and their values should also
be saved in the pickle.
--
Tim Roberts, t...@probo.com
Provide
ed the "train" method, there IS no MaxEntClassifier
object. Once you have called "train", you should be able to pickle the new
MaxEntClassifier and fetch it back with its state intact.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
to
derive from the "object" base class. The class is still simply called
"haha", and to create an instance of the class "haha", you write "haha()".
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
y, it isn't practical to solve this for SN. That
probably means you're going to need a iterative solution. That is, you
start with a guess, see how far off you are, and refine the guess until you
narrow in on a solution. That means you'll have to figure out whether
raising SN gets you c
iMath wrote:
>
>There is also a httplib2 module
>https://code.google.com/p/httplib2/
>
>which one is more pythonic and powerful ?
Both are Pythonic, and power is irrelevant for this. Your code is going to
spend 90% of its time waiting for the network. Just solve the problem.
Dave Angel wrote:
>
>As Adnan has pointed out, Python is case insensitive.
That's not really what you meant to say...
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
tered files,
then there is absolutely no way to teach a computer how to do it. It IS
impossible.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
e same page as page1.html? What if I
subsequently delete page1.html? What if I don't? How long will you wait
before deciding they are the same?
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ctually adding multiple paths? One possible cause for error would
be this:
sys.path.extend( '/usr/local/lib' )
That succeeds, but it doesn't do what you meant. It adds "/" as a path,
then "u", then "s", then "r", and so on.
--
Tim Rober
content of the message is
irrelevant to the sending process, unless it makes your message way too
big.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ost line-for-line translation of my Python programs
to C++ programs. (Microsoft has had a "for each" extension for a while
that made this easier.)
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
//docs.scipy.org/doc/numpy/reference/routines.linalg.html
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
jobattle wrote:
>
>Has anybody out there had any experience in using the PYUSB library with
>the new Microchip MCP2210 USB to SPI chip?
It appears to the system as a HID device. You don't need to use PyUSB --
it already has a driver.
Check libhid -- it has a Python binding.
--
n in exchange for performance.
It is a performance choice that we choose to make.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
t of type multiport/form-data. There is a
module called "poster" that can do the appropriate encoding for you:
http://stackoverflow.com/questions/680305/using-multipartposthandler-to-post-form-data-with-python
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
htt
keyboard and mouse?
No, that's just being overly cautious. Libusb-Win32 can act as a filter
driver, inserting itself into an existing USB stack, but to do so the
device stack you are filtering must be idle.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Every SQL
>statement has to be rewritten, with the parameters expressed
>differently. It's a good approach, but very incompatible.
Those changes can be automated, given an adequate editor. "Oursql" is a
far better product than the primitive MySQLdb wrapper. It is worth the
ns to follow the same quoting rules as
Python.
Now, I fully understand that it is the way it is. I'm merely pointing out
that his was not an unreasonable expectation.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
to use
>slashes in paths:
All of them should do so. They're just string being passed to CreateFile,
and CreateFile accepts forward slashes just fine.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
7;: doAdd,
'subtract' : doSubtract,
'multiply' : doMultiply,
'divide' : doDivide
}
nextCommand = parseCommandLine( line )
invokeCommand( commands[NextCommand] )
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
t;I admit a blank, one-field csv record just isn't very
>insteresting, but isn't this a special case that ought to be
>documented?
But that's what you have in the first line, and the reader has returned to
you a list containing one (empty) string.
I just don't see your interpretation. The results are exactly what I would
have expected.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
is one tweak to the HTML, and your scraping fails although the page
continues to look the same.
A much better plan is to use sgmllib to write yourself a mini HTML parser.
You can handle "td" tags with the attributes you want, and count down until
you get to the "td" tag you want.
--
st or web,
>Do you have any idea what's problem here?
Yes. %d has never worked. \d+ is the right answer. It's just that
simple. Where did you read that %d should work?
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
n habits, not C habits. What
construct led you to think you need to declare a function like that? This
code, for example, works fine:
def g():
return f()
def f():
return 3
print g()
The name "f" does not have to be defined until the function "g&
ing in the design of
the QWERTY layout is an urban legend. Once your fingers have the mapping
memorized, the actual order is irrelevent. Studies have shown that even a
strictly alphabetical layout works perfectly well, once the typist is
acclimated.
--
Tim Roberts, t...@probo.com
Providenza &
Dennis Lee Bieber wrote:
>
>On Sun, 12 Jun 2011 21:30:43 -0700, Tim Roberts
>declaimed the following in gmane.comp.python.general:
>
>> More than that, any layout "more efficient" than QWERTY is practically
>> meaningless. The whole "intentional inef
Gnarlodious wrote:
>
>Is there any way to call a Py script from Javascript in a webpage?
It is POSSIBLE to install Python as an active language, so that Internet
Explorer lets you write
Hansmeet Singh wrote:
> for xhtml wouldnt the syntax be
upload page. Any remedy?
The amount of protection you need to take depends on what the cost of
interference will be, and how likely it is to be spoofed. How will people
find out about your interface? If they found out about it, what would they
gain by spoofing it?
--
Tim Roberts, t...@probo.com
get error
Right, because strptime doesn't support %Z. You'll have to handle that
yourself and remove it before conversion.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney wrote:
>Tim Roberts writes:
>
>> Right, because strptime doesn't support %Z.
>
>Au contraire:
>
>Support for the %Z directive is based on the values contained in
>tzname and whether daylight is true. Because of this, it is
>platform-spec
ed to me on my
own. Using your hint, I was able to write a 16-line script that also
produced a result instantaneously. Very satisfying.
I'm going to save that one...
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
the kernel.
The data is ALWAYS available.
If you want the data once a second, just do it the easy way:
import time
while True:
print open('/proc/loadavg').read()
time.sleep(1)
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
#x27;m not sure what that means. The RS-232 standard does not have the
concept of "reset". What is it that triggers a device reset?
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
aximumLength gives the allocated
size of the buffer. Length gives the length of the string currently held
in the buffer. It can be less than the maximum length, and the buffer does
NOT necessarily contain a zero-terminator.
UNICODE_STRING and ANSI_STRING are used in kernel programming to avoid the
but it certainly allowed.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
and friends with ts=8 and sw=4 will use 4 spaces, then tab, then tab
plus 4 spaces, then two tabs, etc. That's recognizable, but I still
convert such a file to all spaces when I find one.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
tioning. With style sheets, you can
get very complete control over the look and feel.
This is very similar to what Microsoft has done with Windows Presentation
Foundation, except that they are using a more sophisticated XML DTD.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc
Gregory Ewing wrote:
>Tim Roberts wrote:
>>
>> I don't think your glibness is justified. There is a legitimate appeal to
>> this notion. The fact is that MANY APIs can be completely and adequately
>> described by HTML.
>
>My brain raises a TypeErr
= dict(L).values()
but that reorders the tuples. They still correspond, but in a different
order.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
sing before, but never with a Queue like this.
>Any notes or suggestions are very welcome.
The obvious implication is that your timeout is simply not long enough for
your common cases. If you know how many chapters to expect, why have a
timeout at all? Why not just wait forever?
--
Tim Rob
the author mistakenly typed a period
instead of a comma:
DO 10 I=1.8
That, unfortunately, is a perfectly valid statement that assigns the value
"1.8" to the floating point variable "DO10I", supposedly resulting in the
loss of an unmanned launch vehicle...
--
Ti
the escape key. You are running this from a console process, and not
a GUI process, right?
>That means char=msvcrt.getch() is getting something?
Did you ever think about inserting a debug statement to help you?
print hex(ord(char))
--
Tim Roberts, t...@probo.com
Providenza &
v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> x = '\xe8\x9f\x92\xe8\x9b\x87'
>>> x.decode('utf8')
u'\u87d2\u86c7'
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
essentially how the original CherryPy version 1 web framework
worked.In the end, I think it was decided that this represented too
much of a mix of processing and presentation, and CherryPy 2 and 3 use a
different scheme.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
smith jack wrote:
>
>this package is already in the site-packages directory, but i cannot
>import it , it's really confusing ...
The package is called "django". The name you put in the subject line is
wrong. Does your code use the right spelling?
--
Tim Roberts, t
John Doe wrote:
>
>Tim Roberts wrote:
>
>> That exact code works perfectly for me. The function returns as
>> soon as I press the escape key. You are running this from a
>> console process, and not a GUI process, right?
>
>No. I am running this from wit
Mateusz Loskot wrote:
>
>I'm wondering, why PyImport_ExecCodeModule function takes char*
>instead of const char*?
My guess is "history".
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ML and slimy HTML, and "htmllib", which derives from
it. I have used "htmllib" to parse HTML files where the tags were not
properly closed. Perhaps you could start from "htmllib" and modify it to
handle the quirks in your particular format.
--
Tim Roberts, t..
rce code, perhaps with
syntax coloring.
Surely there is no reason to have an "optimal" method of doing this -- this
is never going to be in an inner loop. If you have a method that works,
there is little justification to optimize...
--
Tim Roberts, t...@probo.com
Providenza & B
his announcement or your sourceforge.net page, do you
say a single word about what this application actually is.
Just a few sentences describing what the application does would go a long
way toward stirring up interest in this app.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc
want your app to
run on a web server so people use it through your browser). Please
clarify.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ying to pass this
>parameter to the next function so that the distance from the start
>node can be calculated
How do those numbers say anything about the distances between nodes?
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
g to want to use "select". You can store the objects in
a dictionary where the key is the socket number. That way, you can use the
result of the select and get your network object directly.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
64 bit machines.
There shouldn't be any difference. What error do you get, exactly?
Also, let me point out that you can access the registry in a couple of
ways, without invoking the overhead of WMI. I grant you that they are a
bit wordier, but it might get you around this issue.
--
Tim Rob
e yourself look exactly like a human being
at a browser. Fortunately, that's not too hard.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
art of the local namespace of the
outer function, but it's not part of the local namespace of the lambda.
You can solve this through the common lamba idiom of a closure:
lst=filter(lambda x,posttype=posttype: x["type"].lower()==posttype,lst)
--
Tim Roberts, t...@probo.com
Providenza
onstant 4. Such an
abomination is simply not possible in C. Is that implemented
under-the-hood with pointers/addresses? Of course it is. However, that
does not change the parameter passing model as defined by the language
specification.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 968 matches
Mail list logo