[issue13599] Compiled regexes don't show all attributes in dir()

2011-12-14 Thread Martin Häcker
New submission from Martin Häcker : When looking at a regex with dir() you don't get all available attributes - which is inconvenient as some very important ones (like .pattern) are not visible. To demonstrate: > import re > re.compile('foo').pattern 'foo' > dir(re.compile('foo')) ['__copy__

[issue4625] IDLE won't open anymore, .idlerc unaccessible

2011-12-14 Thread Ned Deily
Ned Deily added the comment: A couple of comments on the patch: 1. Displaying a popup is fine but it gets annoying when it does it repeatedly. Since this is really a non-fatal error as the user can continue, it would be better to only display the popup once. 2. Another file in .idlerc, breakp

[issue4625] IDLE won't open anymore, .idlerc unaccessible

2011-12-14 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file23954/issue4625_rev1_27.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9404] IDLE won't launch on XP

2011-12-14 Thread Ned Deily
Ned Deily added the comment: As there are proposed patches in Issue4625 that address the original problem reported here, let's move the discussion there. -- nosy: +ned.deily resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> IDLE won't open a

[issue13600] rot_13 codec not working

2011-12-14 Thread Ram Rachum
New submission from Ram Rachum : The `rot_13` codec is supposed to work like this, no? >>> 'qwerty'.encode('utf-8') b'qwerty' >>> 'qwerty'.encode('rot_13') Traceback (most recent call last): File "", line 1, in 'qwerty'.encode('rot_13') TypeError: encoder did not return a bytes object (ty

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2011-12-14 Thread maniram maniram
maniram maniram added the comment: Attached is a patch for test.test_string to test for this bug. Can somebody please comment on my paches or commit my patches. -- Added file: http://bugs.python.org/file23955/test_string.diff ___ Python tracker

[issue13599] Compiled regexes don't show all attributes in dir()

2011-12-14 Thread Ezio Melotti
Ezio Melotti added the comment: This seems already fixed in 2.7.2+/3.2/3.3, what version have you tried? -- resolution: -> out of date status: open -> pending type: -> enhancement ___ Python tracker

[issue13600] rot_13 codec not working

2011-12-14 Thread Ezio Melotti
Ezio Melotti added the comment: See #7475. -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue13571] Backup files support in IDLE

2011-12-14 Thread maniram maniram
maniram maniram added the comment: In response to Roger Serwy: >>> I rarely have IDLE crash on Linux. If you're experiencing these issues on >>> Windows, see #13582. I'm on Ubuntu Linux and IDLE does'nt crash. Many editors have backup files in the case of a crash and after a crash have an opt

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2011-12-14 Thread Laurent Mazuel
Changes by Laurent Mazuel : -- nosy: +Laurent.Mazuel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13600] rot_13 codec not working

2011-12-14 Thread Petri Lehtinen
Petri Lehtinen added the comment: Ram Rachum wrote: > The `rot_13` codec is supposed to work like this, no? No it isn't. In Python 3, str.encode() always encodes to bytes and bytes.decode() always decodes to str. IOW, str.encode() encodes text (Unicode) to data (bytes), and bytes.decode() dec

[issue13600] rot_13 codec not working

2011-12-14 Thread Ram Rachum
Ram Rachum added the comment: Then I suggest replacing this error message: encoder did not return a bytes object (type=str) and this one: 'memoryview' object has no attribute 'translate' With something like: Please use `codecs.lookup('rot-13').encode` -- assignee: -> d

[issue13600] rot_13 codec not working

2011-12-14 Thread Petri Lehtinen
Petri Lehtinen added the comment: Issue #7475 discusses fixing the error messages, too. -- components: +Library (Lib) resolution: -> duplicate stage: committed/rejected -> status: open -> closed superseder: -> codecs missing: base64 bz2 hex zlib hex_codec ... ___

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2011-12-14 Thread Petri Lehtinen
Petri Lehtinen added the comment: Issue 13600 has been marked as a duplicate of this issue. FRT, +1 to the idea of adding encoded_format and decoded_format attributes to CodecInfo, and also to adding {str,bytes}.{transform,untransform} back. -- nosy: +petri.lehtinen _

[issue13359] urllib2 doesn't escape spaces in http requests

2011-12-14 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13599] Compiled regexes don't show all attributes in dir()

2011-12-14 Thread Martin Häcker
Martin Häcker added the comment: Indeed, I'm on version % python --version Python 2.7.1 Sorry. -- status: pending -> closed ___ Python tracker ___ ___

