Strange behavior

2016-01-14 Thread Michal Nalevanko
rs it had added to the output? Is this behavior normal or am I overlooking something? Thank you very much for your help. Michal, Slovakia -- https://mail.python.org/mailman/listinfo/python-list

Re: [Pylint-dev] [code-quality] [ANN] Pylint 1.4 released

2014-11-27 Thread Michal Nowikowski
Hello, Just submitted pull request with a fix: https://bitbucket.org/logilab/pylint/pull-request/205/fixed-reading-list-of-ignored-words-for/diff Regards, Godfryd On Thu, Nov 27, 2014 at 7:00 PM, Ned Batchelder wrote: > On 11/27/14 11:59 AM, Julien Cristau wrote: > >> On Thu, Nov 27, 2014 at 1

Re: SnakeScript? (CoffeeScript for Python)

2012-02-06 Thread Michal Hantl
See the link I attached. Ruby-like blocks would be nice too. Implicit returns. Better strings like """My name is #{name}""". -- http://mail.python.org/mailman/listinfo/python-list

SnakeScript? (CoffeeScript for Python)

2012-02-02 Thread Michal Hantl
Hello, I've been looking for something similar to CoffeeScript, but for python. Does anyone know of such project? So far I haven't found any attempt to do this, so I took few regular expressions and hacked this: https://plus.google.com/116702779841286800811/posts/56sBdwiZ4fT Any advice on wh

Re: How to check what is holding reference to object

2010-04-28 Thread Michal M
On Apr 28, 12:02 am, Chris Rebert wrote: > On Tue, Apr 27, 2010 at 2:58 PM, Chris Rebert wrote: > > On Tue, Apr 27, 2010 at 2:42 PM, Michal M > > wrote: > >> On 27 Kwi, 23:21, Duncan Booth wrote: > >>> Michal M wrote: > >>> > I've jus

Re: How to check what is holding reference to object

2010-04-27 Thread Michal M
On 27 Kwi, 23:21, Duncan Booth wrote: > Michal M wrote: > > Hi > > > I've just found out that one of objects is not destroyed when it > > should be. This means that something was holding reference to this > > object or part of it (i.e. method). Is there a

How to check what is holding reference to object

2010-04-27 Thread Michal M
cause it is pretty complicated, but I am able to invoke this situation again. Regards Michal M. -- http://mail.python.org/mailman/listinfo/python-list

Arguments and a return value of a C function call when using setprofile

2010-03-15 Thread Michal Kwiatkowski
Hi, I'm trying to write code that will trace arguments and return values of all function calls. Using sys.settrace with 'call' and 'return' events works great for Python functions, but now I want to extend that to C functions as well. Using sys.setprofile instead in theory gives me what I need ('c

ignoring some placeholders in string formatting

2010-02-10 Thread Michal Ludvig
7; : 123 } raises KeyError because of missing 'message' in the dict. I could indeed replace '%(session)s' with a string replace or regexp but that's not very elegant ;-) Is there any way to tell the formatter to use only what's available and ignore the rest? Thanks Michal -- http://mail.python.org/mailman/listinfo/python-list

lambda forms within a loop

2009-10-24 Thread Michal Ostrowski
tions returned by MakeLambdaBad() are apparently the same, but the functions returned by MakeLambdaGood() are different. Can anyone explain why this would/should be the case? -- Michal Ostrowski mostr...@gmail.com def MakeLambdaGood(): def DoLambda(x): return lambda q: x + q a = [] for x in

Re: Distinguishing active generators from exhausted ones

2009-07-27 Thread Michal Kwiatkowski
On Jul 27, 10:47 pm, Terry Reedy wrote: > There are two possible definition of 'exhausted': 1) will raise > StopIteration on the next next() call; 2) has raised StopIteration at > least once. The wrapper converts 2) to 1), which is to say, it obeys > definition 1 once the underlying iteration has

Re: Distinguishing active generators from exhausted ones

2009-07-27 Thread Michal Kwiatkowski
On Jul 27, 1:56 am, a...@pythoncraft.com (Aahz) wrote: > >> Upon a cursory look, after a generator 'gen' is exhausted (meaning > >> gen.next() has raised StopIteration), it seems that gen.gi_frame will be > >> None. > > >Only in Python 2.5 or higher though. I need to support Python 2.3 and > >2.4 a

