Server for Win98,
although I think it's awfully hard to configure. thttpd and xitami are
good lightweight web servers.
Apache works quite well in Windows, but I don't think it is very happy on
Windows 98.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
.
The statement
dir = []
does not actually change the list that was passed in. It creates a NEW
empty list and binds it to "dir".
If you want to empty the "dir" variable, try:
del dir[:]
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
get it in the python way ?
If you need to do this a lot, just keep two dictionaries, where the keys in
each are the values in the other.
reversephone = dict( zip( phone.values(), phone.keys() ) )
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
n i make rx_command of type 'int' if i am to use 2)?
Did you get an answer to this? I couldn't see any responses. The answer
is either:
rx_command = unpack('1B', rx_data_command)[0]
or
(rx_command,) = unpack('1B', rx_data_command)
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
t exist from the point of
view of the directory where the script is running this. You might do this:
print os.getcwd()
os.system('dir ' + InputDirectory)
just to prove that you are where you think you are.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
you open a file to read
>& never close it?
A file is closed when the last reference to it is deleted. Since you never
save a reference to this file, the last reference is deleted as soon as the
readlines() call finishes.
So, the file will be closed when you move to the next stateme
m Microsoft, and (C) no human being really wants to do.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
this:
a = (3 + 5) * 5
You really, really want (3 + 5) to be an integer, not a one-item tuple.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
th a lot of customization using
>Visual Basic.
The VB in Microsoft Office is not being discontinued.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
get around wtih this? I don't want to break down this
>comparison in two steps.
Sorry, you have to. Assignment statements are not expressions in Python.
m = self.macro_parser.match(d)
if m:
xxx
You know the outer parentheses are not necessary, right?
--
- Tim Roberts
script gets invoked, but command line arguments disappear.
>Any idea what to do?
Did you remember to pass the parameters when you created the file
association?
C:\TMP>assoc .py
.py=Python.File
C:\TMP>ftype Python.File
Python.File=C:\Apps\Python23\python.exe "%1" %*
C:\TMP>
--
My problem with both Delphi and Kylix is in getting them to connect
>with PostgreSQL and SQLite. Any suggestions? From what I have read, ODBC or
>JDBC may do it, but I have experience with neither.
There are direct Delphi components for both databases. Google is your
friend.
--
- Tim Ro
n't, really. I don't think the percentage of true newbie
questions has really gone up. However, as you grow more knowledgeable, the
percentage of questions that SEEM like newbie questions goes up.
comp.lang.python has always been a bastion of kindness and tolerance in the
comp.lang hi
sual C++ 7.1 is signficantly better at
compliance than their past compilers.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
e compiler of the python.thanks a lot!!!
Perhaps you could ask your question in a different way. Python is designed
as an interpreted language, like Perl and Javascript. It isn't compiled to
machine language.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
JanC <[EMAIL PROTECTED]> wrote:
>Tim Roberts schreef:
>
>> I don't think that's fair. Visual C++ 7.1 is signficantly better at
>> compliance than their past compilers.
>
>AFAIK that's only for C++, not for C...?
Yes. Microsoft has largely chosen t
27;t want to uninstall the old version. Red Hat installs packages
that are needed for its configuration scripts.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
C:\\Program Files\\WinRK\\WinRK.exe -create ' +
or
Command_String = r'C:\Program Files\WinRK\WinRK.exe -create ' +
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
; is just a normal function that creates the list
[0,1,2,3,4]. The "for" statement keeps running the loop until it runs out
of values in that list or tuple.
So, you CAN change the value of i, but it won't change the operation of the
loop.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
that the database provider inserts whatever quoting is
required; you don't have to remember to put single quotes around the
arguments, and protect single quotes within the arguments by doubling them,
and so on.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
be answered with a 4-line application using Twisted, but now
it's grown even more?
Remember the Master Control Program from Tron? I think of Twisted as
Python's MCP.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ef="+FLT) % (3.0,4.5)
Are you trying to do currency? There are better ways, using the locale
methods.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
st of 1,000+ evils."
Or, paraphrasing Mark Twain, "Python is the worst possible programming
language, except for all the others."
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
t; much quicker. To do that with your
code, I have to type "m tab 2 2 2 2 2 2 tab 2005".
As an alternative, there are Javascript-based mini-calendars you can
download that popup a little window with the current month, and let you
click on the date.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ion did not really say "^L".
It gave me the symbol for female, which is code point 12 in the default
character set. I translated it to the VIM equivalent to make the point.)
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ur problem solved, but you should know there is a problem
with this line. The print statement automatically adds an end-of-line, so
this will actually end up producing TWO blank lines after the header. You
should use this:
print "Content-type: text/html\n"
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
I don't know IDLE, but it's probably something like File->Run.
>>>> exit
>'Use File/Exit or your end-of-file key to quit IDLE'
>>>> print "Hello"
>Hello
THAT'S the way you use IDLE.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
;i1 = binascii.unhexlify(s1)
>i2 = binascii.unhexlify(s2)
>x = i1 ^i2
>
> TypeError: unsupported operand type(s) for ^: 'str' and 'str'
No imports at all:
s1 = '1C46BE3D9F6AA820'
s2 = '8667B5236D89CD46'
i1 = int(s1,16)
i2 = int(s2,16)
x =
't do that. It always sends plain old
application/x-www-form-urlencoded data.
I think you're going to have to roll your own sender.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
"Bob Then" <[EMAIL PROTECTED]> wrote:
>how can i change all files from one extension to another within a direcory?
In Windows, the quickest way is:
os.system( "rename *.old *.new" )
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
-
>http=httplib.HTTP("https://www.abc.com/",443)
If you want https, you should use the HTTPS class.
http = httplib.HTTPS("https://www.abc.com/",443)
Or, even better, the HTTPSConnection class.
http://www.noah.org/python/https/
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
It means that your function has "side effects" beyond just
returning a value or set of values. This kind of thing is a better
solution:
def change_filename():
return raw_input()
def change_path()
return raw_input()
filename = change_filename()
path = change_path()
--
-
t, even not a
>># pi-sonnet, but it surely produces Pi!
>
>It sure does. When I ran it my jaw dropped. I had 7,947 CORRECT digits in
>2 minutes 0 seconds (by my stopwatch)!
How do you know? I think the 7,912th digit is wrong.
;)
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza &
I'm
>planning to put the contents of UnxUtils.zip in a directory and then move
>the contents of UnxUpdates.zip, which has many of the same filenames, to
>the same directory. Should I just let Windows replace the old files with
>the updated ones?
Yes.
--
- Tim Roberts, [EMA
me to
>jump ship (to mix my metaphors).
That is truly wonderous. Are you famliar with the phrase "jumping the
shark"? This chart might prove that, with Perl 6, Perl has now "jumped the
shark".
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
myMoney
6
(0, 25L)
Instead, we get:
myMoney
6
(0, -1794967296)
The value has wrapped at 2**31.
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
r that
import smtplib
s = smtplib.SMTP("localhost")
usually communicates directly with the local server, whether it be sendmail
or postfix or whatever.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
on is a well-established and
mature programming tool.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
gnificant enough savings to
create new syntax. Remember the Python philosophy that there ought to be
one way to do it.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
information.
>>> s = 'Hello, \\\\World'
>>> s
'Hello, World'
>>> print s
Hello, \\World
>>> s = s.replace('','\\')
>>> s
'Hello, \\World'
>>> print s
Hello, \World
>>>
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
S used in English
>
>conformant => something that conforms
>performant => something that performs
Yes, I suspect it comes from people expecting too much consistency. If
something that has "conformance" is "conformant", then something that has
good "perfor
27;s a huge difference. If you want
your layout to BE Python code, then you have little alternative except to
use the suggestions offered. But if you simply want your scripts to be
interpreted by a Python program, then you can do whatever you want.
--
Tim Roberts, t...@probo.com
Providenza &
p; (a > 7) works because numpy.array has an override for
the "&" operator. So, that expression is compiled as
numpy.array.__and__(
numpy.array.__lt__(2, a),
numpy.array.__lt__(a, 7)
)
As Peter said, there's no way to override the "and" operator.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
like any other automatically
executable program:
xxx
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
onnect("dbname=busard_test user=laurent host=localhost
password=cactus")
or do this:
conn=psycopg2.connect(database='busard_test', user='laurent',
host='localhost', password='cactus'")
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
st fetch all of the record for the session after each
transaction, and make sure the contents match what you expect.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
;>> os.path.split(a)[1]
'flute.wav'
>>>
>I also want to know how to mirror a character, in my case this one ©,
>because I'll use the Copyleft http://en.wikipedia.org/wiki/Copyleft
>to distribute my app.
You can't "mirror" a charac
ward and backward slashes interchangably. It is
only the command interpreter that requires the backslash.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
sume (with no
evidence) that the "dead" function calls sys.exit, which kills the program.
In that case, this makes a little bit of sense. The first time you type
"taunt bear", bear_moved is set True and the loop runs again. If you type
"taunt bear" a second time, then th
gt;disaster.
That's exactly the problem. Because the number of permutations is limited,
once you know the first 28 cards, you can uniquely identify the permutation
you started with, and that's enough to get the entire sequence.
Now, it's going to take a hell of a lot of memory to s
% Process
i1 = (c1 + c2) % 26
% Encode
return chr(i1+65)
Or, as a one-liner:
A = ord('A')
def add(c1, c2):
return chr((ord(c1)-A + ord(c2)-A) % 26 + A)
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
installed py32win, which virtually every Windows Python user does:
import win32console
win32console.SetConsoleTitle(msg)
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
>On Sun, 13 Oct 2013 20:13:32 -0700, Tim Roberts wrote:
>
>> def add(c1, c2):
>> % Decode
>>...
>Python uses # for comments, not %, as I'm sure you know. What language
>were you thinking off when you wrote the above?
Pss
ke it part of the syntax? That way, you don't
accidentally have the indentation not match the syntax.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
ther. It's just a choice that a language designer has to make.
I happen to like Python's choice. You'll get used to it.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
x it came from. You have lost information.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
If you
would like to describe your compression scheme, there really are people
here who would be interested in reading it (although that number gets less
and less as this thread goes on).
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
>
>> I think the idea is that you could take any arbitrary input sequence,
>> view it as a large number, and then find what exponential equation can
>> produce that result. The equation becomes the "compression".
Interesting -- I hadn't noticed that. Of co
is invalid. Neither one of those statement have any comments.
There is a CONVENTION to embed a literal string as the first line in a
function, to allow for automatic documentation. Whether the literal string
is single-quoted or triple-quoted is irrelevant. That is, these two things
are
b\\turtle.py")
or
s.check_output(r"pyflakes c:\programs\python34\lib\turtle.py")
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
tor that helped turn the tide in what otherwise
would have been an ugly war of attrition, much like WWI.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
s was sent from my iPhone" == "I have an iPhone!"
Please note that iPhones come configured from the factory to say that. Some
users probably don't even know it is happening.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
Seymore4Head wrote:
>
>I want to give the computer 100 tries to guess a random number between
>1 and 100 picked by the computer.
If it takes more than 7, you're doing it wrong...
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailm
struct:
import struct
dscrp = "H?fs5B"
f = open('file.dat')
stuff = struct.unpack( dscrp, f.read() )
print stuff
In both cases, you have to KNOW the format of the data beforehand. If you
do a read_short where you happen to have written a float, disaster ensues.
I don't really see that you've added very much.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
Rustom Mody wrote:
>On Tuesday, August 26, 2014 6:58:42 AM UTC+5:30, Tim Roberts wrote:
>> To the equivalent code with struct:
>
>> import struct
>
>> dscrp = "H?fs5B"
>
>> f = open('file.dat')
>> stuff = struct.unpack( dsc
Rustom Mody wrote:
>On Tuesday, September 2, 2014 6:05:19 AM UTC+5:30, Tim Roberts wrote:
>> Rustom Mody wrote:
>
>> >On Tuesday, August 26, 2014 6:58:42 AM UTC+5:30, Tim Roberts wrote:
>
>> >> To the equivalent code with struct:
>> >> import
transparent. And wxPython adds significant
functionality on the top of that.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
https://mail.python.org/mailman/listinfo/python-list
into a 16-bit app is pretty
>impressive.
Actually, Microsoft made it pretty easy to call 32-bit DLLs in a 16-bit
process and vice versa. That's why many of us were surprised when they did
not provide the same capability in the 32/64 transition.
--
Tim Roberts, t...@probo.com
Providenza &
ithreading is not a win. The threads
will all compete with each other for the disk.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
s
>becoming more popular to.
Well, that's a religious argument. Personally, I've always been confused
by the draw of MySql. From the very beginning, Postgres has always been
more powerful, more reliable, more standard-compliant, and more
professional.
--
Tim Roberts, t...@probo.com
Is there any different multiplication pattern in python?
My guess is that you actually typed
p=3*a
instead of
p=2*a
That produces 45.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ttp://lalal.hhdik/'
values = {'password' : 'password',
'Entra' : 'Entra' }
data = urllib.urlencode(values)
req = urllib2.Request(url, data)
response = urllib2.urlopen(req)
the_page = response.read()
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
king for me. Do you have some kind of proxy in the way?
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
n in COBOL was conceptually
ahead of its time. It makes you THINK about your data structures more
than, say "struct" in C.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
hesis: If you need to look up whether they're
>necessary or not, they are :-)
Amen. +1
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
es, we do, because I'm always reading code from other people that didn't
follow that rule.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
= {
PyObject_HEAD_INIT(NULL)
};
You are creating a "type" object. It shouldn't be a surprise that it is
displayed as a , just like int and dict.
In a sweeping overgenerality, C modules define types and Python modules
define classes. You could redefine the __repr__ method to display "" if you want.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
g page alone. If you aren't, then I
think the easiest method is to use an invisible . From Javascript,
you can set the "src" property of the to fire off a request while
leaving the rest of the page alone.
You could spend the rest of your career reading all of the good web
material on A
>
>I suspect this is a bug in Decimal's interpretation of the standard. Can
>anyone comment?
I don't think Decimal ever promised to adhere to IEEE 754, did it?
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
en a proof of that.
I would assert that scripting languages are a proper subset of programming
languages, not a separate category.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
uns,
and terminates. Your first command adds a variable "i" to the environment
for that shell, but the variable is deleted when the shell procsess
terminates.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
for col in range(8):
with the more Pythonic:
for row in board:
for cell in row:
I would probably replace the piece_type function with a map that maps the
piece number directly to the piece
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
Chris Hinsley wrote:
>
>Is a Python list as fast as a bytearray ?
Python does not actually have a native array type. Everything in your
program that looked like an array was actually a list.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.o
effect immediately, so
>is there some way to change the windows registry and let the changes
>take effect immediately without restarting IE ?
No. This is an IE issue, not a registry issue. Other browsers might
behave differently.
--
Tim Roberts, t...@probo.com
Providenza &am
Python 3. In Python 3, "print" is a function that returns
None. So, the error is exactly correct. To fix it, you need to have the %
operator operate on the string, not on the result of the "print" function:
print('''Ah, so your name is %s, your quest is %s, and your
favorite color is %s.''' % (name, quest, color))
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
leonardo wrote:
>
>thank you all!
So, what was the problem?
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
7; , '421', '27-Oct'),
>('Stacy Kisha', 'Ministry of Man Power', '1234567,17-Jan')][/CODE]
>
>i need ' ' in all the row and the , to be remove after the date
Do you have any intention of doing ANY of this work on your o
morphex wrote:
>
>While we're on the subject, wouldn't it be nice to have some cap there so
>that it isn't possible to more or less block the system with large
>exponentiation?
There IS a cap. It's called the "MemoryError" exception.
But, seriously,
Kindle doesn't
run Windows.
>I've tried downloading ubuntu to my kindle and couldn't,
Did you download the x86 version? That will not work. There are Ubuntu
distributions available for the Kindle Fire, but it's going to require
getting your hands dirty. Google is your frien
ming language in which to implement
an open source version of the ill-fated Microsoft Bob project.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ble solution. Every operating system handles this kind of
this very differently. Remember, the operating system abstractions are all
designed to hide this from you. When you open a serial port or an audio
device or use a file system, you aren't supposed to KNOW that there is a
USB device behi
own glob expansion.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
s no way to represent NaN in JSON. It's simply not part of the
specification. From RFC 4627 section 2.4:
Numeric values that cannot be represented as sequences of digits
(such as Infinity and NaN) are not permitted.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
ng* 'N/A' for every NaN.
You understand that this will result in a chunk of text that is not JSON?
Other JSON readers won't be able to read it.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
you see the picture, you can see that you'd thread from B to D without
involving C. I think you'll go A to B to D to F to G -- 4 threads.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
okie: header with your first response.
You just need to return that in a Cookie: header with every request you
make after that.
>Are their other ways to keep control over which players sends the gamedata?
Not sure what you mean. If the web site requires cookies, this is what you
have to do.
--
Forafo San wrote:
>
>OK, lesson learned: Take care not to have module names that conflict with
>python's built ins. Sorry for being so obtuse.
You don't have to apologize. We've all been bitten by this at least once.
--
Tim Roberts, t...@probo.com
Providenza &
ord(b)) )
bsstr = ''.join(bsstr)
or even:
f = open('example.bmp','rb')
bsstr = ''.join( bin(ord(b))[2:] for b in f.read() )
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
an angle other than head on,
only ONE of the velocities is reversed. When you hit a horizontal paddle,
only the Y velocity is negated. The ball continues in the same X
direction:
\O
\ /
\/
See? The X velocity continues unchanged until it hits a vertical
the previous one a lot. You may be quite right in your *guess*
>that he doesn't need that, but there isn't enough information present in
>his request for either of us to know.
You are correct. Once you pointed it out, I now see what you were
suggesting.
--
- Tim Roberts, [EMAIL
201 - 300 of 968 matches
Mail list logo