[issue13359] urllib2 doesn't escape spaces in http requests

2011-12-14 Thread maniram maniram
maniram maniram added the comment: Seems good. -- nosy: +maniram.maniram ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8684] improvements to sched.py

2011-12-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset f5aed0dba844 by Giampaolo Rodola' in branch 'default': Fix #8684: make sched.scheduler class thread-safe http://hg.python.org/cpython/rev/f5aed0dba844 -- nosy: +python-dev ___ Python tracker

[issue8684] improvements to sched.py

2011-12-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue13449] sched - provide an "async" argument for run() method

2011-12-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: What about run(nowait=...) or run(only_ready=...)? Doing this as a separate method seems unnecessarily complicated to me in terms of implementation (move run logic into _run, add "run" and "run_nowait", etc...). Most importantly, the user will have to remem

[issue13449] sched - provide an "async" argument for run() method

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: That's a good point. Then perhaps call the flag "wait" or "blocking", since it avoids false positives and is more explicit than "async"? -- ___ Python tracker ___

[issue13449] sched - provide an "async" argument for run() method

2011-12-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: "blocking" seems the most explicit to me. With this, we can also fix issue1641 by providing a specific section into asyncore doc which explains how to use asyncore in conjunction with sched. -- ___ Python tracker

[issue13597] Improve documentation of stdout/stderr buffering in Python 3.x

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm surprised to hear that stderr is line buffered by default. > Historically stderr is never buffered (at least on POSIX) and for good > reason: errors should be seen immediately > > Was this an oversight in migrating stdin/out/err to the new io module? Unt

[issue13601] sys.stderr should be unbuffered (or always line-buffered)

2011-12-14 Thread Antoine Pitrou
New submission from Antoine Pitrou : In issue13597, Philip Jenvey points out: “I'm surprised to hear that stderr is line buffered by default. Historically stderr is never buffered (at least on POSIX) and for good reason: errors should be seen immediately” Recent changes to the IO stack should

[issue13599] Compiled regexes don't show all attributes in dir()

2011-12-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue13449] sched - provide an "async" argument for run() method

2011-12-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2975618965c0 by Giampaolo Rodola' in branch 'default': Fix #13449: add 'blocking' parameter to sched.scheduler.run() so that the scheduler can be used in non-blocking applications http://hg.python.org/cpython/rev/2975618965c0 -- nosy: +pyt

[issue1641] asyncore delayed calls feature

2011-12-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: With issue13449 fixed I think we can now provide this functionnality by adding a specific section into asyncore doc which explains how to use asyncore in conjunction with sched module. As such, asyncore.py itself won't need any change. --

[issue13449] sched - provide an "async" argument for run() method

2011-12-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue13449] sched - provide an "async" argument for run() method

2011-12-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +josiah.carlson, josiahcarlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue13540] Document the Action API in argparse

2011-12-14 Thread Jason R. Coombs
Jason R. Coombs added the comment: Most of the Action subclasses in argparse override __init__ and they raise ValueErrors when the parameters aren't as expected for that argument. This was my reason for adding that comment. If the basic Actions require this level of validation, wouldn't a cus

[issue1641] asyncore delayed calls feature

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > With issue13449 fixed I think we can now provide this functionnality by > adding a specific section into asyncore doc which explains how to use > asyncore in conjunction with sched module. How would it work? -- _

[issue1641] asyncore delayed calls feature

2011-12-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Now that I think of it maybe some kind of wrapper would still be necessary. As of right now, we'd do something like this. At the core we would have: import asyncore, asynchat, sched # global scheduler = sched.scheduler() while 1: asyncore.loop(timeout=

[issue1641] asyncore delayed calls feature

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > while 1: > asyncore.loop(timeout=1.0, count=1) # count=1 makes loop() return after > 1 loop > scheduler.run(blocking=False) Isn't that both ugly and imprecise? The right way to do it is to set the timeout of the select() call according to the

[issue13601] sys.stderr should be unbuffered (or always line-buffered)

2011-12-14 Thread Guido van Rossum
Guido van Rossum added the comment: I *thought* I mimicked what C stdio did ~20 years ago... I'd be happy to follow what it does today if it changed or if I made a mistake. That said, IMO: Line-buffering should be good enough since in practice errors messages are always terminated by a newl

[issue4625] IDLE won't open anymore, .idlerc unaccessible

