[issue30477] tuple.index error message improvement

2017-05-25 Thread Joe Jevnik
Joe Jevnik added the comment: As a more meta question: I have noticed that many error messages in the stdlib use PyErr_SetString, or choose to use the type name instead of the repr of the object. Is there a reason for this? I normally try to fill the error message with as much context as

[issue13349] Non-informative error message in index() and remove() functions

2017-05-27 Thread Joe Jevnik
Changes by Joe Jevnik : -- pull_requests: +1919 ___ Python tracker <http://bugs.python.org/issue13349> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36760] subprocess.run fails with capture_output=True and stderr=STDOUT

2019-04-30 Thread Joe Borg
New submission from Joe Borg : Reading from https://docs.python.org/3/library/subprocess.html#subprocess.CompletedProcess """ If you ran the process with stderr=subprocess.STDOUT, stdout and stderr will be combined in this attribute, and stderr will be None. """

[issue31557] tarfile: incorrectly treats regular file as directory

2017-10-03 Thread Joe Tsai
Joe Tsai added the comment: This bug is not platform specific. I've attached a reproduction: $ python >>> import tarfile >>> tarfile.open("test.tar", "r").next().isdir() True $ tar -tvf test.tar -rw-rw-r-- 0/0 0 1969-12-31 16:00 123456

[issue31557] tarfile: incorrectly treats regular file as directory

2017-10-04 Thread Joe Tsai
Joe Tsai added the comment: It creates a number of nested directories only because GNU (and BSD) tar implicitly create missing parent directories. If you cd into the bottom-most folder, you will see "foo.txt". -- ___ Python track

[issue31951] import curses is broken on windows

2017-11-05 Thread joe m
New submission from joe m : Importing curses on Windows install calls the following: Traceback (most recent call last): File "", line 1, in File "C:\Users\user name\AppData\Local\Programs\Python\Python36-32\lib\curses\__init__.py", line 13, in

[issue31951] import curses is broken on windows

2017-11-07 Thread joe m
joe m added the comment: I would much prefer the curses module to be supported in newer versions since I believe that curses is installed as a built in module (not sure about that). Anyhow, thank you for your help but I have found a replacement module called "asciimatics" which

[issue23926] skipitem() in getargs.c still supports 'w' and 'w#', and shouldn't

2018-07-09 Thread Joe Jevnik
Change by Joe Jevnik : -- pull_requests: +7754 ___ Python tracker <https://bugs.python.org/issue23926> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34078] Broken CRL functionality in ssl.py

2018-07-09 Thread Joe N
New submission from Joe N : CRLs in ssl.py or at the documentation is broken. Specifically I think the documentation here is wrong: https://docs.python.org/3/library/ssl.html#ssl.SSLContext.load_verify_locations Here is a stackoverflow post: https://stackoverflow.com/questions/51196492/how

[issue23927] getargs.c skipitem() doesn't skip 'w*'

2018-07-23 Thread Joe Jevnik
Change by Joe Jevnik : -- pull_requests: +7946 ___ Python tracker <https://bugs.python.org/issue23927> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32557] allow shutil.disk_usage to take a file path on Windows also

2018-09-17 Thread Joe Pamer
Joe Pamer added the comment: Hi! I decided to try fixing this one as a way to get acquainted with the code base. I went ahead and updated the backing NT C function, but please let me know if you'd prefer I update disk_usage as proposed. Thanks! -- nosy: +jo

[issue32557] allow shutil.disk_usage to take a file path on Windows also

2018-09-18 Thread Joe Pamer
Joe Pamer added the comment: Got it - thanks! That sounds good to me, so I'll take a look at how other functions are working around MAX_PATH and update the diff to also avoid the copy when possible. -- ___ Python tracker <https://bugs.py

[issue32557] allow shutil.disk_usage to take a file path on Windows also

2018-09-19 Thread Joe Pamer
Joe Pamer added the comment: Just to loop back, I updated the PR to avoid MAX_PATH and only allocate in the "not a directory" case. Thanks for getting back to me so quickly! One question, though, is that it *does* seem like MAX_PATH is still referenced in several places in pos

[issue32557] allow shutil.disk_usage to take a file path on Windows also

2018-09-20 Thread Joe Pamer
Joe Pamer added the comment: Awesome - thanks, Steve - this is all super helpful! If you're cool with it I'd like to stick to using _dirnameW for now, and then follow up with another set of PRs for the fixes you've recommended. -- ___

[issue34944] Update _dirnameW to accept long path names

2018-10-09 Thread Joe Pamer
New submission from Joe Pamer : The fix for issue 32557 updated os__getdiskusage_impl to use _dirnameW for obtaining the parent directory of a file. This would cause a regression if the path exceeded 260 characters, since _dirnameW currently returns -1 if given a path >= MAX_PATH in len

[issue34944] Update _dirnameW to accept long path names

2018-10-09 Thread Joe Pamer
Change by Joe Pamer : -- keywords: +patch pull_requests: +9157 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34944> ___ ___ Python-

[issue18789] XML Vunerability Table Unclear

2013-08-20 Thread Joe Tennies
New submission from Joe Tennies: EASY This is an issue with the 2.x and 3.x documentation. http://docs.python.org/3.2/library/xml.html#xml-vulnerabilities http://docs.python.org/dev/library/xml.html#xml-vulnerabilities http://docs.python.org/2/library/xml.html#xml-vulnerabilities This section

[issue4705] python3.0 -u: unbuffered stdout

2013-08-26 Thread Joe Borg
Joe Borg added the comment: Can I confirm this is still in the trunk? I have 3.3.2 and am suffering from the fact that `-u` isn't setting stdin to unbuffered. I'm have to run a flush every command, which is awful. -- nosy: +Joe.Borg, georg.brandl versions: +Python 3.2,

[issue18868] Python3 unbuffered stdin

2013-08-28 Thread Joe Borg
New submission from Joe Borg: I'm in need of an unbuffered stdin for Python3. Using the '-u' flag worked fine in Python2. But, it seems, Python3's stdin is always buffered; as seen in http://bugs.python.org/issue4705. This is not always desirable. For example: #!/b

[issue18868] Python3 unbuffered stdin

2013-08-28 Thread Joe Borg
Changes by Joe Borg : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue18868> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-18 Thread Joe Peterson
Joe Peterson added the comment: It's been over a year since any activity on this bug, and it is still in the "patch review" stage. Any news? Anything else I can provide to help to get this moved to the next stage? Thanks! -- ___

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-18 Thread Joe Peterson
Joe Peterson added the comment: Ah. I figured that one of the Python devs would be who would review it. Is this the normal path for bugs? Not to question the process, but I find it surprising, since I would think that it would cause a lot of bugs to stall out. Also, I had no idea it was

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-18 Thread Joe Peterson
Joe Peterson added the comment: Thanks!! :) -- ___ Python tracker <http://bugs.python.org/issue10941> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-18 Thread Joe Peterson
Joe Peterson added the comment: David, I understand - thanks for the details. Hopefully I can return the favor and review one in the future. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-19 Thread Joe Peterson
Joe Peterson added the comment: OK, fixed patch to apply cleanly to current code. BTW, this is only for python3. Is it still appropriate to patch python2? And if so, what is the correct code repo to check out for that? -- versions: +Python 3.4 Added file: http://bugs.python.org

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-20 Thread Joe Peterson
Joe Peterson added the comment: I have now included a patch for 2.7. Here are the two latest patches: Python 2: issue10941_python2.diff Python 3: issue10941_python3.diff -- Added file: http://bugs.python.org/file25297/issue10941_python2.diff

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-23 Thread Joe Peterson
Joe Peterson added the comment: The one you tried is the old patch. Here are the two new patches. Use these: Python 2: issue10941_python2.diff Python 3: issue10941_python3.diff -- ___ Python tracker <http://bugs.python.org/issue10

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-24 Thread Joe Peterson
Joe Peterson added the comment: Great to hear, Alexander. Thanks for reviewing! Is it also possible to get the pyhton2.7 version one in? -- ___ Python tracker <http://bugs.python.org/issue10

[issue14457] Unattended Install doesn't populate registry

2012-05-10 Thread Joe Eaves
Joe Eaves added the comment: There is an old bug report against 2.5 which dealt with a very similar problem, maybe the answers are the same? http://bugs.python.org/issue4567 Basically the location in the registry has changed from HKLM to HKCU. Here is the last message in the thread directly

[issue4913] wave.py: add writesamples() and readsamples()

2014-04-22 Thread Joe Button
Joe Button added the comment: Forgive my unfamiliarity with python's development process, but, what is happening with this? Is there any chance of this enhancement making it into the python libs? What would need to happen? Thanks. -- nosy: +J

