Re: How to delay until a next increment of time occurs ?

2019-11-19 Thread R.Wieser
Peter, First things first: For some reason I see your message coming in empty, but with two attachments. An "att*.txt" one with the actual message contents, and a "signature.asc". Makes it kind of hard to read ... > No. There are many reasons why sleep() might return after t Not /that/ many

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread R.Wieser
Michael > Does this have to be done in the C API? As far as I can tell, yes. What I need to do is not exposed by the extension itself, meaning that a wrapper class can't get access to it either. And its just a syntax problem. I currently simply have not enough knowledge about the CPython AP

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread R.Wieser
MRAB, > It could be something like this: [snip example code] Thank you very much. Your "Call the other method" line shows me that I've been overthinking things. :-( After that I decided to see if I could give the "py_proc1" function two arguments, which worked. That means that the prepending

wordsearch

2019-11-19 Thread jezkator
Hi, I have got a problem in my searchword. Everything runs properly. Output writes word, coordinates and direction, but i need, that output have same arrangement as second file First file includes board, where program search: xmuinjekci evelkochov cadvouhrac feminizaci pyzlanpbik ldvojlinky osvrh

Re: wordsearch

2019-11-19 Thread Richard Damon
On 11/19/19 6:47 AM, jezka...@gmail.com wrote: > Hi, I have got a problem in my searchword. Everything runs properly. Output > writes word, coordinates and direction, but i need, that output have same > arrangement as second file > First file includes board, where program search: Look at our cod

Is there a piece of code ('inspect') that displays all/most of the attributes/methods in a frame, traceback, generator object in a readable fashion

2019-11-19 Thread Veek M
Basically I want to call a method and pretty print the object contents for some code I'm playing with. Instead of manually writing all this crud. Something like a python object explorer. def foo(a, x = 10): 2 + 2 def bar(): pass class A: pass class Foo(A, object): def __ini

Re: Launching a Script on the Linux Platform

2019-11-19 Thread Barry
> On 18 Nov 2019, at 22:42, Wildman via Python-list > wrote: > > On Mon, 18 Nov 2019 22:15:31 +0100, Peter J. Holzer wrote: > >>> On 2019-11-18 15:01:57 -0600, Wildman via Python-list wrote: >>> On Tue, 19 Nov 2019 05:09:07 +1100, Chris Angelico wrote: On Tue, Nov 19, 2019 at 5:06 AM Wi

Re: Is there a piece of code ('inspect') that displays all/most of the attributes/methods in a frame, traceback, generator object in a readable fashion

2019-11-19 Thread Antoon Pardon
Maybe you should have a look at: http://code.activestate.com/recipes/52215-get-more-information-from-tracebacks/ On 19/11/19 15:08, Veek M wrote: > Basically I want to call a method and pretty print the object contents > for some code I'm playing with. > > Instead of manually writing all this cru

Re: wordsearch

2019-11-19 Thread jezkator
Dne úterý 19. listopadu 2019 13:33:53 UTC+1 Richard Damon napsal(a): > On 11/19/19 6:47 AM, jezka...@gmail.com wrote: > > Hi, I have got a problem in my searchword. Everything runs properly. Output > > writes word, coordinates and direction, but i need, that output have same > > arrangement as se

Re: wordsearch

2019-11-19 Thread Chris Angelico
On Wed, Nov 20, 2019 at 2:46 AM wrote: > > Dne úterý 19. listopadu 2019 13:33:53 UTC+1 Richard Damon napsal(a): > > On 11/19/19 6:47 AM, jezka...@gmail.com wrote: > > > Hi, I have got a problem in my searchword. Everything runs properly. > > > Output writes word, coordinates and direction, but i

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread Michael Torrie
On 11/19/19 1:09 AM, R.Wieser wrote: > Michael > >> Does this have to be done in the C API? > > As far as I can tell, yes. What I need to do is not exposed by the > extension itself, meaning that a wrapper class can't get access to it > either. Sure but the Python methods themselves are expos

Re: How to delay until a next increment of time occurs ?

2019-11-19 Thread Michael Torrie
On 11/19/19 12:57 AM, R.Wieser wrote: > First things first: For some reason I see your message coming in empty, but > with two attachments. An "att*.txt" one with the actual message contents, > and a "signature.asc". Makes it kind of hard to read ... His message is a (standard) PGP-signed mes

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread Michael Torrie
On 11/19/19 9:00 AM, Michael Torrie wrote: > Sure but the Python methods themselves are exposed and accessible and > according to your previous posts, I meant to say the class methods defined by the C code. -- https://mail.python.org/mailman/listinfo/python-list

Re: wordsearch

