Re: howto resend args and kwargs to other func?

2007-07-01 Thread Bruno Desthuilliers
Frank Swarbrick a écrit : > dmitrey wrote: > >> Thanks all, I have solved the problem. > > > Why do people do this without posting what the actual solution is Probably because those people think usenet is a free help desk ? -- http://mail.python.org/mailman/listinfo/python-list

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Drex
Hello, > > seams thatpythonbindings are already there? > >http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientPython > > Cool, didn't find that. thanks, this looks to be what I was looking for! regards dz -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode

2007-07-01 Thread Martin v. Löwis
> ooops. I mean is that the same as print calling > u_str.encode(sys.stdout.encoding)? Almost. It's rather u_str.encode(sys.stdout.encoding or sys.getdefaultencoding()) (in case sys.stdout.encoding isn't set) Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Probably simple syntax error

2007-07-01 Thread Mark Peters
> **weights_array(randomizing_counter) = small_randomized_int > > The starred line is the one getting the error message: "SyntaxError: > can't assign to function call" > > Now, I do understand what this means. I'm trying to assign to a > function instead of the value that the function shoul

Re: Reversing a string

2007-07-01 Thread Paul Rubin
Martin Durkin <[EMAIL PROTECTED]> writes: > Is it just a matter of reading *all* the documentation before I start > coding? It's worth spending an hour or two reading through the library manual, yes. -- http://mail.python.org/mailman/listinfo/python-list

RE: Probably simple syntax error

2007-07-01 Thread Delaney, Timothy (Tim)
Dustin MacDonald wrote: > [code] > randomizing_counter = 0 > # Put the loop counter for the randomizing to zero. > until_val = 36 > # Set the "until val" to 36. We'll compare them to make sure we're not > at the end of our wordlist_both. > > while randomizing_counter < until_val: > big_rand

Re: Probably simple syntax error

2007-07-01 Thread Gary Herron
Dustin MacDonald wrote: > Hi everyone. > > This is my first time posting to this newsgroup, and although I > maintain my netiquette I might've missed something specific to the > newsgroup, so hopefully you can avoid flaming me if I have :) I > apologize for the length of this post but I figure the

Is there a hadoop read/write module?

2007-07-01 Thread wang yingqi
hi all anyone knows? is there a hadoop read/write client module for python yet?or any projects in developing? thanks all. -- Regards. wangyingqi -- http://mail.python.org/mailman/listinfo/python-list

Probably simple syntax error

2007-07-01 Thread Dustin MacDonald
Hi everyone. This is my first time posting to this newsgroup, and although I maintain my netiquette I might've missed something specific to the newsgroup, so hopefully you can avoid flaming me if I have :) I apologize for the length of this post but I figure the more information the better. My pr

Re: Reversing a string

2007-07-01 Thread Martin Durkin
[EMAIL PROTECTED] (Alex Martelli) wrote in news:[EMAIL PROTECTED]: > Martin Durkin <[EMAIL PROTECTED]> wrote: >... >> >> def rev(x): >> >>> mylist = [] >> >>> for char in x: >> >>> mylist.append(char) >> >>> mylist.reverse() >> >>>

Re: How to uninstall packages

2007-07-01 Thread Jorge Vargas
On 7/1/07, Rustom Mody <[EMAIL PROTECTED]> wrote: > Yeah sure thats what is (finally) working but its never clear upfront > for a package what its dependency needs are -- linux version of DLL > hell. And it gets worse for systems that are little worlds in > themselves like python, ruby, eclipse, w

Re: Tiny/small/minimalist Python?

2007-07-01 Thread Campbell Barton
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > rtk <[EMAIL PROTECTED]> wrote: >> I'm looking for information on building a tiny/small/minimalist/ >> vanilla python interpreter. One that implements the core language and >> a few of the key modules but isn't tied to any specific operating

Re: Tiny/small/minimalist Python?

2007-07-01 Thread Paul Rubin
rtk <[EMAIL PROTECTED]> writes: > I'm looking for information on building a tiny/small/minimalist/ > vanilla python interpreter. One that implements the core language and > a few of the key modules but isn't tied to any specific operating > system. You've gotten good suggestions about Python conf

