Re: Looking for video/slides from PyCon 2011...

2012-05-15 Thread Monte Milanuk
On 05/13/2012 09:42 PM, Kushal Kumaran wrote: On Fri, May 11, 2012 at 5:42 AM, Monte Milanuk wrote: ...specifically the two lectures on creating GUI applications with Python + QT http://us.pycon.org/2011/schedule/presentations/207/ Various searches on the 'Net don't seem to be turning up much

Re: http://porn-extreme.2304310.n4.nabble.com/

2012-05-15 Thread jimmy970
http://porn-extreme.2304310.n4.nabble.com/ http://porn-extreme.2304310.n4.nabble.com/ -- View this message in context: http://python.6.n6.nabble.com/AMPUTEE-INCEST-MIDGET-2012-tp4708963p4974741.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org

Re: %d not working in re at Python 2.7?

2012-05-15 Thread Tim Roberts
vacu wrote: > >I am frustrated to see %d not working in my Python 2.7 re.search, like >this example: > (re.search('%d', "asdfdsf78asdfdf")).group(0) >Traceback (most recent call last): > File "", line 1, in >AttributeError: 'NoneType' object has no attribute 'group' > >\d works fine: >

Re: Hashability questions

2012-05-15 Thread Ian Kelly
On Tue, May 15, 2012 at 3:25 AM, Christian Heimes wrote: > Code explains more than words. I've created two examples that some issues. > > Mutable values break dicts as you won't be able to retrieve the same > object again: Sure, you'll get no argument from me on that. I was more interested in th

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread Ned Deily
In article , Arnaud Delobelle wrote: > This is what I have with system python 2.6: > > $ cat ~/bin/python_32 > #! /bin/bash > export VERSIONER_PYTHON_PREFER_32_BIT=yes > /usr/bin/python "$@" > > I use it for wxpython, which only seems to work in 32 bit mode. I > can't remember where I found i

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread Arnaud Delobelle
On 15 May 2012 20:55, Ned Deily wrote: > In article > , >  msmucr wrote: >> i would like to ask you for some information regarding Carbon Event >> Manager ( Carbon.CarbonEvt ) library in Python. >> I need to recieve and work with few Carbon events in my program. I've >> followed some examples on

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread msmucr
On 15 kvě, 21:21, John Gordon wrote: > In msmucr > writes: > > > Do I have something wrong or is it simply broken and unmaintained now? > > We have no idea if you did anything wrong, because you didn't tell us > exactly what you did and exactly what error message you received. > > -- > John Gor

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Mark Lawrence
On 15/05/2012 17:44, Daniel Fetchinson wrote: Blatantly the pyjs ownership change turned out to be an awkward operation (as reactions on that ML show it), but a fork could also have very harmfully "split" pyjs-interested people, so all in all I don't think there was a perfect solution - dictator

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread Kevin Walzer
On 5/15/12 3:06 PM, msmucr wrote: Do I have something wrong or is it simply broken and unmaintained now? Support for Carbon Events was removed in Python 3.x and it does not work in 64-bit, to my knowledge--most of the Carbon API's are not supported by Apple anymore. -- Kevin Walzer Code by

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread Ned Deily
In article , msmucr wrote: > i would like to ask you for some information regarding Carbon Event > Manager ( Carbon.CarbonEvt ) library in Python. > I need to recieve and work with few Carbon events in my program. I've > followed some examples on PyObjC site, but wasn't successful. I know, > tha

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread John Gordon
In msmucr writes: > Do I have something wrong or is it simply broken and unmaintained now? We have no idea if you did anything wrong, because you didn't tell us exactly what you did and exactly what error message you received. -- John Gordon A is for Amy, who fell down the

Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread msmucr
Hello, i would like to ask you for some information regarding Carbon Event Manager ( Carbon.CarbonEvt ) library in Python. I need to recieve and work with few Carbon events in my program. I've followed some examples on PyObjC site, but wasn't successful. I know, that both Carbon library and this P

Re: ucs2 and ucs4 python

2012-05-15 Thread Miki Tebeka
> Can someone point me towards a resource or two which will tell me how > to do this - im not very good with whole linux/servers stuff. Im using > ubuntu linux - if that makes any difference. Did not test, but this is the direction I would take: * Download Python sources * Open Terminal * Run the f

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Daniel Fetchinson
> Blatantly the pyjs ownership change turned out to be an awkward > operation (as reactions on that ML show it), but a fork could also have > very harmfully "split" pyjs-interested people, so all in all I don't > think there was a perfect solution - dictatorships never fall harmlessly. You say "f

Re: Hashability questions

2012-05-15 Thread Bob Grommes
On Monday, May 14, 2012 8:35:36 PM UTC-5, alex23 wrote: > It looks like this has changed between Python 2 and 3: > > "If a class does not define an __eq__() method it should not define a > __hash__() operation either; if it defines __eq__() but not > __hash__(), its instances will not be usable as

