Re: code review

2012-06-29 Thread Steven D'Aprano
On Thu, 28 Jun 2012 20:58:15 -0700, alex23 wrote: On Jun 29, 12:57 pm, Littlefield, Tyler ty...@tysdomain.com wrote: I was curious if someone wouldn't mind poking at some code. The project page is at:http://code.google.com/p/pymud Any information is greatly appreciated. I couldn't find any

I can't send images to this mail-list

2012-06-29 Thread ??????
hi,all: why can't I send images to python-list@python.org??-- http://mail.python.org/mailman/listinfo/python-list

Re: code review

2012-06-29 Thread Chris Angelico
On Fri, Jun 29, 2012 at 5:31 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Given that all code contains bugs, that's the best sort of repository! Only in the sense that a cheese shop can be lauded for its cleanliness... But I am somewhat curious to see the OP's actual code.

Re: I can't send images to this mail-list

2012-06-29 Thread Chris Angelico
On Thu, Jun 28, 2012 at 9:34 PM, 梦幻草 wustcsvstu...@vip.qq.com wrote: hi,all:     why can't I send images to python-list@python.org?? It's a text-only list. Post your image to some free hosting somewhere and then include a link to it in your message, or - if possible - explain your

Re: code review

2012-06-29 Thread Serhiy Storchaka
The project page is at: http://code.google.com/p/pymud Any information is greatly appreciated. Do you mean https://github.com/benthomasson/pymud, http://pymud.blogspot.com/ or http://sourceforge.net/projects/pymud/ ? -- http://mail.python.org/mailman/listinfo/python-list

Re: retry many times decorator

2012-06-29 Thread andrea crotti
On the other hand now that I think again even supposing there is a permanent error like MySql completely down, retrying continuosly won't do any harm anyway because the machine will not be able to do anything else anyway, when someone will fix MySql it would restart again without human

Re: retry many times decorator

2012-06-29 Thread Justin Barber
On Friday, June 29, 2012 4:53:43 AM UTC-4, andrea crotti wrote: On the other hand now that I think again even supposing there is a permanent error like MySql completely down, retrying continuosly won't do any harm anyway because the machine will not be able to do anything else anyway, when

Re: I can't send images to this mail-list

2012-06-29 Thread Ben Finney
Chris Angelico ros...@gmail.com writes: On Thu, Jun 28, 2012 at 9:34 PM, 梦幻草 wustcsvstu...@vip.qq.com wrote:     why can't I send images to python-list@python.org?? It's a text-only list. I'll take this opportunity to give heartfelt thanks to the administrators for that policy; please keep

Re: code review

2012-06-29 Thread Littlefield, Tyler
On 6/29/2012 2:14 AM, Serhiy Storchaka wrote: The project page is at: http://code.google.com/p/pymud Any information is greatly appreciated. Do you mean snip No, I mean http://code.google.com/p/pymud -- Take care, Ty http://tds-solutions.net The aspen project: a barebones light-weight mud

Re: code review

2012-06-29 Thread Littlefield, Tyler
On 6/29/2012 1:31 AM, Steven D'Aprano wrote: On Thu, 28 Jun 2012 20:58:15 -0700, alex23 wrote: On Jun 29, 12:57 pm, Littlefield, Tyler ty...@tysdomain.com wrote: I was curious if someone wouldn't mind poking at some code. The project page is at:http://code.google.com/p/pymud Any information

Re: Re Following syntax error in Mac OX10.7 Terminal

2012-06-29 Thread David Thomas
On Thursday, June 28, 2012 6:30:42 PM UTC+1, Sergi Pasoev wrote: You just have to consider that indentation matters in Python, so you have to type the code in Python interpreter as you have written it below, that is, press Tab before each line when you are inside the 'while (or any other like

Re: I can't send images to this mail-list

2012-06-29 Thread Ethan Furman
Ben Finney wrote: Chris Angelico writes: 梦幻草 wrote: why can't I send images to python-list@python.org?? It's a text-only list. I'll take this opportunity to give heartfelt thanks to the administrators for that policy; please keep this a text-only forum. +1000 --

