Re: What is considered an "advanced" topic in Python?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 29/05/2015 16:01, Mike Driscoll wrote: >I was wondering what the community considers to be "intermediate" or "a dvanced". A python script that compiles python code. jonathon -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJVahA4AAoJEE1PKy9+kxplmwsP/R4wkjcgYZwG8wHj6Jp2Do4C +y3raHDA7PNko9Y/HSsIr3aXyXm9Yy71px3HDYkOXXsD3aO+GXUS14RbQXynK7OX 95LD+S0U9AtJL5Jlywmvm/QJQw6UuGnPfQSs2Y1HiALjlvZYCDMvoycvT4GY4+oQ 6n4tq/3ExdP1inxcu0CwMm7ZL7CCvvy1S7JkVdr+r13BM4TlXCRH9BAvJNtLnbtA SvP5iOYRkOTvxYOw8veiKXD1clXK2fy3x4SjBtWpK0XZKSu2akWwlD0qvbVkf9qz /Cu9aP3BbV4VSzLFkOEKU6b4NoZK1Al3s3e4IVvAjPSWIXI5LsKwuVrqvVZ+06Uv u0ZYyX/4fnpmKaJXvAMyRWULNA+pDaqvjBGgom3qtvT2i8nfYN1KBkMBMrG/ioXt 4BUkAMhOqRHvsPHT+GXrtVaj5wFj1Q9i174CMfINLelbmUlpNhOTLzobm2hnwD/c hZAVsDUzAxAQjLYNDQV+AtE2Cw4D0YKUJfILE1T82CerSnibjy3Z60RZ703e5oRU pa75Fm8HpjAmNS4tbvENSz0v0VH6howH1gQdqc2bVzKBGj9ArXiA8yByxRgZdVwI vXJMzxzpMBL35ScYBhvVPnD0zroa8WBYgrhTWVJFFJpk+eTjUetalTrvkTFYWgQ+ QLsCw9+wUjX8kVJ8Yhx6 =wU1w -END PGP SIGNATURE- -- https://mail.python.org/mailman/listinfo/python-list
Re: universal unicode font for reportlab
On Mon, Sep 8, 2008 at 01:51, Laszlo Nagy wrote: > possible to use UTF 8 strings but there is a problem with the font. Use Code2000 http://www.code2000.net/ xan jonathon -- http://mail.python.org/mailman/listinfo/python-list
a11y & python
All: A year or so ago, I read a tutorial on writing self-voicing apps using python. It also covered other a11y issues. However, I didn't bookmark it, and it doesn't show up in the first 1000 hits on the Google search I did. Can somebody point me to either that, or any other tutorials on programming a11y into python. ### This was triggered by a request by my housemate for a self-voicing program that does household inventory control, that can print to Braille. xan jonathon -- http://mail.python.org/mailman/listinfo/python-list
Re: a11y & python
On Mon, Sep 8, 2008 at 21:02, Steven D'Aprano wrote: > I'm guessing that you'd probably have more success asking on ally mailing > lists I'm on a couple of a11y mailing lists. My experience with them has been, "disappointing". > Have you checked out this? http://live.gnome.org/Orca Not cross platform. :( I want to use python, precisely because it is cross-platform. (If it was Windows only, Net 3.0 has most, if not all of the needed libraries.) (I could try rewriting Orca in python, and from that construct the required python libraries.) xan jonathon -- http://mail.python.org/mailman/listinfo/python-list
Python library/module for MSAccess
All: I thought I had seen a python library/module that easily enabled one to read / write / create MSAccess databases a couple of years ago. [My impression is that the Jet Database engine was _not_ required.] Now, I can't find it, or any reference to such a library or module. [I used google, and the module search tools on python. Can somebody point me to an MSAccess library/module that does that? xan jonathon -- Does your Office Suite conform to ISO Standards? -- http://mail.python.org/mailman/listinfo/python-list
Re: Python library/module for MSAccess
Scott wrote: > the Jet Database engine. Easiest access for me is through the win32 module > 'odbc'. Thanks That is going to make my job a lot rougher than I expected. [ Editing/creating msaccess databases on a Linux Box, and WINE _not_ installed.] xan jonathon -- Does your Office Suite conform to ISO Standards? -- http://mail.python.org/mailman/listinfo/python-list
Re: Python vs. Lisp -- please explain
Steven wrote: > And I'm just waiting for somebody to mention Forth, Probably not the context you expected it to be mentioned in. > > Yet one could potentially have that bytecode interpreter in hardware. > Not potentially, in actuality. I know of only one example, Shouldn't the Forth Chips from the late 70's and early 80's also get a mention here? xan jonathon -- Ethical conduct is a vice. Corrupt conduct is a virtue. Motto of Nacarima. -- http://mail.python.org/mailman/listinfo/python-list
Re: Socket problems
SSL objects use "write", not "send". You also need to change this: self.sock.write('NICK %s\r\n') % self.nick to this: self.sock.write('NICK %s\r\n' % self.nick) If you don't, the interpreter will bomb on trying to concatenate the return value for "write" (an integer) with the string self.nick. Hope this helps... Jonathon [EMAIL PROTECTED] wrote: I am trying to write a simple python IRC client, roughly following this guide: http://www.devshed.com/c/a/Python/Python-and-IRC/ I have written some code, which uses the same commands as the guide, but I get this error: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/threading.py", line 486, in __bootstrap_inner self.run() File "pythonirc.py", line 31, in run self.sock.send('NICK %s\r\n') % self.nick AttributeError: send Here is my code so far: [code] #!/usr/bin/env python from socket import * from threading import Thread import sys class IRCBot(Thread): def __init__(self, host, room, nick, port=6667, ssl=0): Thread.__init__(self) self.host = host self.port = port self.ssl = ssl self.room = room self.nick = nick self.sock = socket(AF_INET, SOCK_STREAM) def run(self): print "Connecting..." try: self.sock.connect((self.host, self.port)) except: print "Could not connect to %s" % self.host sys.exit(1) if self.ssl: try: self.sock = ssl(self.sock) except: print "Server does not suport SSL" sys.exit(1) self.sock.send('NICK %s\r\n') % self.nick self.sock.send('USER PyIRC PyIRC PyIRC :Python IRC\r\n') self.sock.send('JOIN #%s\r\n') % self.room while True: data = self.sock.recv(4096) if data.find('PING') != -1: self.sock.send('PONG' + data.split()[1]+'\r\n') print data def close(self): self.sock.send('PART #%s\r\n') % self.room self.sock.send('QUIT\r\n') self.sock.shutdown(SHIT_RDWR) self.sock.close() IRCBot('irc.psych0tik.net','hbh', 'pythonircclient',6697,1).start() [/code] Anyone know why it might be doing this? Config problem? Thanks in advance, Jon -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list