Re: Tiny/small/minimalist Python?

2007-07-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, rtk <[EMAIL PROTECTED]> wrote: >I'm looking for information on building a tiny/small/minimalist/ >vanilla python interpreter. One that implements the core language and >a few of the key modules but isn't tied to any specific operating >system. > >I guess I'm asking

Re: unicode

2007-07-01 Thread 7stud
On Jul 1, 9:51 pm, 7stud <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for the detailed response. > > On Jul 1, 2:14 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > > > 1) If you print a unicode string: > > > > a) str() calls encode(), and encode() tries to convert the unicode > > > string to a

Re: unicode

2007-07-01 Thread 7stud
Hi, Thanks for the detailed response. On Jul 1, 2:14 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > 1) If you print a unicode string: > > > > a) str() calls encode(), and encode() tries to convert the unicode > > string to a regular string. encode() uses the default encoding, which > > is

Re: How to uninstall packages

2007-07-01 Thread Rustom Mody
Yeah sure thats what is (finally) working but its never clear upfront for a package what its dependency needs are -- linux version of DLL hell. And it gets worse for systems that are little worlds in themselves like python, ruby, eclipse, webmin etc. because they have their own package-management

delicious.py 0.2.5: Patch to solve the 401 issue

2007-07-01 Thread Kai Kuehne
Hi, I just wanted to mention that I wrote a patch for delicious.py 0.2.5 that solves the 401 "bug". The delicious guys changed their api to use ssl and stuff. I already sent the patch to the author, but in case you need the library asap (as I did) you can apply it and it should work. Greetings Ka

Re: what is the PythonWin

2007-07-01 Thread O.R.Senthil Kumaran
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2007-07-01 15:53:30]: > In PythonWin, select Tools | COM MakePy utility | Microsoft Speech > Object Library 5.1). > > I can't find PythonWin .. Does anybody know what this is. I have the > Python shell gui but no "PythonWin". > PythonWin is a separate pr

Re: Tiny/small/minimalist Python?

2007-07-01 Thread Terry Reedy
"rtk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | I'm looking for information on building a tiny/small/minimalist/ | vanilla python interpreter. One that implements the core language and | a few of the key modules but isn't tied to any specific operating | system. | | I guess I

Re: Reversing a string

2007-07-01 Thread Jay Loden
Alex Martelli wrote: > since what you're doing is...: > s = "onomatopoeia" s = s.join(s[::-1]) s > 'aonomatopoeiaionomatopoeiaeonomatopoeiaoonomatopoeiaponomatopoeiaoonoma > topoeiatonomatopoeiaaonomatopoeiamonomatopoeiaoonomatopoeianonomatopoeia > o' > > ...which isn't really jus

Re: urllib2 : https and proxy

2007-07-01 Thread O.R.Senthil Kumaran
* Maric Michaud <[EMAIL PROTECTED]> [2007-06-28 23:38:39]: > Hmmm, i've tried something similar but I get the same result. > > For the code example I gave, I've put correctly the http_proxy and > https_proxy environment variables, the default ProxyHandler get them right > as this is the pro

Re: howto resend args and kwargs to other func?

2007-07-01 Thread Frank Swarbrick
dmitrey wrote: > Thanks all, I have solved the problem. Why do people do this without posting what the actual solution is -- http://mail.python.org/mailman/listinfo/python-list

