On 09/01/18 14:20, YU Bo wrote: > But, i am facing an interesting question.I have no idea to deal with it.
I don;t think you have given us enough context to be able to help much. WE would need some idea of the input and output data (both current and desired) > [PATCH] perf tools: Fix copyfile_offset update of output offset > > We need to increase output offset in each iteration, > not decrease it as we currently do. > It sounds like you are building some kind of pretty printer. Maybe you could use Pythons pretty-print module as a design template? Or maybe even use some of it directly. It just depends on your data formats etc. > In fact, this is a patch from lkml,my goal is to design a kernel podcast > for myself to focus on what happened in kernel. Sorry, I've no idea what lkml is nor what kernel you are talking about. Can you show us what you are receiving, what you are currently producing and what you are trying to produce? Some actual code might be an idea too. And the python version and OS. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor