×

Discussion Board

Search:

Type: Posts; User: eichin; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    7,093

    NaN handling bug in 1.1.3

    (At europython, it was suggested that the forum is still the best place for bug reports...)

    >>> lat = 0.0
    >>> lon = 0.0
    >>> math.atan2(lat,lon)
    NaN
    >>> 360.0*math.atan2(lat,lon)
    **...
  2. Replies
    2
    Views
    6,061

    If the code you've supplied is an accurate copy,...

    If the code you've supplied is an accurate copy, then the problem is simple:

    s.close

    is "the value of the close method of s", whereas

    s.close()

    actually *calls* the close function...
  3. Replies
    2
    Views
    7,842

    You might be able to poke around in...

    You might be able to poke around in c:\system\mail directly; that's where messages (sms and email at least) are stored on the 6630, though I don't know if there's a parser for them (they appear to...
  4. (For now, I've kludged it to urllib.open.read a...

    (For now, I've kludged it to urllib.open.read a remote web page that just returns the client address as a string; for the simple case, this would work with NAT'ed addresses too, since all that...
  5. Can I get the local address from the stripped-down socket lib?

    Trying to implement a client for a protocol that includes the client-side IPV4 address in a UDP packet. (No, the protocol doesn't work from behind a NAT :-) No socket.gethostname, no...
  6. Replies
    3
    Views
    7,075

    I do it the easy way - not with browse (which...

    I do it the easy way - not with browse (which doesn't seem to work at all from the mac anyhow) but with "Send File", which is I assume OBEX-level... at least from the Mac, I use Bluetooth File...
  7. Replies
    8
    Views
    14,574

    Looks like it happens at the lowest layer, if...

    Looks like it happens at the lowest layer, if that wasn't already obvious:



    >>> from e32socket import *
    >>> es = socket(AF_INET, SOCK_STREAM)
    >>> es.connect(("147.243.138.170", 443))
    >>> ses...
  8. what I really want

    I want a python script to run on incoming calls, and sms/mms messages. Even being able to hang around and "notice" that one came in and act is probably good enough, especially if we get an...
  9. re smtp/email modules: that falls under "include...

    re smtp/email modules: that falls under "include everything that works anyway now that you have a full socket.*" -- smtp, poplib, nntplib -- after all, someone's already demonstrated using socket to...
  10. camera api

    I see two big use cases - randomly grab a picture, noninteractively, and have the user take a picture and do something with it when it is done.

    The latter might be done with a hook to the existing...
  11. Replies
    8
    Views
    14,574

    I also see it on a 6630 (HK firmware, from...

    I also see it on a 6630 (HK firmware, from expansys - is there an easy way to ask it for the version? it wasn't in settings-about...) urllib can open and .read random http pages, but...
Results 1 to 11 of 11
×