Re: Distinguishing active generators from exhausted ones

2009-07-26 Thread Michal Kwiatkowski
On Jul 26, 1:10 am, Ben Finney wrote: > Michal Kwiatkowski writes: > > I may be missing something obvious here. Is there a better way to tell > > if a given generator object is still active or not? > >     foo = the_generator_object >     try: >         do_interestin

Re: Distinguishing active generators from exhausted ones

2009-07-25 Thread Michal Kwiatkowski
On Jul 25, 10:00 pm, Jason Tackaberry wrote: > On Sat, 2009-07-25 at 11:30 -0700, Michal Kwiatkowski wrote: > > Is there a way to tell if a generator has been exhausted using pure > > Python code? I've looked at CPython sources and it seems that > > Upon a cursory look,

Distinguishing active generators from exhausted ones

2009-07-25 Thread Michal Kwiatkowski
Hi, Is there a way to tell if a generator has been exhausted using pure Python code? I've looked at CPython sources and it seems that something like "active"/"exhausted" attribute on genobject is missing from the API. For the time being I am using a simple C extension to look at f_stacktop pointer

Re: Ending data exchange through multiprocessing pipe

2009-04-23 Thread Michal Chruszcz
On Apr 22, 10:30 pm, Scott David Daniels wrote: > Michal Chruszcz wrote: > > ... First idea, which came to my mind, was using a queue. I've got many > > producers (all of the workers) and one consumer. Seams quite simple, > > but it isn't, at least for me. I pre

Re: Ending data exchange through multiprocessing pipe

2009-04-23 Thread Michal Chruszcz
=1) >          except Empty: >              pass This one isn't generic. When I have tasks that all finish within 0.1 seconds the above gives 10x overhead. On the other hand, if I know the results will be available after 10 hours there's no use in checking every second. Best regards

Ending data exchange through multiprocessing pipe

2009-04-22 Thread Michal Chruszcz
start() >>> parent.recv() 1 >>> child.closed False >>> parent.recv() ... and hangs. No idea of fixing this, not even of a workaround, which would solve my problem. Most possibly I'm missing something in philosophy of multiprocessing, but I couldn't find anything covering such a situation. I'd appreciate any kind of hint on this topic, as it became a riddle I just have to solve. :-) Best regards, Michal Chruszcz -- http://mail.python.org/mailman/listinfo/python-list

Re: NEWB: dividing numbers

2009-03-08 Thread Michal Wyrebski
will never show you that ;) Michal -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode encoding - ignoring errors

2008-12-29 Thread Michal Ludvig
Chris Rebert wrote: > On Mon, Dec 29, 2008 at 4:06 AM, Michal Ludvig wrote: >> Hi, >> >> in my script I have sys.stdout and sys.stderr redefined to output >> unicode strings in the current system encoding: >> >>encoding = locale.getp

Re: setup.py installs modules to a wrong place

2008-12-29 Thread Michal Ludvig
3cmd should install just fine everywhere. Michal [1] .. http://s3tools.logix.cz/download -- http://mail.python.org/mailman/listinfo/python-list

Unicode encoding - ignoring errors

2008-12-29 Thread Michal Ludvig
into the sys.stdout writer. Is there any way to set a conversion error handler in codecs.getwriter() or perhaps chain it with some other filter somehow? I prefer to have questionmarks in the output instead of experiencing crashes with UnicodeEncodeErrors ;-) Thanks! Michal -- http://mail.python.org/mailman/listinfo/python-list

Re: setup.py installs modules to a wrong place

2008-12-18 Thread Michal Ludvig
/Python.framework/Versions/2.5/lib/python2.5 While this directory *is* in sys.path, the .../site-packages one isn't, see below in my original post. So why did Python decide to put the modules there? Why not one of the directories that are in sys.path? Is this configurable somewhere? Thanks! Michal M

setup.py installs modules to a wrong place

2008-12-13 Thread Michal Ludvig
[1] http://s3tools.logix.cz/s3cmd -- Amazon S3 command line client Michal -- http://mail.python.org/mailman/listinfo/python-list

File names, character sets and Unicode