Re: Re Following syntax error in Mac OX10.7 Terminal

2012-06-29 Thread MRAB
On 29/06/2012 16:13, David Thomas wrote: On Thursday, June 28, 2012 6:30:42 PM UTC+1, Sergi Pasoev wrote: You just have to consider that indentation matters in Python, so you have to type the code in Python interpreter as you have written it below, that is, press Tab before each line when you

Re: Re Following syntax error in Mac OX10.7 Terminal

2012-06-29 Thread David Thomas
On Friday, June 29, 2012 4:21:56 PM UTC+1, MRAB wrote: On 29/06/2012 16:13, David Thomas wrote: On Thursday, June 28, 2012 6:30:42 PM UTC+1, Sergi Pasoev wrote: You just have to consider that indentation matters in Python, so you have to type the code in Python interpreter as you have

Re: Re Following syntax error in Mac OX10.7 Terminal

2012-06-29 Thread Ben Finney
David Thomas dthoma...@me.com writes: Hi yeah I'm currently learning python 2 at the moment and the tutorial that I am studying doesn't explain about indentation. You might be better served by the official Python tutorial URL:http://docs.python.org/tutorial/. If you work through it from

Re Re Following syntax error in Mac OX10.7 Terminal

2012-06-29 Thread Sergi Pasoev
Just discovered this in the tutorial further down. I'm currently learning Python 2 because there seems to be a lot of tutorials out there covering Python 2 rather than 3. While deciding which version of Python to learn, a better counsel could be found here:

format() not behaving as expected

2012-06-29 Thread Josh English
I have a list of tuples, and usually print them using: print c, .join(map(str, list_of_tuples)) This is beginning to feel clunky (but gives me essentially what I want), and I thought there was a better, more concise, way to achieve this, so I explored the new string format and format()

Re: ANN: psutil 0.5.0 released

2012-06-29 Thread Giampaolo Rodolà
2012/6/27 Giampaolo Rodolà g.rod...@gmail.com: Hi folks, I'm pleased to announce the 0.5.0 release of psutil: http://code.google.com/p/psutil/ === Major new features === - system users - (Linux, Windows) process CPU affinity (get and set) - (POSIX) process number of opened file

Re: format() not behaving as expected

2012-06-29 Thread MRAB
On 29/06/2012 17:31, Josh English wrote: I have a list of tuples, and usually print them using: print c, .join(map(str, list_of_tuples)) This is beginning to feel clunky (but gives me essentially what I want), and I thought there was a better, more concise, way to achieve this, so I explored

Re: format() not behaving as expected

2012-06-29 Thread Steven D'Aprano
On Fri, 29 Jun 2012 09:31:53 -0700, Josh English wrote: I have a list of tuples, and usually print them using: print c, .join(map(str, list_of_tuples)) This is beginning to feel clunky (but gives me essentially what I want), and I thought there was a better, more concise, way to achieve

Re: format() not behaving as expected

2012-06-29 Thread Josh English
On Friday, June 29, 2012 10:02:45 AM UTC-7, MRAB wrote: The .format method accepts multiple arguments, so the placeholders in the format string need to specify which argument to format as well as how to format it (the format specification after the :). The format function, on the other

Re: format() not behaving as expected

2012-06-29 Thread Josh English
On Friday, June 29, 2012 10:08:20 AM UTC-7, Steven D#39;Aprano wrote: c = (1,3) s = {0[0]} print s.format(c) '1' That's not actually the output copied and pasted. You have quotes around the string, which you don't get if you pass it to the print command. Mea culpa. I typed it in

Re: format() not behaving as expected

2012-06-29 Thread MRAB
On 29/06/2012 18:19, Josh English wrote: On Friday, June 29, 2012 10:02:45 AM UTC-7, MRAB wrote: The .format method accepts multiple arguments, so the placeholders in the format string need to specify which argument to format as well as how to format it (the format specification after the :).

