Re: How to receive a data file of unknown length using a python socket?

2009-07-19 Thread Piet van Oostrum
John Machin sjmac...@lexicon.net (JM) wrote: JM On Jul 19, 7:43 am, Irmen de Jong irmen.nos...@xs4all.nl wrote: twgray wrote: I am attempting to send a jpeg image file created on an embedded device over a wifi socket to a Python client running on a Linux pc (Ubuntu).  All works well,

Import hashlib fails, embedded

2009-07-19 Thread Jeremy Cowles
I'm working on an embeddded Python interpreter (using the c-api) where we are loading a custom, zipped copy of the standard Python library (./lib/python25.zip). Everything is working fine, but when I try to import hashlib, i get the following error: Traceback (most recent call last): File

Re: how two join and arrange two files together

2009-07-19 Thread Peter Otten
amr...@iisermohali.ac.in wrote: [please keep the correspondence on the mailing list/newsgroup] It is working sir, but my datas are on file when i replaced StringIO() with open(filename.txt) then it is not printing the result properly, like in one file i have data like:--- 33 ALA H = 7.57 N =

On out-of-date Python Applications

2009-07-19 Thread Virgil Stokes
I am not a heavy user of Python; but, I do work with it and some of its application packages (e.g. PyODE), in an academic setting. Many of these applications packages have a Windows installer which usually works fine. However, I also try to keep up with the latest release of Python, and this is

Re: On out-of-date Python Applications

2009-07-19 Thread Michiel Overtoom
Virgil Stokes wrote: some of these applications will not install on the latest version of Python. Which version of Python precisely? -- The ability of the OSS process to collect and harness the collective IQ of thousands of individuals across the Internet is simply amazing. - Vinod

Re: How to receive a data file of unknown length using a python socket?

2009-07-19 Thread Hendrik van Rooyen
On Sunday 19 July 2009 02:12:32 John Machin wrote: Apologies in advance for my ignorance -- the last time I dipped my toe in that kind of water, protocols like zmodem and Kermit were all the rage -- but I would have thought there would have been an off-the- shelf library for peer-to-peer file

Re: On out-of-date Python Applications

2009-07-19 Thread John Machin
On Jul 19, 6:04 pm, Virgil Stokes v...@it.uu.se wrote: I am not a heavy user of Python; but, I do work with it and some of its application packages (e.g. PyODE), in an academic setting. Many of these applications packages have a Windows installer which usually works fine. However, I also try

Re: invoke method on many instances

2009-07-19 Thread Rainer Grimm
Hallo Alan, def apply2(itr, methodname, *args, **kwargs):     f = operator.methodcaller(methodname, *args, **kwargs)     for item in itr:         f(item) you can do it in a functional way. class A(object): ... def hello(self): return hello: + str ( self.__class__.__name__ ) ... class

A little help with pexpect

2009-07-19 Thread Hussein B
Hey, I'm trying to execute a command over a remore server using pexpect + url = 'ssh internalserver' res = pexpect.spawn(url) print '1' res.expect('.*ssword:') print '2' res.sendline('mypasswd') print '3' res.sendline('ls -aslh') + What I want to do is to send a

Re: How to receive a data file of unknown length using a python socket?

2009-07-19 Thread python
Hi Hendrik, I have ended up writing a netstring thingy, that addresses the string transfer problem by having a start sentinel, a four byte ASCII length (so you can see it with a packet sniffer/displayer) and the rest of the data escaped to take out the start sentinel and the escape

Re: Auto Send URL

2009-07-19 Thread Victor Subervi
Ah. How easy! Thank you. On Sat, Jul 18, 2009 at 7:32 PM, Chris Rebert c...@rebertia.com wrote: On Fri, Jul 17, 2009 at 6:02 AM, Victor Subervivictorsube...@gmail.com wrote: Hi; I am trying to script code that automatically sends a Web site visitor to an URL. Specifically, when they

Re: invoke method on many instances

2009-07-19 Thread Piet van Oostrum
Rainer Grimm r.gr...@science-computing.de (RG) a écrit: RG Hallo Alan, def apply2(itr, methodname, *args, **kwargs):     f = operator.methodcaller(methodname, *args, **kwargs)     for item in itr:         f(item) RG you can do it in a functional way. class A(object): RG ... def

are user defined classes hashable?

2009-07-19 Thread Alan G Isaac
Are user defined classes hashable? (The classes; *not* the instances!) I want to use some classes as dictionary keys. Python is not objecting, but I'm not sure how to think about whether this could be dangerous. I'm inclined to guess it will be hashed by id and this is OK. Thanks for any

