[issue13796] use 'text=...' to define the text attribute of and xml.etree.ElementTree.Element

2012-01-16 Thread patrick vrijlandt
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

[issue13779] os.walk: bottom-up

2012-01-16 Thread patrick vrijlandt
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

[issue13796] use 'text=...' to define the text attribute of and xml.etree.ElementTree.Element

2012-01-17 Thread patrick vrijlandt
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"),

[issue13823] xml.etree.ElementTree.ElementTree.write - argument checking

2012-01-19 Thread patrick vrijlandt
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

[issue13703] Hash collision security issue

2012-01-27 Thread Patrick Hahn
Changes by Patrick Hahn : -- nosy: +skorgu ___ Python tracker <http://bugs.python.org/issue13703> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6210] Exception Chaining missing method for suppressing context

2012-01-29 Thread Patrick Westerhoff
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

[issue6210] Exception Chaining missing method for suppressing context

2012-01-29 Thread Patrick Westerhoff
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

[issue5300] build_module faulre

2012-02-03 Thread Patrick Andrew
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

[issue5300] build_module failure

2012-02-03 Thread Patrick Andrew
Changes by Patrick Andrew : -- title: build_module faulre -> build_module failure ___ Python tracker <http://bugs.python.org/issue5300> ___ ___ Python-bugs-lis

[issue5300] distutils ignores file permissions

2012-02-03 Thread Patrick Andrew
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

[issue13943] Lib/distutils/command/build_py fails when package string is unicode

2012-02-04 Thread Patrick Andrew
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

[issue13943] distutils’ build_py fails when package string is unicode

2012-02-05 Thread Patrick Andrew
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 &

[issue13779] os.walk: bottom-up

2012-02-23 Thread patrick vrijlandt
patrick vrijlandt added the comment: Good solution. +1 for closing. Patrick -- ___ Python tracker <http://bugs.python.org/issue13779> ___ ___ Python-bugs-list m

[issue14133] improved PEP 409 implementation

2012-03-02 Thread Patrick Westerhoff
Changes by Patrick Westerhoff : -- nosy: +poke ___ Python tracker <http://bugs.python.org/issue14133> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-06-26 Thread Patrick Grafe
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

[issue31172] Py_Main() is totally broken on Visual Studio 2017

2017-08-10 Thread Patrick Rutkowski
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

[issue31172] Py_Main() is totally broken on Visual Studio 2017

2017-08-10 Thread Patrick Rutkowski
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

[issue31172] Py_Main() is totally broken on Visual Studio 2017

2017-08-10 Thread Patrick Rutkowski
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

[issue35765] Document references object x but doesn't show it in the example

2019-01-17 Thread Patrick Rice
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'

[issue36046] support dropping privileges when running subprocesses

2019-02-19 Thread Patrick McLean
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

[issue36046] support dropping privileges when running subprocesses

2019-02-19 Thread Patrick McLean
Change by Patrick McLean : -- keywords: +patch pull_requests: +11974 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36046> ___ ___ Py

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-04-21 Thread Patrick Foley
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

[issue36046] support dropping privileges when running subprocesses

2019-02-25 Thread Patrick McLean
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

[issue36046] support dropping privileges when running subprocesses

2019-02-26 Thread Patrick McLean
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

[issue36046] support dropping privileges when running subprocesses

2019-02-27 Thread Patrick McLean
Patrick McLean added the comment: I have updated the pull request to include 'group' and 'extra_groups' as separate parameters. -- ___ Python tracker <https://bug

[issue36689] docs: os.path.commonpath raises ValueError for different drives

2019-04-23 Thread Patrick Artman
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

[issue30668] DOC: missing word in license.rst

2019-05-06 Thread Patrick Muehlbauer
Change by Patrick Muehlbauer : -- keywords: +patch pull_requests: +13029 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue30668] DOC: missing word in license.rst

2019-05-06 Thread Patrick Muehlbauer
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

[issue5315] signal handler never gets called

2018-03-29 Thread Patrick Fink
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

[issue33382] make [profile-opt] failde with --enable-optimizations

2018-04-28 Thread Patrick Young
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

[issue33382] make [profile-opt] failde with --enable-optimizations

2018-04-28 Thread Patrick Young
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

[issue33382] make [profile-opt] failed with --enable-optimizations

2018-04-28 Thread Patrick Young
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

[issue33382] make [profile-opt] failed with --enable-optimizations

2018-04-28 Thread Patrick Young
Change by Patrick Young : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue33382> ___ ___ Python-bugs-list