Re: Yet another "split string by spaces preserving single quotes" problem

2012-05-15 Thread Steven D'Aprano
On Sun, 13 May 2012 14:14:58 -0700, Massi wrote: > Hi everyone, > I know this question has been asked thousands of times, but in my case I > have an additional requirement to be satisfied. I need to handle > substrings in the form 'string with spaces':'another string with spaces' > as a single tok

Re: How to call and execute C code in Python?

2012-05-15 Thread Chris Angelico
On Tue, May 15, 2012 at 10:08 PM, David Shi wrote: > How to call and execute C code in Python? > > Is there any publication/documentation for this?   For the worst scenario, > how many ways are there to call and execute C codes, in Python. > > For instance, having got hold some C codes, attempting

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Tim Wintle
On Tue, 2012-05-15 at 12:39 +0200, Pascal Chambon wrote: > believe me all this fuss is pitiful compared to the real harm that was > done numerous time to willing newcomers, on pyjs' old ML, when they > weren't aware about the heavy dogmas lying around. > > A demo sample (I quote it each time the

How to call and execute C code in Python?

2012-05-15 Thread David Shi
How to call and execute C code in Python? Is there any publication/documentation for this?   For the worst scenario, how many ways are there to call and execute C codes, in Python. For instance, having got hold some C codes, attempting to use Python to call and execute C codes.  I.e.  Python,

compiling Tkinter

2012-05-15 Thread Rita
Hello, I understand Tkinter is part of the python distribution but for me it always fails when I try to load the module. I get: >>> import Tkinter ... import _tkinter # if this fails your Python may not be configured for Tk ImportError: No module named _tkinter So, here is how I am compiling tc

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Pascal Chambon
Hi, cool down, people, if anything gave FOSS a bad reputation, that's well the old pyjamas website (all broken, because "wheel must be reinvented here"), and most of all the "terror management" that occurred on its mailing list. Previously I had always considered open-source as a benevolent st

ucs2 and ucs4 python

2012-05-15 Thread Alan Kesselmann
Hello I tried using one compiled library and got this error: ImportError: /home/alan/Downloads/pdftron/PDFNetC64/Lib/ _PDFNetPython2.so: undefined symbol: PyUnicodeUCS2_AsUTF8String I googled around and found some info about the meaning of the error. The creators of PDFNet suggested i install UCS

Re: Sharing Data in Python

2012-05-15 Thread Jean-Michel Pichavant
raunakgu...@gmail.com wrote: I have some Pickled data, which is stored on disk, and it is about 100 MB in size. When my python program is executed, the picked data is loaded using the cPickle module, and all that works fine. If I execute the python multiple times using python main.py for exam

Re: Newby Python Programming Question

2012-05-15 Thread Jean-Michel Pichavant
Coyote wrote: CM writes: I don't know Spyder IDE, but I don't think this should happen; could there just be a simple mistake? Because you first refer to the .py file as 'file_utils.py' but then you refer to the file as 'pwd.py'...which is also the name of your function. Room for confusion..

Re: Hashability questions

2012-05-15 Thread Christian Heimes
Am 15.05.2012 07:27, schrieb Ian Kelly: > Why? I can't see any purpose in implementing __eq__ this way, but I > don't see how it's "broken" (assuming that __hash__ is actually > implemented somehow and doesn't just raise TypeError). The > requirement is that if two objects compare equal, then the

Re: ANNOUNCE: byteformat0.2a

2012-05-15 Thread Karim
Cool steven, very helpful I have a db which holds units data it will avoids me to do such format conversion. Thnx Cheers Karim Le 15/05/2012 10:30, Steven D'Aprano a écrit : I am pleased to announce a new release of byteformat. http://pypi.python.org/pypi/byteformat byteformat is a P

ANNOUNCE: byteformat0.2a

2012-05-15 Thread Steven D'Aprano
I am pleased to announce a new release of byteformat. http://pypi.python.org/pypi/byteformat byteformat is a Python module for intelligently formatting numbers of bytes using common human-readable strings: >>> from byteformat import format >>> format(12000) '12 KB' >>> format(510, style='

Re: Hashability questions

2012-05-15 Thread Chris Angelico
On Tue, May 15, 2012 at 3:27 PM, Ian Kelly wrote: > Why?  I can't see any purpose in implementing __eq__ this way, but I > don't see how it's "broken" (assuming that __hash__ is actually > implemented somehow and doesn't just raise TypeError).  The > requirement is that if two objects compare equa

Re: specify end of line character for readline

2012-05-15 Thread Serhiy Storchaka
On 15.05.12 09:29, Ian Kelly wrote: In Python 3 you can pass the argument newline='\r\n' to the open function when you open the file. I don't know of anything comparable in Python 2. io.open supports "newline" argument. -- http://mail.python.org/mailman/listinfo/python-list