[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: Committed revision 80236 in the trunk. The build-bots should not hang now. Shall merge to other branches too. -- assignee: -> orsenthil resolution: -> accepted ___ Python tracker

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: > I'm not sure I understand the issue that this patch is supposed > to fix It should fix all test_gdb errors :-) > in any case, I can report that it doesn't fix *this* issue. > I'm still getting the very same failures after applying the patch. The "'gdb.Fra

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Ned Deily
Ned Deily added the comment: +1. Thanks, all. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread David Bolen
David Bolen added the comment: The buildbot user's shell is also bash, so not entirely sure yet why it's behaving differently in my environment. I had completely forgotten about bash having a default path. I do agree that explicitly setting a minimal path is a good idea. -- ___

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: That fixes it indeed, see http://www.python.org/dev/buildbot/builders/2.7.dmg/builds/11/steps/compile/logs/stdio As for "which shell is being used": the slave reports that in his environment, there is SHELL=/bin/bash Not sure whether this actually means th

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: r80232 explicitly sets $PATH to the system default one, which hopefully fixes the issue. What would be interesting to know is which shell is the user shell on the buildbot. The original patch worked for me because my shell is bash and bash sets a default $P

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread David Bolen
David Bolen added the comment: I believe it's XCode 2.4.1. I know the script worked fine prior to the change that clears the environment, and commenting out just that piece of the latest trunk copy continues to work. To be honest, I'm not sure how the build even finds gcc-4.0 (e.g., why it d

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: I haven't reviewed the patch in detail yet, but it seems to me that it fixes independent issues. -1000 on that. One problem, one bug report in the tracker, one commit. If this issue is about the import machinery not working anymore if there is a non-ASCII c

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: I personally can't verify what version of Xcode is installed. David? In any case, David reported that he could build installers just fine on that very machine before r80179, but not after. -- nosy: +db3l ___ Pytho

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: Folks, can we please focus at one issue at a time? I'm not sure I understand the issue that this patch is supposed to fix; in any case, I can report that it doesn't fix *this* issue. I'm still getting the very same failures after applying the patch. Victor,

[issue8451] syslog.syslog('msg') logs message with ident "python".

2010-04-19 Thread Sean Reifschneider
Sean Reifschneider added the comment: Antoine: I believe I have everything you mentioned addressed with the new patch. That was an awesome review, thank you so much. The only things I didn't do were parts of the last two items you bring up: If PyTuple_New(0) fails, bail out. If syslog_openlo

[issue8191] Make arg0 required argument in os.execl* functions

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Apr 19, 2010 at 11:03 PM, R. David Murray wrote: > > Alexander, do you think it would be worthwhile to write up a summary of all > the issues > involved in these three releated bugs and post it to python-dev? Sure. I ranted about a related issu

[issue8191] Make arg0 required argument in os.execl* functions

2010-04-19 Thread R. David Murray
R. David Murray added the comment: Alexander, do you think it would be worthwhile to write up a summary of all the issues involved in these three releated bugs and post it to python-dev? Alternatively we could ask for a decision on what should be done in python 2.7 from Benjamin. --

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread R. David Murray
R. David Murray added the comment: Just to be clear, the freebsd6 problem was unrelated (presumably). Freebsd7 seems to be suffering from the issue discussed here. -- ___ Python tracker __

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file16990/issue2706.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New patch, issue2706a.diff, implements timedelta % timedelta and addresses Mark's code review comments. With respect to Mark's """ One other thought: with this division operation added, it might be nice to add constants like td_hour, td_minute, etc.

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: $ diffstat ~/surrogates-7.patch Doc/library/tarfile.rst | 15 +-- Include/moduleobject.h |1 Lib/platform.py | 12 +- Lib/subprocess.py |2 Lib/tarfile.py | 14 -- Lib/test/regrtest.py|5 - L

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file16919/surrogates-6.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: Updated patch: - Some parts have been applied in other issues - Remove assert(PyBytes_Check(x)): support PyByteArray type - use PyErr_Format() instead of sprintf+PyErr_SetString in tokenizer.c - don't convert message to byte and then back to unicode in err_i

[issue7992] Backport capsule object

2010-04-19 Thread Larry Hastings
Larry Hastings added the comment: Marking closed, as promised; 2.7b1 has been out for nine days and there hasn't been a peep. If new problems crop up from the capsule backport, please create a new issue and assign it to me. For posterity: 2.7b1 shipped with a bsddb that still publishes a COb

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-04-19 Thread Vlastimil Brom
Vlastimil Brom added the comment: I just stumbled on some seemingly different unexpected behaviour of difflib.SequenceMatcher, but it turns out, it may have the same cause, i.e. the "popular" heuristics. I hopefully managed to replicate it on an illustrative sample text - in as included in the

[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: > The last line references, buf. It wont be available if a > socket.timeout had happened. So, it can simply be moved to > the line below buf = f.read(). Attaching the patch with > these changes. Good catch :-) > Question: Were you able to simulate a timeout

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: test_gdb pass with add-conditions-for-gdb.Frame.select-to-trunk-003.patch. In a new patch, or maybe a last version of the add- patch, could you move all "main" code at the end? I found these instructions: # register Python pretty printer register (gdb

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: > Ideally I feel it should create the same symlink pointing to a > possibly missing file, since that's what '/bin/cp' does, > and shutil.copytree is broadly understood as a drop in replacement.. That's what would happen if the symlink option is set to True. When

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-19 Thread Timothee Besset
Timothee Besset added the comment: I am not sure what shutil does with symlinks already. At the very least it should not abort the operation. Ideally I feel it should create the same symlink pointing to a possibly missing file, since that's what '/bin/cp' does, and shutil.copytree is broadly

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: ok. what behavior would you expect in that case ? I propose that copytree() ignores symlinks that are not linked to an existing file in the copy process, and display a warning in this case. We could add an option to transform this warning into an error that wou

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Dave Malcolm
Dave Malcolm added the comment: Sorry about that. Here's an updated version of the patch, combining my work with Victor's. -- Added file: http://bugs.python.org/file17000/add-conditions-for-gdb.Frame.select-to-trunk-003.patch ___ Python tracker

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg added the comment: On Tue, Apr 20, 2010 at 6:46 AM, Mark Dickinson wrote: > > Mark Dickinson added the comment: > > Tennessee, are you still tracking this issue? If not, can I steal it from > you. :) > Hi Mark, Please feel free to steal it from me! Wonderful to see so

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Dave Malcolm
Dave Malcolm added the comment: > Attached patch is based on add-conditions-for-gdb.Frame.select-to- > trunk.patch and fix described problems. Using test_gdb-2.patch, test_gdb > pass without any error on my Debian Sid (gdb 7.1). The patch conditionalizes each test within StackNavigationTests,

[issue5168] shutil.copystat does not copy the "hidden" flag on windows

2010-04-19 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___

[issue1540112] Allow choice of copy function in shutil.copytree

2010-04-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r80230, thanks ! -- assignee: -> tarek nosy: +tarek status: open -> closed ___ Python tracker ___ _

[issue4814] ftplib does not honour "timeout" parameter for active data connections

2010-04-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed as r80226 (2.7) and r80228 (3.2). -- components: +Library (Lib) priority: -> normal resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: > (A) that we shouldn't use gdb.Frame.function.name(), ... > that this was fixed in trunk in r80156. This command is not correct: it still calls .function() method: def is_evalframeex(self): '''Is this a PyEval_EvalFrameEx frame?''' if self

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Ned Deily
Ned Deily added the comment: (er, "ranlib") -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-19 Thread Timothee Besset
Timothee Besset added the comment: It's a symlink that points to a file that doesn't exist. There are many ways this can happen, in this particular case my text editor (emacs) seems to keep some metadata about which user, machine and process is editing a file. I tried to reproduce in 2.6 (Deb

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Ned Deily
Ned Deily added the comment: I still don't understand why that isn't showing up in my environment (I've been running with that change for over a year) and I can't see why ld would fail but ar and ran don't. Can you verify the version of Xcode that has been installed? Perhaps there is an old

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Dave Malcolm
Dave Malcolm added the comment: Assigning to loewis for review -- assignee: dmalcolm -> loewis stage: -> patch review ___ Python tracker ___

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Dave Malcolm
Dave Malcolm added the comment: If I'm reading this bug correctly, there are two issues here: (A) that we shouldn't use gdb.Frame.function.name(), and should instead use gdb.Frame.name(). I believe this is a duplicate of issue 8279, and that this was fixed in trunk in r80156.It hasn't

[issue4256] optparse: provide a simple way to get a programmatically useful list of options

2010-04-19 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: Ok, here comes patch for argparse too. -- Added file: http://bugs.python.org/file16996/4256_2.patch ___ Python tracker ___ _

[issue4843] make distutils use shutil

2010-04-19 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- components: +Distutils2 -Distutils ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue6547] shutil.copytree fails on dangling symlinks

2010-04-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: Sorry, what's a "dangling symlink" ? can you provide steps to reproduce this ? I am moving the Python version to 2.6. If we are unable to reproduce it for Python > 2.5 we'll close it since we don't fix bugs for 2.5 anymore -- assignee: -> tarek nosy: +

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r80221, r80224, Thanks! -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8465] Backreferences vs. escapes: a silent failure solved

2010-04-19 Thread Aaron Sherman
New submission from Aaron Sherman : I tested this under 2.6 and 3.1. Under both, the common mistake that I'm sure many others have made, and which cost me quite some time today was: re.sub(r'(foo)bar', '\1baz', 'foobar') It's obvious, I'm sure, to many reading this that the second "r" was lef

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-19 Thread Chris Rebert
Chris Rebert added the comment: One last triviality: Could the mention of __subclasscheck__() in http://docs.python.org/dev/library/abc.html#abc.ABCMeta.__subclasshook__ get linked to the newly-added docs? -- ___ Python tracker

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I should be able to add timedelta % timedelta and fix the nits that Mark mentioned tonight. -- ___ Python tracker ___ ___

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. Having timedelta // int work is *really* peculiar, since it can only be made sense of with reference to some implicit particular chosen unit of time; in this case, that unit of time is apparently microseconds, as far as I can tell. Surely there aren't

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file16995/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: Tennessee, are you still tracking this issue? If not, can I steal it from you. :) > I found out that timedelta % int is not supported in the > released versions while timedelta // int is. Mmm. Interesting. :) I think it would be fine to add timedelta % t

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: By the way, the patch looks good to me, as far as it goes, and I'm +1 on adding all this. I only have the tiniest of nits: - the patch deletes a line at the top of Lib/test/test_datetime.py, for no apparent reason - in delta_add, I think the added 'if' bl

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Apr 19, 2010 at 4:09 PM, Mark Dickinson wrote: I noticed that as I was porting Victor's patch. I did not add timedelta % timedelta because I found out that timedelta % int is not supported in the released versions while timedelta // int is. I

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Lino Mastrodomenico
Lino Mastrodomenico added the comment: I think 0666 is correct because os.open() does a bitwise AND between this value and the bitwise inversion of the umask, something like oct(0666 & ~umask). Since the umask is usually 022 octal (18 decimal), the actual permission on disk should be 0644 as

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: David Bolen reported that this occurs with r80179, which now clears the PATH environment variable, removing ld from the path. -- ___ Python tracker __

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: Why is divmod(timedelta, timedelta) supported but not timedelta % timedelta? I think if one is implemented, the other should be too. -- ___ Python tracker ___

[issue6692] asyncore kqueue support

2010-04-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Forgot to add the patch. -- keywords: +patch Added file: http://bugs.python.org/file16994/asyncore.patch ___ Python tracker ___ _

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Shashwat Anand
Shashwat Anand added the comment: Ned : After I opened a new window, that is how it opened : http://imagebin.us/images/gbg8zdr25hviw26hnqfv.png And IDLE hanged a little later. Had to do a force quit. So yes, the problem is in Apple build Idle2.6 -- ___

[issue6692] asyncore kqueue support

2010-04-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6692] asyncore kqueue support

2010-04-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The patch in attachment implements support for epoll() and kqueue() by adding a new "poller" argument to asyncore.loop(). However, I had a chat with Jean Paul Calderone today which pointed out how useless this is. =) The problem is basically how asyncore.l

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Ned Deily
Ned Deily added the comment: Shashwat: what happens when you launch /usr/bin/idle2.6 and then open a new window in it (CMD N)? My experience is like Aaron's (and many other reports): the Apple-supplied idle2.6 in OS X 10.6 usually hangs after opening a second window, requiring a Force Quit.

[issue2302] Uses of SocketServer.BaseServer.shutdown have a race

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, getting rid of poll_interval for a file descriptor is easy under Unix, but wouldn't work under Windows (where select() only takes sockets, not arbitrary file descriptors). -- ___ Python tracker

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello Victor, The patch looks for fine for a timeout enforcement. A couple of changes required. -if isinstance(err[0], timeout): +if isinstance(err[0], socket.timeout): And, in this portion: +try: +

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Michael Foord
Michael Foord added the comment: I'm sure that there are many places using the API as it is, inserting a dummy entry into the argv they pass. Although the fix you propose would solve the problem for users who are currently using the API wrongly it would break code for people who are using it

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: georg.brandl -> tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Shashwat Anand
Shashwat Anand added the comment: Is "self.fd = os.open(name, mode, 0666)" Ok ? Should not it be "self.fd = os.open(name, mode, 0644)", because that is what the default permissions are. -- nosy: +l0nwlf ___ Python tracker

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed to trunk in r80215. I'm going to watch the buildbots, I suspect OS X might dislike surrogates in the filename. -- ___ Python tracker __

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Shashwat Anand
Shashwat Anand added the comment: Idle provided by built-in python in Mac OS X Snow leopard i.e. python 2.6.1 is running without any issues. It is /usr/bin/idle2.6. And if by very new mac you mean latest intel based macs released last summer, then yes I have the same machine. -- nos

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Shashwat Anand
Shashwat Anand added the comment: Attaching the fix -- keywords: +patch Added file: http://bugs.python.org/file16992/shutil.patch ___ Python tracker ___ _

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Shashwat Anand
Shashwat Anand added the comment: Seems like these formats are supported, so yes "bztar" can be used as a format parameter. _ARCHIVE_FORMATS = { 'gztar': (_make_tarball, [('compress', 'gzip')], "gzip'ed tar-file"), 'bztar': (_make_tarball, [('compress', 'bzip2')], "bzip2'ed tar-file"

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Aaron
Aaron added the comment: I just used the biult in mac softwere -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Lino Mastrodomenico
New submission from Lino Mastrodomenico : tarfile.open(filename, "w|") creates a tar file with execute permissions set, if filename doesn't exist (i.e. it uses mode 0777 minus the umask). It should instead use mode 0666 minus the umask, which is what happens when using mode "w:..." instead of

[issue8273] move generally useful test_support functions into the unittest package

2010-04-19 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: -belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue4256] optparse: provide a simple way to get a programmatically useful list of options

2010-04-19 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: I guess I am using my English too little, that's why I am using polish expressions too often. What I meant was of course, that I will do argparse patch too. I haven't provided docs for --help-options yet, becuase it is not clear to me, it is an accepted

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a forward port of Victor's timedelta_true_divide_divmod.patch to py3k. -- nosy: +Alexander.Belopolsky Added file: http://bugs.python.org/file16990/issue2706.diff ___ Python tracker

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Lino Mastrodomenico
New submission from Lino Mastrodomenico : The new function shutil.make_archive() supports bzip2 compression using "bztar" as format parameter, but neither the documentation nor the docstring mention it (all the other compression formats are correctly listed). -- assignee: georg.brandl

[issue4256] optparse: provide a simple way to get a programmatically useful list of options

2010-04-19 Thread Steven Bethard
Steven Bethard added the comment: Sorry, what does "I'll sit down to" mean? Does that mean you're offering to try to do the argparse patch too? Or that you'd rather someone else do it? (Either one's fine - I just couldn't tell which you meant.) --

[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue8273] move generally useful test_support functions into the unittest package

2010-04-19 Thread Tim Golden
Changes by Tim Golden : -- nosy: -tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8273] move generally useful test_support functions into the unittest package

2010-04-19 Thread Ezio Melotti
Ezio Melotti added the comment: Also note that the test_support module is for some reason documented here: http://docs.python.org/library/test.html#module-test.test_support This means that there are probably developers out there that are already using these functions even if some of them are n

[issue8393] subprocess: support undecodable current working directory on POSIX OS

2010-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: "mbcs" is not a fixed encoding and may change between Windows sessions, see the Rationale in PEP277 http://www.python.org/dev/peps/pep-0277/ The mixed case is interesting. We could use CreateProcessW when at least one string is Unicode, and CreateProces

[issue8462] raise test_support.TestSkipped() is used outside main() / test_main()

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: TestSkipped docstring should also explain that it should not be used in a test function, but only to skip the whole file. -- ___ Python tracker ___

[issue8462] raise test_support.TestSkipped() is used outside main() / test_main()

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor : unittest in Python 2.6 has to SkipTest exception, but test_support has a TestSkipped which can be used to skip the whole file. TestSkipped should not be used in a test function. Following tests have to be fixed: test_decimal, test_ioctl, test_largefile, tes

[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: Attached patch sets the timeout to 60 seconds. It writes "" % url to stderr on timeout. I don't know better place to write the error. (The test doesn't fail, it just continues to the next URL) -- keywords: +patch Added file: http://bugs.python.org/fil

[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I noticed that the change is still present in 2.7a. For what it's worth, I agree with David: """ Since it does trigger a crash on the windows equivalent API, the check should be conditional on platform. And it should generate a py3k warning on other

[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: If this new feature stays in 3.x, shouldn't 2.7 have a -3 warning? Also, I would consider adding os.execlp(path) -> os.execlp(path, os.path.basename(path)) transformation to 2to3. -- ___ Python tracker

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-04-19 Thread Ned Deily
Ned Deily added the comment: That wouldn't explain trunk failures. The _scproxy code has been in 26 and trunk for a long time. -- ___ Python tracker ___ ___

[issue8459] buildbot: test_select failure (test_returned_list_identity) on Python 2.6, Windows

2010-04-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > With regards to SSL_peek() blocking, you'd need to explain yourself > better on that one. The patch has been tested with the test cases > from Python SVN enough to be happy they run ok. IIRC it worked with OpenSSL 1.0.0 but failed with 0.9.8k. I could test i

[issue8191] Make arg0 required argument in os.execl* functions

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Google code search for os.execlp\([^*,]+\) lang:python returns 15 hits, two of which are the same as Matthias found. I am not sure what these results mean for the issue (and Matthias does not reach a conclusion either.) Note that the status quo in 3.

[issue8459] buildbot: test_select failure (test_returned_list_identity) on Python 2.6, Windows

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: The fail looks to be related to #8329 (r79867:trunk, r79868:py3k, r79869:2.6, r79870:3.1). -- title: buildbot: test_select failure on Python 2.6, Windows -> buildbot: test_select failure (test_returned_list_identity) on Python 2.6, Windows __

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Stefan Krah
Stefan Krah added the comment: Right, the skip should be left in place. -- Added file: http://bugs.python.org/file16988/issue8424-2.patch ___ Python tracker ___ _

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: Maybe r80198 of #7154? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-04-19 Thread Ned Deily
Ned Deily added the comment: This appears to be a recently introduced failure; the same failure is seen on current trunk build on 10.5 and 10.6 as well. -- nosy: +ned.deily ___ Python tracker _

  1   2   >