Re: Confusing, desparate MySQLdb problems...

2010-01-16 Thread Ned Deily
u elsewhere. For mod_wsgi, Graham Dumpleton offers exemplary thorough documentation here: http://code.google.com/p/modwsgi/ http://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX http://code.google.com/p/modwsgi/wiki/WhereToGetHelp Good luck. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Confusing, desparate MySQLdb problems...

2010-01-17 Thread Ned Deily
on't understand is if the path is there, why doesn't it find > the module? Perhaps it is just a permissions problem since Apache is probably running under a different user name. Check the owner/group and permissions of the various module directories and files. Make sure the directo

Re: Confusing, desparate MySQLdb problems...

2010-01-17 Thread Ned Deily
In article <109c960c-656b-4ea7-b69f-100e30804...@m16g2000yqc.googlegroups.com>, stopchuckingstuff wrote: > On Jan 17, 5:52 pm, Ned Deily wrote: > > In article > > <94e8cfd8-d299-4c23-9e9e-d3f17d4c9...@e16g2000yqc.googlegroups.com>, > > > What I don'

Re: Bash shell to Python shell?

2009-09-27 Thread Ned Deily
rgument string passed to it and that shell starts another process (17574) to run 'ps'. For a more detailed explanation of what's going on, see, for example: http://tldp.org/HOWTO/Unix-and-Internet-Fundamentals-HOWTO/running-progra ms.html -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Still wrong architecture on Snow Leopard

2009-10-13 Thread Ned Deily
on (or add to shell profile) export VERSIONER_PYTHON_PREFER_32_BIT=yes /usr/bin/python or you can use the defaults command to permanently prefer 32-bit. See Apple's python man page for details. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Reply Delays

2009-10-13 Thread Ned Deily
moving thread, replies will often cross in the pipeline, adding another level of confusion ("Didn't they read first before posting??"). It's sort of amazing that it all works as well as it does. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Spam reported

2009-10-20 Thread Ned Deily
ython.org mailing list, gmane.org, Google Groups, etc) and that those of us *not* reading through Google Groups aren't seeing this spam. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6.4: ./configure does not work

2009-10-31 Thread Ned Deily
m with your version of tar or ... ? -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyfora, a place for python

2009-11-04 Thread Ned Deily
roup itself, the base python.org mailing list, gmane.org (NNTP newsgroup from the mailing list, various web interfaces, RSS feed), google groups, and others. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: pyserial vs. Linux power save hibernate/resume - program hangs

2009-11-08 Thread Ned Deily
permanent device name for the serial converter using a udev rule. Then your code won't need to be dependent on the /dev/ttyUSBx device name. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6 and sys.exit()

2009-11-12 Thread Ned Deily
any way I can get 2.6 to behave like 2.5? Perhaps you don't want to be using the -i option? "-i When a script is passed as first argument or the -c option is used, enter interactive mode after executing the script or the command ..." http://docs.python.org/using/cmdline.html#gen

Re: get error install MySQLdb on Mac OS X

2010-02-01 Thread Ned Deily
sudo port install py26-mysql You might need to tweak the variants of some of the packages if you want 32-bit only, etc, depending on what version of OS X you're running on. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3: Plist as OrderedDict

2010-02-08 Thread Ned Deily
ink or something when discussing a > relatively obscure module that seems not to even be listed in pypi. http://docs.python.org/library/plistlib.html -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: mac install

2010-02-10 Thread Ned Deily
ts the installation from creating the .pyc compiled byte-code files for the python files in the standard library. Python 3.1.1 should run just fine, albeit sometimes a bit slower, without them. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: shelve.open generates (22, 'Invalid argument') Os X 10.5 with Python 2.5

2010-02-16 Thread Ned Deily
shelve. http://docs.python.org/library/shelve.html "As a side-effect, an extension may be added to the filename ..." -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Spam from gmail (Was: fascism)

2010-02-23 Thread Ned Deily
filtering the spam. http://dir.gmane.org/gmane.comp.python.general -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Scrapy on Mac OS X 10.6