Re: 转发:Re:how can I implement cd like shell in Python?

2012-06-29 Thread Chris Withers
On 28/06/2012 12:39, 梦幻草 wrote: thanks !But this method can not change the directory of the main process.For example: the current directory is /home/work/local/scripts,this directory have a python script file cd.py after executing the script cd.py by python cd.py ..,the current work directory

Re: code review

2012-06-29 Thread Alister
On Fri, 29 Jun 2012 09:03:22 -0600, Littlefield, Tyler wrote: On 6/29/2012 1:31 AM, Steven D'Aprano wrote: On Thu, 28 Jun 2012 20:58:15 -0700, alex23 wrote: On Jun 29, 12:57 pm, Littlefield, Tyler ty...@tysdomain.com wrote: I was curious if someone wouldn't mind poking at some code. The

Re: code review

2012-06-29 Thread MRAB
On 29/06/2012 20:41, Alister wrote: On Fri, 29 Jun 2012 09:03:22 -0600, Littlefield, Tyler wrote: On 6/29/2012 1:31 AM, Steven D'Aprano wrote: On Thu, 28 Jun 2012 20:58:15 -0700, alex23 wrote: On Jun 29, 12:57 pm, Littlefield, Tyler ty...@tysdomain.com wrote: I was curious if someone

Re: I can't send images to this mail-list

2012-06-29 Thread Mark Lawrence
On 29/06/2012 16:26, Ethan Furman wrote: Ben Finney wrote: Chris Angelico writes: 梦幻草 wrote: why can't I send images to python-list@python.org?? It's a text-only list. I'll take this opportunity to give heartfelt thanks to the administrators for that policy; please keep this a

Re: code review

2012-06-29 Thread Martin P. Hellwig
On Friday, 29 June 2012 20:41:11 UTC+1, Alister wrote: On Fri, 29 Jun 2012 09:03:22 -0600, Littlefield, Tyler wrote: On 6/29/2012 1:31 AM, Steven D'Aprano wrote: On Thu, 28 Jun 2012 20:58:15 -0700, alex23 wrote: On Jun 29, 12:57 pm, Littlefield, Tyler ty...@tysdomain.com wrote: I was

Re: code review

2012-06-29 Thread Alister
On Fri, 29 Jun 2012 13:27:54 -0700, Martin P. Hellwig wrote: On Friday, 29 June 2012 20:41:11 UTC+1, Alister wrote: On Fri, 29 Jun 2012 09:03:22 -0600, Littlefield, Tyler wrote: On 6/29/2012 1:31 AM, Steven D'Aprano wrote: On Thu, 28 Jun 2012 20:58:15 -0700, alex23 wrote: On Jun 29,

Re: code review

2012-06-29 Thread Littlefield, Tyler
I am no expert but from what have picked up so far from x import is frowned upon in most cases also this section in main strikes me as a bit odd and convoluted w = world() serv = server(client) w.server = serv serv.world = w I think you are cross referencing classes would be better to

Re: I can't send images to this mail-list

2012-06-29 Thread Dave Angel
On 06/29/2012 06:59 PM, Dennis Lee Bieber wrote: On Fri, 29 Jun 2012 21:13:09 +0100, Mark Lawrence breamore...@yahoo.co.uk declaimed the following in gmane.comp.python.general: On 29/06/2012 16:26, Ethan Furman wrote: Ben Finney wrote: Chris Angelico writes: ??? wrote: why can't I

Re: Re Following syntax error in Mac OX10.7 Terminal

2012-06-29 Thread Andrew Berg
On 6/29/2012 10:58 AM, David Thomas wrote: Just discovered this in the tutorial further down. I'm currently learning Python 2 because there seems to be a lot of tutorials out there covering Python 2 rather than 3. The latest edition (3rd?) of Programming Python by Mark Lutz covers py3k (it

Re: code review

2012-06-29 Thread Steven D'Aprano
On Fri, 29 Jun 2012 19:41:11 +, Alister wrote: also this section in main strikes me as a bit odd and convoluted w = world() serv = server(client) w.server = serv serv.world = w I think you are cross referencing classes would be better to investigate inheritance.

