Re: distutils without a compiler

2013-04-02 Thread Ned Deily
distutils-sig and in various PEPs. Nick Coughlan, the core developer leading the design effort, gives an overview of the current plans here: http://python-notes.boredomandlaziness.org/en/latest/pep_ideas/core_packa ging_api.html -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting USB volume serial number from inserted device on OSX

2013-04-02 Thread Ned Deily
r elsewhere. Try StackOverflow or one of the OS X lists. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: docs.python.org source

2013-04-04 Thread Ned Deily
matically download and build all required tools and then the docs themselves. See the details in the Python Developer's Guide: http://docs.python.org/devguide/documenting.html -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Cannot install readline in pythonbrew install of 3.3.0

2013-04-06 Thread Ned Deily
ython 3.3 (3.3.1 was just released, BTW). Otherwise, you could search the pythonbrew issue list and open an issue there, if necessary. Or use a python.org 3.3 along with PyPI readline. Or install ipython3.3, Python 3.3, and GNU readline from MacPorts or Homebrew. https://github.com/utaht

Re: Python pdb bug, followed by bug in bugs.python.org

2013-04-09 Thread Ned Deily
someone else suggested, you could post the details of the pdb problem here. Note, there are already a number of currently open issues with pdb reported on the bug tracker. If you haven't already, you could search for "pdb" and see if your problem has been reported. Thanks for

Re: Python pdb bug, followed by bug in bugs.python.org

2013-04-10 Thread Ned Deily
In article , Gregory Ewing wrote: > Ned Deily wrote: > > There is a meta tracker for problems with the Python > > issuer tracker itself: > > http://psf.upfronthosting.co.za/roundup/meta/ > > but you do have to register for that tracker (a separate registration).

Re: shutil.copyfile is incomplete (truncated)

2013-04-11 Thread Ned Deily
a decent sized power of 2>) Also on what OS X file system type does the file being created reside, in particular, is it a network file system? -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: shutil.copyfile is incomplete (truncated)

2013-04-12 Thread Ned Deily
jpg -rw-r--r--@ 1 nad staff 40359 Jul 15 2009 test.jpg com.apple.FinderInfo32 com.apple.ResourceFork 899489 -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python pdb bug, followed by bug in bugs.python.org

2013-04-13 Thread Ned Deily
In article , Piotr Dobrogost wrote: > On Thursday, April 11, 2013 5:12:53 PM UTC+2, donald...@gmail.com wrote: > > I just submitted a bug report on the pdb issue. > It would be nice of you to share the link to this issue. http://bugs.python.org/issue17697 -- Ned Deily,

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-14 Thread Ned Deily
gned to be a lightweight, compatible library that runs on just about everything, and with a fanatical devotion to compatibility and documentation. These days just about every major product or operating system platform ships with or uses a copy of sqllite3 for something. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: howto remove the thousand separator

2013-04-14 Thread Ned Deily
In article , Rotwang wrote: > (Sorry for linking to Google Groups. Does anyone know of a better c.l.p. > web archive?) http://dir.gmane.org/gmane.comp.python.general -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 fails on compiling > Bug report

2009-01-09 Thread Ned Deily
or the four significant lines should be easy to do manually. Note that the build I made this way has not been tested on ppc64 and has had minimal testing so far on x64_64. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6.1 @executable_path

2009-01-10 Thread Ned Deily
every system in /Library/Framework/ > so I found out that @executable_path is replaced by the path of the > app. Have you looked at py2app yet? It should take care of all that for you. http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html -- Ned Deily, n...@acm.org -- http://m

Re: Egg deinstallation

2009-01-12 Thread Ned Deily
editing that file directly or by using the easy_install -m option to mark the egg as multi-version before deleting. In either case, keep in mind that the egg may have installed one or more scripts; those have to be removed manually. <http://peak.telecommunity.com/DevCenter/EasyInstall#uninstall

Re: Readline and Python 2.6.1 on a Mac

2009-01-15 Thread Ned Deily
ed 2.5) that was built using the BSD editline library for readline. But the 2.6 python.org python was built with GNU readline which uses a different syntax. s/"bind ^I rl_complete"/"tab: complete"/ <http://tiswww.case.edu/php/chet/readline/readline.html> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple methods: documentation missing