2019-11-19 Thread Richard Damon
On Nov 19, 2019, at 10:56 AM, Chris Angelico wrote: > > On Wed, Nov 20, 2019 at 2:46 AM wrote: >> >> Dne úterý 19. listopadu 2019 13:33:53 UTC+1 Richard Damon napsal(a): On 11/19/19 6:47 AM, jezka...@gmail.com wrote: > Hi, I have got a problem in my searchword. Everything runs properl

Re: wordsearch

2019-11-19 Thread jezkator
Dne úterý 19. listopadu 2019 17:07:36 UTC+1 Richard Damon napsal(a): > On Nov 19, 2019, at 10:56 AM, Chris Angelico wrote: > > > > On Wed, Nov 20, 2019 at 2:46 AM wrote: > >> > >> Dne úterý 19. listopadu 2019 13:33:53 UTC+1 Richard Damon napsal(a): > On 11/19/19 6:47 AM, jezka...@gmail.co

Re: Speeding up a test process with a local pypi and/or web proxy?

2019-11-19 Thread Dan Stromberg
On Fri, Nov 15, 2019 at 1:11 PM Dan Stromberg wrote: > Hi folks. > > I'm looking at a test process that takes about 16 minutes for a full run. > Anyone? > Naturally, I'd like to speed it up. We've already parallelized it - > mostly. > > It seems like the next thing to look at is setting up a l

Re: wordsearch

2019-11-19 Thread jezkator
Dne úterý 19. listopadu 2019 17:14:06 UTC+1 jezk...@gmail.com napsal(a): > Dne úterý 19. listopadu 2019 17:07:36 UTC+1 Richard Damon napsal(a): > > On Nov 19, 2019, at 10:56 AM, Chris Angelico wrote: > > > > > > On Wed, Nov 20, 2019 at 2:46 AM wrote: > > >> > > >> Dne úterý 19. listopadu 2019

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread R.Wieser
Michael, > Sure but the Python methods* themselves are exposed and accessible > and according to your previous posts, all you want to do is add an > argument to a call to the existing method. If that's true, then you > should be able to do that part from pure Python. >* class methods defined by

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread Luciano Ramalho
Now that’s a novel approach to asking for free help: pretending to be smarter than the people who are trying to help you. On Tue, 19 Nov 2019 at 14:17 R.Wieser wrote: > Michael, > > > Sure but the Python methods* themselves are exposed and accessible > > and according to your previous posts, all

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread Luciano Ramalho
I apologize to all but the intended recipient for this. I’d have given him feedback in private if I knew his email. I will take leave from the list now. Keep up the good work, friendly responders. On Tue, 19 Nov 2019 at 17:13 Luciano Ramalho wrote: > Now that’s a novel approach to asking for fr

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread Michael Torrie
On 11/19/19 10:12 AM, R.Wieser wrote: > Feel free to post code showing that it can be done. The extension is > RPi.GPIO, the method is "output", and the extra argument is the pinnaming > scheme (BCM or BOARD). Success! :-p If you mentioned RPi.GPIO before, I apologize for my mistake. That's v

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread DL Neil via Python-list
On 20/11/19 9:20 AM, Luciano Ramalho wrote: I apologize to all but the intended recipient for this. I’d have given him feedback in private if I knew his email. I will take leave from the list now. Keep up the good work, friendly responders. Please reconsider. Should your relationship with the

Re: Friday finking: TDD and EAFP

2019-11-19 Thread Peter J. Holzer
On 2019-11-18 19:00:41 -0500, Mark Turner wrote: [trivial test] > I think this simple test like has value. It’s just not where you > expect it to be. In order to get this test to pass you have to have > your development environment set up, your testing environment set up > and perhaps some basic d

[RELEASE] Python 3.9.0a1 available for testing

2019-11-19 Thread Łukasz Langa
Go get it here: https://www.python.org/downloads/release/python-390a1/ This is an early developer preview of Python 3.9 Python 3.9 is still in development. This releasee, 3.9.0a1 is the first of six planned alpha releases. Alpha releases a

Pickle failed __getstate__ on my customized class inherited dict

2019-11-19 Thread lampahome
I make a class Wrapper inherited from dict and met problem when I want to pickle it. Is there anyway to make __getstate__ of Wrapper to output a normal dict?(Output a dict will help pickleing easily) === code === import pickle class Wrapper(dict): def __getattr__(self, attr): return

Re: Pickle failed __getstate__ on my customized class inherited dict

2019-11-19 Thread dieter
lampahome writes: > I make a class Wrapper inherited from dict and met problem when I want to > pickle it. > > Is there anyway to make __getstate__ of Wrapper to output a normal > dict?(Output a dict will help pickleing easily) > > > === code === > import pickle > class Wrapper(dict): > def __