Re: equality & comparison by default (was Re: Too many 'self' in python.That's a big flaw in this language.)

2007-07-01 Thread Alan Isaac
A.T.Hofkamp wrote: > Hmm, maybe numbers in sets are broken then? a = 12345 b = 12345 a == b > > True > a is b > > False > set([a,b]) > > set([12345]) > > Numbers and my Car2 objects behave the same w.r.t. '==' and 'is', yet I get a > set with 1 number, and a set with 2 car

Re: Reversing a string

2007-07-01 Thread Frank Swarbrick
Alex Martelli wrote: > Martin Durkin <[EMAIL PROTECTED]> wrote: >... > print "\n".join("spam"[::-1]) >... OK, maybe I'm missing the point here as I'm new to Python. The first one seems clearer to me. What am I missing? >>> I think all you are missing is familarity wit

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Ben Finney
Martin Gregorie <[EMAIL PROTECTED]> writes: > I've never seen Julian time used outside the world of IBM > mainframes. I'd be interested to know who else uses it. Systems which need to perform date+time computations into the past. One advantage of Julian time is that it ignores the "1 BC was immed

Re: The best platform and editor for Python

2007-07-01 Thread [EMAIL PROTECTED]
kimiraikkonen wrote: > Hi, > For experienced with Pyhton users, which developing software and > enviroment would you suggest for Pyhton programming? Compiler+Editor > +Debugger. I use standard CPython bytecode compiler/virtual machine, the Vim editor, and standard pdb for debugging. Vim is nice a

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Paul Rubin
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > What is not mentioned is that, as part of the data stream picked up > by GPS receivers, is a term specifying the "correction factor" between > GPS and UTC; so receivers can display UTC time. Oh yes, good point, the article ought to mention that

Tiny/small/minimalist Python?

2007-07-01 Thread rtk
I'm looking for information on building a tiny/small/minimalist/ vanilla python interpreter. One that implements the core language and a few of the key modules but isn't tied to any specific operating system. I guess I'm asking for the smallest subset of the standard Python source code files that

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Martin Gregorie
Roedy Green wrote: > On Sun, 01 Jul 2007 17:47:36 +0100, Martin Gregorie > <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted > someone who said : > >> GPS time is UTC time and I'd assume the same is true for Loran. > > not according to this site that has clocks running on all three. > They a

what is the PythonWin

2007-07-01 Thread steveandleyla
I downloaded Python 5.1 for windows so I could run a program. I have to do the following: In PythonWin, select Tools | COM MakePy utility | Microsoft Speech Object Library 5.1). I can't find PythonWin .. Does anybody know what this is. I have the Python shell gui but no "PythonWin". THanks. -

pos to blepeis

2007-07-01 Thread [EMAIL PROTECTED]
http://kokonis.aygoystinos.googlepages.com/ http://theologos.kokkonis.googlepages.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ctype and functions that return a pointer to a structure

