Trace KeyboardInterrupt exception?

2006-06-13 Thread Tony Nelson
I'm trying to find out what is eating some KeyboardInterrupt exceptions in a fairly large program (yum). My KeyboardInterrupt handler is called for some Ctl-C presses, but for others nothing seems to happen. Grepping the source (what of it I've found, looking at import statements) doesn't tur

Re: Trace KeyboardInterrupt exception?

2006-06-14 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Tony Nelson wrote: > > I'm trying to find out what is eating some KeyboardInterrupt exceptions > > in a fairly large program (yum). My KeyboardInterrupt handler is called > > for some Ctl-C presses,

socket and Ctl-C workaround?

2006-06-15 Thread Tony Nelson
I've been trying to figure out why Ctl-C sometimes doesn't interrupt yum. It appears to be unresolved Python bug 926423, unresolved proposed patch 1102879, don't know if anything ever came of it. Note that I cannot ask all yum users to apply the patch. I'm not sure I should be getting rid of

Re: Trace KeyboardInterrupt exception?

2006-06-15 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > if you want to interrupt the code to find out where it is, > you can instead connect to it in gdb and get the python traceback of > each thread. > if you're interested I'll post the necesary gdb-macro for that (didn'

Help with ConfigParser

2006-10-02 Thread tony . ha
Hello I use ConfigParser as show below to read a config.txt file; from ConfigParser import ConfigParser config = ConfigParser() config.read('config.txt') items = config.items('FV') for item in items:    module_name = item[0]    print module_name The config.txt file has the following [FV] # Se

Ruby/Python/REXX as a MUCK scripting language

2006-11-24 Thread Tony Belding
t the result was always quirky, limited languages like MUF (Multi-User Forth) which really turn off a lot of coders. Furthermore, I've never created a language before, and it would be a lot of extra work for me. -- Tony Belding, Hamilton Texas -- http://mail.python.org/mailman/listinfo/python-list

PEP 3107 Function Annotations for review and comment

2006-12-29 Thread Tony Lownds
(Note: PEPs in the 3xxx number range are intended for Python 3000) PEP: 3107 Title: Function Annotations Version: $Revision: 53169 $ Last-Modified: $Date: 2006-12-27 20:59:16 -0800 (Wed, 27 Dec 2006) $ Author: Collin Winter <[EMAIL PROTECTED]>, Tony Lownds <[EMAIL PROTECTED

Re: PEP 3107 Function Annotations for review and comment

2006-12-29 Thread Tony Lownds
rator. The syntax also provides a notation for documentation to follow. Even a standard decorator won't help with that. I am surprised you think the syntax is more obstrusive than the decorator. -Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3107 Function Annotations for review and comment

2006-12-30 Thread Tony Lownds
s within the same module. What else could intersect and why can't the intersecting pieces develop an solution when it arises? More feedback from the community on this point (whether the PEP needs to take responsibility for interoperability) would be nice. Thanks for the feedback from everyone so far, -Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3107 Function Annotations for review and comment

2006-12-31 Thread Tony Lownds
yword-only Arguments. > 2) Is the func_annotation information for def foo(*c: list) > stored as {"*c": list} preserving optional argument information or > {"c":list} ? > {"c": list} -Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3107 Function Annotations for review and comment

2006-12-31 Thread Tony Lownds
On Dec 31, 2006, at 7:54 AM, John Roth wrote: > Tony Lownds wrote: >> Perhaps you are right and intersecting libraries will become an >> issue. >> Designing a solution in advance of the problems being evident seems >> risky to me. What if the solution invented in a va

Re: PEP 3107 Function Annotations for review and comment

2007-01-01 Thread Tony Lownds
any built in objects, which is odd. We could add a meaning for ints/bools: http://mathworld.wolfram.com/Implies.html If that is reasonable I would suggest calling the special method __implies__ and putting the slot on PyNumberMethods. If that's just silly, I suggest calling the special me

Re: PEP 3107 Function Annotations for review and comment

2007-01-01 Thread Tony Lownds
ght. Can you point out any specific text from the PEP you derived this from? Then "sales" can work from something specific :) Thanks -Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website?

2006-01-22 Thread Tony Meyer
>> But sheesh, if I objected to every picture of the moon I >> see (or pictures that vaguely resemble a moon), I would be >> in a very sad state. > > But you see Terry, the point is not that it is just a picture. And > let's not forget that as far as we know the moon has always been a > natural par

Re: beta.python.org content