2008-12-12 Thread Michal Ludvig
tly some locales have non-ascii default charsets. For instance zh_TW is BIG5 charset by default, ru_RU is ISO-8850-5, etc. How do I detect that to get the right charset for decode()? I tend to have everything internally in Unicode but it's often unclear how to convert some inputs to U

Python AST preserving whitespace and comments

2008-08-27 Thread Michal Kwiatkowski
Hi, I'm working on Pythoscope[1], a unit test generator for Python and stumbled into the following problem. I need a way to analyze and modify Python AST tree, but without loosing source code formatting and comments. Standard library ast module discards those, so I started looking for other soluti

sys.settrace 'call' event behavior

2008-06-21 Thread Michal Kwiatkowski
I'm building a tool to trace all function calls using sys.settrace function from the standard library. One of the awkward behaviors of this facility is that the class definitions are reported as 'call' events.[1] Since I don't want to catch class definitions, only function calls, I'm looking for a

Re: Delete all not allowed characters..

2007-10-25 Thread Michal Bozon
> >> the list comprehension does not allow "else", but it can be used in a >> similar form: >> ( I was wrong, as Tim Chase have shown ) >> s2 = "" >> for ch in s1: >> s2 += ch if ch in allowed else " " >> >> (maybe this could be written more nicely) > > Repeatedly adding strings together

Re: Delete all not allowed characters..

