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

2011-12-14 Thread Martin Häcker
New submission from Martin Häcker spamfaen...@gmx.de: 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'

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

2011-12-14 Thread Ned Deily
Ned Deily n...@acm.org 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

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

2011-12-14 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Added file: http://bugs.python.org/file23954/issue4625_rev1_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4625 ___

[issue9404] IDLE won't launch on XP

2011-12-14 Thread Ned Deily
Ned Deily n...@acm.org 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

[issue13600] rot_13 codec not working

2011-12-14 Thread Ram Rachum
New submission from Ram Rachum r...@rachum.com: 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 pyshell#1, line 1, in module 'qwerty'.encode('rot_13') TypeError: encoder did not

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

2011-12-14 Thread maniram maniram
maniram maniram maniandra...@gmail.com 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

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

2011-12-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 rep...@bugs.python.org

[issue13600] rot_13 codec not working

2011-12-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: See #7475. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13600 ___

[issue13571] Backup files support in IDLE

2011-12-14 Thread maniram maniram
maniram maniram maniandra...@gmail.com 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

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

2011-12-14 Thread Laurent Mazuel
Changes by Laurent Mazuel laurent.maz...@gmail.com: -- nosy: +Laurent.Mazuel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13498 ___ ___

[issue13600] rot_13 codec not working

2011-12-14 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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

[issue13600] rot_13 codec not working