2007-07-01 Thread hg
Lenard Lindstrom wrote: > hg wrote: >> Hi, >> >> I have the following code: >> ** >> from ctypes import * >> g_lib = cdll.LoadLibrary("libc.so.6") >> class Struct_Password(Structure): >> """ >> >> """ >> _fields_ = [ ('name', c_char_p), >>

Re: Reversing a string

2007-07-01 Thread Alex Martelli
Jay Loden <[EMAIL PROTECTED]> wrote: ... > For what it's worth, with python 2.5 on my Macbook: Hmmm, doesn't look to me as if it's worth much...: > [EMAIL PROTECTED] jloden]$ python -m timeit 's = "onomatopoeia"; s = s.join(s[::-1])' since what you're doing is...: >>> s = "onomatopoeia" >>>

Re: object references/memory access

2007-07-01 Thread Alex Martelli
dlomsak <[EMAIL PROTECTED]> wrote: ... > search and return takes a fraction of a second. For a large return (in > this case 21,000 records - 8.3 MB) is taking 18 seconds. 15 of those > seconds are spent sending the serialized results from the server to > the client. I did a little bit of a blind

Re: The best platform and editor for Python

2007-07-01 Thread Laurent Pointal
kimiraikkonen wrote: > Hi, > For experienced with Pyhton users, which developing software and > enviroment would you suggest for Pyhton programming? Compiler+Editor > +Debugger. > > Also what are your suggestions for beginners of Pyhton programming? Under Windows, take a look at PyScripter. For

Re: ctype and functions that return a pointer to a structure

2007-07-01 Thread Lenard Lindstrom
hg wrote: > Hi, > > I have the following code: > ** > from ctypes import * > g_lib = cdll.LoadLibrary("libc.so.6") > class Struct_Password(Structure): > """ > > """ > _fields_ = [ ('name', c_char_p), > ('code', c_char_p

Re: object references/memory access

2007-07-01 Thread dlomsak
Martin v. Löwis wrote: > > I guess now I'd like to know what are good practices in general to get > > better results with sockets on the same local machine. I'm only > > instantiating two sockets total right now - one client and one server, > > and the transfer is taking 15 seconds for only 8.3MB.

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Diez B. Roggisch
morphine schrieb: > Diez B. Roggisch wrote: > >> Wrap this >> >> http://www.zuckschwerdt.org/apidocs/ > > seams that python bindings are already there? > http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientPython Cool, didn't find that. diez -- http://mail.python.org/mailman/listinfo

Re: unicode

2007-07-01 Thread Martin v. Löwis
> 1) If you print a unicode string: > > *print implicitly calls str()* No. print does nothing if the object is already a string or unicode object, and calls str() only otherwise. > a) str() calls encode(), and encode() tries to convert the unicode > string to a regular string. encode() uses the

Re: The best platform and editor for Python

2007-07-01 Thread kimiraikkonen
On Jul 1, 10:59 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > > Thank you for the suggestions. I'd prefer a GUI-based, helpful and > > easy-implemention skilled enviroment. Tesekkurler Sayin Kartal :-) > > then first decide which graphical package you want to use, > because that limits your choice.

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread morphine
Diez B. Roggisch wrote: > Wrap this > > http://www.zuckschwerdt.org/apidocs/ seams that python bindings are already there? http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientPython -- morphine -- http://mail.python.org/mailman/listinfo/python-list

ctype and functions that return a pointer to a structure

2007-07-01 Thread hg
Hi, I have the following code: ** from ctypes import * g_lib = cdll.LoadLibrary("libc.so.6") class Struct_Password(Structure): """ """ _fields_ = [ ('name', c_char_p), ('code', c_char_p), ('date', c_lon

Re: object references/memory access

2007-07-01 Thread Martin v. Löwis
> I guess now I'd like to know what are good practices in general to get > better results with sockets on the same local machine. I'm only > instantiating two sockets total right now - one client and one server, > and the transfer is taking 15 seconds for only 8.3MB. It would be good if you had sh

Re: How does py2exe work?

2007-07-01 Thread vasudevram
On Jul 2, 12:43 am, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: > Thomas Jollans wrote: > > On Sunday 01 July 2007, vasudevram wrote: > > >> Wondering how it works? Does it actually compile the Python source of > >> your script into machine language, or does it do something more like > >> bund

Re: The best platform and editor for Python

2007-07-01 Thread Stef Mientki
> Thank you for the suggestions. I'd prefer a GUI-based, helpful and > easy-implemention skilled enviroment. Tesekkurler Sayin Kartal :-) > then first decide which graphical package you want to use, because that limits your choice. cheers, Stef Mientki -- http://mail.python.org/mailman/listinf

Re: The best platform and editor for Python

2007-07-01 Thread cyberco
There is one tool you won't be able to live without: iPython (no, it's not an Apple product, but it would be worth waiting in line for 3 days for) http://ipython.scipy.org/moin/ -- http://mail.python.org/mailman/listinfo/python-list

Re: The best platform and editor for Python

2007-07-01 Thread Roy Smith
In article <[EMAIL PROTECTED]>, kimiraikkonen <[EMAIL PROTECTED]> wrote: > Hi, > For experienced with Pyhton users, which developing software and > enviroment would you suggest for Pyhton programming? Compiler+Editor > +Debugger. > > Also what are your suggestions for beginners of Pyhton program

Re: unicode

2007-07-01 Thread 7stud
Erik Max Francis wrote: > 7stud wrote: > > > Based on this example and the error: > > > > - > > u_str = u"abc\u" > > print u_str > > > > UnicodeEncodeError: 'ascii' codec can't encode character u'\u' in > > position 3: ordinal not in range(128) > > -- > > > > it looks like when I t

Re: How does py2exe work?

2007-07-01 Thread Wildemar Wildenburger
Thomas Jollans wrote: > On Sunday 01 July 2007, vasudevram wrote: > >> Wondering how it works? Does it actually compile the Python source of >> your script into machine language, or does it do something more like >> bundling the Python interpreter, the Python libraries and the script >> itself,

Re: object references/memory access

2007-07-01 Thread dlomsak
Thanks for the responses folks. I'm starting to think that there is merely an inefficiency in how I'm using the sockets. The expensive part of the program is definitely the socket transfer because I timed each part of the routine individually. For a small return, the whole search and return takes a

Re: The best platform and editor for Python

2007-07-01 Thread kimiraikkonen
On Jul 1, 10:30 pm, "Sönmez Kartal" <[EMAIL PROTECTED]> wrote: > Hello, > > Emacs is the best for anything for me. Some people prefers Eclipse > with PyDev extension. > > Build some real world applications with Python. Pick what do you need > from SourceForge or similar one then write it. If it is

Re: The best platform and editor for Python

2007-07-01 Thread kimiraikkonen
On Jul 1, 10:30 pm, "Sönmez Kartal" <[EMAIL PROTECTED]> wrote: > Hello, > > Emacs is the best for anything for me. Some people prefers Eclipse > with PyDev extension. > > Build some real world applications with Python. Pick what do you need > from SourceForge or similar one then write it. If it is

Re: How does py2exe work?

2007-07-01 Thread Thomas Jollans
On Sunday 01 July 2007, vasudevram wrote: > Wondering how it works? Does it actually compile the Python source of > your script into machine language, or does it do something more like > bundling the Python interpreter, the Python libraries and the script > itself, into a file? essentially, that's

Re: The best platform and editor for Python

2007-07-01 Thread kimiraikkonen
On Jul 1, 10:30 pm, "Sönmez Kartal" <[EMAIL PROTECTED]> wrote: > Hello, > > Emacs is the best for anything for me. Some people prefers Eclipse > with PyDev extension. > > Build some real world applications with Python. Pick what do you need > from SourceForge or similar one then write it. If it is

Re: The best platform and editor for Python

2007-07-01 Thread Sönmez Kartal
Hello, Emacs is the best for anything for me. Some people prefers Eclipse with PyDev extension. Build some real world applications with Python. Pick what do you need from SourceForge or similar one then write it. If it is something you need then you probably will make it more special then you fou

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Drex
Hello, > > Wrap this > > http://www.zuckschwerdt.org/apidocs/ > > using ctypes. thanks, no idea on how to do it (yet hopefully), but I will try ;) regards dz -- http://mail.python.org/mailman/listinfo/python-list

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread CBFalconer
Roedy Green wrote: > On 25 Jun 2007 18:46:25 -0700, Paul Rubin > ... snip ... > >> TAI really does seem like the most absolute--if you are a user >> in orbit or on Mars, then UTC timestamps will seem pretty >> meaningless and artificial. > > According to Einstein all time is local time, so perhap

The best platform and editor for Python

2007-07-01 Thread kimiraikkonen
Hi, For experienced with Pyhton users, which developing software and enviroment would you suggest for Pyhton programming? Compiler+Editor +Debugger. Also what are your suggestions for beginners of Pyhton programming? Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Roedy Green
On Sun, 01 Jul 2007 17:47:36 +0100, Martin Gregorie <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : >GPS time is UTC time and I'd assume the same is true for Loran. not according to this site that has clocks running on all three. They are out slightly. http://www.leaps

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Paul Rubin
Martin Gregorie <[EMAIL PROTECTED]> writes: > GPS time is UTC time According to Wikipedia, While most clocks are synchronized to Coordinated Universal Time (UTC), the Atomic clocks on the satellites are set to GPS time. The difference is that GPS time is not corrected to match the r

How does py2exe work?

2007-07-01 Thread vasudevram
Hi, I recently checked out py2exe (on Windows). Looks good. Was able to build an EXE out of one of my Python apps. Wondering how it works? Does it actually compile the Python source of your script into machine language, or does it do something more like bundling the Python interpreter, the Python

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Diez B. Roggisch
Drex schrieb: > Hey, > >>> I'm not sure but try this: ( py_s60 ) >>> http://sourceforge.net/projects/pyed/ > >> and also try this: >> >> http://sourceforge.net/projects/pys60 > > thanks, but I am affraid this is not what I was looking for. I need to > have some library on my pc (linux) that w

Re: Reversing a string

2007-07-01 Thread Alex Martelli
Martin Durkin <[EMAIL PROTECTED]> wrote: ... > >> def rev(x): > >>> mylist = [] > >>> for char in x: > >>> mylist.append(char) > >>> mylist.reverse() > >>> for letter in mylist: > >>> print letter > >>> > >>>

Re: How to uninstall packages

2007-07-01 Thread Thomas Jollans
On Sunday 01 July 2007, Rustom Mody wrote: > I first installed the debian package python-pysqlite1.1 using > synaptic. Since this seemed too old for other packages (sqlalchemy) I > downloaded the sources pysqlite-2.3.4.tar.gz and ran setup install. I wonder why you chose not to use python-pysqli

Re: Python + Google Calendar API issue

2007-07-01 Thread kyosohma
On Jul 1, 7:15 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > > > Hi, > > > I was trying to hook into Google Calendar today using their gdata > > module for Python, but I can't seem to get Python to work with it. > > When I run the setup.py from the command lin

Re: Reversing a string

2007-07-01 Thread Jay Loden
Evan Klitzke wrote: > >> I guess that's it. The first one reads more like a textbook example which >> is about where I am at. Is there any speed benefit from the one liner? > > The one line is quite a bit faster: > > [EMAIL PROTECTED] ~ $ python -m timeit 's = "onomatopoeia"; s = > s.join(s[::-

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Drex
Hey, > > I'm not sure but try this: ( py_s60 ) > > >http://sourceforge.net/projects/pyed/ > and also try this: > > http://sourceforge.net/projects/pys60 thanks, but I am affraid this is not what I was looking for. I need to have some library on my pc (linux) that would allow me to transfer a

Re: Python's "only one way to do it" philosophy isn't good?

2007-07-01 Thread Lenard Lindstrom
Douglas Alan wrote: > Lenard Lindstrom <[EMAIL PROTECTED]> writes: > >> Explicitly clear the exception? With sys.exc_clear? > > Yes. Is there a problem with that? > As long as nothing tries to re-raise the exception I doubt it breaks anything: >>> import sys >>> try: raise Standard

Re: Shed Skin Python-to-C++ Compiler 0.0.21, Help needed

2007-07-01 Thread Mark Dufour
hi felix, On 6/29/07, felix seltzer <[EMAIL PROTECTED]> wrote: > does this project include support for pygtk type GUI's? No, it won't work for arbitrary python programs. Shed Skin is currently limited to smallish programs (up to a few hundred lines), that only use a few basic modules (random, mat

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Martin Gregorie
Roedy Green wrote: > On Tue, 26 Jun 2007 13:04:50 +0100, Martin Gregorie > <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted > someone who said : > >> TAI? Care to provide a reference? > > see http://mindprod.com/jgloss/tai.html > Thanks. Your list of NTP servers on http://mindprod.com/jgl

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Martin Gregorie
Roedy Green wrote: > > To add to the confusion you have GPS, Loran and Julian day also used > as scientific times. > GPS time is UTC time and I'd assume the same is true for Loran. Both are primarily for navigation and so are on Zulu time, which is another name for UTC. Zulu is the internationa

Re: object references/memory access

2007-07-01 Thread Paul Rubin
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > > If this is a Linux server, it might be possible to use the SCM_RIGHTS > > message to pass the socket between processes. > > I very much doubt that the OP's problem is what he thinks it is, > i.e. that copying over a local TCP connection is what mak

Re: Reversing a string

2007-07-01 Thread Evan Klitzke
On 1 Jul 2007 11:09:40 GMT, Martin Durkin <[EMAIL PROTECTED]> wrote: > Duncan Booth <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > > > Martin Durkin <[EMAIL PROTECTED]> wrote: > > > >> def rev(x): > >>> mylist = [] > >>> for char in x: > >>> my

hi every one please become a member to this site and win much more money!!!!

2007-07-01 Thread kasim
http://www.agloco.com/r/BBFR2592 http://www.agloco.com/r/BBFR2592 http://www.agloco.com/r/BBFR2592 Dear __, I recently joined AGLOCO because of a friend recommended it to me. I am now promoting it to you because I like the idea and I want you to share in what I think will be an exciting n

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread vedrandekovic
[EMAIL PROTECTED] je napisao/la: > Drex je napisao/la: > > Hi, > > > > I have been looking on the internet for some info about sending files > > from PC to a mobile phone (I have a nokia 6288) but I was not able to > > find anything. > > > > there is a lot of info how to transfer files from a symb

Re: using urllib, urllib2 , mechanize to access password protected site

2007-07-01 Thread John J. Lee
comeshopcheap <[EMAIL PROTECTED]> writes: > Hi > > I am using this script to access doba.com (I need to download some > files) but I keep on being sent back to the login page not the user > home page. Any help. I think I may need to use a post method and > opener is using a get method > > Thanks >

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread vedrandekovic
Drex je napisao/la: > Hi, > > I have been looking on the internet for some info about sending files > from PC to a mobile phone (I have a nokia 6288) but I was not able to > find anything. > > there is a lot of info how to transfer files from a symbian phone to a > pc, but nothing about sending th

Re: object references/memory access

2007-07-01 Thread Martin v. Löwis
> If this is a Linux server, it might be possible to use the SCM_RIGHTS > message to pass the socket between processes. I very much doubt that the OP's problem is what he thinks it is, i.e. that copying over a local TCP connection is what makes his application slow. > That would require a > patch

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Roedy Green
On 25 Jun 2007 18:46:25 -0700, Paul Rubin wrote, quoted or indirectly quoted someone who said : >TAI really does seem like the most absolute--if you are a user in >orbit or on Mars, then UTC timestamps will seem pretty meaningless and >artificial. According to Einstein

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Thomas Jollans
On Sunday 01 July 2007, Roedy Green wrote: > On 25 Jun 2007 18:46:25 -0700, Paul Rubin > wrote, quoted or indirectly quoted > > someone who said : > >You cannot accurately compute > >the number of seconds between Nixon's resignation and 1800 UTC today, > >unless you take

Re: object references/memory access

2007-07-01 Thread Paul Rubin
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > No. The CGI script has a file handle, and it is not possible to pass > a file handle to a different process. > > > If there is not a good Pythonic way to do the above, I am open to > > mixing in some C to do the job if that is what it takes. > > No,

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Roedy Green
On Tue, 26 Jun 2007 13:04:50 +0100, Martin Gregorie <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : >TAI? Care to provide a reference? see http://mindprod.com/jgloss/tai.html -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com -- http://mail.pyth

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Paul Rubin
Roedy Green <[EMAIL PROTECTED]> writes: > >You cannot accurately compute > >the number of seconds between Nixon's resignation and 1800 UTC today, > >unless you take into account the leap seconds have been occurred > >between then and now. > > There are two valid answers to those questions. In a c

Re: object references/memory access

2007-07-01 Thread Martin v. Löwis
> b) use a single Python server (possibly shared with the database >process), and connect this to Apache through the >reverse proxy protocol. Following up to myself: Instead of using a reverse proxy, you can also implement the FastCGI protocol in the server. Regards, Martin -- http://mai

Re: object references/memory access

2007-07-01 Thread Martin v. Löwis
> I have searched a good deal about this topic and have not found > any good information yet. It seems that the people asking all want > something a bit different than what I want and also don't divulge much > about their intentions. I wish to improve the rate of data transfer > between two pyt

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Roedy Green
On 25 Jun 2007 18:46:25 -0700, Paul Rubin wrote, quoted or indirectly quoted someone who said : >You cannot accurately compute >the number of seconds between Nixon's resignation and 1800 UTC today, >unless you take into account the leap seconds have been occurred >betwee

Re: Python app as a Display Manager

2007-07-01 Thread hg
"Martin v. Löwis" wrote: >> I feel at this stage that what I miss is: assuming I manage to get a >> python-based dialog box started automatically from init.rc (instead of >> xdm, gdm, ...): how do I start an X11 session with the user/pw >> information retrieved ... + set the correct *nix environme

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Peter J. Holzer
On 2007-06-22 20:33, James Harris <[EMAIL PROTECTED]> wrote: > I have a requirement to store timestamps in a database. Simple enough > you might think but finding a suitably general format is not easy. The > specifics are > > 1) subsecond resolution - milliseconds or, preferably, more detailed > 2)

eGenix Partner Network (Pre-Announcement)

2007-07-01 Thread M.-A. Lemburg
Hello, we are currently looking into setting up a partner network of companies interested and able to sell and support our products with a more regional focus than we can deliver. The idea is to provide customers with a closer and more direct contact for first level support. Network partners shou

how to send files via bluetooth with python to a mobile

2007-07-01 Thread Drex
Hi, I have been looking on the internet for some info about sending files from PC to a mobile phone (I have a nokia 6288) but I was not able to find anything. there is a lot of info how to transfer files from a symbian phone to a pc, but nothing about sending them in the oposite direction. would

Re: Python app as a Display Manager

2007-07-01 Thread Martin v. Löwis
> I feel at this stage that what I miss is: assuming I manage to get a > python-based dialog box started automatically from init.rc (instead of xdm, > gdm, ...): how do I start an X11 session with the user/pw information > retrieved ... + set the correct *nix environment variables. First, the user

Re: Python + Google Calendar API issue

2007-07-01 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Hi, > > I was trying to hook into Google Calendar today using their gdata > module for Python, but I can't seem to get Python to work with it. > When I run the setup.py from the command line, I get the following: > > Traceback (most recent call last): > File "J:\Pyt

Re: Reading image dimensions before it is loaded from a web form using python.

2007-07-01 Thread Diez B. Roggisch
> > Without running some special client-side application, I think you'd > have to do some trickery with the web server involving artificially > stopping the upload after receiving enough bytes to constitute the > image header, and then deciding whether or not to proceed with the > upload at that p

Re: Reversing a string

2007-07-01 Thread Stefan Behnel
Martin Durkin wrote: > Duncan Booth <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > >> Martin Durkin <[EMAIL PROTECTED]> wrote: >> >>> def rev(x): mylist = [] for char in x: mylist.append(char) mylist.reverse()

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-01 Thread Diez B. Roggisch
> > """ > Because of the different flight path, a data conversion from a 64-bit > floating point to 16-bit signed integer value caused a hardware > exception (more specifically, an arithmetic overflow, as the floating > point number had a value too large to be represented by a 16-bit signed >

Re: Reversing a string

2007-07-01 Thread Martin Durkin
Duncan Booth <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Martin Durkin <[EMAIL PROTECTED]> wrote: > >> def rev(x): >>> mylist = [] >>> for char in x: >>> mylist.append(char) >>> mylist.reverse() >>> for letter in myl

Re: unicode

2007-07-01 Thread Sander Steffann
Hi, "Erik Max Francis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 7stud wrote: > >> Based on this example and the error: >> >> - >> u_str = u"abc\u" >> print u_str >> >> UnicodeEncodeError: 'ascii' codec can't encode character u'\u' in >> position 3: ordinal not in

Re: howto resend args and kwargs to other func?

2007-07-01 Thread Adriano Varoli Piazza
dmitrey ha escrito: > Thanks all, I have solved the problem. > D. If you take the time to comment this, it is good form to comment on how you solved the problem, so the next one wondering about it can find an answer before posting. -- Saludos Adriano -- http://mail.python.org/mailman/listinfo/p

Re: shelve crashing under Win ME

2007-07-01 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: > OK, here's my workaround for shelve -- it's primitive and obviously > much slower (it saves the entire dictionary each time), and you have > to manually save -- BUT: it works...even on the Win ME machine. And > it's possibly more universally portable in the long run tha

  1   2   >