2007-10-25 Thread Michal Bozon
On Thu, 25 Oct 2007 07:52:36 -0700, Abandoned wrote: > Hi.. > I want to delete all now allowed characters in my text. > I use this function: > > def clear(s1=""): > if s1: > allowed = > [u'+',u'0',u'1',u'2',u'3',u'4',u'5',u'6',u'7',u'8',u'9',u' ', u'Ş', > u'ş', u'Ö', u'ö', u'Ü', u'ü',

Re: [0..9] list (range) syntax

2007-10-24 Thread Michal Bozon
On Thu, 25 Oct 2007 01:16:57 +0200, Wildemar Wildenburger wrote: > Michal Bozon wrote: >> many Python newcomers are confused why >> range(10), does not include 10. >> > It produces a list of ten elements. Also the documentation is quite > clear on the topic. And

[0..9] list (range) syntax

2007-10-24 Thread Michal Bozon
many Python newcomers are confused why range(10), does not include 10. If there was a proposal for the new syntax for ranges, which is known e.g. from Pascal or Ruby... >>> [0..10] [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] ...is there a chance to be approved ? We have had a short discussion on it at t

Re: struct.unpack less than 1 byte

2007-10-10 Thread Michal Bozon
You are able to read single bits from file in C ? You'll have to read the bytes and than perform some bitwise operations on them to extract the bits > hello all, > > i need to read from a file a struct like this [1byte, 12bits, 12bits] > reading 1 byte or more is not a problem ... but the 12 bit

Re: Pil image module, "mode" bug..

2007-10-07 Thread Michal Bozon
On Sun, 07 Oct 2007 09:02:09 -0700, Abandoned wrote: > On Oct 7, 4:47 pm, Michal Bozon <[EMAIL PROTECTED]> wrote: >> On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: >> > Hi.. >> > I find the picture color with: >> > im=Image.open("/%s" %nam

Re: Pil image module, "mode" bug..

2007-10-07 Thread Michal Bozon
On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: > Hi.. > I find the picture color with: > im=Image.open("/%s" %name) > color=im.mode #p=black & beyaz rgb=color L=grey > > This usually work true but in these pictures: > http://malatya.meb.gov.tr/images/alt/ilsis_logo.gif > http://malatya.me

Re: Putting a line from a text file into a variable, then moving to next line

2007-10-07 Thread Michal Bozon
On Sun, 07 Oct 2007 12:00:44 +, Vernon Wenberg III wrote: > I'm not really sure how readline() works. Is there a way to iterate > through a file with multiple lines and then putting each line in a > variable in a loop? There are always more ways how to do it.. one of them is: f = open(file

Re: tkinter question

2007-10-05 Thread Michal Bozon
On Thu, 04 Oct 2007 20:16:14 -0700, goldtech wrote: > This works OK. But I notice that if I enlarge the window after the > script has run, the white listbox only gets "so" big while the grey > background enlarges. > > Is there a way to have it all white when I enlarge a window - like > what norma

Re: ~ bit-wise unary operator

2007-09-26 Thread Michal Bozon
cau, maybe int is represented internally as a signed integer you can use numpy types: >>> import numpy >>> ~ numpy.uint16(7978) 57557 -m. On Thu, 27 Sep 2007 00:14:49 +0200, Ladislav Andel wrote: > Hello, > why ~ bit-wise unary operator returns -(x+1) and not bit inversion of > the given in

Tkinter / Tk 8.5

2007-09-26 Thread Michal Bozon
Today has been released a first beta of Tk 8.5, including a Ttk (tile) style engine, which makes possible the native look of widgets on MS platform, without having to install any extension. http://wiki.tcl.tk/11075 http://sourceforge.net/mailarchive/message.php?msg_name=1190813039.46fa5d6f6a06b%40

Re: read part of jpeg file by pure python

2007-09-13 Thread michal . zaborowski
On 13 Wrz, 10:48, Pacino <[EMAIL PROTECTED]> wrote: > On 9 13 , 4 43 , Laurent Pointal <[EMAIL PROTECTED]> wrote: > > > Pacino a écrit : > > > > Hi, everyone, > > > > I am wondering whether it's possible to read part (e.g. 1000*1000) of > > > a huge jpeg file (e.g. 3*3) and save it to ano

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-22 Thread Michal Nazarewicz
ersion one can switch windows using mouse. I think that's pretty easy especially for beginners who are used to Windows. There was also a Help menu on menu bar but I disabled menu bar since keybindings are more convenient for me. -- Best regards, _ _

Re: problem with eval while using PythonCard

2007-05-25 Thread Michal Lipinski
now it's working just fine. but still I dont know why eval dont work ? and thx for help 25 May 2007 15:05:03 -0700, 7stud <[EMAIL PROTECTED]>: > Here's a complete example: > > ### > #create object 's': > > class S(object):pass > class X(object):pass > class Y(object):pass > > s =

problem with eval while using PythonCard

2007-05-25 Thread Michal Lipinski
Hi its my first post. I have a problem, I want to user eval() function in a for loop to set labels to staticText so i done something like this: dzien=self.components.Calendar.GetDate().GetDay() for i in range(1,8): act=dzien+i -1 eval( 'self.components.d' + str(i) +

Re: Sending ECHO_REQUEST (pinging) with python

2007-03-26 Thread Michal 'vorner' Vaner
ing from inside python and use ping as is, if you need. -- This is a terroristic email. It will explode in 10 minutes, if you do not close it in the meantime. Michal "vorner" Vaner pgpGCsSHtsxLl.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: programmatically manipulation environment variables of the calling shell

2007-03-12 Thread Michal 'vorner' Vaner
estrictions seem to me rather technical - the process would have to change its behaviour each time it changes. With regards -- grep me no patterns and I'll tell you no lines. Michal 'vorner' Vaner pgpiWqB4iIas1.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

FTP HANGS on very slow connection

2006-08-10 Thread Michal Seidl
Hi, I am trying to download data from remote ftp server connected through GSM modem. The speed is slow 1kB/s. Despite the classic linux ftp client works fine the ftp.retrbinary(),ftpretrlines() function from ftplib hangs. I am able succesfuly login but a can not download. It has probably something

Re: list of lists of lists ....

2006-07-28 Thread Michal Kwiatkowski
faulkner wrote: > ok, so, recursion is just functional programming sugar for a loop. And a loop is a procedural programming sugar for tail recursion. 8-) Cheers, mk -- . o . >> http://joker.linuxstuff.pl << . . o It's easier to get forgiveness for being wrong o o o than forgivenes

Re: calling upper() on a string, not working?

2006-05-16 Thread Michal Kwiatkowski
John Salerno wrote: > def encrypt_quote(original): > original_letters = filter_letters(original) You call filter_letters() which makes upper() on all letters, so original_letters contain only uppercase letters. > new_letters = list(string.ascii_uppercase) > while True: > r

Performance of Python 2.3 and 2.4

2006-04-22 Thread Michal Kwiatkowski
Hi! I was just wondering... Python 2.3.5 (#2, Mar 6 2006, 10:12:24) [GCC 4.0.3 20060304 (prerelease) (Debian 4.0.2-10)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import timeit >>> a = timeit.Timer('2**1') >>> b = timeit.Timer('112233445566778899

Re: My Generator Paradox!

2006-03-16 Thread Michal Kwiatkowski
vbgunz wrote: > def generatorFunction(sequence=['item1', 'item2', 'item3']): > for item in sequence: > yield item > > yieldedValue = generatorFunction() You're creating an iterator here and binding it to name yieldedValue (which is bogus, it should be named valueGenerator or sth like

Re: Why property works only for objects?

2006-03-12 Thread Michal Kwiatkowski
Alex Martelli napisał(a): >> IMHO that's not very consistent. > > How so? Given the lower-level semantics of descriptors (and the > distinction between overriding and non), are you suggesting that > property should not be a type but a factory function able to return > instances of either overridi

Re: Why property works only for objects?

2006-03-12 Thread Michal Kwiatkowski
Alex Martelli napisał(a): >> Can you also check my reasoning for getting attributes? >> >> value = obj.attr >> * if instance class has __getattribute__, call it >> * else: lookup "attr" in all parent classes using class __mro__; >> if it's a descriptor call its __get__ method, return its va

Re: Why property works only for objects?

2006-03-11 Thread Michal Kwiatkowski
Alex Martelli napisał(a): >> It still bugs me. What's the actual procedure when doing attribute >> assignment? I understand it like this: >> >> obj.attr = value >> * if instance class has __setattr__, call it >>* else: if class has an attribute with name "attr" check if it's a >> descript

Re: Why property works only for objects?

2006-03-11 Thread Michal Kwiatkowski
Shalabh Chaturvedi napisał(a): > Here is a step-by-step description of what happens when you set or get > an attribute on an object: > > http://cafepy.com/article/python_attributes_and_methods/ch01s05.html This description doesn't take __getattr__/__getattribute__/__setattr__ in count. mk -- .

Re: Why property works only for objects?

2006-03-11 Thread Michal Kwiatkowski
Alex Martelli napisał(a): obj.__dict__ > {} > > ...the presence of '__dict__' as an entry in C is confusing the issue, > because that's what you get in this case as obj.__dict__. It still bugs me. What's the actual procedure when doing attribute assignment? I understand it like this: obj.at

Re: Why property works only for objects?

2006-03-11 Thread Michal Kwiatkowski
Alex Martelli napisał(a): > First, let's forget legacy-style classes, existing only for backwards > compatibility, and focus on new-style ones exclusively -- never use > legacy classes if you can avoid that. Ok, let's cover only new-style classes in our discussion. I've read your comments and am

Re: Why property works only for objects?

2006-03-10 Thread Michal Kwiatkowski
Bruno Desthuilliers napisał(a): >> Let me understand it clearly. If I change __class__ of an object, >> existing attributes (so methods as well) of an object are still >> accessible the same way and don't change its values. Only resolution of >> attributes/methods not found in object is changed, as

Re: Why python doesn't use syntax like function(,,x) for default parameters?

2006-03-10 Thread Michal Kwiatkowski
Dmitry Anikin napisał(a): > Some example (from real life). > def ChooseItems(StartDate, EndDate, Filter): > #function returns a set of some items in chronological order > #from required interval possibly using filter > > ChooseItems() #get everything > ChooseItems('01.01.2000', ,SomeFilter) #get e

Re: Why property works only for objects?

2006-03-10 Thread Michal Kwiatkowski
Alex Martelli napisał(a): >> So another question arise. Is it possible to make function a method (so >> it will receive calling object as first argument)? > > Sure, impor types then call types.MethodType: > > f = types.MethodType(f, obj, someclass) > > (f.__get__ is also fine for Python-coded fu

Re: Why property works only for objects?

2006-03-10 Thread Michal Kwiatkowski
Alex Martelli napisał(a): > Wrong! Of _course_ it's an option -- why do you think it matters at all > whether you're the creator of this object?! Statically typed languages background. Sorry. ;) >> Code below doesn't work, but shows my >> intention: >> >> # obj is instance of BaseClass >> def ge

Re: Why property works only for objects?

2006-03-09 Thread Michal Kwiatkowski
Steven Bethard napisał(a): >> Is there any method of making descriptors on per-object basis? > > I'm still not convinced that you actually want to, but you can write > your own descriptor to dispatch to the instance object (instead of the > type): Ok, this works for attributes I know a name of at

Why property works only for objects?

2006-03-09 Thread Michal Kwiatkowski
Hi, Code below shows that property() works only if you use it within a class. class A(object): pass a = A() a.y = 7 def method_get(self): return self.y a.x = property(method_get) print a.x # => A.x = property(method_get) print a.x # =>

Re: Local variables initialization

2006-02-26 Thread Michal Kwiatkowski
Michal Kwiatkowski wrote: > def init_arguments(fun): > def new_f(self): > var_one = self.attr_one > var_two = self.attr_two.another_attr > empty_list = [] > > fun(self, var_one, var_two, empty_list) > > return new_f > >

Re: Local variables initialization

2006-02-26 Thread Michal Kwiatkowski
Alex Martelli wrote: > But of course, then the method's body would have to use _.one rather > than var_one, _.two rather than var_two, and _.empty_list rather than > empty_list (what a strange name -- does it STAY empty throughout the > method's execution?!). To me this looks like a small price to

Re: Local variables initialization

2006-02-26 Thread Michal Kwiatkowski
Alex Martelli wrote: > Michal Kwiatkowski <[EMAIL PROTECTED]> wrote: >... >> def method(self): >> var_one = self.attr_one >> var_two = self.attr_two.another_attr >> empty_list = [] >> # significant code goes here >... > Pe

Local variables initialization

2006-02-26 Thread Michal Kwiatkowski
Hi! I'm building a class that most of methods have similar intro, something like this: def method(self): var_one = self.attr_one var_two = self.attr_two.another_attr empty_list = [] # significant code goes here # ... It's done for clarity reasons, aliasing most used variabl

quoting strings

2006-01-31 Thread Michal Duda
Hi, is any equivalent to perl "quotemeta" function in python? I know that I can use this on string: r'\\test' but I need to do this on the variable Thanks in advance Michal -- http://mail.python.org/mailman/listinfo/python-list

how to check compile options

2005-12-05 Thread Michal
hello, how i could check, if my python was compiled with option WANT_HUGE_STACK_SIZE=yes (or option CFLAG: -DTHREAD_STACK_SIZE=0x10) i have already installed python 2.3.5 on my freebsd 5.4 from ports, but i dont remember, if i used this options. thank you for answer regards michal -- http

Re: Detect character encoding

2005-12-05 Thread Michal
Thanks everybody for helpfull advices. Michal -- http://mail.python.org/mailman/listinfo/python-list

Detect character encoding

2005-12-04 Thread Michal
Hello, is there any way how to detect string encoding in Python? I need to proccess several files. Each of them could be encoded in different charset (iso-8859-2, cp1250, etc). I want to detect it, and encode it to utf-8 (with string function encode). Thank you for any answer Regards Michal

wxPtyhon 2.4 non trivial problems :D

2005-03-11 Thread Michal Raburski
ist. Can anyone can help me? It's really important to me... Thanks for answers Michal -- http://mail.python.org/mailman/listinfo/python-list

Re: Moving to Python from PHP - 3 questions

2005-02-20 Thread Michal Migurski
s what I've come up with... [snip] This is awesome, quote a bit to chew on. Thank you Joe! ------ michal migurski- contact info, blog, and pgp key: sf/cahttp://mike.teczno.com/contact.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Moving to Python from PHP - 3 questions

2005-02-20 Thread Michal Migurski
which I am familiar with. I'll give Zope a try. -- michal migurski- contact info, blog, and pgp key: sf/cahttp://mike.teczno.com/contact.html -- http://mail.python.org/mailman/listinfo/python-list

Moving to Python from PHP - 3 questions

2005-02-20 Thread Michal Migurski
h python has a more native, more appropriate response? An "RTFM" answer with a URL for the M would be great. :) Thank you, -mike. -- michal migurski- contact info, blog, and pgp key: sf/cahttp://mike.teczno.com/contact.html -- http://mail.python.org/mailman/listinfo/python-list

Data reading problem

2004-12-19 Thread Michal Szpadzik
I'm a newbie. I have some problems with bits data reading. I have binary data file where data is written as 12bits pack. I need to read it becouse there are saved values which have to processed later by my program. I was wandering about reading 3bytes=24bits and split it by bits moving. If any