[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Incidentally, I was working on this yeserterday. Some minor changes were required in the patch as quote had undergone changes. Fixed and committed in revision 82940. Thanks to Matt Giuca for this. -- resolution: accepted -> fixed stage: patch revie

[issue8254] write a configure command

2010-07-17 Thread Jeremy Kloth
Jeremy Kloth added the comment: WRT #5, it would be possible to use section headers within the configure.cache file to indicate a particular "platform build". Very much like how 4Suite's `config` command stored the cache file. -- ___ Python tracke

[issue9290] IDLE and Command line present different behavior for sys.stdin

2010-07-17 Thread Geraldo Xexeo
New submission from Geraldo Xexeo : The fact that in IDLE sys.stdin is a idlelib.rpc.RPCProxy results in programs having different behavior in IDLE and in Command Line mode. I noticed that when grading many students exercises in IDLE. Things like: sys.stdin.readlines() just don´t exists in I

[issue9285] A decorator for cProfile and profile modules

2010-07-17 Thread geremy condra
Changes by geremy condra : -- nosy: +debatem1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9289] Skip test_long_key(test_winreg) on win2k + py2.x

2010-07-17 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : test_long_key fails on win2k + python2.x. == ERROR: test_long_key (__main__.LocalWinregTests) -- Traceback (most recent

[issue8253] add a resource+files section in setup.cfg

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: I’m working on the files section alongside the metadata section (#8252. I will wait for resources, since it’s much more controversial. I’ll clean up mkpkg (see #8591) before updating it to support the new sections. -- dependencies: +update mkpkg to lates

[issue1699259] replacing char* with const char* in sysmodule.c/.h

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: This is quite clearly marked as a feature request and hence is 3.2. If you wish to change it go ahead, but who's going to do the work? -- ___ Python tracker ___

[issue9269] Cannot pickle self-referencing sets

2010-07-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Upon further investigation, I am no longer convinced that "reduce cycles" are necessarily fatal to pickling. I am attaching a script testcycle.py that allows creating cycles using various containers. It takes the name of container class as an argument

[issue9026] argparse subcommands not printed in the same order they were added

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: In py3k.diff, the changes to argparse and new test cases look good to me. I don’t know why you’ve added hasattr tests in test_argparse.py. -- stage: unit test needed -> patch review title: [argparse] Subcommands not printed in the same order they were add

[issue7303] pkgutil lacks documentation for useful functions

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Wrong link, sorry everyone for the noise: http://docs.pythonsprints.com/core_development/beginners.html#building-the-documentation -- ___ Python tracker __

[issue7303] pkgutil lacks documentation for useful functions

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Other useful advice: http://docs.pythonsprints.com/core_development/beginners#building-the-documentation http://docs.python.org/documenting/ -- ___ Python tracker

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-07-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed issue5180b.diff with minor additions in r82937 (r82938 for 3.1): 1. Added an assert that args is a tuple in instantiate() with an explanation why it is true. 2. Added a test for the other code branch instantiate. (Not all conditions are tes

[issue7303] pkgutil lacks documentation for useful functions

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your help proposal Ulrik. If I understand the documentation correctly, docstrings should contain enough usage information but not too much. In pkgutil, some examples and long explanations could be removed after you move them to the reST doc. Make sur

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue9282] Bug in --listfuncs option of trace.py

2010-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking at the 2.x code, that is the obvious fix. I think this ready to commit. -- stage: -> commit review versions: -Python 3.3 ___ Python tracker __

[issue8538] Add ConfigureAction to argparse

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Some useful tips to make patches: http://www.python.org/dev/patches/ -- ___ Python tracker ___ ___ Pyth

[issue8357] Add a --show-installation-paths in the install command

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Assigning to myself. Not sure if I’ll do the logging idea Tarek suggested or an option to the configure command (#8252). -- assignee: tarek -> merwok stage: -> needs patch type: behavior -> feature request versions: +Python 2.5, Python 2.7, Python 3.2 _

[issue4819] Misc/cheatsheet needs updating

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: georg.brandl -> d...@python nosy: +d...@python versions: +Python 3.2 ___ Python tracker ___ ___ P

[issue2848] Remove mimetools usage from the stdlib

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Closing as outdated since 2.7 has been release with some mimetools usage left. -- resolution: -> out of date stage: -> committed/rejected status: open -> closed versions: +Python 2.7 -Python 2.6, Python 3.0 ___ Python

[issue6722] collections.namedtuple: confusing example

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8910] Write a text file explaining why Lib/test/data exists

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Adding people listed for the testing interest area in the maintainers file. -- nosy: +giampaolo.rodola, michael.foord, pitrou ___ Python tracker __

[issue9288] Disambiguate :option: and :cmdoption:

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file18047/disambiguate-option-cmdoption.diff ___ Python tracker ___ ___ Python-bugs

[issue9288] Disambiguate :option: and :cmdoption:

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file18046/improve-check.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9288] Disambiguate :option: and :cmdoption:

2010-07-17 Thread Éric Araujo
New submission from Éric Araujo : I made a doc patch in a followup to http://mail.python.org/pipermail/python-dev/2010-July/102011.html -- assignee: d...@python components: Documentation files: improve-check.diff keywords: needs review, patch messages: 110606 nosy: d...@python, merwok p

[issue8591] update mkpkg to latest coding standards

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: I’m assigning this bug to myself as part of my work on #8252. Dan, I’ll sort the various fixes in your patch and replay them incrementally. I’ll be pleased to work with you if you have time (find me in #distutils or through email), if you don’t thanks for the st

[issue8252] add a metadata section in setup.cfg

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +update mkpkg to latest coding standards ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1706039] Added clearerr() to clear EOF state