Re: code review

2012-06-29 Thread Terry Reedy
On 6/29/2012 4:49 PM, Littlefield, Tyler wrote: I am no expert but from what have picked up so far from x import is frowned upon in most cases from x import * # frowned on by many as reader will not necessarily know what that imports, conflicts are possible, and if you import * twice, reader

Re: code review

2012-06-29 Thread Terry Reedy
On 6/29/2012 4:43 PM, Alister wrote: from x import * is frowned upon, however, from x import y is fine IMHO. well I said I was no expert picking things up. re investigation I see your reasoning and yes it was the from X import * I was thinking of. Although a simple import X retaining the

Re: I can't send images to this mail-list

2012-06-29 Thread Dan Sommers
On Fri, 29 Jun 2012 21:59:41 -0400 Dave Angel d...@davea.name wrote: On 06/29/2012 06:59 PM, Dennis Lee Bieber wrote: On Fri, 29 Jun 2012 21:13:09 +0100, Mark Lawrence breamore...@yahoo.co.uk declaimed the following in gmane.comp.python.general: On 29/06/2012 16:26, Ethan Furman wrote:

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-29 Thread rusi
On Jun 10, 3:36 pm, Arnaud Delobelle arno...@gmail.com wrote: On 10 June 2012 07:16, rusi rustompm...@gmail.com wrote: This is worth a read in this context:http://osteele.com/archives/2004/11/ides Interesting! I definitely fall nicely at one extreme of this dichotomy.  Every time I've

[issue15217] os.listdir is missing in os.supports_dir_fd

2012-06-29 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Storchaka: please take it up with Antoine, he's the defender of the realm for POSIX-functions-are-atomic iirc. I'd be happy with dir_fd for os.listdir, though it may be too late for 3.3 anyway. -- nosy: +pitrou

[issue15218] Check for all necessary dir_fd and follow_symlinks functions

2012-06-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 992be49127e1 by Hynek Schlawack in branch 'default': Check for all used fd-based functions in shutil.rmdir, closes #15218 http://hg.python.org/cpython/rev/992be49127e1 -- nosy: +python-dev resolution: -

[issue15217] os.listdir is missing in os.supports_dir_fd

2012-06-29 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Just in my defense: Larry suggested in msg164245 to me to check for listdir in supports_dir_fd so I just assumed it's broken as it didn't work. I'm totally fine with the current behavior, the discussion about dir_fd support in listdir isn't what I

[issue15217] os.listdir is missing in os.supports_dir_fd

2012-06-29 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Storchaka: please take it up with Antoine, he's the defender of the realm for POSIX-functions-are-atomic iirc. I'd be happy with dir_fd for os.listdir, though it may be too late for 3.3 anyway. I know that this is possible (and

[issue15217] os.listdir is missing in os.supports_dir_fd

2012-06-29 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: WFM. That is, unless people want to bring up additional only-tangentially-related topics to annoy Hynek ;-) How about those local sports team? They're really having a year of it, aren't they! --

[issue15009] urlsplit can't round-trip relative-host urls.

2012-06-29 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Let me address this one thing at a time, the point on smb really confused me and I got into thinking that how smb (being more common), the issue was not raised. Looks smb url will always start with smb:// (// are the requirements for

[issue9559] mailbox.mbox creates new file when adding message to mbox

2012-06-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3d7a75e945ee by Petri Lehtinen in branch '2.7': #9559: Don't call _pre_mailbox_hook more than once http://hg.python.org/cpython/rev/3d7a75e945ee New changeset 7cf5a629fde2 by Petri Lehtinen in branch '3.2': #9559:

[issue15009] urlsplit can't round-trip relative-host urls.

2012-06-29 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Look at the following two bugs which dwelt on similar issues: Issue8339 and Issue7904 and in one message particular, msg102737, I seem to have come to a conclusion that I don't see that 'x://' and 'x:///y' qualifies as valid URLS as per