2009-01-17 Thread Ned Deily
atting-o perations> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: tp_base, ob_type, and tp_bases

2009-01-17 Thread Ned Deily
s a non-standard reshaping of the idiom "one and the same", an example of what linguists call an "eggcorn": <http://eggcorns.lascribe.net/english/448/one-in-the-same/> <http://eggcorns.lascribe.net/about/> Note the reference to Python! -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: ifconfig in python

2009-01-19 Thread Ned Deily
achine; often there are many. Ignoring that fact can lead to subtle bugs, like the one causing a urllib2 regression test failure that I've been squashing today! -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: does exec ignore the locals parameter?

2009-01-22 Thread Ned Deily
efined behavior. BTW, the order of the parameters to exec are reversed; presumably what was intended is: exec "i = i + 1" in globals(), locals() That doesn't change the results in question, though, as is, after the call to foo(0), i (=1) exists as a global. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: change syntax coloring in IDLE

2009-01-27 Thread Ned Deily
d lib/python2.5/idlelib $ ls *.def config-extensions.def config-highlight.def config-keys.def config-main.def $ cp -i *.def ~/.idlerc $ cd ~/.idlerc $ vi ... -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: change syntax coloring in IDLE

2009-01-27 Thread Ned Deily
le-clicking on the IDLE icon. I don't have personal experience with EPD distribution but there should be a command line binary of idle included. Try this from a Terminal shell: $ cd `python -c 'import sys; print sys.prefix'` $ bin/idle If you can change and save the preferences tha

Re: change syntax coloring in IDLE