2010-03-03 Thread Ned Deily
by Scrapy...But > doesn't say which version of OS X.. I am wondering if the version of > libxml2 is also not compatible.. A similar question came up on Stack Overflow recently: http://stackoverflow.com/questions/2353957/do-i-need-32bit-libxml2-for-py thon-on-snow-leopard/ -- Ned Deil

Re: Can't install PIL on MacOS X Leopard

2010-03-10 Thread Ned Deily
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-pac kages/PIL/_imaging.so' # or something like that Make sure the file is located within the expected PIL directory. Also make sure there aren't any file permission problems on any of the PIL directories an

Re: no module named exceptions?

2010-04-01 Thread Ned Deily
don't know. I wasn't able to locate anything about it in a quick scan > of the Python 3000 PEPs. The exceptions module doesn't exist in Python 3 but the documentation had not been cleaned up until recently: http://bugs.python.org/issue7590 -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: strange subprocess behavior when calling ps

2010-11-16 Thread Ned Deily
sessions are normally automatically started with the COMMAND_MODE environment variable set: $ echo $COMMAND_MODE unix2003 Adding an "env={"COMMAND_MODE": "unix2003"}" argument to your subprocess Popen call should do the trick. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: strange subprocess behavior when calling ps

2010-11-17 Thread Ned Deily
is also works for me, > and I think I'm more inclined to go this route unless you can think of > a good reason not to do so. That analysis seems correct. So it comes down to whether there are any environment variable settings the user could make that would positively or negatively affect the operation of your script. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Module locale throws exception: unsupported locale setting

2010-11-19 Thread Ned Deily
r issues. > Should I open a new one? There have been a lot of changes going into Python 3.2, currently in alpha testing, in the areas of encodings and how they affect the interfaces to/from the various platform operating systems Python 3 runs on. It would be very useful if you could try the

Re: File Reading In Mac

2010-11-22 Thread Ned Deily
a.org/wiki/Rich_Text_Format There are some Python packages out there for dealing with rtf format files. You might try rtf2xml to convert the file, preserving style attributes: http://pypi.python.org/pypi/rtf2xml/ Or look at the Mac OS X command line utility textutil (man 1 textutil) to

Re: Python 3.1.3

2010-11-28 Thread Ned Deily
ply a version of the GNU readline library, which is not supplied by Apple in OS X, during the build. Python 2.7 and 3.2 are able to make use of the BSD editline libedit which does comes with OS X. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.1.3

2010-11-28 Thread Ned Deily
ind("bind ^I rl_complete") else: readline.parse_and_bind("tab: complete") http://docs.python.org/py3k/library/readline.html Also, see: man 5 editrc BTW, python.org 3.2a4 installers for OS X are now available so you might not need to build your own: http://www.python.org/download/releases/3.2/ -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't deepcopy bytes-derived class

2010-12-08 Thread Ned Deily
gument without an encoding > > You could trace through copy.py and copyreg.py to see where bytes and > atom get treated differently. > > This might be a bug that should be reported on the tracker, but I do not > know. Let see what anyone else says. FWIW, the example still fails with Python 3.1.3 but seems to work OK with a recent alpha build of Python 3.2. What specific change might have fixed it doesn't come immediately to mind. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: get python bit version as in (32 or 64)

2010-12-19 Thread Ned Deily
In article , Ned Deily wrote: > In article > , > Vincent Davis wrote: > > On Tue, Oct 19, 2010 at 3:55 PM, Philip Semanchuk > > wrote: > > > On Oct 19, 2010, at 5:38 PM, Hexamorph wrote: > > >> On 19.10.2010 23:18, Vincent Davis wrote: > > &

Re: Searching Python-list

2011-01-05 Thread Ned Deily
ir.gmane.org/gmane.comp.python.general -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I have both Python 2.7 and Python 3.1 at the same time on the Mac?

2011-01-06 Thread Ned Deily
64-bit version. If so, until the problem is resolved in the next maintenance release of Python 2.7, I suggest you download and install the 32-bit-only version of Python 2.7.1 which does not have those problems. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I have both Python 2.7 and Python 3.1 at the same time on the Mac?