[issue4913] wave.py: add writesamples() and readsamples()

2014-04-22 Thread Joe Button
Joe Button added the comment: On quickly looking at this, the immediate issue seems to me to be that there is no patch, as I understand the term. If it would be helpful I can look at turning the code in the attached files into a patch against default and ensure the tests pass (but not right

[issue21481] Argpase Namespace object methods __eq__ and __ne__ raise TypeError when comparing to None

2014-05-12 Thread Joe Borg
New submission from Joe Borg: See example: >>> import argparse >>> a = argparse.ArgumentParser() >>> b = a.parse_args([]) >>> if b != None: ... print "hey" File "", line 2 print "hey" ^ SyntaxError: i

[issue21482] get_versions() in cygwinccomiler.py cannot return correct gcc version

2014-05-12 Thread Joe Chan
New submission from Joe Chan: cannot return correct gcc version if the path name contains "space". Suggest to change to: $ diff -rupN cygwinccompiler.py.original cygwinccompiler.py --- cygwinccompiler.py.original 2014-05-12 23:54:01.296303800 +0800 +++ cygwinccompiler.py 2014-0

[issue21481] Argpase Namespace object methods __eq__ and __ne__ raise TypeError when comparing to None

2014-05-12 Thread Joe Borg
Joe Borg added the comment: I believe this comes from doing vars(None). But why would this be happening if Namespace is empty. -- ___ Python tracker <http://bugs.python.org/issue21

[issue21482] get_versions() in cygwinccomiler.py cannot return correct gcc version

2014-05-12 Thread Joe Chan
Joe Chan added the comment: better to parenthesis all three exes[gcc, ld and dllwrap] with "%s" to better support path names that contain non-alphanumeric characters. $ diff -rupN cygwinccompiler.py.original cygwinccompiler.py --- cygwinccompiler.py.original 2014-05-12 23:54:01.29630

[issue21482] get_versions() in cygwinccomiler.py cannot return correct gcc version

2014-05-12 Thread Joe Chan
Joe Chan added the comment: To prevent system crashes, I have to exclude msvc runtime library $ diff -rupN cygwinccompiler.py.original cygwinccompiler.py --- cygwinccompiler.py.original 2014-05-12 23:54:01.296303800 +0800 +++ cygwinccompiler.py 2014-05-13 02:59:37.870414900 +0800 @@ -341,7

[issue16767] Cannot install Python 2.7 in Wine 1.4.1

2012-12-24 Thread Joe Borg
New submission from Joe Borg: Trying to install Python 2.7 (in particular) under Wine 1.4.1, but keep getting the "Installer has ended prematurely" error. I've also tried with 2.6 and 3.2 and different versions of wine; same error. Also tried with winetricks; again, same er

[issue21887] Python3 can't detect Tcl

2014-06-30 Thread Joe Borg
New submission from Joe Borg: Trying to configure 3.4.1 on Cent OS 6.4. I have built Tcl and Tk, using the prefix /scratch/root. I can confirm the builds with: $ find /scratch/root/ -name "tcl.h" /scratch/root/include/tcl.h $ find /scratch/root/ -name "tk.h" /scratch/ro

[issue21887] Python3 can't detect Tcl/Tk 8.6.1

2014-06-30 Thread Joe Borg
Changes by Joe Borg : -- title: Python3 can't detect Tcl -> Python3 can't detect Tcl/Tk 8.6.1 ___ Python tracker <http://bugs.python.org/issue21887> ___

[issue22105] Hang during File "Save As"

2014-07-29 Thread Joe Gaspard
New submission from Joe Gaspard: Python 3.4.1 hang while trying to save a file on 29 July 2014 5Pm. The computer was a "DIY" i7/WIN7-64 bit/INTEL DZ87KLT-75 Motherboard (w/ Intel i7-4770-K 3.5 GHz processor). IDLE was operating on "G:\python.exe 3.4.1 (v3.4.1:c0e311e010fc,

[issue22105] Idle: Hang during File "Save As"

2014-08-03 Thread Joe Gaspard
Joe Gaspard added the comment: Thanks Terry. As best I can recall was trying to save a ".py" while IDLE and the "'.py" file were both open, but definitely not a 'Library' file. I did try to save the IDLE window display once, and it may have been thi

[issue22105] Idle: Hang during File "Save As"

2014-08-04 Thread Joe Gaspard
Joe Gaspard added the comment: Today the "memory" problem repeated, and I was ale to get more info: While displaying results of program execution in IDLE, two "memory problem" pop-ups were displayed. Selecting " recovery activate" buttons did not help. The lo

[issue6583] 2to3 fails to fix test.test_support

2009-07-26 Thread Joe Amenta
New submission from Joe Amenta : PEP 3108 states that test.test_support was renamed to test.support as a part of the Standard Library Reorganization process. However... 2to3 does not refactor (or even warn about) test.test_support. Simply adding "test.test_support": "test.sup

[issue6711] macurl2path has typos that raise AttributeError

2009-08-15 Thread Joe Amenta
New submission from Joe Amenta : In a few spots, "urllib.parse" misses a "." after the package name. e.g., "urllib.parse.quote" is spelled "urllib.parsequote", which generates an AttributeError when run. To reproduce, open up a python3.x interpre

[issue5705] os.getpwent returns unsigned 32bit value, os.setuid refuses it

2009-09-02 Thread Joe Amenta
Changes by Joe Amenta : -- nosy: +joe.amenta ___ Python tracker <http://bugs.python.org/issue5705> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3563] fix_idioms.py generates bad code

2009-10-06 Thread Joe Amenta
Joe Amenta added the comment: Attached a patch that implements more thoroughly what appears to be the intended behavior. -- nosy: +joe.amenta Added file: http://bugs.python.org/file15061/fix_idioms.patch ___ Python tracker <http://bugs.python.

[issue3563] fix_idioms.py generates bad code

2009-10-06 Thread Joe Amenta
Changes by Joe Amenta : Removed file: http://bugs.python.org/file15061/fix_idioms.patch ___ Python tracker <http://bugs.python.org/issue3563> ___ ___ Python-bugs-list m

[issue3563] fix_idioms.py generates bad code

2009-10-06 Thread Joe Amenta
Joe Amenta added the comment: Missed a paren in the last one... re-uploading it. -- Added file: http://bugs.python.org/file15062/fix_idioms.patch ___ Python tracker <http://bugs.python.org/issue3

[issue7162] 2to3 does not convert __builtins__.file

2009-10-17 Thread Joe Amenta
New submission from Joe Amenta : Step to reproduce: $ echo 'file("/some/file")' | python `which 2to3` - (replace python with whichever python executable version you wish to use, e.g. ~/python-trunk/python or /usr/local/bin/python3.2 ) Expected result: Anything referring

[issue7162] 2to3 does not convert __builtins__.file

2009-10-17 Thread Joe Amenta
Changes by Joe Amenta : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue7162> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7006] The replacement suggested for callable(x) in py3k is not equivalent