2006-01-26 Thread Tony Meyer
> - The logo does indeed resemble a cross. How about rotating it at > 45 deg >to make it look like an x? Or give it a circular shape? Please note >that there are no religious motives in this remark :) -1. Then what are the motives? A rotated cross looks a lot less clean. Take a look

python-dev Summary for 2006-01-01 through 2006-01-15

2006-02-01 Thread Tony Meyer
itted a patch`_ that orders the output so that doctest output can be easily reliable. He pointed out that there is `another open patch`_ that allows the user to specify the order through an "ordered dictionary". Guido explained that he didn't feel that it mattered, as long as the

Re: super(...).__init__() vs Base.__init__(self)

2006-02-09 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, Jan Niklas Fingerle <[EMAIL PROTECTED]> wrote: > ...Super is a good tool to use, when dealing with > diamond shape inheritance. In any other case I would use the direct > calls to the base classes. In fact, i've yet to find a non-textbook-case > where I really need

Re: PEP 353: Using ssize_t as the index type

2006-02-12 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: ... > Discussion > == > > Why not size_t > -- > > An initial attempt to implement this feature tried to use > size_t. It quickly turned out that this cannot work: Python > uses negative indices in m

Re: time.sleep(1) sometimes runs for 200 seconds under windows

2006-02-26 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, Claudio Grondi <[EMAIL PROTECTED]> wrote: > Claudio Grondi wrote: > > Claudio Grondi wrote: > > > >> Paul Probert wrote: > >> > >>> Peter Hansen wrote: > >>> > Are you saying that you believe the time.sleep(1) call is actually > blocking for 200 seconds

python-dev Summary for 2005-04-16 through 2005-04-30

2005-05-15 Thread Tony Meyer
7.html>`__ - `os.urandom uses closed FD (sf 1177468) <http://mail.python.org/pipermail/python-dev/2005-April/052716.html>`__ - `Removing --with-wctype-functions support <http://mail.python.org/pipermail/python-dev/2005-April/052968.html>`__ Epilogue This is a s

RE: problem uploading ZIP file tp PyPI

2005-05-19 Thread Tony Meyer
setup.py sdist --format=zip >>> >>> Try without the --format arg. The code is being too paranoid. >> >> Result: (A) produces a zip file with only minor differences >> (presumably a timestamp): > > Oh, so even without --format, a ZIP source dist file is > produced anyway? If this is the cas

RE: problem uploading ZIP file tp PyPI

2005-05-19 Thread Tony Meyer
> setup.py sdist --format=zip Try without the --format arg. The code is being too paranoid. >>> >>> Oh, so even without --format, a ZIP source dist file is produced >>> anyway? If this is the case, please file a bug against PyPI. >> >> How is this a bug? sdist is meant to produce a

RE: problem uploading ZIP file tp PyPI

2005-05-19 Thread Tony Meyer
>> So (if the former is what you meant) would a workaround for >> now be to do something like: >> >> setup.py sdist --format=gztar upload > > (1) error: command 'tar' failed: No such file or directory I was assuming that tar and gzip were available. There are various tar/gzip applications avai

RE: Checking for a full house

2005-05-25 Thread Tony Meyer
> def removeAll(element, num2Rem, list): > l = list[:] > for num in range(0, num2Rem): > l.remove(element) > return l > > def isfullHouse(roll): > for die in range(1,7): > if roll.count(die)==3: > l = removeAll(die, 3, roll) > if l[0]==l[1]:

RE: Checking for a full house

