Re: Inverse of dict(zip(x,y))

2009-03-04 Thread Tino Wildenhain
having the two resulting sequences relate to each other. So in fact it doesn't matter if order is preserved or not. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about binary file reading

2009-03-04 Thread Tino Wildenhain
x: print hex(ord(b)) better: print x.encode("hex") Cheers Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about binary file reading

2009-03-04 Thread Tino Wildenhain
ee no reason why all the "pseudo" encodings are bad - since after all they are encodings (base64, hex, ... even gzip) what is missing at the moment would be urlencoding. Cheers Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Inverse of dict(zip(x,y))

2009-03-05 Thread Tino Wildenhain
teed to use the same order. Yes, they are if the dictionary is not changed in the meantime (not even inserting and removing the same thing). See the library documentation, section dict. Still I'd like to see an application where this really matters (that keys() and values() match in orde

Re: While loop

2009-03-05 Thread Tino Wildenhain
raise XYZError...() # define appropriate for your app # here you can work with result HTH Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Inverse of dict(zip(x,y))

2009-03-06 Thread Tino Wildenhain
Andre Engels wrote: On Thu, Mar 5, 2009 at 6:01 PM, Tino Wildenhain wrote: Still I'd like to see an application where this really matters (that keys() and values() match in order) I think there are many such applications, but also that in each of those cases it's a mis-prog

Re: Inverse of dict(zip(x,y))

2009-03-06 Thread Tino Wildenhain
Hi, psykeedelik wrote: On Mar 5, 6:01 pm, Tino Wildenhain wrote: Piet van Oostrum wrote: Andre Engels (AE) wrote: AE> On Wed, Mar 4, 2009 at 11:02 AM, lone_eagle wrote: Can someone suggest a easy method to do the inverse of dict(zip(x,y)) to get two lists x and y? So, if x and y are

Re: Inverse of dict(zip(x,y))

2009-03-06 Thread Tino Wildenhain
Andre Engels wrote: On Thu, Mar 5, 2009 at 7:46 PM, Andre Engels wrote: If the dict = {key1: val1, key2: val2, ...}, you can do: for key in dict: plot(key,dictionary[key]) Of course I meant: for key in dict: plot(key,dict[key]) Which would be the verbose form of: for x,y in data

Re: Can Python do shopping cart?

2009-03-07 Thread Tino Wildenhain
write the code - but of course you can do _that_ perfectly with python. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Get pixel colors from images in Python 3

2009-03-14 Thread Tino Wildenhain
ing PIL to python 3. I'm guessing if you ask again at least it will be viewed as a +1 vote on the project and that will probably not hurt :) Sure not, and I think a helping hand wouldn't hurt either ;) In case mr OP wants it fast, I'd suggest sticking with python2.x Regards Tino

Re: Neatest way to do a case insensitive "in"?

2009-03-14 Thread Tino Wildenhain
tinn...@isbd.co.uk wrote: ... But I was wondering if there's a neater/easier way? How is "if stringA.lower() in stringB.lower():" complex/messy? Well I guess I was just looking for "incase" a bit like "strcasecmp" in C. Which locales case folding

Re: split problem if the delimiter is inside the text limiter

2009-03-18 Thread Tino Wildenhain
split by "hand made" function You should check out the csv module, you can define quote char and delimiter and this should just work. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: REDIRECT

2009-03-18 Thread Tino Wildenhain
's the Python way of implementing this ? Can anyone help me out on this ? What did you try so far? Hint: the redirect is done via Location: HTTP-Header. You can check all details in rfc2616, this is independend from the language you would use. Everything else depends on the framework you use.

Re: Style formating of multiline query, advise