Re: are user defined classes hashable?

2009-07-19 Thread Nicolas Dandrimont
* Alan G Isaac alan.is...@gmail.com [2009-07-19 13:48:16 +]: Are user defined classes hashable? (The classes; *not* the instances!) I want to use some classes as dictionary keys. Python is not objecting, but I'm not sure how to think about whether this could be dangerous. I'm

ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-19 Thread Mark Dufour
Hi all, I have just released version 0.2 of Shed Skin, an experimental (restricted) Python-to-C++ compiler (http://shedskin.googlecode.com). It comes with 7 new example programs (for a total of 40 example programs, at over 12,000 lines) and several important improvements/bug fixes. See

Re: are user defined classes hashable?

2009-07-19 Thread Alan G Isaac
* Alan G Isaac alan.is...@gmail.com [2009-07-19 13:48:16 +]: Are user defined classes hashable? (The classes; *not* the instances!) I'm inclined to guess it will be hashed by id and this is OK. On 7/19/2009 10:07 AM Nicolas Dandrimont apparently wrote: You can check for yourself:

Re: A little help with pexpect

2009-07-19 Thread Piet van Oostrum
Hussein B hubaghd...@gmail.com (HB) wrote: HB Hey, HB I'm trying to execute a command over a remore server using pexpect HB + HB url = 'ssh internalserver' HB res = pexpect.spawn(url) HB print '1' HB res.expect('.*ssword:') HB print '2' HB res.sendline('mypasswd') HB print '3' HB

python, ctypes, callbacks -- access violation when calling callback

2009-07-19 Thread resurtm
Hello. I'm trying to pass to the C function pointer to callback function from python. But when i'm trying to do this i get access violation within the DLL file when calling python callback. Here is the python side code: from ctypes import * # ... class NewtonBody(Structure): def

Re: python, ctypes, callbacks -- access violation when calling callback

2009-07-19 Thread Christian Heimes
resurtm wrote: Can anybody explain my errors when trying to pass callback to DLL function? Thanks for advices and solutions! You have to keep a reference to the callback alive yourself. ctypes doesn't increase the refernece counter of the function when you define a callback. As soon as the

Re: python, ctypes, callbacks -- access violation when calling callback

2009-07-19 Thread resurtm
On 19 июл, 21:09, Christian Heimes li...@cheimes.de wrote: resurtm wrote: Can anybody explain my errors when trying to pass callback to DLL function? Thanks for advices and solutions! You have to keep a reference to the callback alive yourself. ctypes doesn't increase the refernece

Re: tough-to-explain Python

2009-07-19 Thread Calroc
On Jul 9, 1:20 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: [...] You'll excuse my skepticism about all these claims about how anyone can program, how easy it is to teach the fundamentals of Turing Machines and functional programming to anybody at all. Prove it. Where are

Getting a Form To Work

2009-07-19 Thread Victor Subervi
Hi; I have the following in a *.py page for the Web: from primeNumbers import primeNumbers try: num = form.getfirst('num') except: num = '' msg = Oops print Content-Type: text/html print print !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Frameset//EN

Re: are user defined classes hashable?

2009-07-19 Thread Nicolas Dandrimont
* Alan G Isaac alan.is...@gmail.com [2009-07-19 14:46:12 +]: Again, my question is about the class not its instances, but still, checking as you suggest gives the same answer. That's what I get for answering before my coffee! Cheers, -- Nicolas Dandrimont Linux poses a real challenge

Re: On out-of-date Python Applications

2009-07-19 Thread John Machin
On 20/07/2009 12:24 AM, Virgil Stokes wrote: John Machin wrote: On Jul 19, 6:04 pm, Virgil Stokes v...@it.uu.se wrote: I am not a heavy user of Python; but, I do work with it and some of its application packages (e.g. PyODE), in an academic setting. Many of these applications packages have

Re: Getting a Form To Work

2009-07-19 Thread MRAB
Victor Subervi wrote: Hi; I have the following in a *.py page for the Web: from primeNumbers import primeNumbers try: num = form.getfirst('num') except: num = '' msg = Oops print Content-Type: text/html print print !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Frameset//EN

Re: How to receive a data file of unknown length using a python socket?

2009-07-19 Thread Hendrik van Rooyen
On Sunday 19 July 2009 15:18:21 pyt...@bdurham.com wrote: Hi Hendrik, If anybody is interested I will attach the code here. It is not a big module. I am interested in seeing your code and would be grateful if you shared it with this list. All right here it is. Hope it helps - Hendrik

Re: How to receive a data file of unknown length using a python socket?

2009-07-19 Thread python
I am interested in seeing your code and would be grateful if you shared it with this list. All right here it is. Hope it helps. Hendrik, Thank you very much!! (I'm not the OP, but found this thread interesting) Best regards, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: A little help with pexpect

2009-07-19 Thread Piet van Oostrum
Piet van Oostrum p...@cs.uu.nl (PvO) wrote: [snip] PvO You can also consider using paramiko instead of pexpect. [snip] chan = t.open_session() chan.exec_command('cat') chan.send('abcdefghijklmn\n') In a real program it is better to use sendall here, as send may decide to send only part of

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread MRAB
fft1976 wrote: On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote: E.g. the number system: In many Lisp implementations (/ 2 3) results in the fractional object 2/3. In Python 2.6 2 / 3 results in 0. Looks like with Python 3.1 they have fixed it, now it returns 0.66, which will

Re: Getting a Form To Work

2009-07-19 Thread MRAB
Victor Subervi wrote: When the form comes up the first time, there is the default value for num. When I fill in a number in the form and press send, even though the form sends to itself (same page name), I would think it would read the number sent. Here again is the code: from primeNumbers

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Frank Buss
fft1976 wrote: How do you explain that something as inferior as Python beat Lisp in the market place despite starting 40 years later. Python is not that bad. Unlike Lisp, there is much less undefined behavior, there is one free unique implementation on the 3 major platforms Linux, Windows and

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Roy Smith
In article 1cethsrrw8h6k$.9ty7j7u7zovn@40tude.net, Frank Buss f...@frank-buss.de wrote: there is one free unique implementation on the 3 major platforms Linux, Windows and MacOS X Most people would still consider Solaris to be a major platform. --

Re: uniicode and executing a process with subprocess.call, or os.system

2009-07-19 Thread Rick King
Thanks. I looked around for alternatives but didn't find this one. Rick Chris Rebert wrote: On Sat, Jul 18, 2009 at 3:30 PM, Rick Kingrickbk...@comcast.net wrote: Hello, I want to copy files using subprocess.call or os.system where the file names are non-ascii, e.g. Serbian(latin), c's and

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Terry Reedy
Roy Smith wrote: In article 1cethsrrw8h6k$.9ty7j7u7zovn@40tude.net, Frank Buss f...@frank-buss.de wrote: there is one free unique implementation on the 3 major platforms Linux, Windows and MacOS X Most people would still consider Solaris to be a major platform. ?? I do not, but I

any suggestions to synchronize typed text and speech ?

2009-07-19 Thread Stef Mientki
hello, I'm using Scintilla as a wxPython widget with great pleasure. I now have an application where I want to make notes during a conversation, but also want to record the speech during that conversation. I'm using Scintilla as a wxPython widget for editing and PyAudio for the speech

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Emile van Sebille
On 7/19/2009 1:01 PM Terry Reedy said... Roy Smith wrote: In article 1cethsrrw8h6k$.9ty7j7u7zovn@40tude.net, Frank Buss f...@frank-buss.de wrote: there is one free unique implementation on the 3 major platforms Linux, Windows and MacOS X Most people would still consider Solaris to be

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Carl Banks
On Jul 19, 10:33 am, fft1976 fft1...@gmail.com wrote: On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote: E.g. the number system: In many Lisp implementations (/ 2 3) results in the fractional object 2/3. In Python 2.6 2 / 3 results in 0. Looks like with Python 3.1 they have fixed it,

Re: ANN: GMPY 1.10 alpha with support for Python 3

2009-07-19 Thread casevh
GMPY 1.10 beta is now available. This version fixes an issue where very large objects would be cached for reuse instead of being freed. Source code and Windows installers may be found at http://code.google.com/p/gmpy/downloads/list casevh -- http://mail.python.org/mailman/listinfo/python-list

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Tim Daneliuk
Carl Banks wrote: On Jul 19, 10:33 am, fft1976 fft1...@gmail.com wrote: On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote: E.g. the number system: In many Lisp implementations (/ 2 3) results in the fractional object 2/3. In Python 2.6 2 / 3 results in 0. Looks like with Python 3.1

Re: any suggestions to synchronize typed text and speech ?

2009-07-19 Thread Marcus Wanner
On 7/19/2009 4:15 PM, Stef Mientki wrote: hello, I'm using Scintilla as a wxPython widget with great pleasure. I now have an application where I want to make notes during a conversation, but also want to record the speech during that conversation. I'm using Scintilla as a wxPython widget for

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Paul Rubin
Emile van Sebille em...@fenx.com writes: Most people would still consider Solaris to be a major platform. ?? I do not, but I have no idea what comes in 4th after the other three by whatever metric. one metric calls fourth as the iPhone OS...

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Carl Banks
On Jul 19, 4:29 pm, Tim Daneliuk tun...@tundraware.com wrote: Carl Banks wrote: On Jul 19, 10:33 am, fft1976 fft1...@gmail.com wrote: On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote: E.g. the number system: In many Lisp implementations (/ 2 3) results in the fractional object

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Marek Kubica
On Sun, 19 Jul 2009 15:09:28 -0400 Roy Smith r...@panix.com wrote: In article 1cethsrrw8h6k$.9ty7j7u7zovn@40tude.net, Frank Buss f...@frank-buss.de wrote: there is one free unique implementation on the 3 major platforms Linux, Windows and MacOS X Most people would still consider

Final Project

2009-07-19 Thread Fred Atkinson
I'm looking for some ideas here. I think I've mentioned I am taking a course in Python and PHP. The professor wants each of us to pick a project to write in both languages. It has to be something fairly complex and I'd like for it to be something that would be useful on my Web

Re: question on input function

2009-07-19 Thread Chris Rebert
On Sun, Jul 19, 2009 at 7:07 PM, Richel Satumbagarlsatumb...@yahoo.com wrote: I am just learning python then I encountered an certain point in terms of using the input function of python. the source code:    eq = input(enter an equation:);    print the

Re: question on input function

2009-07-19 Thread John O'Hagan
On Mon, 20 Jul 2009, Richel Satumbaga wrote: I am just learning python then I encountered an certain point in terms of using the input function of python. the source code: eq = input(enter an equation:); print the result is : ; the output seen

Managing non-ascii filenames in python

2009-07-19 Thread pdenize
I created the following filename in windows just as a test - “Dönåld’s™ Néphêws” deg°.txt The quotes are non -ascii, many non english characters, long hyphen etc. Now in DOS I can do a directory and it translates them all to something close. Dönåld'sT Néphêws deg°.txt I thought the correct way

Re: ANN: GMPY 1.10 alpha with support for Python 3

2009-07-19 Thread Mensanator
On Jul 19, 5:05 pm, casevh cas...@gmail.com wrote: GMPY 1.10 beta is now available. This version fixes an issue where very large objects would be cached for reuse instead of being freed. Excellent! That explains the funny memory usage graph. Source code and Windows installers may be found

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Steven D'Aprano
On Sun, 19 Jul 2009 10:33:39 -0700, fft1976 wrote: On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote: E.g. the number system: In many Lisp implementations (/ 2 3) results in the fractional object 2/3. In Python 2.6 2 / 3 results in 0. Looks like with Python 3.1 they have fixed it,

Re: Final Project

2009-07-19 Thread Frank Buss
Fred Atkinson wrote: I'm looking for some ideas here. I think I've mentioned I am taking a course in Python and PHP. The professor wants each of us to pick a project to write in both languages. It has to be something fairly complex and I'd like for it to be something that

Re: If Scheme is so good why MIT drops it?

2009-07-19 Thread Tim Daneliuk
Carl Banks wrote: On Jul 19, 4:29 pm, Tim Daneliuk tun...@tundraware.com wrote: Carl Banks wrote: On Jul 19, 10:33 am, fft1976 fft1...@gmail.com wrote: On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote: E.g. the number system: In many Lisp implementations (/ 2 3) results in the

Re: file write IOError Invalid argument

2009-07-19 Thread Gabriel Genellina
En Thu, 16 Jul 2009 17:41:39 -0300, Robert Robert robertrober...@yahoo.com escribió: I am trying to write a binary string to file on a windows network share. I get an IOError. I've read that it is because the file size is too large. I did a type( binaryString) and saw that it was type str.

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-07-19 Thread Winfried Plappert
Winfried Plappert winfried.plapp...@gmx.de added the comment: I have the problem described in issue6512 and here is some information Python version - hand compiled on Ubuntu 9.04: Python 3.1 (r31:73572, Jul 18 2009, 11:13:40) [GCC 4.3.3] on linux2 Type help, copyright, credits or license for

[issue6504] infinite recursion from calling builtins.open()

2009-07-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Yes, we conditionally import the locale module in order to guess the encoding when it is not specified by the caller. We can't import it at module initialization time because it would cause bootstrapping issues. The Python equivalent of the logic

[issue6492] xml.etree does not escape CR, LF and TAB characters within attribute values

2009-07-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - effbot nosy: +effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6492 ___ ___

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Kristján, zlib is only built when the required development headers (.h files for the zlib library) are available. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue4200] atexit module not safe in Python 3.0 with multiple interpreters

2009-07-19 Thread Graham Dumpleton
Graham Dumpleton graham.dumple...@gmail.com added the comment: I know this issue is closed, but for this patch, the code: +modstate = get_atexitmodule_state(module); + +if (modstate-ncallbacks == 0) +return; was added. Is there any condition under which modstate could be NULL.

[issue6521] Contradictory documentation for email.mime.text.MIMEText

2009-07-19 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: It is not obvious whether encoding of an unicode argument will happen or not: « [...] No guessing or encoding is performed on the text data. Changed in version 2.4: The previously deprecated _encoding argument has been removed. Encoding

[issue6521] Contradictory documentation for email.mime.text.MIMEText

2009-07-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Apparently it doesn't: message = MIMEText(uhéhé, _charset=utf-8) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib64/python2.6/email/mime/text.py, line 30, in __init__ self.set_payload(_text, _charset) File

[issue6521] Contradictory documentation for email.mime.text.MIMEText

2009-07-19 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - barry nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6521 ___

[issue6509] re.py - compiled byte-object regular expr encounter unexpected str-object

2009-07-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6509 ___ ___

[issue4200] atexit module not safe in Python 3.0 with multiple interpreters

2009-07-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2009/7/19 Graham Dumpleton rep...@bugs.python.org: Graham Dumpleton graham.dumple...@gmail.com added the comment: I know this issue is closed, but for this patch, the code: +    modstate = get_atexitmodule_state(module); + +    if

[issue3244] multipart/form-data encoding

2009-07-19 Thread Alex Z.
Changes by Alex Z. mrzmanw...@gmail.com: -- nosy: +alexz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list mailing list

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: submitted revision 74098 and revision 74099 which should fix your issue. Oh, and revision 74100 and revision 74101 as well (insufficient testing on my part, tsk. tsk.) -- ___ Python

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Thanks, now all the tests pass. However I had intermittent failures (with a really useful error message) on test_docxmlrpc: $ ./python Lib/test/regrtest.py -v test_docxmlrpc test_docxmlrpc test_autolink_dotted_methods

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2009-07-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here's a new patch. I added a could of @skipUnless in test_sqlite because two tests were failing. I couldn't notice this before because I didn't have _sqlite3 and these tests were skipped. Thanks to R. David Murray for reporting the

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2009-07-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6026 ___ ___ Python-bugs-list

[issue5262] PythonLauncher considered harmfull

2009-07-19 Thread Kevin Walzer
Kevin Walzer wordt...@users.sourceforge.net added the comment: I disagree that this is a bad idea--it's helpful to be able to double- click a GUI script and launch it automatically. I realize one can just fire up Terminal and go python myscript.py, but I missed this functionality when it was

[issue6522] docs for unittest.expectedFailure do not syntactically show it's a decorator

2009-07-19 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: If you look at the docs for the unittest.expectedFailure decorator you will notice it shows a set of empty parentheses since it is set with a function directive. But since it's a decorator those empty parentheses are not accurate. If you

[issue6520] urllib.urlopen does not have timeout parameter where as urllib2.urlopen has

2009-07-19 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: I suspect that was a conscious decision. Back when it was first written urllib2 was supposed to eventually replace urllib I think. Dunno if that's still true, but if so I could see why this feature wasn't added to urllib.urlopen. --

[issue1436346] yday in datetime module

2009-07-19 Thread Jubaraj Borgohain
Jubaraj Borgohain jubarajborgoh...@gmail.com added the comment: I have completed the following two new features for the datetime module (the changes are attached as a patch): a. Added a method yday() b. Added date.fromyday(year,yday), which returns a date object. The other features requested are

[issue6516] reset owner/group to root for distutils tarballs

2009-07-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: what would be the use case for that ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6516 ___

[issue6163] [HP-UX] ld: Unrecognized argument: +s -Ldir

2009-07-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Michael, I am not sure how you patch applies, is elif meant to be if ? e.g. a gcc compiler under hp-us case ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6163