2005-05-25 Thread Tony Meyer
[Tony Meyer] >> def isfullHouse(roll): >> return len(set(roll)) != 2 [Robert Kern] > [1, 1, 1, 1, 2] is not a full house. Opps. I did say it was untested (that should have been == not !=, too). What about: def isfullHouse(roll): return len(set(roll)) == 2 and roll.count(

RE: What are OOP's Jargons and Complexities?

2005-05-26 Thread Tony Meyer
[Paul Rubin] > Strong typing means there [are] a lot of variables whose names > are in ALL CAPS. +1 QOTW. =Tony.Meyer -- http://mail.python.org/mailman/listinfo/python-list

Presentation for October meeting at Ironport

2005-06-09 Thread Tony C
Tim Thompson has agreed to October at Ironport. Would someone pencil him in on the Web page? I will see if I can get a short abstract from him. If not, I've contacted Tim Thompsonhttp://nosuch.com/tjt/index.html , author of many interesting software projects, many of which are music-oriented.

RE: inactive Spambayes w/ Outlook

2005-06-12 Thread Tony Meyer
> I had installed spambayes with outlook 2003 a while ago and > it worked great. Then I did who know what it stopped working. If Peter's link doesn't help, I suggest you try the spambayes mailing list: =Tony.Meyer -- http://mail.python.org/

Re: Python 2.5.1 broken os.stat module

2007-05-31 Thread Tony Meyer
g.python/browse_thread/thread/890eef2197c6f045/5466283a8253cafb?lnk=gst&q=getmtime&rnum=3#5466283a8253cafb I suspect that it explains your problem. Cheers, Tony -- http://mail.python.org/mailman/listinfo/python-list

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

2007-06-26 Thread tony . theodore
On Jun 21, 4:53 am, Stephen R Laniel <[EMAIL PROTECTED]> wrote: > Before I ask anything, let me note that this is surely an > old question that has inspired its share of flame wars; I'm > new to Python, but not new to how Internet discussions work. > So if there's a canonical thread or web page tha

Re: Regex doesn't support MULTILINE?

2007-07-21 Thread Tony Meyer
newline; without this flag, "." will match anything except a newline. """ If you do a lot of working with regular expressions, then I highly recommend Kodos (http://kodos.sourceforge.net) as a tool for interactively figuring out issues. Cheers, Tony Meyer -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft's Dynamic Languages Runtime (DLR)

2007-05-04 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, Kaz Kylheku <[EMAIL PROTECTED]> wrote: > On May 2, 5:19 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > > On May 3, 2:15 am, Kaz Kylheku <[EMAIL PROTECTED]> wrote: > > > > > Kindly refrain from creating any more off-topic, cross-posted threads. > > > Thanks. > > > >

Re: getmtime differs between Py2.5 and Py2.4

2007-05-07 Thread Tony Meyer
16:59:22 2007 Time modified : 05/08/2007 04:59:22 UTC Time modified : 05/08/2007 16:59:22 Local A key fact here, I believe, is that in February (when temp.txt was last modified), my local time was UTC-11. I expect this is the suffering that your comment in posixmodule.c refers to (it looks to m

Re: Accessing iTunes with Python via the Windows SDK

2007-05-23 Thread Tony Meyer
this with win32com.client.CastTo, as follows: """ import win32com.client iTunes = win32com.client.gencache.EnsureDispatch("iTunes.Application") curr = win32com.client.CastTo(iTunes.CurrentTrack, "IITFileOrCDTrack") name = curr.Name skipped = curr.SkippedCount skipd

vector graphics bindings, was Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-05-29 Thread Tony Finch
hat covers all the languages you named, plus O'Caml and Haskell. Tony. -- f.a.n.finch <[EMAIL PROTECTED]> http://dotat.at/ GERMAN BIGHT: NORTH BECOMING CYCLONIC 4 OR 5, THEN WEST 5 OR 6. MODERATE OR ROUGH. RAIN OR DRIZZLE. MODERATE OR GOOD, OCCASIONALLY POOR. -- http://mail.python.org/mailman/listinfo/python-list

IDLE and opening with Python 2.5

2007-10-15 Thread Tony Mullen
. However, it does not appear in my start menu and I cannot set it as the default application to open .py files. Since uninstalling Python 2.4 (I have since installed 2.5.1 and rebooted several times) I can also no longer run IDLE. Any ideas where I am going wrong here? Thanks, Tony -- http

Re: IDLE and opening with Python 2.5

2007-10-16 Thread Tony Mullen
Well, for what it is worth, the solution to my problem is... just to wait a while. Even after re-starting the machine, I was still having the problems I described. Now I check it after a few hours of the machine being asleep and lo and behold, everything is as advertised. Seems to all be working

Determining encoding of a file

2007-02-03 Thread Tony Houghton
In Linux it's possible for filesystems to have a different encoding from the system's setting. Given a filename, is there a (preferably) portable way to determine its encoding? -- TH * http://www.realh.co.uk -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python Right for Me?

2007-02-03 Thread Tony Houghton
In <[EMAIL PROTECTED]>, Stuart D. Gathman <[EMAIL PROTECTED]> wrote: > On Fri, 02 Feb 2007 15:09:20 -0500, Mister Newbie wrote: > >> I want to make small, 2D games. I have no programming experience. Is >> Python a good choice? > > Definitely. I teach a class for 7th to 12th grade where I use this

Re: Determining encoding of a file

2007-02-03 Thread Tony Houghton
In <[EMAIL PROTECTED]>, Ben Finney <[EMAIL PROTECTED]> wrote: > Tony Houghton <[EMAIL PROTECTED]> writes: > >> In Linux it's possible for filesystems to have a different encoding >> from the system's setting. Given a filename, is there a (prefera

Re: Possible to set cpython heap size?

2007-02-23 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Andy Watson" <[EMAIL PROTECTED]> wrote: ... > If I could have a heap that is larger and does not need to be > dynamically extended, then the Python GC could work more efficiently. ... GC! If you're allocating lots of objects and holding on to them, GC will ru

Re: newbie needs help building Python 2.5 for Fedora Core 6

2007-02-24 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "bobmon" <[EMAIL PROTECTED]> wrote: > Hello, and please be gentle... > > I'm trying to build Python 2.5 on my Fedora Core 6 installation. I > think I've resolved most of my problems, but "make test" reports an > error for test_socket.py, shown below. > > I suppo

Re: python tutorial on a single html page?

2007-11-07 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > Is the main Python tutorial posted on single searchable page > somewhere? As opposed to browsing the index and clicking NEXT etc. For completeness (though a bit late), I'll mention that Google can search a group of

System exit hanging in Leopard

2007-11-08 Thread Tony Mullen
nsive, and I can kill the application from the command line, but not any other way. I don't see anything problematic in the traceback, but I don't think that the application should be hanging like this. Is this likely a Leopard-related issue? Thanks for any responses, Tony Traceback (m

System exit hanging in Leopard

2007-11-10 Thread Tony Mullen
rom the command line, but not any other way. I don't see anything problematic in the traceback, but I don't think that the application should be hanging like this. Is this likely a Leopard-related issue? Thanks for any responses, Tony Traceback (most recent call last): File "/U

Re: howto py2exe/py2app for self updating application

2006-04-22 Thread Tony Meyer
> I'm creating a GUI program > with wxPython which will be distributed for Mac and Windows. [...] > The program should be able to update itself [...] By default, py2exe puts all the .pyc files used in a zip file. The simplest way to do this it let py2exe do what it normally does. Code all o

Re: Swapping values of two variables

2009-01-29 Thread tony . clarke5
On Jan 30, 12:29 am, Eric Kang wrote: > In python, I set: > > x=1 > y=3 > > z = x > x = y > y = z > > This gave me 3 1, which are the values of x and y swapped. > The following would have given me the same result: > x, y = y, x > > But could the swapping be done using less extra memory than this?

Re: Swapping values of two variables

2009-01-29 Thread tony . clarke5
> >>> len(transpose.func_code.co_code) > > 59 > > Even if it worked, that's hardly using less memory than a direct swap. > > -- > Steven Should have been more explicit about that: the values are swapped within the namespace of the function, the function is just for demonstration of the process. WIthout the function, this is the result: Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> x = -10 >>> y = 4 >>> x = x + y >>> y = x - y >>> x = x - y >>> x 4 >>> >>> y -10 >>> Need to think about swapping floats though. Tony -- http://mail.python.org/mailman/listinfo/python-list

What are your favorite Python features?

2009-02-16 Thread Tony Arcieri
pular languages. P.S. If you're curious about my language you can read about it here: http://wiki.reia-lang.org and see some working examples of the syntax (which borrows heavily from Python) here: http://github.com/tarcieri/reia/tree/master/examples -- Tony Arcieri -- http://mail.python.org/mailman/listinfo/python-list

How to declare python ints in C extensions?

2009-01-04 Thread Tony Houghton
I want to write python wrappers for the Linux DVB API. The underlying structures and constants may change from time to time, and some of the constants are generated from macros, so I think it would be better to write the module in C rather than just copying the constants into pure python code and u

Re: How to declare python ints in C extensions?

2009-01-04 Thread Tony Houghton
On Sun, 04 Jan 2009 21:05:14 +0100 Christian Heimes wrote: > Philip Semanchuk schrieb: > > This works for me: > >PyModule_AddIntConstant(module, "O_CREAT", O_CREAT); > > > > I've had to learn a lot about writing extensions from looking at the > > Python source code. Lots of valuable tricks t

RE: Is there a programming language that is combination of Python and Basic?

2009-04-17 Thread Leguia, Tony
Though I don't know why you would want to reference lines numbers, I assume it's for goto statements or something similar. With that said please read: 1) http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html I would also like to put forth my opinion, shared by m

RE: Is there a programming language that is combination of Python and Basic?

2009-04-17 Thread Leguia, Tony
>Somebody better tell the Linux kernel developers about that! They >apparently haven't read that yet. Better tell CPU makers too. In >assembly it's all gotos. There a very big difference between high level programming, and assembly programming. Python is a high level language. I shouldn't ha

Re: [ANN] vim patch to support python3 interface

2009-05-21 Thread Tony Mechelynck
he problems I had with it (when trying to use Unicode in Vim on Win98) made me switch to Make_cyg.mak even before moving up to XP and then to Linux-only; but my HowTo "for Windows" still includes settings for it. Best regards, Tony. -- The greatest dangers to liberty lurk in insidiou

ImportError: DLL load failed

2008-06-27 Thread Tony May
as failed to start because the a pplication configuration is incorrect. Reinstalling the application may fix this problem. Thanks for any help Tony Reply Forward -- http://mail.python.org/mailman/listinfo/python-list

Re: One class per file?

2008-10-04 Thread Tony Meyer
pen to find it? If you follow the "one class per file" rule, the answer is easy; it's in SomeClass.xxx! Alternatively, most IDEs will let you go to the source very simply. If you don't have that facility available, then you just do "import X;print X.__file__"

sizeof(struct timeval)

2006-03-13 Thread Tony Houghton
I'm writing a python program which reads input device events so it needs to know sizeof(struct timeval). By using the struct module I should be able to work out sizeof(long) from python, but I can't think of a way to measure non-fundamental types without including a little bit of C, which I'd rathe

Re: sizeof(struct timeval)

2006-03-13 Thread Tony Houghton
In <[EMAIL PROTECTED]>, Big and Blue <[EMAIL PROTECTED]> wrote: > Big and Blue wrote: > > Tony Houghton wrote: > >> > >> How safe would I be assuming that > >> sizeof(struct timeval) == 2 * sizeof(long) > >> > >> is always tr

Re: sizeof(struct timeval)

2006-03-13 Thread Tony Houghton
In <[EMAIL PROTECTED]>, Big and Blue <[EMAIL PROTECTED]> wrote: > Tony Houghton wrote: >> >> How safe would I be assuming that >> >> sizeof(struct timeval) == 2 * sizeof(long) >> >> is always true on Linux on different architectures?

Re: email package 4.0a2

2006-03-16 Thread Tony Meyer
[Barry Warsaw] >> I'm happy to announce the release of the email 4.0a2 standalone >> package. [Konrad Hinsen] > My interpretation of the above paragraph is that it will be > impossible to write Python code using the email module (and possibly > other evolving modules) that works with both Python 2

Module documentation

2006-03-26 Thread Tony Burrows
parameters are needed and what they represent? Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: Module documentation

2006-03-26 Thread Tony Burrows
On Sun, 26 Mar 2006 17:19:35 +0200, Rene Pijlman wrote: > Tony Burrows: >>With something like Java I can find the syntax of a method call with no >>problems, how do I do the same with Python? > > The basic syntax is just the name, with parameters in brakcets: > >

open source linux -> windows database connectivity?

2009-11-12 Thread Tony Schmidt
I am trying to read a Pervasive database on a Windows machine from a Python script on a Linux machine. I understand that this can be done with a proprietary ODBC-to-ODBC bridge called mxODBC or Easysoft OOB. Is there anyway to do this with existing free/ open source tools? Thanks in advance for

Re: open source linux -> windows database connectivity?

2009-11-12 Thread Tony Schmidt
>Note: The client part of this product is free. You only need to >get a license for the server part. Yeah, but don't I need the server part to make the connection? Would it be possible to use Jython and the Pervasive JDBC driver for this? On Nov 12, 2:56 pm, "M.-A. Lemburg

Re: open source linux -> windows database connectivity?

2009-11-18 Thread Tony Schmidt
Woo-hoo! Forget ODBC. Got this working with Jython and JDBC drivers! On Nov 13, 1:03 am, "M.-A. Lemburg" wrote: > TonySchmidtwrote: > >> Note: The client part of this product is free. You only need to > >> get a license for the server part. > > > Yeah, but don't I need the server part to make t

Running a script to build docs from setup.py

2009-07-09 Thread Tony Houghton
I want to write a setup.py script, using distutils, for a python library called ROX-Lib2 (package name "rox"). The library includes a script to build HTML documentation from the pydoc strings. I'd like to run that script from setup.py but I don't know the best way to do that. I've looked through th

Re: Running a script to build docs from setup.py

2009-07-10 Thread Tony Houghton
On Fri, 10 Jul 2009 11:06:34 +1000 Ben Finney wrote: > Tony Houghton writes: > > > I've looked through the manual but I can't find any hooks in distutils > > for generating files at install time other than extension modules and > > .pyc files. Should I just r

python make dies :libtk8.5.so: cannot open shared object file: No such file or directory

2009-07-10 Thread Lay, Tony
1 root root 1112606 Jul 10 13:28 libtk8.5.so Am I missing something, it's there? Regards, Tony Lay UNIX Administration 407-306-6559 Lockheed Martin - EBS One Company, One Team BEGIN:VCARD VERSION:2.1 N:Lay;Anthony (Tony) FN:Anthony (Tony) Lay ([email protected]) ORG:Lockh

python make dies :libtk8.5.so: cannot open shared object file: No such file or directory

2009-07-13 Thread Tony Lay
-x 1 root root 1112606 Jul 10 13:28 libtk8.5.so Am I missing something, it’s there? Regards, -Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: python make dies :libtk8.5.so: cannot open shared object file: No such file or directory

2009-07-13 Thread Tony Lay
On Jul 13, 10:09 am, Christian Heimes wrote: > Tony Lay wrote: > > # cd /usr/local/lib > > > # ls -la | grep libtk8.5.so > > > -r-xr-xr-x   1 root root  1112606 Jul 10 13:28 libtk8.5.so > > > Am I missing something, it’s there? > > Is /usr/local/lib in

ImportError: No module named _functools

2009-07-14 Thread Tony Lay
fontconfig/freetype junk because (usr/local/ lib/libfontconfig.so: undefined reference to `FT_Select_Size') but that's a little OT. If there are any recommendations of what to attack or further information would help let me know! Regards, -Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: ImportError: No module named _functools

2009-07-16 Thread Tony Lay
On Jul 16, 10:14 am, [email protected] (Aahz) wrote: > In article > <45228cf4-0b37-4c52-bf6f-d7bd124b0...@l32g2000vbp.googlegroups.com>, > Tony  Lay   wrote: > > > > >Traceback (most recent call last): > >  File "/usr/local/bin/meld", line 35, i

Re: ImportError: No module named _functools

2009-07-16 Thread Tony Lay
On Jul 16, 10:14 am, [email protected] (Aahz) wrote: > In article > <45228cf4-0b37-4c52-bf6f-d7bd124b0...@l32g2000vbp.googlegroups.com>, > Tony  Lay   wrote: > > > > >Traceback (most recent call last): > >  File "/usr/local/bin/meld", line 35, i

Re: custom data warehouse in python vs. out-of-the-box ETL tool

2009-09-24 Thread Tony Schmidt
@Martin: Thanks for your great feedback. So do you think it would be very beneficial for me to start with an Inman or Kimball book? Or do you think it would be just leisure reading and not very practical at best - fill my head with needless jargon and inflexible dogmas, at worst? I took a datab

Re: custom data warehouse in python vs. out-of-the-box ETL tool

2009-09-24 Thread Tony Schmidt
Hi, Marc-Andre - well, so far you seem to be the only one suggesting that cross-database joins is the way to go - everyone else has been telling me to build a warehouse. I initially was trying to avoid the warehouse idea to "avoid going through the external temporary resource", as you say. But th

Re: Please improve these comprehensions (was meaning of [ ])

2017-09-06 Thread Tony van der Hoff
On 06/09/17 16:31, Ian Kelly wrote: > On Wed, Sep 6, 2017 at 1:37 AM, Marko Rauhamaa wrote: >> Which reminds me of this puzzle I saw a couple of days ago: >> >>1 + 4 = 5 >>2 + 5 = 12 >>3 + 6 = 21 >>8 + 11 = ? >> >> A mathematician immediately comes up with a "wrong" answer. > There

Re: we want python software

2017-12-05 Thread Tony van der Hoff
On 05/12/17 16:55, Igor Korot wrote: > Hi, > > On Tue, Dec 5, 2017 at 9:10 AM, Jyothiswaroop Reddy > wrote: >> Sir, >> I am b.tech student I would like to learn python. So please send the >> python software. > Sorry, we don't send anything. You will have to go get it yourself. -) > Well,

Re: we want python software

2017-12-08 Thread Tony van der Hoff
On 05/12/17 16:55, Igor Korot wrote: > Hi, > > On Tue, Dec 5, 2017 at 9:10 AM, Jyothiswaroop Reddy > wrote: >> Sir, >> I am b.tech student I would like to learn python. So please send the python software. > Sorry, we don't send anything. You will have to go get it yourself. -) > Well, at l

Re: manually sorting images?

2016-09-05 Thread Tony van der Hoff
on-opencv/ -- Tony van der Hoff| mailto:[email protected] Buckinghamshire, England | -- https://mail.python.org/mailman/listinfo/python-list

HTML templating tools

2016-10-20 Thread Tony van der Hoff
heers, Tony -- Tony van der Hoff | mailto:[email protected] Ariège, France | -- https://mail.python.org/mailman/listinfo/python-list

Re: New PyPI launched, legacy PyPI shutting down April 30

2018-04-18 Thread Tony van der Hoff
On 18/04/18 13:15, Zbigniew Jędrzejewski-Szmek wrote: > On Mon, Apr 16, 2018 at 01:21:50PM -0400, Laura Hampton wrote: >> New PyPI launched, legacy PyPI shutting down April 30[1] >> >> Starting today, the canonical Python Package Index is at https://pypi.org >> and uses the new Warehouse codebas

Querying MariaDB from python

2018-10-02 Thread Tony van der Hoff
    }     )     return result This works OK, but looks inelegant. Having to iterate through the returned data to get it into a dictionary is error-prone if the query changes. I would have expected the connector to be able to return a dictionary. Can anyone suggest a better way of doing this?   -- Tony van der Hoff| mailto:[email protected] Buckinghamshire, England | -- https://mail.python.org/mailman/listinfo/python-list

Re: Querying MariaDB from python

2018-10-02 Thread Tony van der Hoff
On 02/10/18 16:37, Larry Martell wrote: > On Tue, Oct 2, 2018 at 11:34 AM Tony van der Hoff > wrote: >>I would have expected the connector to be able to return a >> dictionary. >> >> Can anyone suggest a better way of doing this? > > https://pymysql.readthedo

Re: Querying MariaDB from python

2018-10-02 Thread Tony van der Hoff
ql.connector module, which seems to be the "official" python interface. I hadn't spotted the pymysql module. Is the consensus here that pymysql is the preferred connector? Cheers, -- Tony van der Hoff| mailto:[email protected] Buckinghamshire, England | -- https://mail.python.org/mailman/listinfo/python-list

[SOLVED] Re: Querying MariaDB from python

2018-10-02 Thread Tony van der Hoff
On 02/10/18 17:13, Larry Martell wrote: > On Tue, Oct 2, 2018 at 12:09 PM Tony van der Hoff > wrote: >> >> On 02/10/18 16:47, Ervin Hegedüs wrote: >>> hi, >>> >>> now rows will looks like this: >>> ({'id':...,...},{

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-04 Thread Tony van der Hoff
> start by testing small numbers & then use your real data once you have > something that works > > as a starter a simple loop in python could be as follows > > for x in xrange(10): > print x > > once you have an outline of a program post it back here if things dont > work as expected > Two lines, two errors! To save the noob a lot of head-scratching, that should be: for x in range(10): If you're running python 3, as you should do for any new project: print( x ) -- Tony van der Hoff| mailto:[email protected] Buckinghamshire, England | -- https://mail.python.org/mailman/listinfo/python-list

Re: Import error

2016-04-05 Thread Tony van der Hoff
On 05/04/16 10:53, Nicolae Morkov wrote: What can I do I've tried everything Just hang your head and cry... -- Tony van der Hoff| mailto:[email protected] Buckinghamshire, England | -- https://mail.python.org/mailman/listinfo/python-list

Re: sum accuracy

2016-04-15 Thread Tony van der Hoff
ght expect exact_sum([0.3, 0.7]) to be 1. So I'm uninitiated: NameError: name 'exact_sum' is not defined I appreciate the word of warning, but, in my case, it's not helpful. -- Tony van der Hoff| mailto:[email protected] Buckinghamshire, England | -- https://mail.pyth

Prepare accented characters for HTML

2019-03-28 Thread Tony van der Hoff
t to cater for every case. Ideally there would be a library function to handle this, either in Python, or Jinja, but Googling around has not revealed such. Does anyone know of such a function, and where I might find it? Cheers, Tony -- Tony van der Hoff| mailto:[email protected] Bucki

Re: Prepare accented characters for HTML

2019-03-28 Thread Tony van der Hoff
On 28/03/2019 10:19, Antoon Pardon wrote: > On 28/03/19 10:38, Tony van der Hoff wrote: >> Hi, >> >> I have a MariaDB database, which contains accented (mostly French) >> characters. I need to display these on an HTML page. I'm using the Jinja >> templating e

Re: Prepare accented characters for HTML

2019-03-28 Thread Tony van der Hoff
On 28/03/2019 11:02, Chris Angelico wrote: > On Thu, Mar 28, 2019 at 8:58 PM Tony van der Hoff > wrote: >> >> Hi, >> >> I have a MariaDB database, which contains accented (mostly French) >> characters. I need to display these on an HTML page. I'm using

Re: Prepare accented characters for HTML

2019-03-28 Thread Tony van der Hoff
On 28/03/2019 12:46, Jon Ribbens wrote: > On 2019-03-28, Tony van der Hoff wrote: >> Thanks, Chris. The problem is not with the browser, but Jinja crashes. >> Probably a bug, but I'm too wedded to that engine to change now. I'll >> raise it on the Jinja bug site. &

Re: Prepare accented characters for HTML

2019-03-28 Thread Tony van der Hoff
On 28/03/2019 15:09, Peter Otten wrote: > Tony van der Hoff wrote: > >> On 28/03/2019 12:46, Jon Ribbens wrote: >>> On 2019-03-28, Tony van der Hoff wrote: >>>> Thanks, Chris. The problem is not with the browser, but Jinja crashes. >>>> Probably a bug

Re: Prepare accented characters for HTML

2019-03-28 Thread Tony van der Hoff
On 28/03/2019 16:58, Chris Angelico wrote: > On Fri, Mar 29, 2019 at 3:47 AM Tony van der Hoff > wrote: >> >> On 28/03/2019 15:09, Peter Otten wrote: >>> Tony van der Hoff wrote: >>> >>>> On 28/03/2019 12:46, Jon Ribbens wrote: >>>>>

Re: Jinja and non-ASCII characters (was Re: Prepare accented characters for HTML)

2019-03-29 Thread Tony van der Hoff
Hello Chris. Thanks for your interest. On 28/03/2019 18:04, Chris Angelico wrote: > On Fri, Mar 29, 2019 at 4:10 AM Tony van der Hoff > wrote: >> >> This'll probably work: > > You have a python3 shebang, but are you definitely running this under Python > 3?

Re: Jinja and non-ASCII characters (was Re: Prepare accented characters for HTML)

2019-03-29 Thread Tony van der Hoff
On 29/03/2019 11:08, Chris Angelico wrote: > On Fri, Mar 29, 2019 at 9:12 PM Tony van der Hoff > wrote: >> >> Hello Chris. >> Thanks for your interest. >> >> On 28/03/2019 18:04, Chris Angelico wrote: >>> On Fri, Mar 29, 2019 at 4:10 AM Tony van der

Re: my python is not working

2019-10-14 Thread Tony van der Hoff
On 14/10/2019 09:52, KAMALDEEP GUPTA wrote: > Mine is! -- Tony van der Hoff| mailto:[email protected] Buckinghamshire, England | -- https://mail.python.org/mailman/listinfo/python-list

can't install http module

2019-11-07 Thread tony van der Hoff
Hi, I'm attempting to install (among other things) the "http" module on my debian10 box, and am encountering the following problem: ## tony@tony-lx:~/_pycharm/pygallery$ python3 -m pip install http Collecting http   Using cached https://files.p

Re: can't install http module

2019-11-07 Thread Tony van der Hoff
On 07/11/2019 19:00, Chris Angelico wrote: On Fri, Nov 8, 2019 at 5:47 AM tony van der Hoff wrote: Hi, I'm attempting to install (among other things) the "http" module on my debian10 box, and am encountering the following problem: Can you link to the documentation for the

Re: can't install http module

2019-11-08 Thread Tony van der Hoff
On 07/11/2019 19:39, Chris Angelico wrote: On Fri, Nov 8, 2019 at 6:34 AM Tony van der Hoff wrote: On 07/11/2019 19:00, Chris Angelico wrote: On Fri, Nov 8, 2019 at 5:47 AM tony van der Hoff wrote: Hi, I'm attempting to install (among other things) the "http" module

<    1   2   3   4   >