2011-12-14 Thread Roger Serwy
Roger Serwy added the comment: I just tested Ned's updated patches against 3.3a0 and 2.7 and they work as advertised. -- ___ Python tracker ___ _

[issue1757072] Zipfile robustness

2011-12-14 Thread James C. Ahlstrom
James C. Ahlstrom added the comment: For completeness, I checked other versions of Python. The example zip file fails in Python 3.1, but succeeds in Python 3.2.2. The patch for 3.2.2 removed the check for correct comment length, but substituted no further check for validity. -- __

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2011-12-14 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13571] Backup files support in IDLE

2011-12-14 Thread Roger Serwy
Roger Serwy added the comment: Would you want to collaborate on writing an extension to do this? Check out IdleX. -- ___ Python tracker ___

[issue4625] IDLE won't open anymore, .idlerc unaccessible

2011-12-14 Thread Sophia K. Cheng
Sophia K. Cheng added the comment: Hi Ned, Thanks for the patch, I appreciate it. Sadly, I've since upgraded my laptop to Win 7, and don't seem to be having the problem anymore :-/ , so I can't verify. But thank you for writing a patch. Sincerely, Sophia On Wed, Dec 14, 2011 at 10:50 AM, Ro

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: > We should like the IDLE shell to give the same results as the standard shell. I disagree that this should be an absolute principle. Two standard shells may not give the same result due to running in different environments, so forcing IDLE to give the same r

[issue4028] Problem compiling the multiprocessing module on sunos5

2011-12-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8c658b625475 by Charles-François Natali in branch '2.7': Issue #4028: Make multiprocessing build on SunOS. http://hg.python.org/cpython/rev/8c658b625475 New changeset 49e82c885d6b by Charles-François Natali in branch '3.2': Issue #4028: Make multip

[issue4028] Problem compiling the multiprocessing module on sunos5

2011-12-14 Thread Charles-François Natali
Charles-François Natali added the comment: Thanks Craig. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: -Python 3.1 ___ Python tracker _

[issue13453] Tests and network timeouts

2011-12-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset fbcaeb4a8654 by Charles-François Natali in branch '2.7': Issue #13453: Fix a race condition in test_poplib. http://hg.python.org/cpython/rev/fbcaeb4a8654 New changeset e497a3ed9beb by Charles-François Natali in branch '3.2': Issue #13453: Fix a rac

[issue11886] test_time.test_tzset() fails on "x86 FreeBSD 7.2 3.x": AEST timezone called "EST"