2010-07-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky resolution: -> accepted stage: patch review -> commit review ___ Python tracker ___ _

[issue1699259] replacing char* with const char* in sysmodule.c/.h

2010-07-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: 2.7 is not gone. It has entered an extended maintenance period. During this period, 2.7.x releases will incorporate bug fixes but will not get any new features. This particular issue is arguably a bug. I think Christian should make a call on whethe

[issue9079] Make gettimeofday available in time module

2010-07-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file18034/issue9079a.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue9079] Make gettimeofday available in time module

2010-07-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Indeed. Replacing issue9079a.diff now. -- Added file: http://bugs.python.org/file18045/issue9079a.diff ___ Python tracker ___ ___

[issue8254] write a configure command

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Tarek also answered my questions. 1) 4) build and install options should be defined and checked only once, in configure. build and install would inherit from this class and get their option from it. 3) I switched to using distutils2.core.run_setup, which Tarek

[issue8254] write a configure command

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Quick update: I have done a basic part of this, but Tarek explained to me the real usefulness of this command, i.e. provide build and installation options for third-party code (for the same purposes that get_config_var in Python’s sysconfig). I am currently work

[issue8252] add a metadata section in setup.cfg

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> merwok nosy: +titus ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue8253] add a resource+files section in setup.cfg

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> merwok nosy: +titus ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue9280] sharedinstall target doesn't depend on sharedmods target

2010-07-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: r82934 -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue1943] improved allocation of PyUnicode objects

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: @Antoine: do you wish to try and take this forward? -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue1818] Add named tuple reader to CSV module

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: I suggest that this is closed unless anyone shows an active interest in it. -- nosy: +BreamoreBoy status: open -> pending versions: +Python 3.2, Python 3.3 -Python 2.7, Python 3.1 ___ Python tracker

[issue1800] ctypes callback fails when called in Python with array argument

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: This is a very small patch against the ctypes __init__.py, could anyone with some ctypes experience please review the patch. -- nosy: +BreamoreBoy ___ Python tracker __

[issue1763] Winpath module - easy access to Windows directories like My Documents

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: @Christian: have you any interest in keeping this open or can it be closed, gien that the last comment was 2 1/2 years ago? -- nosy: +BreamoreBoy ___ Python tracker ___

[issue1568] PATCH: Armin's attribute lookup caching for 3.0

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: As the patch provides some performance increase which has already been proven to work in 2.6, could we get this into 3.2? I say this because I understand that performance was degraded in py3k, could this be one of the reasons why? -- nosy: +BreamoreBo

[issue1554] socketmodule cleanups: allow the use of keywords in socket functions

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: Could someone please review these patches as they stand. Will any rework of the patches be needed to get them into 3.2? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker

[issue1552] fromfd() and socketpair() should return wrapped sockets

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: The attached patch files are small and look ok to me. Could someone with socket experience please give a yes or no. -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-07-17 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: The args argument is always a tuple created with Pdata_poptuple(). You can add an explicit type check. If this check fails a RuntimeError should be raised, because this would indicate a programming error in pickle. -- __

[issue1343] XMLGenerator: nice elements

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: I believe 3.2 is still open for new features. -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 3.3 ___ Python tracker ___

[issue1200] Allow array.array to be parsed by the t# format unit.

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: OP has stated it's ok to close. -- nosy: +BreamoreBoy resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue1777134] minidom pretty xml output improvement

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: Looking at the comments here msg104801 seems like more work needs to be done on the patch. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: Just a prod in case it has gone under the radar. -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7 ___ Python tracker ___ __

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: I've run an eye over this and don't see any problems, particularly in the light of msg101043. Only 2.7 is affected as the fix has been backported from py3k. Please can we go forward with this. -- nosy: +BreamoreBoy versions: -Python 2.6 ___

[issue1706039] Added clearerr() to clear EOF state

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: The patch adds one line and moves one line in fileobject.c. The rest of the patch is new tests. I've successfully applied the patch on Windows and the tests were fine. Can someone kindly repeat the tests on OS X as this is where the problem was originally r

[issue9036] Simplify Py_CHARMASK

2010-07-17 Thread Stefan Krah
Stefan Krah added the comment: [Marc-Andre] > Why not just make the casts in those cases explicit instead of > using Py_CHARMASK ? I agree that this would be the cleanest solution. It's harder to get someone to review a larger patch though. Antoine, I understood that you would prefer to leave

[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread R. David Murray
R. David Murray added the comment: Oh, right, I remember that now. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue9079] Make gettimeofday available in time module

2010-07-17 Thread Reid Kleckner
Reid Kleckner added the comment: I think you forgot to svn add pytime.c before making the diff. -- ___ Python tracker ___ ___ Python-b

[issue1704134] minidom Level 1 DOM compliance

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: Changed type to behaviour as I see many references to bugs, hence the changes to versions. This is a massive patch and will be a substancial amount of work if anyone wishes to take it on. -- nosy: +BreamoreBoy type: feature request -> behavior version