2009-01-27 Thread Ned Deily
In article , Robert Kern wrote: > On 2009-01-27 13:40, Ned Deily wrote: > > There is supposed to be a Preferences menu option for IDLE on OS X but, > > depending on the Python version and how IDLE is launched, it may or may > > not appear due to various bugs. (I'm w

Re: New to python, open source Mac OS X IDE?

2009-01-27 Thread Ned Deily
If you are using the python Apple includes with OS X 10.5, you should be able to launch it from a terminal shell with: /usr/bin/python/../idle There is also a separate discussion group for Python on Macs: <http://dir.gmane.org/gmane.comp.python.apple> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: RELEASED Python 3.0.1

2009-02-15 Thread Ned Deily
s for the 3.0.1 and 2.6.1 to the main download page, too: <http://www.python.org/download/> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: v 3.0 mpkg

2009-02-18 Thread Ned Deily
ou'll have to > build it yourself - see <http://tinyurl.com/6zkem7>. Follow up: Python 3.0.1 has been released and, with it, an installer image for OS X: <http://www.python.org/download/releases/3.0.1/> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: v 3.0 mpkg

2009-02-19 Thread Ned Deily
t; is still on 2.4 as a standard and barely preparing to move to 2.5 -- > we only use it on our macs installs. <http://permalink.gmane.org/gmane.comp.python.apple/15546> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Ned Deily
7;ll probably find GDAL is there as expected. If you do want to use the python.org python, which is somewhat newer, you need to install its own version of setuptools/easy_install and use it to install GDAL to the site-packages directory of that python which is located here: /Library/Frameworks/Python.fr

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Ned Deily
In article , Ned Deily wrote: > It looks like you have installed GDAL to the site-packages directory of > the Apple-supplied python 2.5 (which, for 10.5, is 2.5.1, not 2.4). > That site-packages directory is /Library/Python/2.5. The Apple-supplied > python comes with a sym link f

Re: Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6

2009-02-19 Thread Ned Deily
t; 2. the interaction with the gdal_merge.py error handling No suggestions on the first two, other than to perhaps install easy_install and GDAL and friends using the python.org 2.5 and/or to ask in a more specialized forum. > Otherwise, everything's peachy. Good luck! -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Fwd: IDLE error on 3.0.1

2009-02-19 Thread Ned Deily
d be very helpful if you could outline the steps to reproduce this (in particular, how you launch IDLE) and open an issue on the Python bug tracker: http://bugs.python.org/ -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Framework installation of 2.6 on OS X, with specified prefix

2009-02-20 Thread Ned Deily
IW, the OS X build-installer.py script handles this by specifying a DESTDIR on the make install steps rather than including a --prefix on the configure. See Mac/BuildScript/build-installer.py. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python won't run

2009-02-20 Thread Ned Deily
ry launching IDLE again. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonic design patterns

2008-12-04 Thread Ned Deily
on Python Design Patterns (search YouTube for "google developer python alex"), and download the notes at <http://www.aleax.it/goo_pydp.pdf>. -- Ned Deily, [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: pretty strange behavior of "strip"

2008-12-04 Thread Ned Deily
;>> test > ['03.html', '06.html', 'questions.html', '04.html', 'toc.html', > '01.html', '05.html', '07.html', '02.html', '08.html'] > >>> test[4] > 'toc.html' > >>> test[4].strip('.html') > 'oc' > > Can't figure out what is going on, really. >>> help("".strip) >>> help("".endswith) -- Ned Deily, [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: pytz and timezone specialists

2008-12-05 Thread Ned Deily
ways of building a localized time. The first is to use the .localize() method provided by the pytz library. This is used to localize a naive datetime (datetime with no timezone information). ... Unfortunately using the tzinfo argument of the standard datetime constructors ''does not work'' with pytz for many timezones." -- Ned Deily, [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: pickling a circular object inherited from list

2008-12-09 Thread Ned Deily
e can be made to work by either specifying pickle protocol 2 or by switching to cPickle. -- Ned Deily, [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: SQL, lite lite lite

2008-12-29 Thread Ned Deily
iveState > > recipe, or a little bigger, maybe a file or two. > [...] > After a look at the syntax you're proposing, I wonder how you feel it > differs from ORMs like SQLAlchemy (for instance). ... and Elixir, a declarative layer on top of SQLAlchemy: <http://elixir.emati

Re: duck typing at will

2008-12-30 Thread Ned Deily
ot;copyright", "credits" or "license" for more information. >>> from collections import defaultdict >>> dic = defaultdict(lambda : defaultdict(int)) >>> dic["spam"]["eggs"] += 1 >>> dic[42][3] += 1 >>> dic[42][3] +

Re: Is there a better algorithm?

2009-01-02 Thread Ned Deily
Python 3.0, described in PEP 3132, comes to the rescue here: >>> L = [(1, 2), (3, 4, 5), (6, 7)] >>> for i in L: ... k, *u, v = i ... print(k, u, v) ... 1 [] 2 3 [4] 5 6 [] 7 -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: having problems with a multi-conditional while statement

2009-01-06 Thread Ned Deily
ition2 = False >>> not condition1 and not condition2 True >>> if condition1: ... condition2 = True ... >>> condition1 = True >>> not condition1 and not condition2 False # -> while loop exits after 1 trip -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: parallel and/or synchronous start/run/stop on multiple boxes

2009-01-07 Thread Ned Deily
ibute processes and work via a distributed queue to a 'cluster' of machines on a network, accessible via SSH". <http://docs.python.org/library/multiprocessing.html> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: eval('07') works, eval('08') fails, why?

2009-01-08 Thread Ned Deily
the old format gets an 'invalid token' parsing error. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 fails on compiling > Bug report

2009-01-09 Thread Ned Deily
shellQuote(WORKDIR)[1:-1], shellQuote(WORKDIR)[1:-1])) @@ -1017,7 +1014,7 @@ parseOptions() checkEnvironment() -os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.3' +os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.5' if os.path.exists(WORKDIR): shutil.rmtree(WORKDIR) -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: how to dynamically instantiate an object inheriting from several classes?

2008-11-21 Thread Ned Deily
w, though it doesn't explain > what the dict is for. > > Where would I find documentation on this nifty function? Where built-in functions are documented, the Python Library Reference: <http://www.python.org/doc/2.5.2/lib/built-in-funcs.html> -- Ned Deily, [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Python won't run