[issue14327] replace use of uname in the configury with macros set by AC_CANONICAL_HOST

2012-06-29 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: that was checked in -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14327 ___

[issue9559] mailbox.mbox creates new file when adding message to mbox

2012-06-29 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9559 ___

[issue15222] mailbox.mbox writes without end-of-line at the file end.

2012-06-29 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: I cannot reproduce this on 3.2 or 2.7. My mailboxes always have an ending newline if the last message also has it. Only if the last message doesn't end in a newline, there's no newline in the end of the mbox. Furthermore, if a message doesn't

[issue11626] Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT

2012-06-29 Thread Rainer Schaaf
Rainer Schaaf r...@pdflib.com added the comment: Thanks, I tested it with 3.3beta1 and it works fine now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11626 ___

[issue5346] mailbox._singlefileMailbox.flush doesn't preserve file rights

2012-06-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 69f654f718f4 by Petri Lehtinen in branch '2.7': #5346: Preserve permissions of mbox, MMDF and Babyl mailbox files on flush() http://hg.python.org/cpython/rev/69f654f718f4 New changeset 13fb85ef0eea by Petri Lehtinen

[issue5346] mailbox._singlefileMailbox.flush doesn't preserve file rights

2012-06-29 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Fixed. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5346

[issue9216] FIPS support for hashlib

2012-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: _Please_ publicise the change a little better? Pretty please!? This changes haven't been committed in Python, so you probably want to post on the Fedora bug tracker instead. -- ___ Python tracker

[issue15222] mailbox.mbox writes without end-of-line at the file end.

2012-06-29 Thread lilydjwg
lilydjwg lilyd...@gmail.com added the comment: I think I got something wrong. It seems that it only happens when the last message is deleted. I've also made up a sample mbox attached. The code to reproduce: from mailbox import mbox mb = mbox('mbox') del mb[len(mb)-1] mb.close() --

[issue15220] Reduce parsing overhead in email.feedparser.BufferedSubFile

2012-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Realistically, any performance improvement is 3.4-only now. -- nosy: +pitrou versions: +Python 3.4 -Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15220

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: And here's the patch against 3.2 (essentially the 2.7 patch but allowing for the removal of RISCOS support) -- Added file: http://bugs.python.org/file26207/issue1677-python32.patch ___ Python

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: Removed file: http://bugs.python.org/file26207/issue1677-python32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: Added file: http://bugs.python.org/file26208/issue1677-python32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: Instances of datetime.datetime don't seem to have the '__module__' attribute even though the datetime class itself does. This seems to contradict Section 3.2 of the Python documentation about the standard type hierarchy (in the

[issue15224] Range: Additional Methods (min/max/__and__)

2012-06-29 Thread Yclept Nemo
New submission from Yclept Nemo orbisvi...@gmail.com: Python 3.3 expands the range class but I would find some additional methods useful: min/max: provides O(1) time __and__: provides intersection: Range(...) Range(...) examples: intersection #1: a=Range.Range(9,58,4) b=Range.Range(15,69,6)

[issue15224] Range: Additional Methods (min/max/__and__)

2012-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: max and min for a range object are already O(1) one-liners: a = range(3, 21, 5) a[-1] if a.step 0 else a[0] # max(a) 18 a[0] if a.step 0 else a[-1] # min(a) 3 As for __and__, it doesn't feel like a particularly natural operation to

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Tim, you've got tabs in your 3.3 patch. Other than that, I wonder why you wait for 100 ms in 3.3 but 10 ms in the other versions? -- ___ Python tracker rep...@bugs.python.org

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Tim, you've got tabs in your 3.3 patch. Thanks, Antoine. I'll sort that out. (Goodness know how; none of my editors use tabs). Other than that, I wonder why you wait for 100 ms in 3.3 but 10 ms in the other versions? Ummm. Because they

[issue9239] zipfile: truncating comment can corrupt the zipfile

2012-06-29 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Anyone may close the issue as out of date? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9239 ___

[issue9670] Exceed Recursion Limit in Thread