2011-12-14 Thread Ram Rachum
Ram Rachum r...@rachum.com 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` --

[issue13600] rot_13 codec not working

2011-12-14 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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 pe...@digip.org 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 sandro.t...@gmail.com: -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13359 ___ ___ Python-bugs-list

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

2011-12-14 Thread Martin Häcker
Martin Häcker spamfaen...@gmx.de added the comment: Indeed, I'm on version % python --version Python 2.7.1 Sorry. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13599

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

2011-12-14 Thread maniram maniram
maniram maniram maniandra...@gmail.com added the comment: Seems good. -- nosy: +maniram.maniram ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13359 ___

[issue8684] improvements to sched.py

2011-12-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue8684] improvements to sched.py

2011-12-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8684 ___

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

2011-12-14 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com 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

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

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

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

2011-12-14 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com 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. --

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

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2011-12-14 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: 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

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

2011-12-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13599 ___ ___

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

2011-12-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue1641] asyncore delayed calls feature

2011-12-14 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com 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' g.rod...@gmail.com: -- assignee: - giampaolo.rodola resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13449

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

2011-12-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +josiah.carlson, josiahcarlson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13449 ___

[issue13540] Document the Action API in argparse

2011-12-14 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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

[issue1641] asyncore delayed calls feature

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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' g.rod...@gmail.com 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:

[issue1641] asyncore delayed calls feature

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2011-12-14 Thread Guido van Rossum
Guido van Rossum gu...@python.org 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

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

2011-12-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I just tested Ned's updated patches against 3.3a0 and 2.7 and they work as advertised. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4625

[issue1757072] Zipfile robustness

2011-12-14 Thread James C. Ahlstrom
James C. Ahlstrom jahl...@gmail.com 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

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

2011-12-14 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - eric.smith nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13598 ___

[issue13571] Backup files support in IDLE

2011-12-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Would you want to collaborate on writing an extension to do this? Check out IdleX. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13571

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

2011-12-14 Thread Sophia K. Cheng
Sophia K. Cheng sophia.ch...@gmail.com 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

[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 mar...@v.loewis.de 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

[issue4028] Problem compiling the multiprocessing module on sunos5

2011-12-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue4028] Problem compiling the multiprocessing module on sunos5

2011-12-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Thanks Craig. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4028

[issue13453] Tests and network timeouts

2011-12-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[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 neolo...@free.fr 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

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

2011-12-14 Thread Geoffrey Bache
Geoffrey Bache gjb1...@users.sourceforge.net 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

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

2011-12-14 Thread Geoffrey Bache
Geoffrey Bache gjb1...@users.sourceforge.net 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:

[issue4832] idle filename extension

2011-12-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com 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

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

2011-12-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com 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

[issue13402] Document absoluteness of sys.executable

2011-12-14 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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:

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

2011-12-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12082 ___ ___

[issue13516] Gzip old log files in rotating handlers

2011-12-14 Thread Raul Morales
Raul Morales raul...@gmail.com 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

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

2011-12-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2011-12-14 Thread James Classen
New submission from James Classen jclas...@gmail.com: 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.

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

2011-12-14 Thread James Classen
James Classen jclas...@gmail.com 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 c...@dirtcircle.com 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

[issue13516] Gzip old log files in rotating handlers

2011-12-14 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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

[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 mar...@v.loewis.de 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 mar...@v.loewis.de 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

[issue7652] Merge C version of decimal into py3k.

2011-12-14 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file23959/be8a59fcba49.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___

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

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (I've opened issue13601 for the possible behaviour change) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13597 ___

[issue13593] importlib needs to be updated for __qualname__

2011-12-14 Thread Brett Cannon
Brett Cannon br...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue13593

[issue13588] Change name of internal closure functions in importlib

2011-12-14 Thread Brett Cannon
Brett Cannon br...@python.org 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

[issue13591] import_module potentially imports a module twice

2011-12-14 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Patch looks good to me. -- assignee: - meador.inge stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13591

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-14 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue13582

[issue13516] Gzip old log files in rotating handlers

2011-12-14 Thread Raul Morales
Raul Morales raul...@gmail.com 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 rep...@bugs.python.org

[issue13402] Document absoluteness of sys.executable

2011-12-14 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org 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 rep...@bugs.python.org

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

2011-12-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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':

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

2011-12-14 Thread Ned Deily
Ned Deily n...@acm.org 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 ma...@dcs.gla.ac.uk 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

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

2011-12-14 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue13551] pulldom doesn't populate DOM tree

2011-12-14 Thread Achim Gaedke
Achim Gaedke achim.gae...@physik.tu-darmstadt.de 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

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

2011-12-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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, '_'

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

2011-12-14 Thread maniram maniram
maniram maniram maniandra...@gmail.com 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

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

2011-12-14 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue13603] Add prime-related functions to Python

2011-12-14 Thread maniram maniram
New submission from maniram maniram maniandra...@gmail.com: 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)

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

2011-12-14 Thread maniram maniram
Changes by maniram maniram maniandra...@gmail.com: -- title: Add prime-related functions to Python - Add prime-related and number theory functions to Python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13603

[issue12923] test_urllib fails in refleak mode

2011-12-14 Thread Meador Inge
Meador Inge mead...@gmail.com 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:

[issue13571] Backup files support in IDLE

2011-12-14 Thread maniram maniram
maniram maniram maniandra...@gmail.com added the comment: I would be happy to help :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13571 ___

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

2011-12-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: -1 in general. I think that's too domain specific to belong in stdlib. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13603

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

2011-12-14 Thread Meador Inge
Meador Inge mead...@gmail.com 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 ___

[issue13604] update PEP 393 (match implementation)

2011-12-14 Thread Jim Jewett
New submission from Jim Jewett jimjjew...@gmail.com: 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

[issue13604] update PEP 393 (match implementation)

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

[issue13591] import_module potentially imports a module twice

2011-12-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue13591] import_module potentially imports a module twice

2011-12-14 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Thanks for the review Brett. Fix committed. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13591] import_module potentially imports a module twice

2011-12-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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':

[issue13593] importlib needs to be updated for __qualname__

2011-12-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue13593] importlib needs to be updated for __qualname__

2011-12-14 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Fix committed. Thanks for the review Antoine and Brett. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

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

2011-12-14 Thread maniram maniram
maniram maniram maniandra...@gmail.com added the comment: I think math.sin is also domain-specific. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13603 ___

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

2011-12-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org 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 rep...@bugs.python.org

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

2011-12-14 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: On Wed, Dec 14, 2011 at 10:58 PM, Benjamin Peterson rep...@bugs.python.org 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

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

2011-12-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/12/15 Meador Inge rep...@bugs.python.org: Not just *a* C math library.  *The* Standard C library! :-) Quite! -- ___ Python tracker rep...@bugs.python.org

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

2011-12-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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 rep...@bugs.python.org

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

2011-12-14 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: On Thu, Dec 1, 2011 at 2:11 AM, STINNER Victor rep...@bugs.python.org 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

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

2011-12-14 Thread maniram maniram
maniram maniram maniandra...@gmail.com added the comment: Anybody else than Benjamin and Meador please comment on this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13603 ___

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

2011-12-14 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue13402] Document absoluteness of sys.executable

2011-12-14 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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 rep...@bugs.python.org

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

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2011-12-14 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com 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 rep...@bugs.python.org

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

2011-12-14 Thread maniram maniram
maniram maniram maniandra...@gmail.com added the comment: On further thought, I have changed my mind. I think this is domain-specific. Shall we close this bug? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13603

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

2011-12-14 Thread maniram maniram
maniram maniram maniandra...@gmail.com added the comment: Why isn't anybody commiting or commenting on my patches? -- status: open - languishing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13598

  1   2   >