2011-12-14 Thread Charles-François Natali
Charles-François Natali added the comment: Another failure on a 2.7 FreeBSD buildbot: """ test test_time failed -- Traceback (most recent call last): File "/usr/home/db3l/buildarea/2.7.bolen-freebsd7/build/Lib/test/test_time.py", line 193, in test_tzset self.assertTrue(time.tzname[1] ==

[issue13597] Improve documentation of stdout/stderr buffering in Python 3.x

2011-12-14 Thread Geoffrey Bache
Geoffrey Bache added the comment: I would certainly be in favour of restoring the python 2.x behaviour, at least where standard error is concerned. When writing Python programs, it's important to see exceptions immediately, and not lose them entirely in some circumstances. I reported this as

[issue13597] Improve documentation of stdout/stderr buffering in Python 3.x

2011-12-14 Thread Geoffrey Bache
Geoffrey Bache added the comment: Ooops, seems like I just ran into a bug in the bug tracker too, it seems to have backed out other people's changes. Restoring them... -- components: +IO nosy: +benjamin.peterson, pitrou, pjenvey, stutzbach versions: -Python 3.1, Python 3.4 __

[issue4832] idle filename extension

2011-12-14 Thread Roger Serwy
Roger Serwy added the comment: I was unable to produce the crash that Pavel described in msg87703. Just adding "defaultextension=''" solves this issue for Windows and still preserves the correct behavior on Linux. Amaury's quote of tcl/tk documentation in msg87695 mentions this as well. I

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2011-12-14 Thread Roger Serwy
Roger Serwy added the comment: William's explanation in msg123203 for the cause of the error and the solution for keeping a reference to "flist" is good. IDLE has only one instance of FileList while running anyways. Attached is a patch that behaves like William's description. The modificatio

[issue13402] Document absoluteness of sys.executable

2011-12-14 Thread Petri Lehtinen
Petri Lehtinen added the comment: Attaching an updated patch. The documentation now says that sys.executable may be an empty string. The patch also adds a test to make sure that sys.executable is absolute. -- Added file: http://bugs.python.org/file23958/issue13402_v2.patch __

[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT

2011-12-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue13516] Gzip old log files in rotating handlers

2011-12-14 Thread Raul Morales
Raul Morales added the comment: I have just posted a comment, too. http://plumberjack.blogspot.com/2011/12/improved-flexibility-for-log-file.html?showComment=1323891345946#c2875224484376643310 With this approach, anyone can implement support for any format easily. It is powerful. But IMHO, bu

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: In English, "We should like" is far from an absolute statement. "IDLE must" would be such. In any case, I hope you agree that crashing is bad. It is also not good if IDLE, as a development environment, enables code that violates the doc specifications and tha

[issue13602] format string '%b' doesn't work as expected

2011-12-14 Thread James Classen
New submission from James Classen : I notice that, in versions 2.7 and 3.2 on Windows XP (haven't tested any other versions or platforms), the following statements in the interpreter work as documented: '%x' % 17 '%o' % 17 and output '11' and '21' respectively, as I expect. However, '%b' % 1

[issue13602] format string '%b' doesn't work as expected

2011-12-14 Thread James Classen
James Classen added the comment: I didn't see section 4.6.2 of the library for 3.2 documentation, only section 5.6.2 of the 2.7 docs. So this is an invalid issue. -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue11574] TextIOWrapper: Unicode Fallback Encoding on Python 3.3

2011-12-14 Thread Carl Meyer
Carl Meyer added the comment: Here's an example real-world case where the only solution I could find was to simply avoid non-ASCII characters entirely (which is obviously not a real solution): https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690 distutils/distribute require long

[issue13516] Gzip old log files in rotating handlers

2011-12-14 Thread Vinay Sajip
Vinay Sajip added the comment: It seems that you agree that the basic mechanism is good enough to build on, so I'd rather leave the proposed stdlib change as is, but provide examples of how to achieve gzip/zip compression for rotated logs in the Logging Cookbook. The reason I don't want to ad

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I also so not understand you reverting the title to the arguably incorrect > non-parallel construction. That is an (unfortunate) side effect of replying by email. -- ___ Python tracker

[issue11574] TextIOWrapper: Unicode Fallback Encoding on Python 3.3

2011-12-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: > One might say, "ok, this is a bug in distutils/distribute, it should > explicitly specify UTF-8 encoding when writing egg-info." But if this > is a sensible thing for distutils/distribute to do, regardless of > user locale, why would it not be equally sensibl

[issue7652] Merge C version of decimal into py3k.

2011-12-14 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file23959/be8a59fcba49.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13597] Improve documentation of stdout/stderr buffering in Python 3.x

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: (I've opened issue13601 for the possible behaviour change) -- ___ Python tracker ___ ___ Python-bug

[issue13593] importlib needs to be updated for __qualname__

2011-12-14 Thread Brett Cannon
Brett Cannon added the comment: Seems fine to me, and if Antoine says it's doing the right thing then I'm cool with the patch. -- assignee: -> meador.inge ___ Python tracker _

[issue13588] Change name of internal closure functions in importlib

2011-12-14 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch! I will try to find some time to do a proper review if someone else doesn't beat me to it (although first glance seems to suggest it all looks fine). -- stage: needs patch -> patch review ___ Pyt

[issue13591] import_module potentially imports a module twice

2011-12-14 Thread Brett Cannon
Brett Cannon added the comment: Patch looks good to me. -- assignee: -> meador.inge stage: patch review -> commit review ___ Python tracker ___

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-14 Thread Roger Serwy
Roger Serwy added the comment: I don't have a Mac to test against. Is there anything I need to do to improve the patch? -- ___ Python tracker ___ __

[issue13516] Gzip old log files in rotating handlers

2011-12-14 Thread Raul Morales
Raul Morales added the comment: Ok, it is reasonable. It has no sense add support for compression since I am the only user who want it. Maybe in the future ;) -- ___ Python tracker __

[issue13402] Document absoluteness of sys.executable

2011-12-14 Thread Philip Jenvey
Philip Jenvey added the comment: sys.executable can be None on Jython (and I believe IronPython) when ran in an 'embedded' mode -- nosy: +dino.viehland, pjenvey ___ Python tracker

[issue4625] IDLE won't open anymore, .idlerc unaccessible

2011-12-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7857d1f4ce79 by Ned Deily in branch '2.7': Issue #4625: If IDLE cannot write to its recent file or breakpoint http://hg.python.org/cpython/rev/7857d1f4ce79 New changeset 26e3e542d20d by Ned Deily in branch '3.2': Issue #4625: If IDLE cannot write t

[issue4625] IDLE won't open anymore, .idlerc unaccessible

2011-12-14 Thread Ned Deily
Ned Deily added the comment: Applied to 2.7 (for release in 2.7.3), 3.2 (3.2.3), and default (3.3). -- assignee: -> ned.deily resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 __

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-12-14 Thread Mark Shannon
Mark Shannon added the comment: Please reopen this bug as the fix is wrong. This fix merely hides the symptoms of _PyType_Lookup returning a dead object, by calling PyType_Modified() frequently, thus ensuring the type method cache is almost always invalidated. This results in a significant sl

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2011-12-14 Thread Nick Coghlan
Nick Coghlan added the comment: There are a *lot* of characters with semantic significance that are reported by the tokenize module as generic "OP" tokens: token.LPAR token.RPAR token.LSQB token.RSQB token.COLON token.COMMA token.SEMI token.PLUS token.MINUS token.STAR token.SLASH token.VBAR to

[issue13551] pulldom doesn't populate DOM tree

2011-12-14 Thread Achim Gaedke
Achim Gaedke added the comment: Potentially both: The xml.dom.pulldom documentation is not really there. Maybe the PullDOM builds a partial tree, not caring about nested nodes. In contrast to SAX2DOM, which seems to fill the DOM tree completely. I tried to figure out, what the programmer inte

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2011-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe that that list includes all symbols and symbol combinations that are syntactically significant in expressions. This is the generalized meaning of 'operator' that is being used. What do not appear are '#' which marks comments, '_' which is a name cha

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-14 Thread maniram maniram
maniram maniram added the comment: One reason to fix this bug: People may develop code that calls sys.std{out,err}.write with the number 200. like sys.stdout.write(200) In IDLE the code works well but in Python from the command-line it fails to run. Creating a bug in the code. --

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2011-12-14 Thread Nick Coghlan
Nick Coghlan added the comment: Sure, but what does that have to do with anything? tokenize isn't a general purpose tokenizer, it's specifically for tokenizing Python source code. The *problem* is that it doesn't currently fully tokenize everything, but doesn't explicitly say that in the modu

[issue13603] Add prime-related functions to Python

2011-12-14 Thread maniram maniram
New submission from maniram maniram : It would be nice to have prime-related and number theory functions in a new module or some existing module (like math). like this: >>> import prime >>> prime.isprime(7) True >>> prime.isprime(35) False >>> prime.primerange(10,18) (11,13,17) >>> prime.isperfe

[issue13603] Add prime-related and number theory functions to Python

2011-12-14 Thread maniram maniram
Changes by maniram maniram : -- title: Add prime-related functions to Python -> Add prime-related and number theory functions to Python ___ Python tracker ___ __

[issue12923] test_urllib fails in refleak mode

2011-12-14 Thread Meador Inge
Meador Inge added the comment: I just noticed this problem as well. I don't know the code well enough to determine if Brian's patch is the right thing to do. The documentation claims that maxtries is used to put a limit on recursion: http://docs.python.org/dev/library/urllib.request.html#urll

[issue13571] Backup files support in IDLE

2011-12-14 Thread maniram maniram
maniram maniram added the comment: I would be happy to help :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue13603] Add prime-related and number theory functions to Python

2011-12-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: -1 in general. I think that's too domain specific to belong in stdlib. -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue13603] Add prime-related and number theory functions to Python

2011-12-14 Thread Meador Inge
Meador Inge added the comment: I agree with Benjamin about this being too domain specific for stdlib. Also, I don't really see a good argument as to why this functionality is useful. -1 from me too. -- nosy: +meador.inge ___ Python tracker

[issue13604] update PEP 393 (match implementation)

2011-12-14 Thread Jim Jewett
New submission from Jim Jewett : The implementation has a larger state.kind Clarified wording on wstr_length and surrogate pairs. Clarified that the canonical "data" format doesn't always have a data pointer. Mentioned that calling PyUnicode_READY would finalize a string, so that it couldn't be

[issue13604] update PEP 393 (match implementation)

2011-12-14 Thread Jim Jewett
Changes by Jim Jewett : -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 3.3 Added file: http://bugs.python.org/file23961/pep-0393.txt ___ Python tracker

[issue13591] import_module potentially imports a module twice

2011-12-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset d2504d30f259 by Meador Inge in branch '3.2': Issue #13591: import_module potentially imports a module twice. http://hg.python.org/cpython/rev/d2504d30f259 New changeset e8fb61a0a2d7 by Meador Inge in branch 'default': Issue #13591: import_module po

[issue13591] import_module potentially imports a module twice

2011-12-14 Thread Meador Inge
Meador Inge added the comment: Thanks for the review Brett. Fix committed. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue13591] import_module potentially imports a module twice

2011-12-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 541f215a31f7 by Meador Inge in branch '3.2': Issue #13591: Moving the NEWS line to the right release. http://hg.python.org/cpython/rev/541f215a31f7 New changeset 92e94fd303d4 by Meador Inge in branch 'default': Issue #13591: Moving the NEWS line to

[issue13593] importlib needs to be updated for __qualname__

2011-12-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54a77c556d9a by Meador Inge in branch 'default': Issue #13593: updating the importlib utility decorators for __qualname__. http://hg.python.org/cpython/rev/54a77c556d9a -- nosy: +python-dev ___ Python tr

[issue13593] importlib needs to be updated for __qualname__

2011-12-14 Thread Meador Inge
Meador Inge added the comment: Fix committed. Thanks for the review Antoine and Brett. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue13603] Add prime-related and number theory functions to Python

2011-12-14 Thread maniram maniram
maniram maniram added the comment: I think math.sin is also domain-specific. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13603] Add prime-related and number theory functions to Python

2011-12-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Hardly, being a widely applicable mathematical function. Also, it's in a C math library which is what Python's is originally based on. -- ___ Python tracker __

[issue13603] Add prime-related and number theory functions to Python

2011-12-14 Thread Meador Inge
Meador Inge added the comment: On Wed, Dec 14, 2011 at 10:58 PM, Benjamin Peterson wrote: > Hardly, being a widely applicable mathematical function. I was just typing a similar response. > Also, it's in a C math library which is what Python's is originally based on. Not just *a* C math libr

[issue13603] Add prime-related and number theory functions to Python

2011-12-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/12/15 Meador Inge : > > Not just *a* C math library.  *The* Standard C library! :-) Quite! -- ___ Python tracker ___ _

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2011-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you are responding to me, I am baffled. I gave a concise way to document the current behavior with respect to .OP, which you said you wanted. -- ___ Python tracker

[issue13097] ctypes: segfault with large number of callback arguments

2011-12-14 Thread Meador Inge
Meador Inge added the comment: On Thu, Dec 1, 2011 at 2:11 AM, STINNER Victor wrote: > Is there really an use case where you need 2 ** 20 (1,048,576) arguments? If > yes, I'm not against the torture in this case :-) Not very likely :-) However, the segfault can occur with less arguments in

[issue13603] Add prime-related and number theory functions to Python

2011-12-14 Thread maniram maniram
maniram maniram added the comment: Anybody else than Benjamin and Meador please comment on this. -- ___ Python tracker ___ ___ Python

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2011-12-14 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I didn't read it as suggested documentation at all - you moved seamlessly from personal commentary to a docs suggestion without separating the two, so it appeared to be a complete non sequitur to me. As for the docs suggestion, I think it works as the expla

[issue13402] Document absoluteness of sys.executable

2011-12-14 Thread Petri Lehtinen
Petri Lehtinen added the comment: > sys.executable can be None on Jython (and I believe IronPython) when ran in > an 'embedded' mode In CPython, embedding doesn't change the behavior. -- ___ Python tracker _

[issue13603] Add prime-related and number theory functions to Python

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Anybody else than Benjamin and Meador please comment on this. I don't know why we would want to maintain this in the stdlib. We would also need a dedicated maintainer so that efficient algorithms are chosen and implemented. Such functions are available in

[issue13603] Add prime-related and number theory functions to Python

2011-12-14 Thread Alex Gaynor
Alex Gaynor added the comment: I'll chip in my 2 cents as well and say this also seems too domain specific and not useful enough for the stdlib. -- nosy: +alex ___ Python tracker _

[issue13603] Add prime-related and number theory functions to Python

2011-12-14 Thread maniram maniram
maniram maniram added the comment: On further thought, I have changed my mind. I think this is domain-specific. Shall we close this bug? -- ___ Python tracker ___ __

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2011-12-14 Thread maniram maniram
maniram maniram added the comment: Why isn't anybody commiting or commenting on my patches? -- status: open -> languishing ___ Python tracker ___ ___

  1   2   >