Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: YANQ: Yet Another Newbie Question !
Post: RE: YANQ: Yet Another Newbie Question !

Some feedback: 1) service.ref.replace(...) Crash: service.ref has no attribute replace 2) service.ref=service2.ref(mywork.replace("4097:","1:",1)) Crash: TypeError: 'eServiceReference' object is not c...
webdef General Coding Help 3 3,516 Aug-17-2017, 07:18 AM
    Thread: YANQ: Yet Another Newbie Question !
Post: YANQ: Yet Another Newbie Question !

Here is the code I try to improve: def getEventFromId(self, service, eventid): event = None if self.epgcache is not None and eventid is not None: event = self.epgcache.lookupEventId(service.r...
webdef General Coding Help 3 3,516 Aug-16-2017, 03:51 PM
    Thread: Need help for list of list of tuple !
Post: RE: Need help for list of list of tuple !

(Aug-12-2017, 06:43 AM)webdef Wrote: (Aug-11-2017, 06:27 AM)DeaD_EyE Wrote: # you should avoid names which are used for # bult-in function/classes # list is one of them data = [('aaastring', 2458...
webdef General Coding Help 4 3,978 Aug-12-2017, 03:19 PM
    Thread: Need help for list of list of tuple !
Post: RE: Need help for list of list of tuple !

(Aug-11-2017, 06:27 AM)DeaD_EyE Wrote: # you should avoid names which are used for # bult-in function/classes # list is one of them data = [('aaastring', 245878L, 2475L, 'anotherstring'), ('bbbstri...
webdef General Coding Help 4 3,978 Aug-12-2017, 06:43 AM
    Thread: Need help for list of list of tuple !
Post: Need help for list of list of tuple !

Quite newbie, I need help to search and modify some elements of a tuple (Python 2.7). For example, how to replace "aaa" in first element into "bbb" ? list=[('aaastring',245878L,2475L,'anotherstring',...
webdef General Coding Help 4 3,978 Aug-11-2017, 05:10 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020