2009-03-18 Thread Tino Wildenhain
, a.iso FROM all AS a WHERE a.name = LOWER(%s) ) AS c JOIN other AS b ON c.gid = b.id WHERE class = 'A' ORDER BY population DESC LIMIT %s; """ And I'd not recomment SELECT * for anything beside test queries in an interactive

Re: cross compile Python to Linux-ARM

2009-03-19 Thread Tino Wildenhain
, pthreads ... which are all optional anyway. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Obtaining the attributes and properties of a folder recursively.

2009-03-20 Thread Tino Wildenhain
d os.stat please see the example for os.walk - this would work on every platform supported by python. for acls, a little more work would be needed if you want something filesystem specific but posix style information is included with stat() Regards Tino smime.p7s Description: S/MIME Cryp

Re: locate items in matrix (index of lists of lists)

2009-03-20 Thread Tino Wildenhain
deal with large matrices [~50 * 4] This is something I'd consider either reordering your data (for example into dictionary) or look at scipy/numpy. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Obtaining the attributes and properties of a folder recursively.

2009-03-20 Thread Tino Wildenhain
Tim Golden wrote: ... and do the following: from winsys import fs for f in fs.flat ("c:/temp"): f.dump () ^ eeek! But btw, what extra information would it give? Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listi

Re: Obtaining the attributes and properties of a folder recursively.

2009-03-20 Thread Tino Wildenhain
venutaurus...@gmail.com wrote: On Mar 20, 1:58 pm, Tino Wildenhain wrote: venutaurus...@gmail.com wrote: Hello all, ... smime.p7s 4KViewDownload Thanks for your suggestion. By the way the attachment which have added has some unknown file extension. May I know how can I view it? This is

Re: Use of HTMLparser to change language

2009-03-20 Thread Tino Wildenhain
executable on your end to generate the static files using the templates. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: get rid of duplicate elements in list without set

2009-03-20 Thread Tino Wildenhain
thomasvang...@gmail.com wrote: You could use: B=list(set(A)).sort() Hope that helps. That would leave a B with value None :-) B=list(sorted(set(A)) could work. smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Bash-like brace expansion

2009-03-24 Thread Tino Wildenhain
r} as well but again I don't think the whole stuff would be very usefull anyway given the %(foo)s form works quite well and has a host of options (for aligning for example). Cheers Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: Python v3 question related to pickle/marshal

2009-03-26 Thread Tino Wildenhain
of a minimal example how you tried? Regards Tino PS: it would not hurt to end questions with a question mark ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: HTML Generation

2009-04-03 Thread Tino Wildenhain
s which can be used outside Zope as well, (even with many other languages) For example: http://zpt.sourceforge.net/ Regards Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: asynchronous python call

2009-04-08 Thread Tino Wildenhain
P for example) where you can ping once you wrote out the mails to be send. Regards Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: Jython on Google AppEngine.

2009-04-09 Thread Tino Wildenhain
Jason Scheirer wrote: On Apr 9, 9:12 am, Alan Kennedy wrote: Hi all, You may be interested to know that you can now run jython 2.2 out of the box on Google AppEngine, thanks to their new java support. ... Finally! A way to run Python on App Engine! ? Is that some kind of weird humor? :-)

Re: Q:Pythonic way to create list of lists

2009-04-12 Thread Tino Wildenhain
not matter. Sparse datastructures might be better represented with dicts. Regards Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: video capture in Python ?

2009-04-13 Thread Tino Wildenhain
captured a frame) I can say opencv worked great for me both on linux and windows and didn't crash. Maybe you have just an unlucky combination of drivers. Regards Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: Network game using mysql

2009-04-14 Thread Tino Wildenhain
f I put two programs reading the same command list sometimes they handle the command twice.. You could use Postgres instead and write stored functions in python to access the tables. This would avoid your asynchrous approach alltogether. Regards Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a programming language that is combination of Python and Basic?

2009-04-18 Thread Tino Wildenhain
example of what you would do in such a hypothetical language? Tino. -- http://mail.python.org/mailman/listinfo/python-list

Re: Useful MySQL Routines

2009-04-19 Thread Tino Wildenhain
full batch sizes. If you allow query construnction better don't forget appropriate quoting of table- and column names too to be on the safe side. Regards Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: Useful MySQL Routines

2009-04-19 Thread Tino Wildenhain
Lawrence D'Oliveiro wrote: In message , Tino Wildenhain wrote: Lawrence D'Oliveiro wrote: I've done a writeup on some of the basic routines I frequently use here <http://codecodex.com/wiki/index.php?title=Useful_MySQL_Routines>. Why is that specific to mysql? Because

Re: print as a function in 2.5 ?

2009-04-19 Thread Tino Wildenhain
ging) The other way if you want to selectively do so, either use a form of log (because why must it be print if the output is debugging information?) or instead of hooking sys.stdout, use another output stream and print >>debug, ... to it. Regards Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: How save clipboard data as bmp file

2009-04-20 Thread Tino Wildenhain
gopal mishra wrote: Hi, I am trying to save my clipboard data (format is CF_ENHMETAFILE) as BitMap file (.BMP). Can any on suggest how to do this. Sure. Open "Paint" press ctrl-v and the save as BMP. Regards Tino smime.p7s Description: S/MIME Cryptographic Signatu

Re: Writing to ms excel

2008-08-30 Thread Tino Wildenhain
generate excel reports for all the damnd ms office adicts in the company... Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to ms excel

2008-08-30 Thread Tino Wildenhain
generate excel reports for all the damnd ms office adicts in the company... Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to ms excel

2008-08-31 Thread Tino Wildenhain
s not true, pyexcelerator can also read XLS files. However it does not preserve meta information (formatting etc.) when it reads them. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to ms excel

2008-08-31 Thread Tino Wildenhain
ot;share". So in the OS world you can actually spend that money on someone indeed giving you a solution. Btw, SUN has a plugin for MS office to read/write odf. (Which works instead of the solution from MS itself). Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http

Re: parsing "&A" in a string..

2008-08-31 Thread Tino Wildenhain
ifficult to fix in the general case, because your page might already contain "&". If it is possible that some of them might be wrong while some are right, you can do something like: s = s.replace( '&', '&' ).replace( '&', '&

Re: Know if a object member is a method

2008-09-01 Thread Tino Wildenhain
code. Ok, so... What is the best way to do this? The "most pythonic"? The question would be - why do you want this? Is it just curiosity or can we find a better solution to the overall problem, once understood? Regards Tino smime.p7s Description: S/MIME Cryptographic Signature

Re: dict.update

2008-09-02 Thread Tino Wildenhain
items() allitems.sort() # sort based on keys as first tuple element for (key,(var1,var2)) in allitems: print key,var1,var2 HTH Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Web shopping carts

2008-09-10 Thread Tino Wildenhain
Luke Hamilton wrote: Hey People, I am wondering if there are any OS shopping cart application written in python? Yes there are. HTH Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Web shopping carts

2008-09-10 Thread Tino Wildenhain
see the answer given by Fredrik) Ah, btw, I'd check the the other posts of long term members if you see something in the appearance different to yours :-) (not related to your question itself) Cheers Tino ... Luke Hamilton wrote: Hey People, I am wondering if there are any OS shopping

Re: Alternatives to traditional RDBMS

2008-09-10 Thread Tino Wildenhain
re already pretty fast). Looks as you didn't mention ZODB yet. As it is actively developed, it is maybe something you could consider. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: max(), sum(), next()

2008-09-11 Thread Tino Wildenhain
t makes sense to handle things differently for performance, then please have it doing it silently, e.g. when it detects strings just use join() internally. Cheers Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Determine Name of the Day in the Week

2008-09-11 Thread Tino Wildenhain
ese, Russian, French, ... :) Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: question about python

2008-09-13 Thread Tino Wildenhain
look at rfc2616 and friends, get something like wiresharc to see how HTTP requests work in real world. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: translating ascii to binary

2008-09-17 Thread Tino Wildenhain
teresting idea for the core of the converter, maybe you like it: def int_to_bin(v): i=1 d=1 a=0 while i>> int_to_bin(5) 101 >>> print "%08d" % int_to_bin(5) 0101 I think the formatting bit is a tad nicer then '0' * (8-len(

Re: improving a huge double-for cycle

2008-09-18 Thread Tino Wildenhain
the following would work: dupes=[] for items in data.values(): dupes.extend(items[1:]) HTH Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: improving a huge double-for cycle

2008-09-18 Thread Tino Wildenhain
Tino Wildenhain wrote: Hi, Alexzive wrote: Hello there :) , I am a python newbie and need to run following code for a task in an external simulation programm called "Abaqus" which makes use of python to access the mesh (ensamble of nodes with xy coordinates) of a certain geometr

Re: improving a huge double-for cycle

2008-09-18 Thread Tino Wildenhain
Hi, Terry Reedy wrote: ... Yes, after figuring out what to do from the original post, I saw yours and then Pruebono's and decided that since two people had submitted the jackpot algorithm, I need not say more. I will say this: this solution amounts to finding equivalence classes (the sets of

Re: Python newbie

2008-09-19 Thread Tino Wildenhain
s changing arrays with "foreach" loop: #!/usr/local/bin/php How can I make sure that for x in a: x=2*x actually changes the elements of the array "a"? >>> l=range(10) >>> for i in range(len(l)): ... l[i]*=2 ... >>> l [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] Cheers Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Encoding.ASCII.GetBytes similar for Python ?

2008-09-22 Thread Tino Wildenhain
hon/ sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.settimeout(TIMEOUT) sock.connect(server_host) sock.send(query) data = sock.recv(512) for data_item in data: try: print chr(data_item) this is never going to work since recv() returns a string buffer, not a list of integers.

Re: understanding list scope

2008-09-22 Thread Tino Wildenhain
['param'] = "y" if i == 2: data['param'] = "x" print data_set Beside the data copy which is explained in the other posts, what is the problem you want to solve? Would data_set[1]['param']="x" data_set[2]['param']=&quo

Re: A bit weird dictionary behavior

2008-09-22 Thread Tino Wildenhain
orter: iterable.count(y) not work and read better anyway? even calculating with boolean values isn't neccessary since 'and' and 'foo if bar else blub' are working much better so the type coalescing bool - int - float can really go away. Tino smime.p7s Description: S/MIME C

Re: A bit weird dictionary behavior

2008-09-22 Thread Tino Wildenhain
Hi, [EMAIL PROTECTED] wrote: Tino Wildenhain: Wouldn't len([x for x in iterable if x==y]) or even shorter: iterable.count(y) not work and read better anyway? The first version creates an actual list just to take its length, think about how much memory it may use. yes it seems len()

Re: finding domain name

2008-09-23 Thread Tino Wildenhain
n i do. You could output the whole environ to see what you get and how it is called. I'd recommend however to check that you are using a configured value and not something sent by the client if you are going to use it during filesystem lookup. Regards Tino smime.p7s Description: S/M

Re: finding domain name

2008-09-23 Thread Tino Wildenhain
Hi, Bobby Roberts wrote: On Sep 23, 9:10 am, Tino Wildenhain <[EMAIL PROTECTED]> wrote: Bobby Roberts wrote: Depends on the technology/web framework. If you use WSGI, you should use something like: host_name = environ.get("HTTP_HOST", None) or environ["SERVER_NAME"]

Re: How to parse a string completely into a list

2008-09-25 Thread Tino Wildenhain
s of a list I can create an x-y coordinate plane for navigation. You can 'count' (whatever that means) equally in strings as you do in lists. As said above, they behave exactly the same. Just strings are imutable - e.g. you can't change individual parts of them. Tino -- http://mail.python.org/mailman/listinfo/python-list smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: How to parse a string completely into a list

2008-09-26 Thread Tino Wildenhain
walk. Hoewever it entirely depends on your algorithm. Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: how to replace and string in a "SELECT ... IN ()"

2008-09-26 Thread Tino Wildenhain
t in a single statement, but readability will suffer: cursor.execute( """ SELECT titem.object_id, titem.tag_id FROM tagging_taggeditem titem WHERE titem.object_id IN (%s) """ % ", " .join("%s" for x in xrange(len(eid_list))), ei

Re: Not fully OO ?

2008-09-26 Thread Tino Wildenhain
Hi, Tim Rowe wrote: 2008/9/23 Craig Allen <[EMAIL PROTECTED]>: So python may turn out to be pure OO ... The question I usually ask is "Does this language help me get the job done?" Python often does. That's all that really matters, isn't it? Well then it still depends on the perception of

Re: how to replace and string in a "SELECT ... IN ()"

2008-09-26 Thread Tino Wildenhain
1,5,9]]) Nope. That would be dangerous! -> google for SQL injection Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: how to replace and string in a "SELECT ... IN ()"

2008-09-26 Thread Tino Wildenhain
Michael Mabin wrote: I laugh in the face of danger. Give me a use case for an exploit. (see below) On Fri, Sep 26, 2008 at 8:05 AM, Tino Wildenhain <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Michael Mabin wrote: cu

Re: how to replace and string in a "SELECT ... IN ()"

2008-09-27 Thread Tino Wildenhain
ssibly insecure data into 'secure' then, no I would still object. Why? Because its a bad example of "default permit". Its always better to have a whitelist - even more so when its so easy to do. Its just a habit you develope - if you never do it right, how would you know when a

Re: how to replace and string in a "SELECT ... IN ()"

2008-09-27 Thread Tino Wildenhain
Hi, Michael Mabin wrote: If the inputs are edited prior to the construction of the string and these fields are used for more than one update then it's not an exploit. It's simply a matter not repeating yourself when coding. In python we do not fear that. In this particular case too, we're t

Re: how to replace and string in a "SELECT ... IN ()"

2008-09-28 Thread Tino Wildenhain
in fact the company I work for does not do much web application but input validation is something we get even audited for. Nevertheless I wish you a very good weekend :-) Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: What is not objects in Python?

2008-09-28 Thread Tino Wildenhain
to write 1+2 in the form of 1.add(2) ? (Yes, in python you can do that, as well as "hello".__len__() works even (1).__add__(2) works.) Maybe its just that python don't want to waste good names for methods :-) So as said above in some other thread, python supports OO but does not

Re: how to replace and string in a "SELECT ... IN ()"

2008-09-28 Thread Tino Wildenhain
Michael Mabin wrote: Tino, dude, I'm afraid I lied about my previous post being the last word. There are some things you said here that must be addressed. Well. Its interesting to see thats either my English is so bad you don't understand or you are too tired. All what needs to b

Re: writing dll in python?

2008-09-29 Thread Tino Wildenhain
-install with your search engine of choice. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Python script for tracert

2008-09-30 Thread Tino Wildenhain
vation of traceroute ;) Well, maybe an implementation in python itself could be of interest? http://mail.python.org/pipermail/python-list/2003-March/196063.html maybe there are more attempts - this one was just the first thing which popped up with g**gle. (The script is in the attachment). Rega

Re: parse a normal textfile

2008-10-01 Thread Tino Wildenhain
['name'] 'adf' but of course eval() is dangerous, so feel free to explore more then this one solution. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: encoding ascii data for xml

2008-10-03 Thread Tino Wildenhain
ou basically need to encode into xml charref or have your xml library do so. It seems a little googling turns up this one, which might be helpful: http://www.xml.com/pub/a/2002/11/13/py-xml.html Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

datetime, tzinfo ... strange conversion?

2006-04-01 Thread Tino Lange
MT (2) 2006-04-01 18:09:26.469445+00:00 > GMT (3) 2006-04-01 19:09:26.469445+00:00 > GMT (4) 2006-04-01 18:09:26.469445+00:00 > _tz_germany: Europe/Berlin (id: -1212869684) , local.tzinfo: Europe/Berlin (id: -1212868756) --> Why is GMT (3) wrong? Cheers, Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: postgresql_autodoc in Python?

2009-12-07 Thread Tino Wildenhain
the stuff :-) *) http://www.alberton.info/postgresql_meta_info.html Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Moving from PHP to Python. Is it Possible

2009-12-12 Thread Tino Wildenhain
me very dangerous. Keep in mind if you are using a user supplied string, like coming from a form entry and just include it as above literally into your HTML, you have created a way of cross site scripting, a very common attack. To prevent that, you should always propery quote strings for the context where they are used. Template engines such as Zope Page Templates (also usable stand allone) are doing this for you. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Unexpected python exception

2009-11-13 Thread Tino Wildenhain
tbake does some things is evil but it does other things rather well and we can't break those. I'd need to see the bigger picture because I don't know of bitbake but I have a feeling this can be done much nicer in the end. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Any Python Module to send ring tones from PC to mobile via GSM modem

2010-02-01 Thread Tino Wildenhain
find more information on how to do that. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Function that knows its argument's variable name

2010-03-17 Thread Tino Wildenhain
lease note introspective approaches have a very narrow field where they can work - as already shown in other posts: you can have values w/o names and also more then one name to a value (or object). Regards Tino Wildenhain smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Free chapter about Python and databases (MySQL and SQLite)

2010-05-28 Thread Tino Wildenhain
sting in the way you can write stored functions in python there) Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: floatref

2010-07-14 Thread Tino Wildenhain
mutable float by providing a constant name or reference for it within the class. For example: >>> a=b=[1.0] >>> a[0]+=0.5 >>> a,b ([1.5], [1.5]) HTH Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: floatref

2010-07-15 Thread Tino Wildenhain
floatref(object): def __init__(self,val): self.val=val ? x = floatref(1.0) y = x print(x.val) x.val = 10.0 print(x.val) print(y.val) Regards Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: xlrd - insert column?

2009-07-28 Thread Tino Wildenhain
. Regards Tino -- http://mail.python.org/mailman/listinfo/python-list

Re: reading a text file

2009-08-19 Thread Tino Wildenhain
upper()) except StopIteration: break More useless code, under the hood its working similar. But why not use it in the way intended? for input_line in sys.stdin: sys.stdout.write(input_line.upper()) ? Regards Tino smime.p7s Description: S/MIME Cryptographic Signature --

Re: Python word to text

2009-09-01 Thread Tino Wildenhain
is match with "App Engine doesn't allow external programs"? :-) For excel this would be easy but word - Björn, did you check google api if you would be able to access google docs for this? Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does this group have so much spam?

2009-09-02 Thread Tino Wildenhain
Am 01.09.2009 22:10, schrieb David: Il Mon, 31 Aug 2009 20:06:54 -0700 (PDT), r ha scritto: ... The system is definitely flawed. I am no internet expert so i don't really know what we could do to fix it. I do fear goverment or corporations taking over of the internet and robbing use of our fre

Re: python module for data comparison of 2 MySQL servers

2009-09-04 Thread Tino Wildenhain
time you start your comparison. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Solved - Python: automate input to MySQL query

2009-09-24 Thread Tino Wildenhain
e not. One is the current price in the catalogue and the other is the price it was sold for at a particular time. They need different names for that reason. Yes and you should name them different in your query when they appear in the same result set. Regards Tino smime.p7s Description: S

<    1   2