Re: Own network protocol

2015-01-02 Thread Connor
"How to install TML/SIDEX on Raspberry Pi" on youtube. The SDK is available on multiple platforms and it is free for personal projects. Cheers, Connor Am 27.12.2014 um 10:56 schrieb pfranke...@gmail.com: Hello! I am just about setting up a project with an Raspberry Pi that is connecte

error handling in multithreaded extension callbacks

2014-02-14 Thread Connor
TypeError, "PyErr_Occurred"); } // Release calling Python out of a non- python created thread PyGILState_Release(gstate); } catch (...) { printf ("An Exception Happened\n"); } } Cheers, Connor -- https://mail.python.org/mailman/listinfo/python-list

Copy-on-write when forking a python process

2011-04-08 Thread John Connor
Hi all, Long time reader, first time poster. I am wondering if anything can be done about the COW (copy-on-write) problem when forking a python process. I have found several discussions of this problem, but I have seen no proposed solutions or workarounds. My understanding of the problem is that

Re: Retrieving Python Keywords

2011-04-09 Thread John Connor
Actually this is all it takes: import keywords print keywords.kwlist --jac On Sat, Apr 9, 2011 at 8:57 PM, Chris Angelico wrote: > On Sun, Apr 10, 2011 at 11:28 AM, candide wrote: >> Python is very good at introspection, so I was wondering if Python (2.7) >> provides any feature to retrieve the

Re: Pythonic infinite for loop?

2011-04-14 Thread John Connor
If I understand your question correctly, what you want is probably something like: i = 0 lst=[] while True: try: lst.append(parse_kwdlist(dct["Keyword%d"%i])) i += 1 except KeyError: break --jac On Thu, Apr 14, 2011 at 9:10 PM, Chris Angelico wrote: > Apologies for interrupting the

Re: De-tupleizing a list

2011-04-25 Thread John Connor
itertools can help you do this too: import itertools tl = [('0A',), ('1B',), ('2C',), ('3D',)] itertools.chain.from_iterable(tl) list(itertools.chain.from_iterable(tl)) ['0A', '1B', '2C', '3D'] Checkout http://docs.python.org/library/itertools.html#itertools.chain for more info. On Mon, Apr

Errors in python\3.8.3\Lib\nntplib.py

2020-04-29 Thread G Connor
module: python\3.8.2\Lib\nntplib.py lines 903-907 --- for line in f: if not line.endswith(_CRLF): line = line.rstrip(b"\r\n") + _CRLF if line.startswith(b'.'): line = b'.' + line --- When I try

Re: Errors in python\3.8.3\Lib\nntplib.py

2020-04-29 Thread G Connor
On 4/29/2020 5:29 PM, Chris Angelico wrote: > Try opening the file in binary mode instead. Changed: f = open(postfile,'r')to : f = open(postfile,'rb') and it worked. Thanks man! -- https://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-19 Thread Alan Connor
On comp.os.linux.misc, in <[EMAIL PROTECTED]>, "Michael Heiming" wrote: This is your 7th post on this thread, Michael. You spend a lot of time griping about trolls. Maybe you should consider not feeding them, you stupid hypocrite. To all the shit-for-brains trolls that are polluting these group

Re: Microsoft Hatred FAQ

2005-10-20 Thread Alan Connor
On comp.os.linux.misc, in <[EMAIL PROTECTED]>, "Tim Slattery" wrote: Three OS's from corporate kings in their towers of glass, Seven from valley lords where orchards used to grow, Nine from dotcoms doomed to die, One from the Dark Lord Gates on his dark throne In the Land of Redmond where the

Re: Microsoft Hatred FAQ

2005-10-23 Thread Alan Connor
"Matt Garrish" wrote: That does it. From this point on my newsfilter is killing (leaving on the server) any articles cross-posted to more than three groups. To all of the snivelling punks polluting the Usenet with their verbal diarrhea here: Shut up and go away. Done. (I haven't read a single

[OT] John Salerno (was: and i thought windows made a mess of files...)

2006-08-11 Thread Alan Connor
On alt.os.linux, in <[EMAIL PROTECTED]>, "John Salerno" wrote: > Path: > text.usenetserver.com!atl-c01.usenetserver.com!news.usenetserver.com!atl-c03.usenetserver.com!news.usenetserver.com!news.glorb.com!news.astraweb.com!router2.astraweb.com!not-for-mail > Date: Fri, 11 Aug 2006 22:19:06 -0400 >

Re: [OT] John Salerno

2006-08-12 Thread Alan Connor
On alt.os.linux, in <[EMAIL PROTECTED]>, "John Salerno" wrote: Correction: Someone who _sometimes_ calls himself "John Salerno" wrote: http://slrn.sourceforge.net/docs/README.offline> So. You post using three different newsservers, which no one who posts under the same alias all the time does.

Re: [OT] John Salerno

2006-08-12 Thread Alan Connor
quot; <[EMAIL PROTECTED]> #From: "Snoopy :-))" <[EMAIL PROTECTED]> #From: "William B. Cattell" <[EMAIL PROTECTED]> #From: <[EMAIL PROTECTED]> #From: "Ciaran Keating" <[EMAIL PROTECTED]> #From: "Clayton Sutton" <[EMAIL PROTECTED]&g

Homework help

2008-04-01 Thread bobby . connor
Hey guys I haev this homework assignment due today I don't necessarily want the answers, but need help on how to approach it/the steps i need to solve the problems Thanks # (2 Points) Write a python function howMany(item,lst) which accepts an item and a lst of items and returns the number of time

Re: Homework help

2008-04-01 Thread bobby . connor
On Apr 1, 12:17 pm, Paul Rubin wrote: > [EMAIL PROTECTED] writes: > > I don't necessarily want the answers, but need help on how to approach > > it/the steps i need to solve the problems > > What parts are you having difficulty with? Are there some course > materials and

Format Logfile Name with logging.ini

2020-05-29 Thread connor . r . novak
In an effort to clean up my python logging practices when creating libraries, I have begun reading into "Advanced Logging" and converting my logging practices into logging configuration `.ini` files: [link](https://docs.python.org/3.4/howto/logging.html#configuring-logging) My question is: When