2012-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Re-opening. The test fails on 3.2 on the new Lion buildbot (but neither on 3.3 nor 2.7, it seems). See http://buildbot.python.org/all/builders/AMD64%20Lion%203.2 -- nosy: +lukasz.langa, pitrou ___

[issue9670] Exceed Recursion Limit in Thread

2012-06-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9670 ___ ___ Python-bugs-list

[issue9239] zipfile: truncating comment can corrupt the zipfile

2012-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The bug is no longer there. Probably it is fixed in issue14399. Then the tests may still be added to test_zipfile? -- assignee: alanmcintyre - nosy: +pitrou priority: high - normal ___ Python

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15223 ___ ___

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Also, FWIW, in PyPy the behavior is different. Datetime instances do have the __module__ attribute: Python 2.7.2 (341e1e3821fff77db3bb5cdb7a4851626298c44e, Jun 09 2012, 14:24:11) [PyPy 1.9.0] on darwin Type help, copyright, credits or

[issue15223] datetime instances lack __module__ attribute

2012-06-29 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- versions: +Python 2.7 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15223 ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-29 Thread pmoody
pmoody pyt...@hda3.com added the comment: Reported externally, ipaddress tries to parse 4 character strings as bytes. https://groups.google.com/forum/?hl=en_USfromgroups#!topic/ipaddr-py-dev/j6FkeJtsBz4 -- Added file: http://bugs.python.org/file26210/ipaddress-bytes-str.diff

[issue9670] Exceed Recursion Limit in Thread

2012-06-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: 3x is now using clang to compile on 10.7 Lion; 32 is failing back to the Xcode 4 default of llvm-gcc which has proved problematic fox 3x. Rather than tweak the test again, try appending a CC=clang to the ./configure for the 3.2 buildbot until the

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-06-29 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: '%d' % ([],) Traceback (most recent call last): File stdin, line 1, in module TypeError: %d format: a number is required, not list -- nosy: +storchaka ___ Python tracker

[issue9670] Exceed Recursion Limit in Thread

2012-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: try appending a CC=clang to the ./configure for the 3.2 buildbot until the clang changes are backported. Ok, done that. Can someone watch the next builds? -- ___ Python tracker

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-06-29 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: Serhiy: I'm not sure what you're saying. At the point that str.format() is producing its error message, it doesn't know as much as %-formatting does about the original arguments, so it can't produce a similar message. --

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-29 Thread pmoody
pmoody pyt...@hda3.com added the comment: one more patch, superseding the last patch. also reported externally, the v6 parser would incorrectly parse some v6 addresses. http://code.google.com/p/ipaddr-py/issues/detail?id=97 -- Added file:

[issue15139] Speed up threading.Condition wakeup

2012-06-29 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Currently negative timeouts are treated as zero timeouts by Condition.wait(). The patches turns them into errors. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15139

[issue15225] Add negative tests for passing str to hmac.HMAC and hmac.new

2012-06-29 Thread Marc Abramowitz
New submission from Marc Abramowitz msabr...@gmail.com: I had been thinking of improving the error message for this case slightly -- and then couldn't find a test for this case so I'm adding one in the attached patch... -- components: Tests files: test_hmac.py.patch keywords: patch

[issue15158] Add support for multi-character delimiters in csv

2012-06-29 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15158 ___ ___

[issue15225] Add negative tests for passing str to hmac.HMAC and hmac.new

2012-06-29 Thread Marc Abramowitz
Marc Abramowitz msabr...@gmail.com added the comment: And here is the tiny patch to make it clear in the error message which of the 3 arguments had the wrong type -- I follow the convention followed in some TypeErrors raised in Lib/zipfile.py -- Added file:

[issue15148] shutil.which() docstring could be clearer

2012-06-29 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15148 ___ ___

[issue15034] Devguide should document best practices for stdlib exceptions

2012-06-29 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15034 ___ ___

[issue15222] mailbox.mbox writes without empty line after each message