2009-02-23 Thread Ned Deily
dle server process to abort. Rename your random.py* and all should be well for both 2.5 and 2.6. One could argue that IDLE.app should be smarter about situations like this. It would be good to open an issue about this on the python tracker: http://bugs.python.org/ -- Ned Deily n...@acm.org -- [] -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: cannot execute binary file (Python 3.0.1)

2009-03-01 Thread Ned Deily
ow using python3.0 from the shell command line. You can use the above path to execute python; it might help to create a shell alias for it. Or double-click on the Update Shell Profile command in /Applications/Python 3.0 to cause python3.0 to be added to your shell PATH and then just type py

Re: Python won't run

2009-03-01 Thread Ned Deily
In article , dkie...@gmail.com wrote: > On Feb 23, 5:01 pm, Ned Deily wrote: > > On Feb 23, 2009, at 14:03 , kevin hayes wrote: > > > Ned, system log didn't do anything when I tried to open IDLE. However, > > > this > > > is what's i

Re: Python 2.6.1 urllib error on Mac os x PPC

2009-03-02 Thread Ned Deily
original test works with it. If so, perhaps you don't need to build your own? That install works on both Intel and PPC. One difference: it is built with MACOX_DEPLOYMENT_TARGET=10.3, meaning it will work on systems >= 10.3 but if you really need 10.5 only there might be some side-ef

Re: Upgrade Python on a Mac

2009-03-02 Thread Ned Deily
ple-supplied 2.5.x version. Multiple versions of python can co-exist on OS X. See, for instance: <http://permalink.gmane.org/gmane.comp.python.apple/15546> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6.1 urllib error on Mac os x PPC

2009-03-03 Thread Ned Deily
most certainly still have to patch urllib. You should open a tracker issue about this at http://bugs.python.org/. And nice job documenting the problem! -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Building python 64-bit on OS 10.5?

2009-03-12 Thread Ned Deily
> 2) I often use a number of python extensions like matplot, pylab, and > ipython. Will these (especially the graphics parts) be able to build on > top of my 64-bit installation? Is there some way to find out if they will > likely work without actually having to build them?

Re: How to add months to a date (datetime object)?

2009-03-15 Thread Ned Deily
help: <http://labix.org/python-dateutil> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: script files with python (instead of tcsh/bash)?

2009-03-21 Thread Ned Deily
ivalent in bash/tsch to > show some of the equivalences. I am being impatient, I guess I need to > dig into the language/library documentation a bit more on my own. Perhaps the recipe for Pyline might give you some ideas on how to write python scripts that play well with other scripts. <

Re: How to create a virtual serial port?

2009-04-11 Thread Ned Deily
A number of vendors (Keyspan, Belkin) make USB serial ports. FWIW, I use one here on this iMac and OS X with screen(1) and a null modem cable to act as a serial console for a headless Linux box. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create a virtual serial port?

2009-04-11 Thread Ned Deily
In article , Grant Edwards wrote: > On 2009-04-11, Ned Deily wrote: > > In article <6lgdnsbypsl1fx3unz2dnuvz_uqdn...@pdx.net>, > > Scott David Daniels wrote: > >> This part I actually understand. The OP has a program named > >> "RouteBuddy"

Re: platform.machine(): ImportError: No module named select

2009-04-15 Thread Ned Deily
om the path names, I'll guess this is on Solaris. If so, there seems to be a long history of problems building select and friends. See, for example: <http://mail.python.org/pipermail/python-list/2007-June/617030.html> Someone with current Solaris experience may be able to help. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: RELEASED Python 2.6.2

2009-04-15 Thread Ned Deily
W, that issue has recently been documented and there is a patch for the build script to ensure that the 3rd party Tcl/Tk is present during the installer build. I don't think it made it into the 2.6.2 source tree, though. <http://bugs.python.org/issue5651> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.6.2

2009-04-16 Thread Ned Deily
version 8.4.19) /usr/lib/libSystem.B.dylib [...] -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.6.2

2009-04-17 Thread Ned Deily
In article , "Russell E. Owen" wrote: > In article , > Ned Deily wrote: > > In article , > > Russell Owen wrote: > > > I installed the Mac binary on my Intel 10.5.6 system and it works, > > > except it still uses Apple's system Tcl/Tk 8.

