Re: urllib2 request with binary file as payload

2011-05-12 Thread Michiel Sikma
I can't upgrade my Python from 2.5 I was able to compile another alongside it (latest stable 2.7) and use that with my code, and it worked just fine. Uploaded a 6GB file to Youtube this way. :) Michiel Sikma We Demand HTML http://wedemandhtml.com/ mich...@wedemandhtml.com -- http

urllib2 request with binary file as payload

2011-05-11 Thread Michiel Sikma
, in sendall TypeError: sendall() argument 1 must be string or read-only buffer, not file Is there any other way I can do this? I'm pretty new to Python so I'm not sure how to proceed at this point. Thanks! Michiel Sikma We Demand HTML http://wedemandhtml.com/ mich...@wedemandhtml.com -- http

Structuring the code of a wiki parsing engine

2007-05-19 Thread Michiel Sikma
Hello everybody. I'm kind of new to Python. I'm working on a simple text parser that will allow me to transform a certain syntax into a certain output. I find wikis interesting, so wiki to HTML parsing is one of the things that I want to accomplish (I'm not actually writing a whole wiki,

Automated resizing of JPEG image + making slices?

2007-02-15 Thread Michiel Sikma
any of you know such libraries? Many thanks, Michiel Sikma [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Wiki in 10 minutes

2006-10-01 Thread Michiel Sikma
Thanks a lot to both of you. :) Michiel On Oct 1, 2006, at 12:12 AM, Steve Holden wrote: Michiel Sikma wrote: Hello everybody. I recently had a bit of data loss and, among some other minor things, lost my bookmarks. I once bookmarked this video tutorial which allegedly showed how to make

Wiki in 10 minutes

2006-09-30 Thread Michiel Sikma
been meaning to do it for some time now. Any other links pertaining to the creation of web applications with Python, which I'm only just getting into, would also be appreciated. Thanks! Michiel Sikma [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: time.clock() going backwards??

2006-08-25 Thread Michiel Sikma
Op 25-aug-2006, om 16:13 heeft Giovanni Bajo het volgende geschreven: Hello, Is it possible this to be a bug in Python itself (maybe, shooting at the moon, in the conversion between the 64bit performance counter and the floating point representation returned by time.clock ()), or

Re: Best Editor

2006-08-24 Thread Michiel Sikma
I personally use Eclipse with PyDev. It is a cross-platform solution because Eclipse is made with Java. http://www.eclipse.org/ http://pydev.sourceforge.net/ Michiel Op 24-aug-2006, om 13:29 heeft JAG CHAN het volgende geschreven: Friends, I am trying to learn Python. It will be of great

Re: python

2006-08-24 Thread Michiel Sikma
Op 24-aug-2006, om 14:22 heeft utabintarbo het volgende geschreven: [EMAIL PROTECTED] wrote: Regards, [EMAIL PROTECTED] Thanks! You're welcome. Signed, Anonymous -- http://mail.python.org/mailman/listinfo/python-list

Text parsing

2006-08-20 Thread Michiel Sikma
['test1\ntest2', 'test3\ntest4\ntest5\ntest6', 'test7\ntest8', 'test9', '\n'] What happened to test10? It seems to be gone unless I add two linebreaks at the end of the file. Greets, Michiel Sikma [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Beginner Textbook

2006-08-15 Thread Michiel Sikma
Introducing 13 year olds to a programming language? You're gonna have a hard time finding good literature for that. Even if you do, it's going to cost a lot of time to guide them. Beginning Python: From Novice to Professional by Magnus Lee Hetland might be a good choice. ISBN: 159059519X.

Re: Beginner Textbook

2006-08-15 Thread Michiel Sikma
Op 15-aug-2006, om 15:16 heeft M_M het volgende geschreven: Thanks - a very bright lot of 13 year olds- need the challenge! -- http://mail.python.org/mailman/listinfo/python-list I think that every 13 year old should be taught Python. It's an extremely intuitive language that can mean a

Re: Best IDE for Python

2006-08-14 Thread Michiel Sikma
By FOS, do you mean FOSS (Free and Open Source Software)? I've never seen the acronym FOS used. I personally use Eclipse with PyDev. http://www.eclipse.org/ http://pydev.sourceforge.net/ Michiel Op 14-aug-2006, om 9:50 heeft [EMAIL PROTECTED] het volgende geschreven: Hi All, What do you

Re: sys.platform documentation?

2006-08-11 Thread Michiel Sikma
Op 10-aug-2006, om 19:18 heeft Simon Forman het volgende geschreven: It might be a good idea to write a brief script to print out sys.platform, platform.platform(), platform.uname(), etc.. and post it here for people to run and post their results. Peace, ~Simon --

sys.platform documentation?

2006-08-10 Thread Michiel Sikma
Hello everybody, I was thinking about making a really insignificant addition to an online system that I'm making using Python: namely, I would like it to print the platform that it is running on in a human-readable manner. I was thinking of doing it like this: import sys platforms = {

Re: sys.platform documentation?

2006-08-10 Thread Michiel Sikma
Op 10-aug-2006, om 10:44 heeft Sybren Stuvel het volgende geschreven: Michiel Sikma enlightened us with: However, in order to populate the list of platforms, I need to know which strings sys.platform can return. I haven't found any documentation on this, but I guess that I'm not looking

Re: sys.platform documentation?

2006-08-10 Thread Michiel Sikma
Op 10-aug-2006, om 11:50 heeft Sybren Stüvel het volgende geschreven: On Thu, Aug 10, 2006 at 11:46:03AM +0200, Michiel Sikma wrote: So there probably isn't even any kind of list that we can find? That's too bad. It's not a big loss to me, but I imagine that it's kind of annoying if you

Re: sys.platform documentation?

2006-08-10 Thread Michiel Sikma
Op 10-aug-2006, om 13:00 heeft Tim Golden het volgende geschreven: Michiel Sikma wrote: Hello everybody, I was thinking about making a really insignificant addition to an online system that I'm making using Python: namely, I would like it to print the platform that it is running

Re: Absolute beginner - is this feasible?

2006-08-10 Thread Michiel Sikma
Op 10-aug-2006, om 14:45 heeft [EMAIL PROTECTED] het volgende geschreven: Now my questions: - is it legal? (I do have a subscription to Factiva. I do not intend to distribute the printouts) - If so, can I use Python to automate this task? Thank you. --

Re: (newbie) Float() and high precision

2006-08-10 Thread Michiel Sikma
Op 10-aug-2006, om 12:26 heeft [EMAIL PROTECTED] het volgende geschreven: What's the best way to do higher precision maths than the standard Float()? -- http://mail.python.org/mailman/listinfo/python-list You know, I don't usually answer questions like the gurus of this mailing

Re: do people really complain about significant whitespace?

2006-08-09 Thread Michiel Sikma
Op 9-aug-2006, om 16:48 heeft Carl Banks het volgende geschreven: Even if this were legal code (it isn't), it's still more transparent than some of the C code I've seen. Carl Banks Still kind of too bad that means there won't ever be an International Obfuscated Python Code Contest.

Re: do people really complain about significant whitespace?

2006-08-08 Thread Michiel Sikma
Op 8-aug-2006, om 1:49 heeft Ben Finney het volgende geschreven: As others have pointed out, these people really do exist, and they each believe their preconception -- that significant whitespace is intrinsically wrong -- is valid, and automatically makes Python a lesser language. Well, I

Re: NNTPlib::xover problem

2006-08-07 Thread Michiel Sikma
Hi Helmut, I guess it simply raises an exception in case there are no articles; this may not be what you expected, but it would seem that this is the way it operates. You should try catching the exception to plan out a course of action in case no articles are present. Michiel Op

Re: is it possible to dividing up a class in multiple files?

2006-08-07 Thread Michiel Sikma
Hi Martin, I don't think that's possible, since a file is executed when it is imported. If you load a file which contains a partial class, you will get an error because the indentation is incorrect, or the methods will be loaded in the wrong namespace. Regards, Michiel Op 7-aug-2006, om

Re: Pydev with Eclipse on OSX Q

2006-08-04 Thread Michiel Sikma
On Aug 4, 2006, at 7:39 PM, Fabio Zadrozny wrote: On 8/4/06, Michiel Sikma [EMAIL PROTECTED] wrote: Hey guys. I'm trying to run Pydev on Eclipse on OSX, but I've got a problem that prevents me from making new projects in it. It seems that I cannot add my Python interpreter to the list