[issue33382] make [profile-opt] failed with --enable-optimizations

2018-04-28 Thread Patrick Young
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

[issue33890] Pathlib does not compare Windows and MinGW paths as equal

2018-06-17 Thread Patrick Lehmann
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,

[issue28710] Sphinx incompatible markup in the standard library

2018-06-17 Thread Patrick Lehmann
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

[issue28710] Sphinx incompatible markup in the standard library

2018-06-17 Thread Patrick Lehmann
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

[issue33890] Pathlib does not compare Windows and MinGW paths as equal

2018-06-17 Thread Patrick Lehmann
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

[issue28710] Sphinx incompatible markup in the standard library docstrings

2018-06-18 Thread Patrick Lehmann
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

[issue34056] checked hash-based pyc files not working with imp module

2018-07-05 Thread Patrick McCarty
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

[issue34056] checked hash-based pyc files not working with imp module

2018-07-05 Thread Patrick McCarty
Change by Patrick McCarty : Added file: https://bugs.python.org/file47672/imp-test-mod.py ___ Python tracker <https://bugs.python.org/issue34056> ___ ___ Python-bug

[issue34056] checked hash-based pyc files not working with imp module

2018-07-05 Thread Patrick McCarty
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

[issue1079] decode_header does not follow RFC 2047

2012-04-20 Thread Patrick Hahn
Changes by Patrick Hahn : -- nosy: +phahn ___ Python tracker <http://bugs.python.org/issue1079> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14805] Support display of both __cause__ and __context__

2012-05-15 Thread Patrick Westerhoff
Changes by Patrick Westerhoff : -- nosy: +poke ___ Python tracker <http://bugs.python.org/issue14805> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14819] Add `assertIsSubclass` and `assertNotIsSubclass` to `unittest.TestCase`

2012-05-15 Thread Patrick Smith
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

[issue730473] Add Py_AtInit() startup hook for extenders

2012-06-16 Thread Patrick Miller
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

[issue14133] improved PEP 409 implementation

2012-06-28 Thread Patrick Westerhoff
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

[issue14133] improved PEP 409 implementation

2012-06-28 Thread Patrick Westerhoff
Patrick Westerhoff added the comment: Alright, thought so but wanted a confirmation anyway – thanks a lot :D -- ___ Python tracker <http://bugs.python.org/issue14

[issue14978] distutils Extension fails to be created with unicode package names

2012-07-02 Thread Patrick Andrew
Patrick Andrew added the comment: Sure, I'll have that for you shortly. -- ___ Python tracker <http://bugs.python.org/issue14978> ___ ___ Python-bugs-list m

[issue15564] cgi.FieldStorage should not call read_multi on files

2012-08-06 Thread patrick vrijlandt
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

[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2012-08-08 Thread patrick vrijlandt
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

[issue15564] cgi.FieldStorage should not call read_multi on files

2012-08-11 Thread patrick vrijlandt
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

[issue15564] cgi.FieldStorage should not call read_multi on files

2012-08-13 Thread patrick vrijlandt
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

[issue14873] Windows devguide: clarification for build errors due to missing optional dependencies

2012-08-20 Thread Patrick Welche
Changes by Patrick Welche : -- nosy: +prlw1 ___ Python tracker <http://bugs.python.org/issue14873> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13789] _tkinter does not build on Windows 7

2012-08-20 Thread Patrick Welche
Changes by Patrick Welche : -- nosy: +prlw1 ___ Python tracker <http://bugs.python.org/issue13789> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13210] Support Visual Studio 2010

2012-08-20 Thread Patrick Welche
Changes by Patrick Welche : -- nosy: +prlw1 ___ Python tracker <http://bugs.python.org/issue13210> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2012-08-20 Thread Patrick Welche
Changes by Patrick Welche : -- nosy: +prlw1 ___ Python tracker <http://bugs.python.org/issue13461> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12322] ElementPath 1.3 expressions documentation

2012-10-08 Thread patrick vrijlandt
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

[issue14373] C implementation of functools.lru_cache

2014-04-07 Thread Patrick Westerhoff
Changes by Patrick Westerhoff : -- nosy: +poke ___ Python tracker <http://bugs.python.org/issue14373> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12323] ElementPath 1.3 expressions

2013-01-22 Thread patrick vrijlandt
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

[issue19062] problems with pyshell to get userdir

2013-09-21 Thread patrick wai
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

[issue19062] problems with pyshell to get userdir

2013-09-21 Thread patrick wai
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

[issue19670] SimpleCookie Generates Non-RFC6265-Compliant Cookies

2013-11-20 Thread Patrick Bogen
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

[issue22183] datetime.timezone methods require datetime object

2014-08-11 Thread Patrick Westerhoff
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

[issue20641] Python installer needs elevated rights to install pip

2014-02-16 Thread Patrick Westerhoff
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

[issue20641] Python installer needs elevated rights to install pip

2014-02-22 Thread Patrick Westerhoff
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

[issue20641] Python installer needs elevated rights to install pip

2014-02-22 Thread Patrick Westerhoff
Patrick Westerhoff added the comment: That’s great to hear, thanks a lot :) -- ___ Python tracker <http://bugs.python.org/issue20641> ___ ___ Python-bugs-list m