[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Because doctest also monkeypatches linecache, and without monkeypatching linecache this also fails in 2.6. -- ___ Python tracker ___ _

[issue6952] deprecated conversion from string constant to char *

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: Drop 2.7 as it's gone. See also #1699259. -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker ___ __

[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread R. David Murray
R. David Murray added the comment: I don't understand why monkey patching linecache produces a valid test case. Can you explain? Since I believe the same code/bugfix is in 3.x, I'm adding those versions. -- stage: needs patch -> unit test needed versions: +Python 3.1, Python 3.2 ___

[issue1699259] replacing char* with const char* in sysmodule.c/.h

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: Drop 2.7 as that's now gone. See also #6952. -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker ___

[issue1694663] Overloading int.__pow__ does not work

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: Could someone please review this patch to typeobject.c. -- components: +Extension Modules -None nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker

[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah
Changes by Stefan Krah : Removed file: http://bugs.python.org/file18041/bp_bool.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah
Stefan Krah added the comment: 'sizeof y' is obviously wrong now in the memcpy. Next attempt. -- Added file: http://bugs.python.org/file18043/bp_bool2.patch ___ Python tracker __

[issue1682942] ConfigParser support for alt delimiters

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: Could the patch be reworked for 3.2? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7 ___ Python tracker ___ __

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2010-07-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It seems that this has been fixed in the py3k branch (r78942). Now both bytes and unicode are accepted. Can someone check? -- nosy: +amaury.forgeotdarc stage: -> needs patch ___ Python tracker

[issue5673] Add timeout option to subprocess.Popen

2010-07-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue5673] Add timeout option to subprocess.Popen

2010-07-17 Thread Reid Kleckner
Reid Kleckner added the comment: I don't imagine this is going into 2.7.>0 at this point, so I ported the patch to py3k. I also added support to check_output for the timeout parameter and added docs for all of the methods/functions that now take a timeout in the module. The communicate docs

[issue9012] Separate compilation of time and datetime modules

2010-07-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: committed/rejected -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9012] Separate compilation of time and datetime modules

2010-07-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am merging in the nosy list from issue9079 after we had a lengthy discussion there and on IRC about the best way to share code between stdlib extension modules. For the issue9079, we decided to bring the shared code into python core, but this cannot

[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah
Changes by Stefan Krah : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue9277] test_struct failure on ARM

2010-07-17 Thread Stefan Krah
Stefan Krah added the comment: The usage of char in bp_bool will not work if char is unsigned. Hopefully that is the cause. -- keywords: +patch nosy: +skrah Added file: http://bugs.python.org/file18041/bp_bool.patch ___ Python tracker

[issue1681842] splitext of dotfiles, incl backwards compat and migration

2010-07-17 Thread Michael Foord
Michael Foord added the comment: On Python 2.6.5: >>> os.path.splitext('.cshrc') ('.cshrc', '') I believe this can be closed. -- resolution: -> out of date status: open -> closed ___ Python tracker __

[issue9268] Add annotation option to pickletools.dis

2010-07-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: unit test needed -> committed/rejected status: open -> closed ___ Python tracker ___

[issue1681842] splitext of dotfiles, incl backwards compat and migration

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: Add Michael Foord to nosy list as he raised #1462106 which refers to #1115886 where msg24154 states "fixed this in r54204". Can this be closed? -- nosy: +BreamoreBoy, michael.foord versions: +Python 3.2 -Python 2.7, Python 3.1

[issue9268] Add annotation option to pickletools.dis

2010-07-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r82931 with small changes based on comments here and on IRC: 1. Annotations are separated from disassembly by spaces without '|'. 2. Made a small improvement to the annotation alignment algorithm. Excessively long lines do not force the res

[issue1681333] email.header unicode fix

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: Applied the patches to the test files for 2.6.5 without patching header.py and got one failure. FAIL: test_i18nheader_unicode (email.test.test_email.TestRFC2047) I also expected a failure from the equivalent test for test_email_renamed, can someone please adv

[issue1672568] silent error in email.message.Message.get_payload

2010-07-17 Thread Mark Lawrence
Mark Lawrence added the comment: I've patched py3k test_email.py without patching message.py and the test passes on Windows Vista. Either the patch is wrong, I've had finger problems or I'm misunderstanding the intent, can someone please advise. -- __

[issue963906] Unicode email address helper

2010-07-17 Thread R. David Murray
R. David Murray added the comment: I'm assigning this to myself so I don't lose it. I'll need to incorporate the intent of the tests and logic into email6. And yes I set 3.3 on purpose...email6 won't be in 3.2 and I don't want to spend the cycles figuring out whether this would work in emai

[issue9287] Cosmetic fix in OtherFileTests.testOpenDir

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. I have had exceptions in distutils2 tests because of this exact same thing; my fix was to use “os.path.dirname(__file__) or os.curdir”. I’ll change that if people more knowledgeable than me say your fix is better :) -- nosy: +merw

[issue9287] Cosmetic fix in OtherFileTests.testOpenDir

2010-07-17 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Hello. In OtherFileTests.testOpenDir(test_file), if we run this test in Lib/test, __file__ becomes "test_file.py", so os.path.dirname(__file__) becomes "". I think it is better to use os.path.abspath to get valid folder path for test purpose. # This test

[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Copied my inquiry and part of your reply in #9286. -- stage: -> committed/rejected ___ Python tracker ___ _

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-07-17 Thread Éric Araujo
New submission from Éric Araujo : This behavior does not seem right to me: parsing 'merwok' expected ('merwok', '') got ('', 'merwok') parsing 'merwok w...@rusty' expected ('', 'w...@rusty') got ('', 'merwok...@rusty') (Generated with a small script just doing a loop and prints,

[issue9283] buggy repr for os.environ

2010-07-17 Thread R. David Murray
R. David Murray added the comment: Ezio, it looks like your test for issue 7310 uses exactly the same algorithm as the code itself does, and thus did not detect this breakage. -- nosy: +ezio.melotti, r.david.murray ___ Python tracker

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-07-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Alexandre, I am not sure your change form PyObject_Size(args) to Py_SIZE(args) is correct. As far as I can tell, args come from pickle machine stack without any type checks. The equivalent code in 2.x cPickle uses PyObject_Size and checks for errors.

[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Thank you for the reply. The problem is that parseaddr is designed to not fail IIUC, that’s why it may return empty strings. Client code has to check for these values instead of catching an exception—a mere style issue, weren’t it for the second bug. So I’m goin

[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Here's a test case that doesn't require doctest trickery: import inspect, linecache fn, source = '', 'def x(): pass\n' getlines = linecache.getlines def monkey(filename, module_globals=None): if filename == fn: return source.splitlines(True)

[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Mark Sapiro
Mark Sapiro added the comment: > parsing 'merwok' > expected ('merwok', '') > got ('', 'merwok') I think ('', 'merwok') is the correct result. I think most if not all MUAs/MTAs will interpret an address without an '@', albeit invalid, as a local-part in the local domain, thus parsing

[issue9285] A decorator for cProfile and profile modules

2010-07-17 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : A patch including tests is in attachment. Example usage: >>> from cProfile import profile >>> >>> @profile ... def factorial(n): ... n = abs(int(n)) ... if n < 1: ... n = 1 ... x = 1 ... for i in range(1, n+1): ...

[issue1659410] Minor AST tweaks

2010-07-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm going to close this because these are mostly incompatible changes that are too late. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker

[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: After chatting with Dirkjan, I misunderstood the impact of the patch. It only occurs when inspect.getsource() is called from a doctest, which isn't a very common situation. -- priority: critical -> normal ___ Pytho

[issue1533105] NetBSD build with --with-pydebug causes SIGSEGV

2010-07-17 Thread Stefan Krah
Stefan Krah added the comment: Matt, if you still follow this: Does this problem exist in 2.6/2.7/NetBSD? I think this should be set to pending. -- nosy: +skrah ___ Python tracker __

[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: normal -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9284] inspect.findsource() cannot find source for doctest code

2010-07-17 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman : The fix for issue4050 broke some of my doctests. Minimal test: import doctest, inspect def test(): ''' >>> def x(): pass >>> inspect.getsource(x) 'def x(): pass\\n' ''' doctest.run_docstring_examples(test, globals()) This works in 2.6, b

[issue7384] curses crash on FreeBSD

2010-07-17 Thread Stefan Krah
Stefan Krah added the comment: ldd return value check committed in r82927, r82928, r82929 and r82930. Thanks for reporting this! -- status: open -> closed ___ Python tracker __

[issue9282] Bug in --listfuncs option of trace.py

2010-07-17 Thread Eli Bendersky
Eli Bendersky added the comment: The fix is simple one-liner, so here's a patch. -- keywords: +patch Added file: http://bugs.python.org/file18038/issue9282.1.patch ___ Python tracker ___

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1409460] email.Utils.parseaddr() gives arcane result

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: I wonder if this bug should be reopened. This behavior does not seem right to me: parsing 'merwok' expected ('merwok', '') got ('', 'merwok') parsing 'merwok w...@rusty' expected ('', 'w...@rusty') got ('', 'merwok...@rusty') (Generated with a twe

[issue9283] buggy repr for os.environ

2010-07-17 Thread Antoine Pitrou
New submission from Antoine Pitrou : os.environ has the same repr as os.environb, that is, it looks as though it's a mapping of bytes to bytes, while it's a mapping of str to str. >>> repr(os.environ)[:50] "environ({b'TMP': b'/tmp/', b'XAUTHORITY': b'/var/r" >>> repr(os.environb)[:50] "environ(

[issue1685453] email package should work better with unicode

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +l0nwlf, merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-17 Thread Ned Deily
Ned Deily added the comment: @Sarth: Odd, works for me. Using the standard GUI installer on a 64-bit-capable machine running 10.6.4, I first installed the "10.5" 2.7 metapackage and verified that both IDLE.app and /usr/local/bin/idle2.7 fail. Then, even without manually deleting anything, I

[issue963906] Unicode email address helper

2010-07-17 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2010-07-17 Thread Kevin Dwyer
Changes by Kevin Dwyer : -- nosy: +kevindication ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

  1   2   >