2011-01-06 Thread Ned Deily
about which targets are installed (and some additional versioning endcases are being addressed in the upcoming Python 3.2 release), all python3-related scripts and libraries are generally installed with different names (i.e. by adding a "3" somewhere) than their Python 2 counterparts. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I have both Python 2.7 and Python 3.1 at the same time on the Mac?

2011-01-07 Thread Ned Deily
7;s bin directory at the head of the $PATH env variable. Modifying a shell profile is clearly not a particularly clean solution but it does actually work whereas python_select, in general, does not. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Error invalid syntax while statement

2011-01-07 Thread Ned Deily
In article , Garland Fulton wrote: > I don't understand what I'm doing wrong i've tried several different cases > for what i am doing here. Will someone please point my error out. > 15 print("counter: ", counter Missing ")" on line

Re: Python on OSX

2011-02-21 Thread Ned Deily
your additional Pythons via Fink or MacPorts. Or the python.org installers for OS X: http://www.python.org/download/releases/2.7.1/ http://www.python.org/download/releases/3.2/ -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: How to compile on OS X PPC? was: Re: [RELEASED] Python 3.2

2011-02-22 Thread Ned Deily
ting at line 487, in other words, always use gcc to make the framework library and not libtool, and then rerun configure. I'll make sure the issue gets resolved. Another solution is to use the 3.2 32-bit installer for Mac OS X from python.org: http://www.python.org/download/releases/3.2/ -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting started with python on macintosh snow leopard with mysql - need help

2010-07-14 Thread Ned Deily
latter is included in the 10.6 Xcode distribution as a separate package but is not installed by default; to build a Python C extension module for that Python, you need to go back to the Xcode installer for Snow Leopard (or download a new one from Apple) and do a custom installation of that SDK. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE won't start on Mac OSX

2010-07-15 Thread Ned Deily
bit Mac Installer for 2.7. The IDLE that it installs *should* work OK on 10.6. http://python.org/download/releases/2.7/ -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Set Python Path for Idle Mac 10.5

2010-07-20 Thread Ned Deily
Double-clicking on the .py files themselves can be made to work but it's a bit of a crap shoot which version of IDLE or other app might actually be launched; it's best to avoid depending on that mechanism. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Binary compatibility across Python versions?

2010-07-26 Thread Ned Deily
tension that would easily work, if at all, with the most common ones. For instance, the Apple-supplied Python 2.6 is built with gcc 4.2, uses the 10.6 ABI (SDK deployment target), and x86_64 / i386 / ppc architectures (default 64-bit on capable machines). The python.org 2.6 uses gcc 4.0, th

Re: tkinter unicode question

2010-07-27 Thread Ned Deily
varieties: the second will be only for 10.6 or later and will link with Tk 8.5. The next new release of Python 3 is likely months away, though. In the meantime, a simpler solution might be to download and install the ActiveState Python 3.1 for OS X which does use Tk 8.5. And your test case works for me with it. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Binary compatibility across Python versions?

2010-07-27 Thread Ned Deily
does the right thing, the burden on end users isn't particularly onerous (see, for example, http://appscript.sourceforge.net/py-appscript/install.html). Now, adding SWIG and C++ to the mix may result in a different answer. I don't have any practical experience with them to have an opn

Re: None is negative?

2010-08-03 Thread Ned Deily
.2 (r312:79360M, Mar 24 2010, 01:33:18) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> None < -9.9 Traceback (most recent call last): File "", line 1, in TypeError: unorderable types: NoneType() < float() >>> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: BundleBuilder Question

2010-08-04 Thread Ned Deily
#x27;/System/Library/Frameworks/Python.framework/Versions/2.6/Resources/English.lp > roj' > [...] This was a bug that has been fixed in subsequent maintenance releases of Python 2.6. See http://bugs.python.org/issue4937 -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: favicon.ico problem

2010-08-09 Thread Ned Deily
I dont even know where that name '/favicon.ico' comes from. Any insight into > this weird behavior would be greatly appreciated. It's not the server's doing, it's the web browser requesting the favicon. See http://en.wikipedia.org/wiki/Favicon -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Floating numbers