2009-12-24 Thread Joe Amenta
Joe Amenta added the comment: One such weird corner case: from collections import Callable class Spam(object): def __call__(self): return self can_of_spam = Spam() print callable(can_of_spam) == isinstance(can_of_spam, Callable) # True del Spam.__call__ can_of_spam.__call__ = lambda

[issue7006] The replacement suggested for callable(x) in py3k is not equivalent

2009-12-25 Thread Joe Amenta
Joe Amenta added the comment: I believe that this patch works like you described... Attached a patch with more test cases to show this. (the [1:] parts are to make the test cases readable; they will still pass if all the leading newlines are removed from the triple-quoted strings and all [1

[issue7006] The replacement suggested for callable(x) in py3k is not equivalent

2009-12-25 Thread Joe Amenta
Joe Amenta added the comment: To elaborate on my last comment: - touch_import looks for the required import binding in any scope, and it will add a global import if not found, otherwise it leaves it alone - the import added does not have a newline prefix, so if the newlines were left in

[issue644744] bdist_rpm fails when installing man pages

2010-01-08 Thread Joe Julian
Changes by Joe Julian : -- nosy: +jjulian ___ Python tracker <http://bugs.python.org/issue644744> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue767645] incorrect os.path.supports_unicode_filenames

2010-01-12 Thread Joe Amenta
Joe Amenta added the comment: If it is decided to keep supports_unicode_filenames, here is a patch for test_os.py that verifies the value of supports_unicode_filenames against the following line from the documentation: "True if arbitrary Unicode strings can be used as file names (w

[issue4111] Add DTrace probes

2009-02-19 Thread Joe Ranieri
Changes by Joe Ranieri : -- nosy: +sirg3 ___ Python tracker <http://bugs.python.org/issue4111> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6050] zipfile: Extracting a directory that already exists generates an OSError

2009-05-17 Thread Joe Amenta
New submission from Joe Amenta : zipfile.ZipFile.extract() fails if targetpath is a directory that already exists. Bug revealed itself on Ubuntu, using extractall(). Happened on the latest 3.1 and 2.7. Attached a patch that I think will fix this issue. -- components: Library (Lib

[issue6070] Pyhon 2.6 makes .pyc/.pyo bytecode files executable

2009-05-22 Thread Joe Amenta
Joe Amenta added the comment: Python writes compiled files with the same file permissions as the source module. In your specific example: $ python2.6 -c 'import module' This will produce module.pyc with the same attributes as module.py While I am not familiar with modifying C st

[issue6174] What's new in 2.6, wrong indentation in code sample

2009-06-01 Thread Joe Amenta
New submission from Joe Amenta : In the final example in the multiprocessing package on http://docs.python.org/3.0/whatsnew/2.6.html#pep-371-the-multiprocessing-package a part of the code is not properly indented. There should be one more level of indentation starting at "#Mark pool as c

[issue6185] 2to3 misses buffer slicing

2009-06-02 Thread Joe Amenta
New submission from Joe Amenta : Found this bug while writing the backwards version of this fix for 3to2... there is no test for it, so it went undetected. The PATTERN does not match a buffer() invocation if there is a token after the rparen, i.e. slicing. -- components: 2to3 (2.x to

[issue6185] 2to3 misses buffer slicing

2009-06-02 Thread Joe Amenta
Joe Amenta added the comment: Patch that will fix the problem (and make the test pass) -- Added file: http://bugs.python.org/file14165/bufferfix.patch ___ Python tracker <http://bugs.python.org/issue6

[issue3290] python-config --cflags includes irrelevant flags

2010-07-12 Thread Joe Neeman
Joe Neeman added the comment: It's still an issue in Python 2.6.5 as packaged by openSUSE 11.2. -- nosy: +Joe.Neeman ___ Python tracker <http://bugs.python.org/i

[issue9541] node.pre_order() does not do preorder traversal

2010-08-07 Thread Joe Amenta
New submission from Joe Amenta : In Lib/lib2to3/pytree.py, Node.pre_order() calls the post_order() method of its children, instead of pre_order(). As a result, the only difference between the two orderings is that pre_order() yields the original node first, whereas post_order() yields the

[issue9541] node.pre_order() does not do preorder traversal

2010-08-07 Thread Joe Amenta
Joe Amenta added the comment: Fixed in r83811. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue9541> ___ ___ Python-bugs-list mai

[issue29096] Signal Handlers reliably cause UnboundLocalErrors

2016-12-28 Thread Joe Jevnik
Joe Jevnik added the comment: The issue appears to be in ceval.c:unicode_concatenate (or the py2 equivalent) The code sets the local variable on the lhs to NULL before doing a potentially inplace append to the string. This means that if a signal is raised during the concat, we never hit the

[issue29468] zipfile should catch ValueError as well as OSError to detect bad seek calls

2017-02-06 Thread Joe Jevnik
New submission from Joe Jevnik: In zipfile.py only OSError is checked to see if seek fails: ``` def _EndRecData64(fpin, offset, endrec): """ Read the ZIP64 end-of-archive records and use that to update endrec """ try: fpin.seek(offse

[issue27241] Catch exceptions raised in pstats add (repl)

2016-06-06 Thread Joe Jevnik
New submission from Joe Jevnik: I was trying to add a file and accidently mistyped the name which crashed the repl session. I think it would be nicer to report the failure but bring me back to the prompt so I can decide what I would like to do. This patch catches any IOErrors that can be

[issue27359] OrderedDict pseudo-literals (WIP)

2016-06-20 Thread Joe Jevnik
New submission from Joe Jevnik: This proposes the following syntax for creating OrderedDict literals: OrderedDict[k1: v1, k2: v2, ...] This is implemented by putting a metaclass on OrderedDict which has a getitem that turns the slices into a list of tuples (after validation). The idea is

[issue27359] OrderedDict pseudo-literals (WIP)

2016-06-20 Thread Joe Jevnik
Joe Jevnik added the comment: Assuming all dicts are ordered, there will be no need for this (as long as the parser preserves order) so I am okay with dropping this. One of the main use cases I have for wanting nice literals is when I am working on tests. I find it very nice to be able to

[issue27359] OrderedDict pseudo-literals (WIP)

2016-06-20 Thread Joe Jevnik
Joe Jevnik added the comment: Sorry about undoing the settings, that was unintentional. The UI around these settings is sort of unintuitive. I was waiting to propose this on python-dev until I got it working, but I wanted to push up what I did have as a work in progress so I could try to get

[issue27241] Catch exceptions raised in pstats add (repl)

2016-08-02 Thread Joe Jevnik
Joe Jevnik added the comment: bump -- ___ Python tracker <http://bugs.python.org/issue27241> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue17321] Better way to pass objects between imp.find_module() and imp.load_module()

2013-02-28 Thread Joe Borg
New submission from Joe Borg: If I want to use imp to find some load modules, I have to do it in quite an "unpythonic" way: >>> name = "os" >>> file, pathname, description = imp.find_module(name) >>> imp.load_module(name, file, pathname, descript

[issue17321] Better way to pass objects between imp.find_module() and imp.load_module()

2013-02-28 Thread Joe Borg
Joe Borg added the comment: Thanks for the swift feedback guys, if this is deprecated (i.e. not being carried to Python 3) then close the bug; I'll look at `importlib` and see if it carries the same problem. -- type: behavior -> ___ Python

[issue17321] Better way to pass objects between imp.find_module() and imp.load_module()

2013-02-28 Thread Joe Borg
Joe Borg added the comment: Hi Brett, I missed the fact that it's deprecated as it's not mentioned in the 2.* docs http://docs.python.org/2/library/imp.html. I can see it is in the 3.*. Thanks for the feedback. -- ___ Python trac

[issue17344] checking size of size_t... configure: error:

2013-03-21 Thread Joe Hsiao
Joe Hsiao added the comment: I was brought here by google searching for the same issue. My system is MAC OSX 10.6.8 with gcc version 4.2.1. I downloaded Python-2.7.3 and used the following configure command: /configure --enable-framework --enable-universalsdk --with-universal-archs=intel and

[issue17344] checking size of size_t... configure: error:

2013-03-22 Thread Joe Hsiao
Joe Hsiao added the comment: Thanks, Ned. What you suggested is working. Apologize not seeing the Mac folder. -- ___ Python tracker <http://bugs.python.org/issue17

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Joe Stuart added the comment: It looks like it's being called from the c extension. I would think it should still throw an exception though? >>> e = etree.Element >>> e.ham = 1 Traceback (most recent call last): File "", line 1, in TypeError: can't set

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Joe Stuart added the comment: At the end of ElementTree all of the c accelerators are being imported and it looks like only XMLParser is being used. Here is a patch that only imports XMLParser. -- keywords: +patch Added file: http://bugs.python.org/file30298/ElementTree.patch

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Changes by Joe Stuart : Removed file: http://bugs.python.org/file30298/ElementTree.patch ___ Python tracker <http://bugs.python.org/issue17989> ___ ___ Python-bugs-list m

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Joe Stuart added the comment: This patch should fix the issue of the classes being overwritten by the c accelerated ones. -- Added file: http://bugs.python.org/file30300/ElementTree.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Changes by Joe Stuart : Removed file: http://bugs.python.org/file30300/ElementTree.patch ___ Python tracker <http://bugs.python.org/issue17989> ___ ___ Python-bugs-list m

[issue17989] ElementTree.Element broken attribute setting

2013-05-17 Thread Joe Stuart
Joe Stuart added the comment: Forgot to update the XMLParser() assignment. -- Added file: http://bugs.python.org/file30301/ElementTree.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17989] ElementTree.Element broken attribute setting

2013-05-19 Thread Joe Stuart
Joe Stuart added the comment: Looks like a typo in arbitrary. AttributeError: Can't set arbitraty attributes on Element -- ___ Python tracker <http://bugs.python.org/is

[issue21963] 2.7.8 backport of Issue1856 (avoid daemon thread problems at shutdown) breaks ceph

2014-11-19 Thread Joe Julian
Changes by Joe Julian : -- nosy: +Joe.Julian ___ Python tracker <http://bugs.python.org/issue21963> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21963] 2.7.8 backport of Issue1856 (avoid daemon thread problems at shutdown) breaks ceph

2014-11-19 Thread Joe Julian
Joe Julian added the comment: I suspect the underlying problem is that the fix expects the daemon threads to hit a point where they try to acquire the GIL and that's not going to happen with these librados threads; they stay in lib

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(""''''"))

2014-12-15 Thread Joe Cabrera
New submission from Joe Cabrera: ConnectionError: ('Connection aborted.', BadStatusLine(""''''")) This error can also occur on Linux and Windows, a more descriptive error messages would be useful for people trying to debug their code. -- as

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(""''''"))

2014-12-16 Thread Joe Cabrera
Joe Cabrera added the comment: This is an error wrapping coming from requests. https://github.com/kennethreitz/requests/issues/2364 The Requests team has concluded they can do nothing about this error, I believe the next step up is the python httplib library

[issue24379] slice.literal notation

2015-06-03 Thread Joe Jevnik
Joe Jevnik added the comment: Here is the patch that includes the updates to 'slice.__repr__' -- Added file: http://bugs.python.org/file39615/slicerepr.patch ___ Python tracker <http://bugs.python.o

[issue24379] slice.literal notation

2015-06-03 Thread Joe Jevnik
New submission from Joe Jevnik: I often find that when working with pandas and numpy I want to store slice objects in variables to pass around and re-use; however, the syntax for constructing a slice literal outside of an indexer is very different from the syntax used inside of a subscript

[issue24379] slice.literal notation

2015-06-04 Thread Joe Jevnik
Joe Jevnik added the comment: > Why not index the slice type itself? slice[1:2] I originally considered this and I personally really like this syntax, but I was concerned with ambiguity with the typing module > The only question in my mind is what slice should do when given just a

[issue24379] slice.literal notation

2015-06-09 Thread Joe Jevnik
Joe Jevnik added the comment: > What I'm missing is a way to use such an object to actually index/slice > something Sorry, I am not sure I understand what you mean by this? You can pass a slice object, or a tuple of slices in subscript notation. >>> [1, 2, 3, 4][slice(2)]

[issue24379] slice.literal notation

2015-06-10 Thread Joe Jevnik
Joe Jevnik added the comment: >>> slice.literal[0] 0 >>> y = slice.literal[1:2] slice(1, 2, None) >>> slice.literal[0:1, ..., 3] (slice(0, 1, None), Ellipsis, 3) The way this object works right now does not create instances of some inner class of slice, instead,

[issue24379] slice.literal notation

2015-06-10 Thread Joe Jevnik
Joe Jevnik added the comment: It is a singleton, does not accept the `maketuple` flag, and is written in C. I did not know about the s_ attribute of numpy before writing this; however, I still think that moving this object to slice improves code clarity (s_ is not a super clear name). I also

[issue24379] operator.subscript

2015-06-22 Thread Joe Jevnik
Joe Jevnik added the comment: Based on some discussion on python-ideas, this is being renamed to operator.subscript. Here is the patch that makes the correct the changes to move this object into the operator module. -- components: +Extension Modules -Interpreter Core title

[issue24379] operator.subscript

2015-06-22 Thread Joe Jevnik
Joe Jevnik added the comment: I just moved it over since I implemented it for slice originally, I can drop the C implementation. -- ___ Python tracker <http://bugs.python.org/issue24

[issue24379] operator.subscript

2015-06-23 Thread Joe Jevnik
Joe Jevnik added the comment: I removed the C implementation. -- Added file: http://bugs.python.org/file39792/operator_subscript_pyonly.patch ___ Python tracker <http://bugs.python.org/issue24

[issue24379] operator.subscript

2015-07-11 Thread Joe Jevnik
Joe Jevnik added the comment: ping: is there anything blocking this? -- ___ Python tracker <http://bugs.python.org/issue24379> ___ ___ Python-bugs-list mailin

[issue24379] operator.subscript

2015-07-11 Thread Joe Jevnik
Joe Jevnik added the comment: Ah, I hadn't seen that, I will address those now, sorry about that. -- ___ Python tracker <http://bugs.python.org/is

[issue24379] operator.subscript

2015-07-11 Thread Joe Jevnik
Joe Jevnik added the comment: updating with the slots change This also adds a ton of test cases -- Added file: http://bugs.python.org/file39902/operator_subscript_pyonly.patch ___ Python tracker <http://bugs.python.org/issue24

[issue24379] operator.subscript

2015-07-11 Thread Joe Jevnik
Joe Jevnik added the comment: updating to address the docs and order of assertions -- Added file: http://bugs.python.org/file39904/operator_subscript_pyonly.patch ___ Python tracker <http://bugs.python.org/issue24

<    1   2   3   >