patrick vrijlandt added the comment:
I agree the Element syntax is sometimes awkward.
But how would you represent text or tail attributes within this enhanced
element?
comes to mind ...
--
nosy: +patrick.vrijlandt
___
Python tracker
<h
patrick vrijlandt added the comment:
The documentation of this function is generally ambiguous, because os.walk is a
generator. Thus "generate" means (1) yielded from a generator and (2) prepared
for later use within the generator. To avoid the ambiguity, "generate" s
patrick vrijlandt added the comment:
Hi,
Did you look at lxml (http://lxml.de)?
from lxml.builder import E
from lxml import etree
tree = etree.ElementTree(
E.Hello(
"Good morning!",
E.World("How do you do", humour = "excellent"),
New submission from patrick vrijlandt :
(1) The docs say:
xml_declaration controls if an XML declaration should be added to the file. Use
False for never, True for always, None for only if not US-ASCII or UTF-8 or
Unicode (default is None).
The method also accepts other values, like
Changes by Patrick Hahn :
--
nosy: +skorgu
___
Python tracker
<http://bugs.python.org/issue13703>
___
___
Python-bugs-list mailing list
Unsubscribe:
Patrick Westerhoff added the comment:
I have to agree with Georg on that. I think it would make more sense to
introduce some internal flag/variable that keeps track of if the cause was
explicitely set. So if cause was set (i.e. `from X` syntax is used), then
always display it in favor of the
Patrick Westerhoff added the comment:
Oh, where did that PEP come from? ^^ Also thanks for hinting at python-dev,
didn’t realize that there was a discussion going on about this!
--
___
Python tracker
<http://bugs.python.org/issue6
Changes by Patrick Andrew :
--
components: +Distutils -Distutils2
title: Distutils ignores file permissions -> build_module faulre
versions: +Python 2.7 -3rd party
___
Python tracker
<http://bugs.python.org/iss
Changes by Patrick Andrew :
--
title: build_module faulre -> build_module failure
___
Python tracker
<http://bugs.python.org/issue5300>
___
___
Python-bugs-lis
Changes by Patrick Andrew :
--
components: +Distutils2 -Distutils
nosy: +alexis
title: build_module failure -> distutils ignores file permissions
versions: +3rd party -Python 2.7
___
Python tracker
<http://bugs.python.org/iss
New submission from Patrick Andrew :
When a package list is built using Unicode strings, distutils fails to build
the package with a TypeError.
This patch alternatively checks for 'unicode' as the instance type and also
prints the type in the type error for easier
Patrick Andrew added the comment:
>From py-logilab-common 0.57.1 port for FreeBSD. No patches applied:
package init file './test/__init__.py' not found (or not a regular file)
Traceback (most recent call last):
File "setup.py", line 170, in
install()
File &
patrick vrijlandt added the comment:
Good solution. +1 for closing.
Patrick
--
___
Python tracker
<http://bugs.python.org/issue13779>
___
___
Python-bugs-list m
Changes by Patrick Westerhoff :
--
nosy: +poke
___
Python tracker
<http://bugs.python.org/issue14133>
___
___
Python-bugs-list mailing list
Unsubscribe:
Patrick Grafe added the comment:
Is this ready to get backported to Python 3.5 and 3.6? I see the tags on the
issue, but I'm not clear on the process for actually backporting patches.
--
nosy: +Patrick Grafe
___
Python tracker
New submission from Patrick Rutkowski:
Install Visual Studio 2017
Download and unpack Python-3.6.2.tgz
Open a Visual Studio command prompt
Browse to Python-3.6.2\PCBuild
Run build.bat -p x64 -c Release
Run build.bat -p x64 -c Debug
Add the PCbuild\amd64 directory to your PATH
Create a new
Patrick Rutkowski added the comment:
Just for kicks I tried the same Py_Main() code from a Win32 console application
(instead of from a GUI application). The C code this time was
#include
int wmain(int argc, wchar_t** argv) {
return Py_Main(argc, argv);
}
The resulting error message
Patrick Rutkowski added the comment:
I removed my custom built Python and installed the one provided by the
python-3.6.2-amd64.exe installer instead.
The Win32 Command Line application now works, and shows the message box. The
Win32 GUI Application still fails to work, the output is just
New submission from Patrick Rice :
https://docs.python.org/3.5/tutorial/inputoutput.html
If you have an object x, you can view its JSON string representation with a
simple line of code:
>>>
>>> import json
>>> json.dumps([1, 'simple', 'list'
New submission from Patrick McLean :
Currently when using python to automate system administration tasks, it is
useful to drop privileges sometimes. Currently the only way to do this is via a
preexec_fn, which has well-documented problems. It would be useful to be able
to pass a user and
Change by Patrick McLean :
--
keywords: +patch
pull_requests: +11974
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36046>
___
___
Py
New submission from Patrick Foley:
The following code demonstrates:
import re
text = 'ab\\'
exp = re.compile('a')
print(re.sub(exp, text, ''))
If you remove the backslash(es), the code runs fine.
This appears to be specific to the re module and only to strin
Patrick McLean added the comment:
Alexey, here are my responses to your points:
1) This is intentional, this is for dropping privileges before running some
(possibly untrusted) command, we do not want to leave a path for the subprocess
to gain root back. If there is a subprocess that needs
Patrick McLean added the comment:
> Thanks for your explanation. In case of a privileged process, the behavior of
> setreuid/setregid/setgroups does seem well-defined. But setuid/setgid change
> all ids (real, effective, saved) too in this case. Do you prefer
> setreuid/setr
Patrick McLean added the comment:
I have updated the pull request to include 'group' and 'extra_groups' as
separate parameters.
--
___
Python tracker
<https://bug
Patrick Artman added the comment:
If this isn't taken I'd be happy to give it a go as my first contribution
--
nosy: +pjartman
___
Python tracker
<https://bugs.python.o
Change by Patrick Muehlbauer :
--
keywords: +patch
pull_requests: +13029
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Patrick Muehlbauer added the comment:
Hi,
first time contributor here :)
I opened a PR for this as part of the Pycon 2019 sprints.
--
nosy: +treebee
___
Python tracker
<https://bugs.python.org/issue30
Patrick Fink added the comment:
A workaround to handle signals reliably that I successfully tested now is to
execute everything within a subthread and let the main thread just join this
subthread. Like:
signal.signal(MY_SIGNAL, signal_handler)
threading.Thread(target = my_main_function
New submission from Patrick Young :
0:14:07 load avg: 1.26 [406/406] test_zlib
Total duration: 14 min 9 sec
Tests result: SUCCESS
make[1]: Leaving directory '/home/kmahyyg/Desktop/py36/Python-3.6.5'
make build_all_merge_profile
make[1]: Entering directory '/home/kmahyyg/Desk
Patrick Young added the comment:
$ uname -a
Linux PatrickY 4.9.0-deepin13-amd64 #1 SMP PREEMPT Deepin 4.9.57-1 (2017-10-19)
x86_64 GNU/Linux
$ lsb_release -a
Distributor ID: Deepin
Description:Deepin 15.5
Release:15.5
Based on Debian sid
Change by Patrick Young :
--
title: make [profile-opt] failde with --enable-optimizations -> make
[profile-opt] failed with --enable-optimizations
type: -> compile error
___
Python tracker
<https://bugs.python.org/i
Change by Patrick Young :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue33382>
___
___
Python-bugs-list
Patrick Young added the comment:
modify build_all_merge_profile to absolutely: true
then modify build running shell to: zsh
--
___
Python tracker
<https://bugs.python.org/issue33
New submission from Patrick Lehmann :
pathlib does not compare absolute paths from Windows and MinGW as equal.
Windows absolute path: "C:\path\to\tool"
MinGW absolute path: "/c/path/to/tool"
Cygwin absolute path: "/cygdrive/c/path/to/tool"
I consider this a bug,
Patrick Lehmann added the comment:
Any progress on that issue?
1.5 years passed by and it should be possible to fix the Python documentation
in that time, right?
--
___
Python tracker
<https://bugs.python.org/issue28
Patrick Lehmann added the comment:
Against what branch should I create the PR?
I was a huge number of changes.
I think I'll create multiple PRs to ease the review.
--
___
Python tracker
<https://bugs.python.org/is
Patrick Lehmann added the comment:
I don't think is cross-platform, because I'm still on Windows but in different
shells. More over, pathlib currently support cross-platform comparison. I can
save a configuration file on Linux and open it on Windows with such paths. I
use myPat
Patrick Lehmann added the comment:
Having single quotes in docstrings is also ok for Sphinx documentation.
Btw. ReStructured text (docutils) was invented to document Python sources, why
is it not used by Python?
--
___
Python tracker
<ht
New submission from Patrick McCarty :
OS: Clear Linux build 23460
Python version: 3.7.0
Description:
I am seeing an uncaught exception in Python 3.7.0 when using the "imp" module
to import a module that has a checked hash-based pyc file. See the attached
source files.
Steps to re
Change by Patrick McCarty :
Added file: https://bugs.python.org/file47672/imp-test-mod.py
___
Python tracker
<https://bugs.python.org/issue34056>
___
___
Python-bug
Patrick McCarty added the comment:
Thanks for the response.
I would like to avoid using imp, but I work on a distro team that ships many
packages that still use the module. We wanted to start using checked-hash
invalidation right away after upgrading to 3.7.0, but some of our release tests
Changes by Patrick Hahn :
--
nosy: +phahn
___
Python tracker
<http://bugs.python.org/issue1079>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Patrick Westerhoff :
--
nosy: +poke
___
Python tracker
<http://bugs.python.org/issue14805>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Patrick Smith :
The attached patch adds two helper methods to `unittest.TestCase`:
`assertIsSubclass` and `assertIsNotSubclass`. These methods are similar to the
`assertIsInstance` and `assertIsNotInstance` methods that are already part of
`unittest.TestCase`. They allow
Patrick Miller added the comment:
Just languishing for lo on these 5 years
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<http://bugs.python.org/is
Patrick Westerhoff added the comment:
Hey, I just saw the release notes for 3.3 and would like a quick confirmation:
This is included in 3.3, right? ^^
--
___
Python tracker
<http://bugs.python.org/issue14
Patrick Westerhoff added the comment:
Alright, thought so but wanted a confirmation anyway – thanks a lot :D
--
___
Python tracker
<http://bugs.python.org/issue14
Patrick Andrew added the comment:
Sure, I'll have that for you shortly.
--
___
Python tracker
<http://bugs.python.org/issue14978>
___
___
Python-bugs-list m
New submission from patrick vrijlandt:
.mht is an archive format created by Microsoft IE 8 when saving a webpage. It
is essentially a mime multipart message.
My problem occurred when I uploaded such a file to a cgi-based server. The
posted data would be fed to cgi.FieldStorage. (I can't
New submission from patrick vrijlandt:
quopri.py's functions encodestring and decodestring are documented to handle
strings; and this is clearly suggested by their name. However, these functions
accept and return bytes, not strings. This should be reflected in the
documentation.
Even b
patrick vrijlandt added the comment:
I would not know how to set the MIME-type of a file during upload. This is
apparently set by the browser based on the filename (extension). Even (or:
especially) if this is a bug in all the current browsers, python should provide
the tools to adapt to this
patrick vrijlandt added the comment:
I must admit my usage case is a hack, but the summary is: view a page on one
computer, process it on another computer; like sending the page to a friend,
with friend -> self and send -> upload.
I found one other victim in python
(https://groups.goog
Changes by Patrick Welche :
--
nosy: +prlw1
___
Python tracker
<http://bugs.python.org/issue14873>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Patrick Welche :
--
nosy: +prlw1
___
Python tracker
<http://bugs.python.org/issue13789>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Patrick Welche :
--
nosy: +prlw1
___
Python tracker
<http://bugs.python.org/issue13210>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Patrick Welche :
--
nosy: +prlw1
___
Python tracker
<http://bugs.python.org/issue13461>
___
___
Python-bugs-list mailing list
Unsubscribe:
patrick vrijlandt added the comment:
To be complete: an xpath 'above' the start element returns None
Thanks for the patch!
--
___
Python tracker
<http://bugs.python.o
Changes by Patrick Westerhoff :
--
nosy: +poke
___
Python tracker
<http://bugs.python.org/issue14373>
___
___
Python-bugs-list mailing list
Unsubscribe:
patrick vrijlandt added the comment:
Dear Eli,
According to the XPath spec, the 'position' as can be used in xpath
expressions, should be positive. However, the current implementation (example
below from 3.3.0) accepts some values that should not be ok.
Therefore, I do not agr
New submission from patrick wai:
#file
idlelib/configHandler.py
#code
userDir = os.path.expanduser('~')
#os
windows 7 sp1
it doesnt get final userdir path. it doesnt work correctly for userdir .
this cause python3.3 IDLE GUI can not be opened on my pc .
as per the docment says
patrick wai added the comment:
i am working under non-administrator account .
in fact os.path.expanduser('~') works well when as admin run .
but just got a %userprofile% when as standard account .
On Sat, Sep 21, 2013 at 11:39 PM, patrick wai wrote:
>
> New submission
New submission from Patrick Bogen:
SimpleCookie uses _quote to quote cookie values, which converts special
characters to \OCTAL notation. This is not RFC6265 compliance, which requires-
in part- that cookie values do not contain backslashes:
cookie-value = *cookie-octet / ( DQUOTE
New submission from Patrick Westerhoff:
I’ve noticed that the methods in `datetime.timezone` all require a datetime
object (or explicitely `None`) as its parameter or they will raise an exception.
The datetime object however is never required for the implementation of the
method, so it seems
New submission from Patrick Westerhoff:
When installing Python 3.4 with the MSI, you can choose to install pip as part
of the setup. With activated UAC on Windows (which is the recommended default),
the installer will ask for elevated rights during the setup to copy the files
over to the
Patrick Westerhoff added the comment:
Hey all,
yes, I indeed try to install Python into `C:\Program Files\`. I’m doing that on
Windows 8.1 64bit with an Administrator account (which doesn’t matter though)
with standard UAC (which only asks when applications make changes to the
computer
Patrick Westerhoff added the comment:
That’s great to hear, thanks a lot :)
--
___
Python tracker
<http://bugs.python.org/issue20641>
___
___
Python-bugs-list m
New submission from Patrick Strawderman :
When reading from a file-like object (like StringIO), cPickle uses the
read_other function, which doesn't check that the number of bytes
requested is the actual number of bytes read (like the read_cStringIO
function does).
Functions like load_binun
New submission from Patrick Näf :
The attached setup.py file defines a custom command named "test", which
is implemented in a class named "TestClass". Try to run both of the
following:
1) ./setup.py test -h
2) ./setup.py --help-commands
In case 1, Distutils will use the cla
Patrick Näf added the comment:
>To be able to do this fix, I also need to change the way commands are
>registered in Distutils.
Hm, I thought commands were registered in the setup() function with the
cmdclass dict. Like this:
setup(
# "test" is the name that should be
New submission from Patrick Gerken :
Sadly, I am unable to debug it enough to be able to provide a thorough
test case. I can provide information of how to reproduce the problem on
request. I have a tar file and a diff to tarfile.py with some pdbs that
only get activated in the middle of the file
Patrick Gerken added the comment:
doh, I only searched for open bugs. Not for closed.
This ticket is a dublicate of http://bugs.python.org/issue1471427
and fixed in python 2.5.
If somebody has similar problems, here is a quickfix:
I finally was able to reproduce the issue. It only happens when
Changes by Patrick Näf :
--
nosy: +herzbube
___
Python tracker
<http://bugs.python.org/issue2897>
___
___
Python-bugs-list mailing list
Unsubscribe:
Patrick Gerken added the comment:
Hi Tarek,
I think clib stuff is installed in the right python directory and the
ext install step then just finds them.
To reproduce the issue, run
the "old" easy_install in a virtualenv.
easy_install ReportLab
It will then fail because of t
New submission from Patrick Stinson :
Tools/Freeze/freeze.py is still producing C code that expects the old-
style module initialization functions, causing link errors.
The simple example in Tools/Freeze/hello.py easily demonstrates this
behavior.
--
components: Library (Lib)
messages
Patrick Stinson added the comment:
Interesting. I found it incredibly useful. I would love to fix the port (if
I find the time, of course :().
On Tue, Dec 15, 2009 at 12:52 PM, Brett Cannon wrote:
>
> Brett Cannon added the comment:
>
> Almost prioritized to low as there has been
Patrick Gerken added the comment:
Thank you, tarek
The sys.path should have been obvious.
Added file: http://bugs.python.org/file13159/test_install_lib.py
___
Python tracker
<http://bugs.python.org/issue5
Patrick Miller added the comment:
Thanks... I'll submit patches for 2.6, 2.7, and 3.2
On Tue, May 12, 2009 at 2:07 PM, Daniel Diniz wrote:
>
> Changes by Daniel Diniz :
>
>
> --
> stage: -> test needed
> versions: +Pytho
New submission from Patrick W. :
I'm currently writing a library that executes predefined http requests
to a specified server. In case there is for example a HTTP Error, I want
to raise a user-defined exception that contains additional information
about when the error actually occured (so
New submission from Patrick Sabin :
The link:
http://www.cs.princeton.edu/~danwang/Papers/dsl97/dsl97-abstract.html
in the file Parser/asdl.py seems to be broken. When I tried to open it I got a
page with: "Sorry, the page you requested couldn't be found". It seems to me
New submission from Patrick Strawderman :
doctest.DocFileTest inserts the test's path into the globs as "__file__",
but doctest.DocTestCase's tearDown method simply calls globs.clear(),
so that subsequent runs of the test case will not receive the same
initial globals.
This
Changes by Patrick Strawderman :
Added file: http://bugs.python.org/file18114/doctestbug.py
___
Python tracker
<http://bugs.python.org/issue9327>
___
___
Python-bug
Changes by Patrick Strawderman :
Added file: http://bugs.python.org/file18115/doctestbugpy3.py
___
Python tracker
<http://bugs.python.org/issue9327>
___
___
Python-bug
Changes by Patrick Strawderman :
--
versions: -Python 3.3
___
Python tracker
<http://bugs.python.org/issue9327>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Patrick Strawderman :
Removed file: http://bugs.python.org/file18114/doctestbug.py
___
Python tracker
<http://bugs.python.org/issue9327>
___
___
Python-bug
Changes by Patrick Strawderman :
Removed file: http://bugs.python.org/file18115/doctestbugpy3.py
___
Python tracker
<http://bugs.python.org/issue9327>
___
___
Python-bug
Changes by Patrick Strawderman :
Added file: http://bugs.python.org/file18116/doctestbug.py
___
Python tracker
<http://bugs.python.org/issue9327>
___
___
Python-bug
New submission from Patrick Michaud:
Using python's httplib, there is no way to set a timeout for the full request
cycle. A timeout can be given, which will apply to the connection attempt and
each blocking socket operation. However, a malicious (or poorly performing)
server can k
Patrick Stewart added the comment:
This also fixes python 3.5
--
nosy: +Patrick Stewart
___
Python tracker
<http://bugs.python.org/issue17310>
___
___
Python-bug
Patrick Stewart added the comment:
This is still a problem, and the suggested fix seems to work. There is another
error a few lines above where it is allocating 4 bytes for a pointer. I've
attached a new patch with both fixes, but without Bob's tests.
This issue is a duplicat
Patrick Stewart added the comment:
I've attached a patch with an extra fix to the duplicated issue 20160
http://bugs.python.org/issue20160
--
___
Python tracker
<http://bugs.python.org/is
Patrick Stewart added the comment:
There's some confusion above about clang - that's completely irrelevant, the
problem was using ctypes to call into libclang, not using clang to compile
anything. The problem applies to any callback function that returns a struct
larger than 8 byte
Patrick Stewart added the comment:
Actually the current released version of libffi (3.2.1) is even more severely
broken on win64, you can't return structs at all. (patch here
https://github.com/patstew/MINGW-packages/blob/9c3910fa32c45448826a2241c3fba3bf6abf9428/mingw-w64-l
New submission from Patrick Poitras:
I just installed Python 3.3.1, and tried to open IDLE, which failed to come up,
giving only the classic pythonw.exe has stopped responding.
Will post dumps.
--
components: IDLE, Windows
files: WER1B0A.tmp.WERInternalMetadata.xml
messages: 186268
Changes by Patrick Poitras :
Added file: http://bugs.python.org/file29726/WER5D77.tmp.appcompat.txt
___
Python tracker
<http://bugs.python.org/issue17658>
___
___
Pytho
Changes by Patrick Poitras :
Added file: http://bugs.python.org/file29727/WER5EA0.tmp.mdmp
___
Python tracker
<http://bugs.python.org/issue17658>
___
___
Python-bug
Patrick Poitras added the comment:
So I tried to open Python33\python.exe and it's trying to load codecs from
Python 2.7 which I think has to be the cause of the problem. When it raises
CodecRegistryError, the 2.7 syntax is wrong for 3.3 and causes a SyntaxError.
Fatal Python
Patrick Poitras added the comment:
It returns this:
C:\Users\Acebulf>set | findstr /i python
Path=C:\Python27\Lib\site-packages\PyQt4;C:\Program Files (x86)\NVIDIA Corporati
on\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windo
ws\System32\WindowsPowerShell\v1.0
New submission from Patrick Welche:
I currently have python 2.7 and 3.2 installed concurrently. I just tried to
install 3.3 as well, but a file conflicts between 3.2 and 3.3. It is
libpython3.so.
Given that we go out of our way e.g. with
$(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC
Patrick Welche added the comment:
I see that this was introduced in
http://www.python.org/dev/peps/pep-0384/
Would a configure option to make it easy not to install the conflicting file be
acceptable?
--
___
Python tracker
<http://bugs.python.
101 - 200 of 252 matches
Mail list logo