2010-08-12 Thread Ned Deily
c 'print(repr(34.52))' 34.523 $ python2.7 -c 'print(repr(34.52))' 34.52 $ python3.1 -c 'print(repr(34.52))' 34.52 -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Floating numbers

2010-08-12 Thread Ned Deily
owing you the exact approximation. It doesn't get rid of rounding > errors. > >>> 34.52 > 34.52 > >>> >>> _ * 10**10 > 3452.6 Yes, as discussed earlier in this thread and I didn't mean to imply otherwise. I should have worded

Re: IDLE will not startup after upgrading Python on Mac OS X

2010-08-23 Thread Ned Deily
ntil a replacement installer is made available, the simplest workaround is to just re-install 2.7 using the 32-bit OS X installer "for OS X 10.3 and later" (available here http://www.python.org/download/releases/2.7/). -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Yet another unicode WTF

2009-06-05 Thread Ned Deily
In article , Ned Deily wrote: > In python 3.x, of course, the encoding happens automatically but you > still have to tell python, via the "encoding" argument to open, what the > encoding of the file's content is (or accept python's default which may > not be v

Re: PIL for OSX 64bit

2009-07-21 Thread Ned Deily
ell. There are a number of ways to do that. The simplest might be to download pre-built frameworks containing those libraries from here: http://www.kyngchaos.com/software:frameworks There are also build scripts there for building your own versions from scratch. -- Ned Deily

Re: 2.3 missing on OSX

2009-07-23 Thread Ned Deily
talling OS X. If you have an unused external drive or partition, it might be easiest to do a vanilla install of Leopard and all software updates, then, from the terminal, do a ditto of that directory subtree back to your regular /. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python docs disappointing

2009-07-31 Thread Ned Deily
bookmark it for later use). -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Install setup tools for 2.6

2009-08-05 Thread Ned Deily
esn't it? http://pypi.python.org/pypi/setuptools#id1 -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: questions about object references

2009-08-07 Thread Ned Deily
ss.myfunc2 = myclass.myfunc >>> >>> for name in dir(myclass): ... obj = getattr(myclass, name) ... if obj == myclass.myfunc: ... print " %s is %s" % (name, obj) ... myfunc is > myfunc2 is > -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: ElementTree - Howto access text within XML tag element...

2009-08-11 Thread Ned Deily
te of the "Activity" element. The documentation for the Element interface lists several ways to access element attributes; in your example, >>> elem = root[0][0] >>> elem.get("Sport") 'Running' >>> elem.attrib {'Sport': 'R

Re: Natural Language Processing in Python

2009-08-15 Thread Ned Deily
In article , Prateek wrote: > Can somebody please provide me link to a good online resource or e- > book for doing natural language processing programming in Python. Check out the Natural Language Toolkit: http://www.nltk.org/ -- Ned Deily, n...@acm.org -- http://mail.python.org/m

Re: Uninstalling mac python2.5 to install python2.6

2009-08-17 Thread Ned Deily
he Apple-supplied python2.5 (linked to from /usr/bin/python) in 10.5. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create functors?

2009-08-18 Thread Ned Deily
cy syntax in the lambda does > not work either. I want to avoid using a def if possible. Thanks. The problem is that in Python 2 print is a statement, not a function. That should work fine in Python 3 where print *is* a function. In 2.x, you can wrap print in a function or use something like: >>> import sys >>> print1 = lambda: sys.stdout.write("Foobar\n") >>> print1() Foobar or the pprint library module or various other solutions. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create functors?

2009-08-18 Thread Ned Deily
gt;print( "Hello World" ) For the same reason you can do this: >>> x = ( "Hello World" ) >>> type(x) -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: logging SMTPhandler Error

2009-08-22 Thread Ned Deily
response to a 250-STARTTLS response to an EHLO). To make this work, either the logging module or, perhaps better, the smptlib module needs to be smarter about this case. I didn't see an open issue on the Python bug tracker about this; you might want to open one. In the meantime, som