2012-06-29 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Since there's no empty line between the content of mail 2 and the From line of mail 3, the body of mail 2 isn't really terminated by a newline. Reading the message confirms this: import mailbox mbox = mailbox.mbox('mbox')

[issue15226] max( str ) should be fast with PEP 393

2012-06-29 Thread Glenn Linderman
New submission from Glenn Linderman v+pyt...@g.nevcal.com: This is stupid code, but it should be faster with PEP 393 than before, should it not? str = ' ' * 500 + this is really a string examplewow!!!; for ix in range( 9000 ): z = max(str) print(Max character: + max(str)) While

[issue15226] max( str ) should be fast with PEP 393

2012-06-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15226 ___ ___ Python-bugs-list mailing

[issue15226] max( str ) should be fast with PEP 393

2012-06-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: What the C code finds quickly (in constant time) is that the maximum is =127. Most code doesn't know (and doesn't care) what the actual maximum is. So I see no bug here. -- nosy: +loewis ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bb4b184e5b33 by Tim Golden in branch '2.7': Issue #1677: Handle better a race condition between the interactive interpreter and http://hg.python.org/cpython/rev/bb4b184e5b33 New changeset 52af10209976 by Tim Golden

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-06-29 Thread Daniel Lenski
Changes by Daniel Lenski dlen...@gmail.com: -- nosy: +dlenski ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14243 ___ ___ Python-bugs-list mailing

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue15224] Range: Additional Methods (min/max/__and__)

2012-06-29 Thread Yclept Nemo
Yclept Nemo orbisvi...@gmail.com added the comment: max and min for a range object are already O(1) one-liners: true; dropping As for __and__, it doesn't feel like a particularly natural operation to me, given that a range object represents an *ordered* sequence of integers rather than

[issue15224] Range: Additional Methods (min/max/__and__)

2012-06-29 Thread Yclept Nemo
Yclept Nemo orbisvi...@gmail.com added the comment: a=Range.Range(5,61,4) ar=Range.Range(57,1,-4) b=Range.Range(21,63,6) br=Range.Range(57,15,-6) list(a); list(ar); list(b); list(br) [5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57] [57, 53, 49, 45, 41, 37, 33, 29, 25, 21, 17, 13, 9,

[issue15224] Range: Additional Methods (min/max/__and__)

2012-06-29 Thread Yclept Nemo
Yclept Nemo orbisvi...@gmail.com added the comment: On a side note, glancing at Python-3.3.0a4/Objects/rangeobject.c: range_contains seems to iterate through the entire range whereas __contains__ from the attached Range.py is O(1) -- ___ Python

[issue798876] windows sys.path contains nonexistant directory

2012-06-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: THis was fixed almost two years ago in Py3K. Won't fix for 2.7 -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-06-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Daniel. If you have any interest in this issue, would you mind summarising the state of affairs, please? I have no direct interest in the result but I'm happy to commit a patch or even to work one up if somone can come up with a single,

[issue4485] fast swap of default Windows python versions

2012-06-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Effectively made redundant by PEP 397, implemented in 3.3 -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13792] The os.execl call doesn't give programs exit code

2012-06-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Closing as it's been pending for six months and I see nothing further to add -- stage: - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org

[issue6021] itertools.grouper

2012-06-29 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6021 ___ ___ Python-bugs-list

[issue15225] Add negative tests for passing str to hmac.HMAC and hmac.new

2012-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You don't need to call self.fail(), assertRaises() will do it for you. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15225

[issue15226] max( str ) should be fast with PEP 393

2012-06-29 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Ah, so then it would require a new API to make the Python code as smart as the C code, max is too general. Issue 15016 is an example of Python code that could benefit from knowing in constant time if the string contained only characters

[issue15226] max( str ) should be fast with PEP 393

2012-06-29 Thread Glenn Linderman
Changes by Glenn Linderman v+pyt...@g.nevcal.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15226 ___ ___

[issue9670] Exceed Recursion Limit in Thread

2012-06-29 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Looks like using clang brought the size back down again. Closing. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9670 ___

  1   2   >