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
Changes by Joe Jevnik :
--
pull_requests: +1919
___
Python tracker
<http://bugs.python.org/issue13349>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
"""
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
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
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
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
Change by Joe Jevnik :
--
pull_requests: +7754
___
Python tracker
<https://bugs.python.org/issue23926>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Joe Jevnik :
--
pull_requests: +7946
___
Python tracker
<https://bugs.python.org/issue23927>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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.
--
___
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
Change by Joe Pamer :
--
keywords: +patch
pull_requests: +9157
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34944>
___
___
Python-
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
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,
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
Changes by Joe Borg :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue18868>
___
___
Python-bugs-list mailing list
Unsubscri
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!
--
___
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
Joe Peterson added the comment:
Thanks!! :)
--
___
Python tracker
<http://bugs.python.org/issue10941>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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>
___
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,
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
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
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
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
Changes by Joe Amenta :
--
nosy: +joe.amenta
___
Python tracker
<http://bugs.python.org/issue5705>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
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
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
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
Changes by Joe Amenta :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue7162>
___
___
Python-bugs-list mailing list
Unsubscri
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
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
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
Changes by Joe Julian :
--
nosy: +jjulian
___
Python tracker
<http://bugs.python.org/issue644744>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Joe Ranieri :
--
nosy: +sirg3
___
Python tracker
<http://bugs.python.org/issue4111>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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
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
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
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
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
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
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
Joe Amenta added the comment:
Fixed in r83811.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue9541>
___
___
Python-bugs-list mai
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
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
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
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
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
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
Joe Jevnik added the comment:
bump
--
___
Python tracker
<http://bugs.python.org/issue27241>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
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
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
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
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
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
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
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
Changes by Joe Stuart :
Removed file: http://bugs.python.org/file30298/ElementTree.patch
___
Python tracker
<http://bugs.python.org/issue17989>
___
___
Python-bugs-list m
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
Changes by Joe Stuart :
Removed file: http://bugs.python.org/file30300/ElementTree.patch
___
Python tracker
<http://bugs.python.org/issue17989>
___
___
Python-bugs-list m
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
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
Changes by Joe Julian :
--
nosy: +Joe.Julian
___
Python tracker
<http://bugs.python.org/issue21963>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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)]
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,
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
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
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
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
Joe Jevnik added the comment:
ping: is there anything blocking this?
--
___
Python tracker
<http://bugs.python.org/issue24379>
___
___
Python-bugs-list mailin
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
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
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
101 - 200 of 274 matches
Mail list logo