Re: logging SMTPhandler Error

2009-08-22 Thread Ned Deily
In article <87236fb1-c09f-46e8-8492-514ba000c...@24g2000yqm.googlegroups.com>, Bev in TX wrote: > On Aug 22, 7:07 pm, Ned Deily wrote: > > [...] Or on OS X it's > > not *too* difficult to set up a local host mailer using the > > Apple-supplied prefix that would

Re: print() and unicode strings (python 3.1)

2009-08-24 Thread Ned Deily
t3.py UTF-8 b'\xe2\x82\xac' ¤ $ export LANG=C $ python3.1 t3.py US-ASCII b'\xe2\x82\xac' Traceback (most recent call last): File "t3.py", line 7, in print(s) UnicodeEncodeError: 'ascii' codec can't encode character '\u20ac' in position 0: ordinal not in range(128) -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Is "#!/usr/bin/env python" the better shebang line ?

2009-09-06 Thread Ned Deily
y on stackoverflow (alas, will result in urloverflow): http://stackoverflow.com/questions/1352922/why-is-usr-bin-env-python-supp osedly-more-correct-than-just-usr-bin-pyth/1352938#1352938 -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Import Problem - Please help

2009-09-07 Thread Ned Deily
> > > > >>> import nltk > > >>> import re > > >>> from nltk_lite.utilities import re_show > > > > Traceback (most recent call last): > >   File "", line 1, in > > ImportError: No module named nltk_lite.utilities G

Re: CPU usage while reading a named pipe

2009-09-12 Thread Ned Deily
ame > CPU. Be aware that the io module in Python 2.6 is written in Python and was viewed as a prototype. In the current svn trunk, what will be Python 2.7 has a much faster C implementation of the io module backported from Python 3.1. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE / Black frame on Mac

2010-09-03 Thread Ned Deily
In article , Kristoffer Follesdal wrote: > *Forgot to tell that I am using a Mac with Snow Leopard. Which version of Python 3.1.2? From the python.org installer? MacPorts? Built from source - if so, which version of Tk? -- Ned Deily, n...@acm.org -- http://mail.python.org/mail

Re: Python 2.7 module path problems on OS X

2010-09-05 Thread Ned Deily
ile, to do that for you. Then you can use that easy_install (also available as easy_install-2.7) to install whatever packages you need for 2.7. Or you can use pip. Or just manually installing using the package's setup.py script. All of them use the Python instance's versio

Re: Python 2.7 module path problems on OS X

2010-09-05 Thread Ned Deily
In article , Nicholas Cole wrote: > On Sun, Sep 5, 2010 at 10:20 AM, Ned Deily wrote: > > I'm not sure why you think it is broken.  The Apple 2.6 and the > > python.org 2.7 have different site-package directories in different > > locations.  That is to be expected.

Re: Bug in Python 2.6 urlencode

2010-09-07 Thread Ned Deily
for bug fixes. (2.6 only for any security issues that might arise.) It's easy enough to see this if you take a glance at current activity on any of several Python development related mailing lists: http://www.python.org/community/lists/ -- Ned Deily, n...@acm.org -- http://mail.py

Re: can't send email

2010-09-07 Thread Ned Deily
2.6/smtplib.py", line 46, in > import email.utils > File "/Users/Bob/Code/email.py", line 5, in > from email.mime.text import MIMEText > ImportError: No module named mime.text Your module email.py is hiding the standard library's email package. Rename your

Re: Bug in Python 2.6 urlencode

2010-09-07 Thread Ned Deily
; > text. That is the major issue for many porting projects. > > In other words, we're in the version suckage period. It took me all of one minute to find where a similar issue was reported previously (http://bugs.python.org/issue1349732). One of the comments on the i

Re: select() call and filedescriptor out of range in select error

2010-09-15 Thread Ned Deily
in list If the problem is that the socket object in question no longer exists, you can protect your code there by enclosing the remove operation in a try block, like: try: self.__Sockets.remove(socket) except ValueError: pass -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Too many threads

2010-09-16 Thread Ned Deily
> You need to post your _exact_ code. I had to change: > from queue import Queue > into > from Queue import Queue > So: _do_ you have a "queue" (lowercase) module? Is it buggy? The OP is probably using Python 3. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Too many threads

2010-09-16 Thread Ned Deily
In article <20100917052259.ga28...@cskk.homeip.net>, Cameron Simpson wrote: > On 16Sep2010 22:14, Ned Deily wrote: > | In article <20100917043826.ga21...@cskk.homeip.net>, > | Cameron Simpson wrote: > | > | > On 16Sep2010 09:55, mark.pellet...@asrcms.com

Re: [OS X 10.5] hitting TAB inserts ./ in interactive mode ?

2010-09-17 Thread Ned Deily
dule readline not available.") else: import rlcompleter readline.parse_and_bind("tab: complete") Note the print() form which works with either Python 2 or 3. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: [OS X 10.5] hitting TAB inserts ./ in interactive mode ?

2010-09-18 Thread Ned Deily
In article , Lawrence D'Oliveiro wrote: > In message , Ned Deily > wrote: > > try: > > import readline > > except ImportError: > > print("Module readline not available.") > > else: > > import rlcom

Re: hitting TAB inserts ./ in interactive mode ?

2010-09-20 Thread Ned Deily
desired TAB behavior, so something like this: $ cat > $HOME/.pystartup import readline if 'libedit' in readline.__doc__: readline.parse_and_bind("bind ^I ed-insert") ^D $ export PYTHONSTARTUP=$HOME/.pystartup Thanks for reporting this! -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python in Linux - barrier to Python 3.x

2010-09-21 Thread Ned Deily
2.6.6 and 3.1.2 packages in Debian testing with current Python 2.7 and Python 3.2 alpha coming along in Debian experimental. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python in Linux - barrier to Python 3.x

2010-09-21 Thread Ned Deily
In article , de...@web.de (Diez B. Roggisch) wrote: > Ned Deily writes: > > In article <87zkvbytnk@web.de>, de...@web.de (Diez B. Roggisch) > > wrote: > >> The point is that the distro doesn't care about the python eco > >> system. Which is what I

Re: Python 2.7 installation problem

2010-09-28 Thread Ned Deily
problem in this area is almost surely due to contamination of the build environment by an environment variable setting or possibly something in $HOME/.pydistutils.cfg or not starting with a clean If you still have the build directory, examine the configured Makefile for suspicious values, particularly DESTSHARED. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: File holes in Linux

2010-09-29 Thread Ned Deily
p://bugs.python.org/). It's not likely to progress without a supplied patch and even then maybe not. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Certificate validation with HTTPSConnection

2010-09-29 Thread Ned Deily
ion page and submit it to the Python bug tracker (http://bugs.python.org/). -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Certificate validation with HTTPSConnection

2010-09-29 Thread Ned Deily
current SSL module "lets you talk > encrypted to your attacker". I'll just note in passing that Issue1589 is being discussed again. Feel free to contribute. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Sys.exit in secondary threads

2010-10-08 Thread Ned Deily
ke it should be mentioned elsewhere, too, like in sys.exit() itself. Doc patches would be welcomed, I'm sure. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 249 (database api) -- executemany() with iterable?

2010-10-12 Thread Ned Deily
B adapter implementations are typically wrappers around a lower-level client library for a particular DB implementation and that most of those client APIs - written in C - will likely require all of the items to be passed in one call. If so, the DB adapter would need to immediately evaluate the iterable and produce a list in memory anyway. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling as 32bit on MacOSX

2010-10-12 Thread Ned Deily
/bin/gcc-4.0). For a framework build, throw in --enable-framework. Distutils should ensure that the right settings will get passed on to any extension module builds. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling as 32bit on MacOSX

2010-10-13 Thread Ned Deily
lly done > this? Is there some trick to it that I've missed? You'll also need to specify the appropriate SDK using Apple's gcc -sysroot option. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: how do I search python mailing list archives?

