Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
1
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for zyrus001

Is it possible to read and write to a queue at the same time? for example, one thread is using put() and another thread get() on the same queue? When threading, I've added the task_done() but queue.join() seems to wait for all jobs to finish before the main thread continues.

Member Avatar for Gribouillis
0
116
Member Avatar for zyrus001

I'm looking to write a program that should be capable of holding around 1000 records, each record will contain a varying number of fields and values. Usually, I'd create a list of dictionaries for something like this but wanted to know if that's the right way to go about it. …

Member Avatar for griswolf
0
313
Member Avatar for zyrus001

I though it'll be interesting to look at threads and queues, so I've written 2 scripts, one will break a file up and encrypt each chunk in a thread, the other will do it sequentially. I'm still very new to python and don't really know why the treading script takes …

Member Avatar for Gribouillis
0
254
Member Avatar for zyrus001

I'm reading in a file and sending the data (once encrypted) to a dictionary, with a hash of the data before and after encryption. I then pickle the dictionary but find the file size is massive compared to the source file size. If I write the encrypted data straight to …

Member Avatar for vegaseat
0
268
Member Avatar for zyrus001

Having worked with txt files, I'm learning about binary now. My code below works for a while then bombs out, can you point me towards a method or module to read binary data line by line? The crypto module requires a buffer (don't know how to create one of those) …

Member Avatar for mn_kthompson
0
554
Member Avatar for zyrus001

I have a wx.ListCtr: [CODE] self.resultList = wx.ListCtrl(self.rightPanel, -1, style=wx.LC_REPORT | wx.EXPAND) f = self.GetFont() dc = wx.WindowDC(self) dc.SetFont(f) i = 0 for items in (SEARCHPARAMS): self.resultList.InsertColumn(i,items) width, height = dc.GetTextExtent(items) self.resultList.SetColumnWidth(i, width) i +=1[/CODE] I'd like to populate the ListCtrl from a dictionaries contained within an object list. I …

0
46
Member Avatar for zyrus001

Hi! I have a list of class objects, each object contrains a dictionary. Is it possible to sort my list based on a value within each object's dictionary? Can I use the list.sort() method to do this? Thx!

Member Avatar for jice
0
241
Member Avatar for zyrus001

Hi, I'm pretty new to python but thought I'd write something to read [URL="http://www.zyrus.org/log2.log"]this log file[/URL] to try and learn it. Ideally, it will read this log file, match a string and return everything between the "****" delimiters where the string was matched. I'm not 100% sure how to go …

Member Avatar for zyrus001
0
165