Hi
I try to write a python backend for pamcan-g2, for that I should write a
callback for *trans_cb_conv
In python I've write :
trans_cb_event = CFUNCTYPE(ctypes.c_char_p,ctypes.c_void_p,POINTER(ctypes.c_int)
...
def fpm_trans_conv(event,pkg,response):
foo...
response=1
and for call the ca
I hope that the interested parties who offered me help will remember
this thread title. It has been a few weeks.
After fussing around with an alternate installation of Python 2.7.2 on
top of Ubuntu Linux 10.04, I decided it would be easier to upgrade to
Ubuntu 11.10, for which Python 2.7.2 is the
On 12/27/11 11:02 PM, roze...@volny.cz wrote:
Hallo,
I have kind of special question when extening python with C++
implemented modules.
I try to implement a class, behaving also like an array. And I need
to implement slice-getters. I implemented PySequenceMethods.sq_slice
to get "simple" slices
Hello All,
What is the downside of using globals function
Regards,
Janus
--
*Satajanus Nig. Ltd
*
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 27, 11:57 pm, Steven D'Aprano wrote:
> On Mon, 26 Dec 2011 13:41:34 -0800, Eelco wrote:
> > On Dec 25, 6:05 pm, Steven D'Aprano > +comp.lang.pyt...@pearwood.info> wrote:
> >> On Sun, 25 Dec 2011 07:38:17 -0800, Eelco wrote:
>
> [...]
>
> >> > How is 'head, *tail = sequence' or semantically
On Dec 28, 2:11 am, Rick Johnson wrote:
> On Dec 27, 5:10 pm, Steven D'Aprano
> +comp.lang.pyt...@pearwood.info> wrote:
> > On Sun, 25 Dec 2011 07:47:20 -0800, Eelco wrote:
> > Your original use-case, where you want to change the type of tail from a
> > list to something else, is simply solved by
Hello All,
I have seen what I am looking for.. __dict__.
Thanks!
Regards,
Janus
On Wed, Dec 28, 2011 at 1:05 PM, Emeka wrote:
>
> Hello All,
>
> Say I have a class like below
>
> class Town:
> state = StateClass()
> cities = CityClass()
>
>
> Is there way to introspect such that
On Dec 28, 8:08 am, Chris Angelico wrote:
> On Wed, Dec 28, 2011 at 5:25 PM, Steven D'Aprano
>
>
>
>
>
>
>
>
>
> wrote:
> > On Wed, 28 Dec 2011 15:06:37 +1100, Chris Angelico wrote:
>
> >> ... suppose you have a huge
> >> set/frozenset using tuples as the keys, and one of your operations is to
>
On Dec 28, 12:07 am, Steven D'Aprano wrote:
> On Mon, 26 Dec 2011 13:51:50 -0800, Eelco wrote:
>
> [...]
>
> >> If your point is that parens are used more often than
> >> packing/unpacking, that's almost certainly true, since function calls
> >> (including method invocations) are so prevalent in p
On Dec 28, 2:56 am, Rick Johnson wrote:
> On Dec 27, 3:44 pm, Eelco wrote:
>
> > Despite the fact that you mis-attributed that quote to me, im going to
> > be a little bit offended in the name of its actual author anyway.
> > Thats a lot of words to waste on your linguistic preferences.
> > Perso
Dear Robert,
thank you very much for your answer. I understand what you mean and
I have looked at slice object and C-api methods it provides. It
should be easy to implement it.
The only question is how exactly yo implement the general getter,
since sq_item you mention (assume you mean
PySequence
On 12/28/11 1:01 PM, roze...@volny.cz wrote:
Dear Robert,
thank you very much for your answer. I understand what you mean and
I have looked at slice object and C-api methods it provides. It
should be easy to implement it.
The only question is how exactly yo implement the general getter,
since s
Online Data Entry Jobs Without Investment
http://ponlinejobs.yolasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Online Data Entry Jobs Without Investment
http://ponlinejobs.yolasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
On 12/27/2011 5:45 PM, 8 Dihedral wrote:
I am getting lousy in the news group in my writing?
I mean the non-trivial decoding of the key decomposition.
Of course RSA is symmetric in encoding and decoding of data.
You really are a markov chain bot.
--
CPython 3.2.2 | Windows NT 6.1.7601.1764
Hello,
I've written a C extension for Python which works so far, but now I've
stumbled onto a simple problem for which I just can't find any example
on the web, so here I am crying for help ;-)
I'll trying to reduce the problem to a minimal example. Let's say I
need to call from Python functions
On 12/27/2011 7:31 PM, W. eWatson wrote:
On 12/27/2011 6:27 PM, Ian Kelly wrote:
On Tue, Dec 27, 2011 at 6:21 PM, W. eWatson
wrote:
Well, it found several problems. These DLLs
MSVCP1
EFSADU
MSJAVA.
I'm guessing MSVCP1 is a typo for MSVCP71? If that is missing then
that is probably the culprit
A new dilemma. The PC XP in question with Python has the the msvcp71.dll
file in System32. The one I took off my other laptop has a slightly
newer one. Feb 2003 vs Aug 2003.
Perhaps the (python PC) has a corrupt one?
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
i've found here (http://python-gtk-3-tutorial.readthedocs.org/en/latest/
layout.html#table) this code:
[quote]
If omitted, xoptions and yoptions defaults to
Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL.
[end quote]
xoptions have 3 flags: EXPAND, FILL, SHRINK
so, how it is supposed
On Wed, Dec 28, 2011 at 9:33 AM, W. eWatson wrote:
> Well, thing went slightly awry. The link gave me two choices. Download
> msv...dll fixer, and download fixer. I took the latter. However, just
> checking on the other one, found that I got the same exe file. I installed
> it on the XP PC, and pr
I have installed an application called pycocuma on my xubuntu 11.10
system. It works OK and I'm aiming to develop it a little as its
'owner' has long since stopped work on it.
However I'm a little puzzled by the way it has installed itself (it's
a standard package from the Ubuntu repositories), a
On 12/28/2011 11:57 AM, Rick Johnson wrote:
On Dec 27, 3:38 pm, Terry Reedy wrote:
On 12/27/2011 1:04 PM, Rick Johnson wrote:
But this brings up a very important topic. Why do we even need triple
quote string literals to span multiple lines? Good question, and one i
have never really mused on
On Wed, Dec 28, 2011 at 10:16 AM, Tracubik wrote:
> Hi all,
> i've found here (http://python-gtk-3-tutorial.readthedocs.org/en/latest/
> layout.html#table) this code:
>
> [quote]
> If omitted, xoptions and yoptions defaults to
> Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL.
> [end quote]
>
>
I am trying to pass the id to thanks view through reverse. But it's not
working. I'm getting this error
Reverse for 'reg.views.thanks' with arguments '(20,)' and keyword arguments
'{}' not found.
I posted the question with the code in stackoverflow:
http://stackoverflow.com/questions/8648196/r
On 12/29/2011 05:02 AM, Nirmal Kumar wrote:
I am trying to pass the id to thanks view through reverse. But it's not
working. I'm getting this error
Reverse for 'reg.views.thanks' with arguments '(20,)' and keyword arguments
'{}' not found.
I posted the question with the code in stackoverflow:
In the (rather sparse) documentation for the vobject package it has,
in the section about parsing iCalendar objects, the following:-
Parsing iCalendar objects
=
To parse one top level component from an existing iCalendar stream or
string, use the readOne fu
On Dec 28, 12:58 am, Steven D'Aprano wrote:
> On Tue, 27 Dec 2011 21:34:19 -0800, Rick Johnson wrote:
> > I am also thinking that ANY quote char is a bad choice for string
> > literal delimiters. Why? Well because it is often necessary to embed
> > single or double quotes into a string literal. W
On 12/28/2011 11:36 AM, Rick Johnson wrote:
On Dec 28, 12:58 am, Steven D'Aprano wrote:
On Tue, 27 Dec 2011 21:34:19 -0800, Rick Johnson wrote:
I am also thinking that ANY quote char is a bad choice for string
literal delimiters. Why? Well because it is often necessary to embed
single or dou
On 12/29/2011 06:36 AM, Rick Johnson wrote:
mlstr = |||
this is a
multi line sting that is
delimited by "triple pipes". Or we
could just 'single pipes' if we like, however, i think
the "triple pipe' is easier to see. Since the pipe char
is so rare in Python source, it becomes the obvious
choice.
On 12/28/2011 2:04 PM, tinn...@isbd.co.uk wrote:
In the (rather sparse) documentation for the vobject package it has,
in the section about parsing iCalendar objects, the following:-
Parsing iCalendar objects
=
To parse one top level component from an exist
On Thu, Dec 29, 2011 at 6:04 AM, wrote:
> In the (rather sparse) documentation for the vobject package it has,
> in the section about parsing iCalendar objects, the following:-
>
> >>> parsedCal = vobject.readOne(icalstream)
Presumably you have this vobject package. Assuming it's installed
co
On Wed, Dec 28, 2011 at 12:36 PM, Rick Johnson
wrote:
> My point was... while Greg's idea is nice, it is not the answer.
> HOWEVER, he did find the perfect char, and that char is the pipe! -->
> |
>
> mlstr = |||
> this is a
> multi line sting that is
> delimited by "triple pipes". Or we
> could j
On 12/28/2011 04:34 PM, Rick Johnson wrote:
On Dec 27, 9:49 pm, Rick Johnson wrote:
The fact is...even with the multi-line issue solved, we still have two
forms of literal delimiters that encompass two characters resulting in
*four* possible legal combinations of the exact same string! I don't
On 12/28/2011 9:37 AM, Ian Kelly wrote:
On Wed, Dec 28, 2011 at 9:33 AM, W. eWatson wrote:
Well, thing went slightly awry. The link gave me two choices. Download
msv...dll fixer, and download fixer. I took the latter. However, just
checking on the other one, found that I got the same exe file.
Lie,
> And of course, I can't believe you forget Guido's favourite version, g"",
> available in musical and sirloin cloth flavor.
LMAO! That was brilliant! :)
Cheers!
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Quotes are obnoxious in the nesting sense because everyone uses quotes
for string delimiters. By the same token, quotes are wonderful
because not only are they intuitive to programmers, but they are
intuitive in general. Parenthesis are pretty much in the same boat...
I *HATE* them nested, but th
On Thu, Dec 29, 2011 at 8:24 AM, Nathan Rice
wrote:
> Quotes are obnoxious in the nesting sense because everyone uses quotes
> for string delimiters. By the same token, quotes are wonderful
> because not only are they intuitive to programmers, but they are
> intuitive in general. Parenthesis are
On Wed, Dec 28, 2011 at 4:42 PM, Chris Angelico wrote:
> On Thu, Dec 29, 2011 at 8:24 AM, Nathan Rice
> wrote:
>> Quotes are obnoxious in the nesting sense because everyone uses quotes
>> for string delimiters. By the same token, quotes are wonderful
>> because not only are they intuitive to pro
On 12/28/2011 11:08 PM, Eelco wrote:
I personally feel any performance benefits are but a plus; they are
not the motivating factor for this idea. I simply like the added
verbosity and explicitness, thats the bottom line.
Any performance benefits are a plus, I agree, as long as it doesn't make
Hi All
I'm trying to import the MySQLdb for python. I downloaded the proper
setuptools egg (ver2.7) for a Mac with OSX10.6
I then downloaded the MySQL-python-1.2.3 and ran the following commands
python setup.py build
sudo python setup.py install
Then to test that the module was properly loa
On Wed, 28 Dec 2011 11:36:17 -0800, Rick Johnson wrote:
> The point is people, we should be using string delimiters that are
> ANYTHING besides " and '. Stop being a sheep and use your brain!
"ANYTHING", hey?
I propose we use ئ and ร as the opening and closing string delimiters.
Problem solved!
On Thu, Dec 29, 2011 at 9:54 AM, Steven D'Aprano
wrote:
> Thank you Rick for yet another brilliant, well-thought-out idea. I look
> forward to seeing your fork of Python with this change. How is it going?
> I hope you aren't going to disappoint the legions of your fans who are
> relying on you to
Great, it's working! Thank you very much, Robert!
Dan T.
- PŮVODNÍ ZPRÁVA -
Od: "Robert Kern"
Komu: python-list@python.org
Předmět: Re: Slices when extending python with C++
Datum: 28.12.2011 - 14:18:36
> On 12/28/11 1:01 PM, roze...@volny.cz wrote:
> > Dear Robert,
> >
> > thank you ver
Hello All,
Say I have a class like below
class Town:
state = StateClass()
cities = CityClass()
Is there way to introspect such that one can list the properties keys and
their values in such a way that it would look like playing around
dictionary ?
Regards,
Janus
--
*Satajanus Nig
On Wed, Dec 28, 2011 at 11:13 PM, Emeka wrote:
> Hello All,
>
> I have seen what I am looking for.. __dict__.
>
Yep! You may also want to look at the dir() function.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 28 Dec 2011 22:54:16 +, Steven D'Aprano wrote:
> On Wed, 28 Dec 2011 11:36:17 -0800, Rick Johnson wrote:
>
>> The point is people, we should be using string delimiters that are
>> ANYTHING besides " and '. Stop being a sheep and use your brain!
>
> "ANYTHING", hey?
>
> I propose we
How does this line work? How do I get my logger to point to a file to
be named as /tmp/modulename.log : I can do this using inspect, but
there probably is a better way?
Thanks,
--Ram
--
http://mail.python.org/mailman/listinfo/python-list
On 12/28/2011 12:55 PM, W. eWatson wrote:
On 12/28/2011 9:37 AM, Ian Kelly wrote:
On Wed, Dec 28, 2011 at 9:33 AM, W. eWatson
wrote:
Well, thing went slightly awry. The link gave me two choices. Download
msv...dll fixer, and download fixer. I took the latter. However, just
checking on the other
On Wed, Dec 28, 2011 at 10:04 PM, W. eWatson wrote:
> On 12/28/2011 12:55 PM, W. eWatson wrote:
>>
>> On 12/28/2011 9:37 AM, Ian Kelly wrote:
>>>
>>> On Wed, Dec 28, 2011 at 9:33 AM, W. eWatson
>>> wrote:
Well, thing went slightly awry. The link gave me two choices. Download
msv...d
On 12/28/2011 08:04 PM, W. eWatson wrote:
> I'm going to save the msvcp71.dll from the Python laptop somewhere, then
> insert the one from my other XP laptop. Finally, I'll register it.
> regsvr32. Just to review, I presume not from cmd, but Run?
Seems like the bulk of your problems are coming f
On 12/28/2011 9:09 PM, Michael Torrie wrote:
On 12/28/2011 08:04 PM, W. eWatson wrote:
I'm going to save the msvcp71.dll from the Python laptop somewhere, then
insert the one from my other XP laptop. Finally, I'll register it.
regsvr32. Just to review, I presume not from cmd, but Run?
Seems li
Online Data Entry Jobs Without Investment
http://ponlinejobs.yolasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Online Data Entry Jobs Without Investment
http://ponlinejobs.yolasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Dec 29, 2011 at 4:09 PM, Michael Torrie wrote:
> The Run dialog is mainly to be
> used to launch a cmd window!
On any Windows computer that I use, that's strictly true. The only
program I ever Start|Run is cmd.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
54 matches
Mail list logo