2010-10-13 Thread Ned Deily
s also mirrored at gmane.org under the group name gmane.comp.python.general. You can use gmane's Xapian-powered search engine here: http://search.gmane.org/ -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling as 32bit on MacOSX

2010-10-13 Thread Ned Deily
In article <8hmpchfsh...@mid.individual.net>, Gregory Ewing wrote: > Ned Deily wrote: > > You'll also need to specify the appropriate SDK using Apple's gcc > > -sysroot option. > Are you sure? I'm not asking for ppc + i386, I'm > aski

Re: Whining about "struct"

2010-10-13 Thread Ned Deily
missing-in-action in the initial 2.6 releases but subsequently fixed (as of 2.6.5 or so). -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling as 32bit on MacOSX

2010-10-14 Thread Ned Deily
In article <8hpgn7fho...@mid.individual.net>, Gregory Ewing wrote: > Ned Deily wrote: > > Perhaps you're > > calling ld(1) directly? To link multiple-arch executables (etc), the > > Apple gcc driver does the dirty work of calling ld multiple times and > &

Re: dynamic loading error ("Symbol not found")

2010-10-16 Thread Ned Deily
hitecture mismatch or ABI mismatch. The "maci64" in the path suggests to me that libeng.dylib might be a 64-bit-only library while the framework path and the fact that the (presumably MacPorts-derived) Python you are using was built with gcc 4.0.1 suggests you are running on OS X 10

Re: get python bit version as in (32 or 64)

2010-10-19 Thread Ned Deily
n OS X. For Python 3, substitute sys.maxsize. > Yes that looks like the right way of doing it. Interesting though that > platform.machine()=i386 and not something about 64. > >>> print platform.machine() > i386 > >>> print platform.architecture() > ('64bit', '') > >>> import sys; sys.maxint > 9223372036854775807 Currently on OS X (10.6 and earlier), uname returns 'i386' for any Intel platform, 32-bit only or 32-bit /64-bit capable. $ uname -p i386 -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE debugger questions

2010-10-22 Thread Ned Deily
some folk say you can set a breakpoint by right-clicking on > the desired line in the source window to get a popup menu. This does > not work for me on my MacBook (external 3-button USB mouse), it only > adds a line-break into the source code. Any suggestions? Right-click (control-click) menus currently don't work in IDLE on OS X. I hope to get that fixed eventually. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7 parser bug on syntax for set literals ?

2010-10-23 Thread Ned Deily
a set. >>> type({'', 1}) >>> type({'': 1}) -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Best method for a menu in a command line program?

2010-11-04 Thread Ned Deily
bout "spam" might consider 2 lines less of an evil than 5 lines. But I'm not, so I won't. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling/Installing Python 2.7 on OSX 10.6

2010-11-04 Thread Ned Deily
shed, but the necessary bits to build these modules > were not found: > _bsddb dl gdbm > imageoplinuxaudiodev ossaudiodev > spwd sunaudiodev Yes, all of those are to be expected on an OS X 64-bit build. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Final state of underlying sequence in islice

2010-11-04 Thread Ned Deily
ng > on this seemingly incorrect behavior. I suggest you open an issue at http://bugs.python.org/. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling/Installing Python 2.7 on OSX 10.6

2010-11-04 Thread Ned Deily
" errors. Those aren't "compile" errors in the sense of C compiler errors; rather they are from one of the final install steps that produces optimized .pyc and .pyo versions of all of the standard library .py files. The ._ files aren't python files but they do end in .p

Re: Compiling/Installing Python 2.7 on OSX 10.6

2010-11-04 Thread Ned Deily
place. They shouldn't be on the python.org tarball so it would seem most likely they are due to some operation on the OS X machine that causes extended attributes to be created. Nothing wrong with that, just kind of interesting. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Silly newbie question - Carrot character (^)

2010-11-06 Thread Ned Deily
Python Standard Library manual where built-in types and the methods supported by them are documented. For bit string operations: http://docs.python.org/library/stdtypes.html#bit-string-operations-on-int eger-types -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE debugger questions

2010-11-13 Thread Ned Deily
Thanks for calling this problem to our attention! -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   >