[issue6553] cPickle "binunicode" segmentation fault

2009-07-23 Thread Patrick Strawderman
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

[issue6860] Inconsistent naming of custom command in setup.py help output

2009-09-07 Thread Patrick Näf
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

[issue6860] Inconsistent naming of custom command in setup.py help output

2009-09-17 Thread Patrick Näf
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

[issue7011] tarinfo has problems with longlinks

2009-09-28 Thread Patrick Gerken
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

[issue7011] tarinfo has problems with longlinks

2009-09-28 Thread Patrick Gerken
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

[issue2897] include structmember.h in Python.h

2009-10-16 Thread Patrick Näf
Changes by Patrick Näf : -- nosy: +herzbube ___ Python tracker <http://bugs.python.org/issue2897> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5243] Missing dependency in distutils build

2009-10-28 Thread Patrick Gerken
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

[issue7517] freeze.py not ported to python3

2009-12-15 Thread Patrick Stinson
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

[issue7517] freeze.py not ported to python3

2009-12-15 Thread Patrick Stinson
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

[issue5243] Missing dependency in distutils build

2009-02-23 Thread Patrick Gerken
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

[issue730473] Add Py_AtInit() startup hook for extenders

2009-05-12 Thread Patrick Miller
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

[issue6210] Exception Chaining missing method for suppressing context

2009-06-05 Thread Patrick W.
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

[issue8742] broken asdl link in Parser/asdl.py

2010-05-17 Thread Patrick Sabin
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

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
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

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : Added file: http://bugs.python.org/file18114/doctestbug.py ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bug

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : Added file: http://bugs.python.org/file18115/doctestbugpy3.py ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bug

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : -- versions: -Python 3.3 ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : Removed file: http://bugs.python.org/file18114/doctestbug.py ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bug

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : Removed file: http://bugs.python.org/file18115/doctestbugpy3.py ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bug

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : Added file: http://bugs.python.org/file18116/doctestbug.py ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bug

[issue29422] add socket independent timeout to httplib/http.client read

2017-02-02 Thread Patrick Michaud
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

[issue17310] Ctypes callbacks shows problem on Windows Python (64bit)

2016-07-20 Thread Patrick Stewart
Patrick Stewart added the comment: This also fixes python 3.5 -- nosy: +Patrick Stewart ___ Python tracker <http://bugs.python.org/issue17310> ___ ___ Python-bug

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2016-07-21 Thread Patrick Stewart
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

[issue17310] Ctypes callbacks shows problem on Windows Python (64bit)

2016-07-21 Thread Patrick Stewart
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

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2016-08-03 Thread Patrick Stewart
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

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2016-08-05 Thread Patrick Stewart
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

[issue17658] pythonw.exe crashes on opening IDLE

2013-04-07 Thread Patrick Poitras
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

[issue17658] pythonw.exe crashes on opening IDLE

2013-04-07 Thread Patrick Poitras
Changes by Patrick Poitras : Added file: http://bugs.python.org/file29726/WER5D77.tmp.appcompat.txt ___ Python tracker <http://bugs.python.org/issue17658> ___ ___ Pytho

[issue17658] pythonw.exe crashes on opening IDLE

2013-04-07 Thread Patrick Poitras
Changes by Patrick Poitras : Added file: http://bugs.python.org/file29727/WER5EA0.tmp.mdmp ___ Python tracker <http://bugs.python.org/issue17658> ___ ___ Python-bug

[issue17658] pythonw.exe crashes on opening IDLE

2013-04-07 Thread Patrick Poitras
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

[issue17658] pythonw.exe crashes on opening IDLE

2013-04-08 Thread Patrick Poitras
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

[issue17975] libpython3.so conflicts between $VERSIONs

2013-05-14 Thread Patrick Welche
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

[issue17975] libpython3.so conflicts between $VERSIONs

2013-05-18 Thread Patrick Welche
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.

<    1   2   3   >