Re: Installing 2.6 on a Mac

2009-04-24 Thread Ned Deily
hon.apple/15600 If you are still having problems, I suggest bringing the specific errors to the pythonmac sig forum: http://mail.python.org/mailman/listinfo/pythonmac-sig or http://dir.gmane.org/gmane.comp.python.apple -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Help! Can't get program to run.

2009-05-01 Thread Ned Deily
and >>> the python-prompt) > you either do > $ python > >>> print "hello" > or > $ python mymodule.py > to execute mymodule directly. And from within OS X IDLE itself, if you create or open the file mymodule.py, it will be in a separate window and

Re: Help! Can't get program to run.

2009-05-02 Thread Ned Deily
hould open with the contents of that file. With that window selected (click on it, if necessary), there should be a "Run" option in the Menu bar and under it will be a "Run Script" option that will cause the script to run and the output to appear in the shell window. You ca

Re: Unable to build libpython2.5.so on OS X 10.4

2009-05-07 Thread Ned Deily
Python 2.5 installation, using Distutils from that installation should take care of everything for you. Is there a setup.py file by any chance? Are you using a standard python installation (i.e. python.org installer for instance)? More details might help. -- Ned Deily, n...@acm.org --

Re: Unable to build libpython2.5.so on OS X 10.4

2009-05-07 Thread Ned Deily
build python on OS X (google will find them or ask on the Mac python sig) but, unless you have some special requirement, use an existing python installation and build the ROOT Python module with that. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: slice iterator?

2009-05-08 Thread Ned Deily
ere's more than one way to do it ;-) python2.6 itertools introduces the izip_longest function and the grouper recipe <http://docs.python.org/library/itertools.html>: def grouper(n, iterable, fillvalue=None): "grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx&qu

Re: MacPython 3.0.1 installation problem, no /usr/local/bin/python*

2009-05-09 Thread Ned Deily
> install it as the default. The executable should be at > /usr/local/bin/python3.0 By default, the 3.0.1 installer does not install any links in /usr/local/bin. To do so, run or re-run the installer, click Customize, and then select the "UNIX command-line tools" package. That creates /usr/local/python3.0 and /usr/local/python links, among others. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: json vs. simplejson

2009-05-13 Thread Ned Deily
funny, on Linux, json > WITH _json is still somewhat slower (~10%) than simplejson WITHOUT > the _speedups module. According to the svn history in 2.6, the json module was a copy of simplejson 1.9. The current version of simplejson is 2.0.9 and, according to its CHANGES.txt, there ha

Re: itertools question

2009-05-14 Thread Ned Deily
discussed here just a few days ago: <http://comments.gmane.org/gmane.comp.python.general/622763> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Difference between list() and [] with dictionaries

2009-05-15 Thread Ned Deily
ionary's keys. The second example is essentially shorthand for: list({ "a": "b", "foo": "bar" }.iterkeys()) <http://docs.python.org/library/functions.html#list> <http://docs.python.org/library/stdtypes.html#mapping-types-dict> -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Difference between list() and [] with dictionaries

2009-05-16 Thread Ned Deily
In article , a...@pythoncraft.com (Aahz) wrote: > In article , > Ned Deily wrote: > >The second example is a call to the built-in function "list", [...] > Actually, list() is not a function: > >>> list > > Rather, ``list`` is an object (specif

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Ned Deily
work. You can safely delete those if you don't need them. But also make sure you update to the latest 2.6 (currently 2.6.2) python.org version; as noted, the original 2.6 python.org release had issues with user-installed Tcl and Tk frameworks. -- Ned Deily, n...@acm.org -- htt

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Ned Deily
g installers create links at /usr/local/bin/python and /usr/local/bin/python2.6; use one of those paths to get to the python.org 2.6 or ensure /usr/local/bin comes before /usr/bin on your $PATH. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: How to test python snippets in my documents?

2009-05-26 Thread Ned Deily
//ivory.idyll.org/articles/nose-intro.html#running-doctests-in-nose -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: 4 hundred quadrillonth?

2009-05-27 Thread Ned Deily
l round > > trip correctly is what is used as the floating point repr > > Little question: what was the goal of such a change? (is there a pep for me > to > read?) See discussion starting here: http://article.gmane.org/gmane.comp.python.devel/103191/ -- Ned Deily, n...

Re: py2app and OpenGL, "No module named util" in ctypes

2009-05-28 Thread Ned Deily
In article , trhaynes wrote: > I'm trying to use py2app to package an OpenGL app [...] You might try asking on the pythonmac-sig list: more py2app users there most likely. http://mail.python.org/mailman/listinfo/pythonmac-sig [or] http://dir.gmane.org/gmane.comp.python.apple -- N

Re: import _sqlite3 no module named error

2009-06-04 Thread Ned Deily
the path names, it appears you are using the MacPorts python2.5. Try: sudo port install py25-sqlite3 which will bring along sqlite3 if not already installed. It should be that simple. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: import _sqlite3 no module named error

2009-06-04 Thread Ned Deily
gt;> A quick web search shows that there were apparently some issues with MacPort's py25-sqlite3 in the not too distant past. Perhaps your ports need to be upgraded? $ sudo port selfupdate or $ sudo port sync $ sudo port upgrade installed -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: import _sqlite3 no module named error

2009-06-04 Thread Ned Deily
In article <77e831100906041718k4b4f54d9v29729449c50f...@mail.gmail.com>, Vincent Davis wrote: > On Thu, Jun 4, 2009 at 1:41 PM, Ned Deily wrote: >[...] > > $ /opt/local/bin/python2.5 > > Python 2.5.4 (r254:67916, May  4 2009, 01:40:08) > > [GCC 4.0.1 (Apple Inc. b

Re: Yet another unicode WTF

2009-06-04 Thread Ned Deily
the other end of its stdout. > > Clues appreciated. Thanks. $ python2.6 -c 'import sys; print sys.stdout.encoding, \ sys.stdout.isatty()' UTF-8 True $ python2.6 -c 'import sys; print sys.stdout.encoding, \ sys.stdout.isatty()' > foo ; cat foo None False -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Odd closure issue for generators

2009-06-04 Thread Ned Deily
aybe that's a source of confusion. There is only one generator expression in your example. >>> c = (lambda : i for i in range(11, 16)) >>> c at 0x114e90> >>> d = list(c) >>> d [ at 0x119348>, at 0x119390>, at 0x1193d8>, at 0x119420>, at 0x119468>] -- 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 <8763fbmk5a@benfinney.id.au>, Ben Finney wrote: > Ned Deily writes: > > $ python2.6 -c 'import sys; print sys.stdout.encoding, \ > > sys.stdout.isatty()' > > UTF-8 True > > $ python2.6 -c 'import sys; print sys.stdout.encod

Re: need clarification on -0

2009-11-28 Thread Ned Deily
e of that, using a test for -0 as an easy, though not 100% foolproof, test for a missing numeric value. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Filling in a tuple from unknown size list

2009-11-29 Thread Ned Deily
nded iterable unpacking (http://www.python.org/dev/peps/pep-3132/) is implemented in python 3. $ python3 Python 3.1.1 (r311:74543, Aug 24 2009, 18:44:04) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more in

Re: multiprocessing.connection with ssl

2009-11-30 Thread Ned Deily
u haven't already, open a feature request issue on the Python bug tracker (http://bugs.python.org/) and attach the code as a patch file. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't print Chinese to HTTP

2009-11-30 Thread Ned Deily
expected. > > This is OSX 10.6 2,, Python 3.1.1. Are you sure you are actually using Python 3? /usr/bin/python is the path to the Apple-supplied python 2.6.1. If you installed Python 3.1.1 using the python.org OS X installer, the path should be /usr/local/bin/python3 -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't print Chinese to HTTP

2009-12-01 Thread Ned Deily
risking incorrect operation of other system programs that may depend on it plus it is quite likely that an OS X software update will overwrite this location breaking your applications. Use /usr/local/bin/python3.1 instead. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL build error on Snow Leopard

2009-12-01 Thread Ned Deily
;d rather not do that, you can use MacPorts or Fink to build the necessary libraries. Another approach that should work (but I haven't tested on 10.6) is to install the UnixImageIO and FreeType frameworks from here: http://www.kyngchaos.com/software:frameworks -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: When will Python 3 be fully deployed

2009-12-10 Thread Ned Deily
"now in bugfix-only mode; no new features are being added". Per normal python development policy, new features are added to the next major release cycles, now under development: Python 2.7 and Python 3.2. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Dangerous behavior of list(generator)

2009-12-12 Thread Ned Deily
list with one element. >>> [x for x in xrange(10)] [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] Now *that's* a list comprehension. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Dangerous behavior of list(generator)

2009-12-12 Thread Ned Deily
In article , Ned Deily wrote: > In article > , > Benjamin Kaplan wrote: > > On Sat, Dec 12, 2009 at 7:15 PM, Tom Machinski > > wrote: > > > In most cases, `list(generator)` works as expected. Thus, > > > `list()` is generally equivalent to `[ >

Re: More stuff added to ch 2 of my programming intro

2009-12-16 Thread Ned Deily
t; How about devoting a section on downloading the source files > and compiling it on a Mac? Why would you do that? http://www.python.org/download/releases/3.1.1/ http://www.python.org/ftp/python/3.1.1/python-3.1.1.dmg or (for MacPorts fans): $ sudo port install python31 -- Ned Deily, n..

Re: More stuff added to ch 2 of my programming intro

2009-12-17 Thread Ned Deily
ject is an open-source community initiative to design an easy-to-use system for compiling, installing, and upgrading either command-line, X11 or Aqua based open-source software on the Mac OS X operating system." -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: More stuff added to ch 2 of my programming intro

2009-12-17 Thread Ned Deily
stated there somewhere about which operating systems are supported. For the record, 3.1.1 has been tested on 10.4, 10.5, and 10.6 and should work on 10.3.9. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Ned Deily
to launch the OS X IDLE. python.org installers put a double-clickable IDLE.app in /Applications/Python n.x. There is also a command-line "idlen.n" in /Library/Frameworks/Python.framework/Versions/n.n/bin which, optionally, has a symlink from /usr/local/bin. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Best practices for simultaneously installed versioned packages?

2010-01-04 Thread Ned Deily
select before importing wx and it will make sure that > the correct version is imported. You might want to look up what they > did. Also, setuptools (and, its successor, distribute, which supports Python 3) allow the installation and management of multiple versions of a package within one python site-library instance. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Best practices for simultaneously installed versioned packages?

2010-01-04 Thread Ned Deily
In article <4b42b45e.9070...@hastings.org>, Larry Hastings wrote: > Ned Deily wrote: > > Also, setuptools (and, its successor, distribute, which supports Python > > 3) allow the installation and management of multiple versions of a > > package within one python si

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Ned Deily
upplied Aqua (aka Quartz) Tk not the X11 one that MacPorts builds by default. The MacPorts Tk port does have a "quartz" variant but that doesn't yet work in 64-bit mode. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: it gets worse (was: How do you configure IDLE on a Mac...)

2010-01-05 Thread Ned Deily
Aug 24 2009, 18:44:04) [GCC 4.0.1 (Apple Inc. build 5493)] Testing gmpy 1.11 (GMP 4.3.1), default caching (100, 128) ... 1500 tests in 42 items. 1500 passed and 0 failed. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Confusing, desparate MySQLdb problems...

2010-01-16 Thread Ned Deily
;ll need to install a 64-bit version of the MySQLdb and the MySQL client libraries for the Apple-supplied Python or modify the Apache setup to either force 32-bit mode for the Apple-supplied Python or use the other Python (from /usr/local/bin/python2.6 or wherever). -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Confusing, desparate MySQLdb problems...

2010-01-16 Thread Ned Deily
In article <8647768b-944c-4025-8389-768a9cae5...@u41g2000yqe.googlegroups.com>, stopchuckingstuff wrote: > On Jan 17, 12:14 am, Ned Deily wrote: > > In article > > <0ba7faf8-f816-4100-ba5b-b138d3008...@c3g2000yqd.googlegroups.com>, > >  stopchuckingstuff wrot

<    1   2   3   4   5   6   >