[issue37720] Crash of python3.7 with virt-manager

2019-07-30 Thread Hans Peter
Hans Peter added the comment: How to fix that? See above post. -- ___ Python tracker <https://bugs.python.org/issue37720> ___ ___ Python-bugs-list mailin

[issue35484] Segmentation fault due to faulthandler on Solaris

2019-08-07 Thread Peter Edwards
Peter Edwards added the comment: This is likely a duplicate of issue 21131 -- nosy: +peadar ___ Python tracker <https://bugs.python.org/issue35484> ___ ___ Pytho

[issue30803] Truth value of sets not properly documented

2017-06-29 Thread Peter Thomassen
New submission from Peter Thomassen: The truth value of sets is not properly documented, in particular regarding whether an empty set is considered false or not. Ignoring primitive (such as numerals) as well as user-defined types, https://docs.python.org/3/library/stdtypes.html#truth says

[issue30803] Truth value of sets not properly documented

2017-06-30 Thread Peter Thomassen
Peter Thomassen added the comment: I submitted a PR on github, and signed the CLA before doing so. (I double-checked my bpo username in the CLA, and my github username in the bpo profile.) Still, the bot says I need to sign the CLA. I'm not sure what

[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-06-30 Thread Peter Parente
Peter Parente added the comment: Glad to hear it. Cheers, Victor! -- ___ Python tracker <http://bugs.python.org/issue30473> ___ ___ Python-bugs-list mailin

[issue30803] Truth value of sets not properly documented

2017-07-13 Thread Peter Thomassen
Peter Thomassen added the comment: I like your most recent suggestion, and updated the PR after fixing a typo ('Fractions') and making it more complete (complex numbers). Let me know if anything else is needed. (A mapping is not a specialized set, at least as far as typing is

[issue31214] os.walk has a bug on Windows

2017-08-15 Thread Peter Otten
Peter Otten added the comment: Read the documentation of os.walk() again. It already walks the complete directory tree starting with src. When you invoke it again by calling your copy_dir() method recursively you will of course see once more the files and directories in the respective

[issue31266] attribute error

2017-08-23 Thread Peter Otten
Peter Otten added the comment: You have probably written your own re.py file which shadows the one in the standard library. Once you remove or rename your re.py the error should go away. -- nosy: +peter.otten ___ Python tracker <h

[issue31402] Python won't load on Acer Aspire

2017-09-09 Thread Peter Cooney
New submission from Peter Cooney: Well I'm reading Al Sweigarts Automate the boring stuff, downloaded the exe for Python 3.6, and got the right 32-bit one, then nothing happens when I run it. It just does nothing. I do have it set up perfectly well on another computer, but it won'

[issue31466] No easy way to change float formatting when subclassing encoder.JSONEncoder

2017-09-14 Thread Quentin Peter
New submission from Quentin Peter: I want to output floats in ENG format. Working with distance in micrometers, it is a bit annoying to see: 2.5e-5 .0003 instead of 25e-6 300e-6 The solution I found was to redefine `iterencode` but that doesn't feel right. I would like to see some

[issue31466] No easy way to change float formatting when subclassing encoder.JSONEncoder

2017-09-14 Thread Quentin Peter
Changes by Quentin Peter : -- keywords: +patch pull_requests: +3561 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31466> ___ ___ Py

[issue31601] Availability of utimensat, futimens not checked correctly on macOS

2018-11-19 Thread Peter Petrik
Peter Petrik added the comment: This issue blocks QGIS distribution on MacOS for 10.11 and 10.12 releases, https://github.com/lutraconsulting/qgis-mac-packager/issues/22 I would like to know how much work is involved to fix the issue, possible whether there is a plan to fix it. Also we

[issue35700] Place, Pack and Grid should return the widget

2019-01-09 Thread Peter Vex
New submission from Peter Vex : When you want to simply place a widget on a window and you also want to store the reference for that widget in a variable you can't do that in one line, which is really unpleasant, because when you create a new widget these things are usually the first

[issue35700] Place, Pack and Grid should return the widget

2019-01-09 Thread Peter Vex
Peter Vex added the comment: I can somewhat agreed with your point, even if it's not too realistic, but reasonable enough. Also, I'd only use method chaining, because that'd be the only option. I can't pass an argument to tk.Label at creation like 'manager="gri

[issue35700] Place, Pack and Grid should return the widget

2019-01-09 Thread Peter Vex
Peter Vex added the comment: Thank you Zachary, very interesting examples, to say the least! -- type: enhancement -> behavior versions: +Python 3.7 -Python 3.8 ___ Python tracker <https://bugs.python.org/issu

[issue35787] shlex.split inserts extra item on backslash space space

2019-01-20 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: To me the current shlex behaviour makes sense, and the shell (tested with bash) behaves the same way: $ python3 -c 'import sys; print(sys.argv)' a b ['-c', 'a', 'b'] $ python3 -c 'impo

[issue30034] csv reader chokes on bad quoting in large files

2017-04-11 Thread Peter Otten
Peter Otten added the comment: While I don't think that the csv module should second-guess broken input you might consider "fixing" your data on the fly: def close_quote(line): if line.count('"') % 2: line = line.rstrip("\n") + '&qu

[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Peter Parente
New submission from Peter Parente: Working on this PR (https://github.com/maxpoint/spylon/pull/49), I encountered an unexpected SystemError in Python 3.6 on my Mac and on Travis Linux. Exception in thread Thread-4: Traceback (most recent call last): File "/Users/parente/miniconda3

[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Peter Parente
Peter Parente added the comment: Much simpler example: https://gist.github.com/parente/a4772297459f05e43e12a5820051431b Wrapping the datetime.datetime.now in a lambda avoids the issue. -- ___ Python tracker <http://bugs.python.org/issue30

[issue33944] Deprecate and remove pth files

2019-02-27 Thread Peter L
Change by Peter L : -- nosy: +Peter L3 ___ Python tracker <https://bugs.python.org/issue33944> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33944] Deprecate and remove pth files

2019-02-27 Thread Peter L
Peter L added the comment: +1 for python -v listing .pth files found and loaded. For debugging, I just add a: import sys; print('Loading mypth.pth') to the start of the pth file. A plain print doesn't work(?). breakpoint() doesn't work(?). It would be nice to be able

[issue36193] Redirected stderr not reset properly when using logging

2019-03-05 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: I see various options to address this. (1) Change basicConfig() to use __stderr__ instead of stderr to avoid redirections from within the script. (2) Change your script to call basicConfig() explicitly, before the temporary redirection

[issue36191] pubkeys.txt contains bogus keys

2019-03-05 Thread Peter Otten
Change by Peter Otten <__pete...@web.de>: -- nosy: +peter.otten ___ Python tracker <https://bugs.python.org/issue36191> ___ ___ Python-bugs-list

[issue36193] Redirected stderr not reset properly when using logging

2019-03-06 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: [Andrius] > So it is not possible to consistently manage stderr when it involves > > logging library without explicitly "manage" it? That's what I think, at least from within a script. To me redirect_xxx() alway

[issue36561] Python argparse doesn't work in the presence of my custom module

2019-04-08 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: That's a bug in your code. You create another ArgumentParser in the toplevel code of preprocess.py. When this module is imported directly or indirectly your script will us this parser to parse the command line first. Minimal exam

[issue36664] argparse: parser aliases in subparsers stores alias in dest variable

2019-04-18 Thread Peter McEldowney
New submission from Peter McEldowney : I noticed that I have to add a lot more code to handle contexts in subparsers that I was expecting would be necessary. This is something I feel should be handled by the argparse library. What are your thoughts on this? If you run the sample code with

[issue36739] "4.6. Defining Functions" should mention nonlocal

2019-04-27 Thread Peter Bauer
New submission from Peter Bauer : In the fourth paragraph, the sentence "Thus, global variables cannot be directly assigned a value within a function (unless named in a global statement)" should somehow be extended to mention the nonlocal-statements: Thus, global variables or va

[issue36739] "4.6. Defining Functions" should mention nonlocal

2019-04-27 Thread Peter Bauer
Peter Bauer added the comment: ok, will try to create a pull-request for that, although i'm not a natural englishman... -- ___ Python tracker <https://bugs.python.org/is

[issue36739] "4.6. Defining Functions" should mention nonlocal

2019-04-27 Thread Peter Bauer
Change by Peter Bauer : -- keywords: +patch pull_requests: +12908 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue33217] x in enum.Flag member is True when x is not a Flag

2019-05-08 Thread Peter Tönz
Peter Tönz added the comment: I use python 3.8.0a3 to make our testframework ready for the future. Is it volitional that the Expression "if int in IntEnum:" raise also a TypeError? -- nosy: +Peter Tönz ___ Python tracker <https://bu

[issue32730] Allow py launcher to launch other registered Pythons

2018-01-31 Thread Peter Suter
New submission from Peter Suter : For example Anaconda Python is registered under HKEY_LOCAL_MACHINE\Software\Python\ContinuumAnalytics\Anaconda36-64\ as described in PEP 514 "Python registration in the Windows registry" . The py launcher from PEP 397 however ignores that and only

[issue32742] zipfile extractall needlessly re-wraps ZipInfo instances

2018-02-01 Thread Peter Bengtsson
New submission from Peter Bengtsson : The ZipFile class as a extractall method [0] that allows you to leave the 'members' empty. If empty, the 'members' becomes a list of all the *names* of files in the zip. Then it iterates over the names as sends each to `self._extra

[issue32742] zipfile extractall needlessly re-wraps ZipInfo instances

2018-02-01 Thread Peter Bengtsson
Peter Bengtsson added the comment: (PS. I'm new to filing Python bugs and submitting patches. I *think* this is the right version. I've only been looking at 'master'.) -- versions: +Python 3.8 ___ Python tracker <https://bug

[issue32742] zipfile extractall needlessly re-wraps ZipInfo instances

2018-02-01 Thread Peter Bengtsson
Change by Peter Bengtsson : -- keywords: +patch pull_requests: +5298 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32742> ___ ___ Py

[issue33139] Bdb doesn't find instruction in linecache after pdb.set_trace() following os.chdir("/tmp")

2018-03-25 Thread Peter Rounce
New submission from Peter Rounce : In my view there is a fault in python3 pdb in that if you use pdb.set_trace() after using os.chdir() to change the cwd to a directory that does not contain the source code being executed, then there is no instruction output on next or step. This is shown in

[issue33369] Removing Popen log files in threads is racy on Windows

2018-04-26 Thread Peter Boström
New submission from Peter Boström : OS: Windows 10, version 1607 (OS Build 14393.2189) Python --version: Python 2.7.3 Removing logfiles files just after Popen().wait() outside an open() block is racy on Windows. This seems to require multiple parallel workers to pull off, not sure where the

[issue33369] Removing Popen log files in threads is racy on Windows

2018-04-27 Thread Peter Boström
Peter Boström added the comment: Wow that's old, yeah that's fair (I wouldn't expect this to be backported to any old releases). Our current "workaround" is to try os.remove, sleep, repeat X times. This seems still racy and not something we'd like to have in our

[issue31771] tkinter geometry string +- when window ovelaps left or top of screen

2017-10-12 Thread Peter J
New submission from Peter J : the root.geometry() top-level window method returns strings like "212x128+-9+-8" when the window is located in the top left corner. The documentation only describes geometry strings containing + or - location coordinates. If this is correct beha

[issue31824] Missing default argument detail in documentation of StreamReaderWriter

2017-10-19 Thread Peter Lovett
New submission from Peter Lovett : Documentation of StreamReaderWriter at https://docs.python.org/3/library/codecs.html#codecs.StreamReaderWriter section 7.2.1.4.3 is missing the default value on the errors argument. Should change from: class codecs.StreamReaderWriter(stream, Reader, Writer

[issue31887] docs for email.generator are missing a comment on special multipart/signed handling

2017-10-27 Thread Peter Wullinger
New submission from Peter Wullinger : The documentation for email.generator.{Bytes,}Generator do not mention that Generator._handle_multipart_signed() exists and disables header folding for subparts of multipart/signed. This may cause some frustration, since, as implemented, rendering a

[issue30952] [Windows] include Math extension in SQlite

2017-11-06 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: A possible workaround is to use create_function(): >>> import sqlite3, math >>> db = sqlite3.connect(":memory:") >>> db.execute("select sin(?);", (math.pi,)).fetchone() Traceback (m

[issue33623] Fix possible SIGSGV when asyncio.Future is created in __del__

2018-05-28 Thread Peter Bašista
Peter Bašista added the comment: > Can this crash be reproduced without uvloop? I am not aware of a way to reproduce this without uvloop. > What is the backtrace of the assertion failure? Without uvloop, the following exception is raised: Exception ignored in: > Traceback (most re

[issue28909] Adding LTTng-UST tracing support

2018-07-26 Thread Peter McCormick
Peter McCormick added the comment: I would like to propose the following patch[0] which generalizes the `PyDTrace_*` definitions to a more generic `PyProbe` structure, in anticipation of including LTTng support side-by-side with the existing DTrace support. A couple of argument types in

[issue34722] Non-deterministic bytecode generation

2018-09-18 Thread Peter Ebden
New submission from Peter Ebden : We've found that the following code produces non-deterministic bytecode, even post PEP-552: def test(x): if x in {'ONE', 'TWO', 'THREE'}: pass It's not too hard to test it: $ python3.7 -m compileall --

[issue34722] Non-deterministic bytecode generation

2018-09-19 Thread Peter Ebden
Peter Ebden added the comment: Thanks for the pointer, I'll have a bit more of a dig into it (although Serhiy makes a good point too...). -- ___ Python tracker <https://bugs.python.org/is

[issue34722] Non-deterministic bytecode generation

2018-09-21 Thread Peter Ebden
Change by Peter Ebden : -- keywords: +patch pull_requests: +8885 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34722> ___ ___ Py

[issue31601] Availability of utimensat, futimens not checked correctly on macOS

2018-11-16 Thread Peter Petrik
Change by Peter Petrik : -- components: +Cross-Build -Build, macOS nosy: +Alex.Willmer, Peter Petrik versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue31

[issue35273] 'eval' in generator expression behave different in dict from list

2018-11-18 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: You probably saw this is in Python 2.7 where it is the expected behaviour. All versions of Python 3 should produce the NameError. -- nosy: +peter.otten versions: +Python 3.6 -Python 2.7 ___

[issue18224] pyvenv pydoc.py script causing AttributeErrors on Windows

2013-06-15 Thread Peter Santoro
New submission from Peter Santoro: I've recently hit an issue with pyvenv in Python 3.3.2 that is causing AttributeErrors in other packages on Windows (see https://groups.google.com/forum/?fromgroups#!topic/pylons-discuss/FpOSMDpdvy4). Here's what I believe is going on: On Wi

[issue18224] pyvenv pydoc.py script causing AttributeErrors on Windows

2013-06-17 Thread Peter Santoro
Peter Santoro added the comment: As requested, I've attached a small test script called shadow.py. Steps to reproduce: 1) pyvenv.py bugtest 2) copy the attached shadow.py script to bugtest and bugtest\scripts 3) cd bugtest 4) run shadow.py (first entry in sys.path is refers to bu

[issue18577] lru_cache enhancement: lru_timestamp helper function

2013-07-28 Thread Peter Santoro
New submission from Peter Santoro: The attached proposed lru_timestamp function provides developers with more control over how often lru_cache entries are refreshed. Doc string follows: def lru_timestamp(refresh_interval=60): """ Return a timestamp string for @lru_cache deco

[issue18577] lru_cache enhancement: lru_timestamp helper function

2013-07-28 Thread Peter Santoro
Peter Santoro added the comment: I updated my proposed lru_timestamp function with the following changes: 1) restricted refresh_interval to int type 2) updated doc string Updated doc string follows: def lru_timestamp(refresh_interval=60): """ Return a timestamp string

[issue18577] lru_cache enhancement: lru_timestamp helper function

2013-07-29 Thread Peter Santoro
Peter Santoro added the comment: I updated my proposed lru_timestamp function with the following change: 1) raise TypeError instead of ValueError -- Added file: http://bugs.python.org/file31079/lru.py ___ Python tracker <http://bugs.python.

[issue18219] csv.DictWriter is slow when writing files with large number of columns

2013-08-15 Thread Peter Otten
Peter Otten added the comment: Note that set operations on dict views work with lists, too. So the only change necessary is to replace wrong_fields = [k for k in rowdict if k not in self.fieldnames] with wrong_fields = rowdict.keys() - self.filenames (A backport to 2.7 would need to replace

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Peter Otten
Peter Otten added the comment: > a bare expression is not call Wouldn't that silently swallow a lot of bare print statements? -- nosy: +peter.otten ___ Python tracker <http://bugs.python.org

[issue18892] sqlite3, valued records not persisted, default ones are

2013-08-31 Thread Peter Otten
Peter Otten added the comment: David means you should replace the line conn.commit in your script which does not invoke the method with conn.commit() Side note: as long as you are a newbie it is a good idea to ask on the python mailing list first before adding a report to the bug tracker

[issue14612] Crash after modifying f_lineno

2012-04-18 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: frame_setlineno() doesn't keep track of with blocks. Here's a patch. -- keywords: +patch nosy: +potten Added file: http://bugs.python.org/file25258/frame_setlineno.patch ___ Pytho

[issue14638] pydoc error on instance of a custom class

2012-04-21 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: Patch upload, second attempt. -- keywords: +patch nosy: +peter.otten Added file: http://bugs.python.org/file25298/render_doc.patch ___ Python tracker <http://bugs.python.org/i

[issue14676] DeprecationWarning missing in default warning filters documentation

2012-04-26 Thread Peter Eisentraut
New submission from Peter Eisentraut : DeprecationWarning was disabled by default in Python 2.7, but the documentation section "Default Warning Filters" does not list it as ignored. In the 3.x branches, this was already fixed. Trivial patch attached. -- assignee: d

[issue14689] make PYTHONWARNINGS variable work in libpython

2012-04-28 Thread Peter Eisentraut
New submission from Peter Eisentraut : The environment variable PYTHONWARNINGS only works with the python interpreter binary, but not with programs embedding libpython. This could be changed by moving the code from Modules/main.c to Python/pythonrun.c. See attached patch (compiles cleanly

[issue11352] Update cgi module doc

2012-04-30 Thread Peter Kleiweg
Changes by Peter Kleiweg : -- nosy: -pebbe ___ Python tracker <http://bugs.python.org/issue11352> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14801] ssize_t where size_t expected

2012-05-13 Thread Peter Marheine
New submission from Peter Marheine : Cross-compiling the interpreter for a system without a definition for ssize_t fails in PyType_FromSpec (Object/typeobject.c:2380 in the 3.2.3 release, line 2409 in hg 6b8f34a1cb22). It appears the type of len should be corrected to size_t to match the

[issue14845] list() != []

2012-05-17 Thread Peter Norvig
New submission from Peter Norvig : PEP 289 says "the semantic definition of a list comprehension in Python 3.0 will be equivalent to list(). Here is a counterexample where they differ (tested in 3.2): def five(x): "Generator yields the object x five times." f

[issue14845] list() != []

2012-05-17 Thread Peter Norvig
Peter Norvig added the comment: I agree with R. David Murray -- if "correct" means following the PEP 289 semantics, then list(next(F) for _ in range(10)) should be the same as def __gen(exp): for _ in exp: yield next(F) list(__gen(iter(range(10 and indeed that i

[issue14896] plistlib handling of real datatype

2012-05-23 Thread Peter VG
New submission from Peter VG : Since strings cannot reliably be converted to floats and back, plistlib should provide an option to treat the real datatype as strings/data or to use the Decimal library class. Currently, reading and then writing a real value can change its representation in the

[issue15074] Strange behaviour of python cmd module. (Ignores slash)

2012-06-15 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: Not a python bug. You are ommitting an important detail of the stackoverflow example in your code: # we want to treat '/' as part of a word, so override the delimiters readline.set_completer_delims(' \t\n;') Please

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2012-07-24 Thread Peter Donis
Peter Donis added the comment: I recently noticed that there has been a minor code change in the _load_testfile function in doctest, so I generated a new patch against the latest pull from Mercurial (cpython). No actual changes to the issue fix, but this patch should apply cleanly against a

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2012-07-24 Thread Peter Donis
Peter Donis added the comment: Updated patch to ensure that tests pass when the -v flag is set running the test suite. This is done by having the helper script, doctest_testfile.py, call doctest.testfile with verbose=False to ensure there is no output if the test passes (which is what the

[issue15545] sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row

2012-08-06 Thread Peter Otten
Peter Otten added the comment: Here's a minimal fix that modifies the sql in sqlite3.dump._iterdump() to sort the tables by name. It is then no longer necessary to sort the resultset in Python for the unit tests to pass. -- keywords: +patch nosy: +peter.otten Added file:

[issue16026] csv.DictReader argument names documented incorrectly

2012-09-24 Thread Peter Eisentraut
New submission from Peter Eisentraut: The documentation for the csv.DictReader constructor is .. class:: DictReader(csvfile, fieldnames=None, restkey=None, restval=None, dialect='excel', *args, **kwds) but the implementation is def __init__(self, f, fieldnames=None, restkey=Non

[issue16078] Calendar.leapdays(y1,y2) bug

2012-09-28 Thread Peter Inglesby
Peter Inglesby added the comment: This behaviour is correct. Years divisible by 4 are leap years, except years divisible by 100, except years divisible 400. Source http://en.wikipedia.org/wiki/Leap_year. -- nosy: +inglesp ___ Python tracker <h

[issue16078] Calendar.leapdays(y1,y2) bug

2012-09-28 Thread Peter Inglesby
Changes by Peter Inglesby : -- nosy: +larry ___ Python tracker <http://bugs.python.org/issue16078> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16055] incorrect error text for int(base=1000, x='1')

2012-09-28 Thread Peter Inglesby
Peter Inglesby added the comment: The attached patch updates the error message to: >>> int(base=100, x='123') Traceback (most recent call last): File "", line 1, in ValueError: int() base must be >= 2 and <= 36, or 0 -- keywords: +pa

[issue16055] incorrect error text for int(base=1000, x='1')

2012-09-28 Thread Peter Inglesby
Peter Inglesby added the comment: Ah, sorry about that. Are you happy for me to write the test? Poking around the C API docs suggests that I should call PyErr_Fetch() to get the value of the a raised exception, but I can't see any precedent for this in existing test code. Can you poi

[issue16073] fix map() statement in list comprehension example

2012-09-28 Thread Peter Inglesby
Peter Inglesby added the comment: Have attached a patch with suggested update. Have also grepped for similar issues elsewhere in documentation, and haven't found anything, but may have missed something. -- keywords: +patch nosy: +inglesp Added file: http://bugs.python.org/file

[issue15593] urlparse.parse_qs documentation wrong re: urlencode

2012-09-28 Thread Peter Russell
Peter Russell added the comment: Attached is a patch which adds a reference to the doseq parameter to urlencode to the documentation for parse_qs -- keywords: +patch nosy: +qwertyface Added file: http://bugs.python.org/file27331/Issue-15593.patch

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-09-28 Thread Peter Russell
Peter Russell added the comment: I can confirm that the current equivalent to Mark's original test case works as expected on default. I recommend closing this issue. -- nosy: +qwertyface ___ Python tracker <http://bugs.python.org/is

[issue16055] incorrect error text for int(base=1000, x='1')

2012-09-30 Thread Peter Inglesby
Peter Inglesby added the comment: Ok, I've now attached a patch with tests. -- Added file: http://bugs.python.org/file27353/issue16055-fix-with-tests.patch ___ Python tracker <http://bugs.python.org/is

[issue16239] PEP8 arithmetic operator examples

2012-10-15 Thread Peter Würtz
New submission from Peter Würtz: I think the PEP8 examples for arithmetic expressions are a bit misleading. (http://www.python.org/dev/peps/pep-0008/#id20) The text clearly says that it should add spaces around operators of low(est) priority, which means that I'm encouraged to visually

[issue16239] PEP8 arithmetic operator examples

2012-10-26 Thread Peter Würtz
Peter Würtz added the comment: >> x * 2 - 1 is less clear than x*2 - 1 > I don't feel this. Anyone else feel this? I strongly feel so. And if you don't take my word for it, just open any math book or look at any formula and recognize that it is the general consensus that

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2014-03-13 Thread Peter Santoro
Peter Santoro added the comment: I've attached a zip file which contains a test script and test zip files for the previously submitted Python 3.3.5 patch. See the included README.txt for more information. To view the contents of the included bad.zip file, use the following command: &g

[issue11122] bdist_rpm should use rpmbuild, not rpm

2014-03-14 Thread Peter Eisentraut
Peter Eisentraut added the comment: No, the second use should not be converted. -- ___ Python tracker <http://bugs.python.org/issue11122> ___ ___ Python-bug

[issue19186] expat symbols should be namespaced in pyexpat again

2014-03-19 Thread Peter Kruse
Peter Kruse added the comment: Hello, it seems that the solution to this issue causes the failure to compile the pyexpat extension in my case. If I do not include pyexpatns.h in expat_external.h then the compile succeeeds. I will attach the output for both cases. There was no problem with

[issue19186] expat symbols should be namespaced in pyexpat again

2014-03-19 Thread Peter Kruse
Changes by Peter Kruse : Added file: http://bugs.python.org/file34510/without-pyexpatns.txt ___ Python tracker <http://bugs.python.org/issue19186> ___ ___ Python-bug

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2014-03-20 Thread Peter Santoro
Peter Santoro added the comment: It seems clear to me that the logic in shutil._unpack_zipfile that silently skips paths that start with '/' (indicates absolute path) or that contain references to the parent directory ('..') was added to prevent malicious zip files f

[issue21177] ValueError: byte must be in range(0, 256)

2014-04-08 Thread Peter Otten
Peter Otten added the comment: As every beginner will learn about (and probably overuse) range() pretty soon I think it's OK to use that form. The math-inspired notation [0, 255] may be misinterpreted as a list. You also lose the consistency of preferring half-open intervals everywhere.

[issue21435] Segfault with cyclic reference and asyncio.Future

2014-05-05 Thread Peter Inglesby
New submission from Peter Inglesby: The following code causes a segfault when run under Python3.4+ on OSX10.9. # segfaulter.py import asyncio class A: pass class B: def __init__(self, future): self.future = future def __del__(self): self.a = None

[issue21435] Segfault in gc with cyclic trash

2014-05-09 Thread Peter Inglesby
Peter Inglesby added the comment: It was actually through playing with aiohttp that I first hit this issue. I think I originally hit the problem with something like: import asyncio import aiohttp @asyncio.coroutine def do_work(future): response = yield from aiohttp.request('get&#x

[issue19186] expat symbols should be namespaced in pyexpat again

2014-05-15 Thread Peter Kruse
Peter Kruse added the comment: Fascinating, you are right, very good, thanks for your time and looking into this. Peter -- ___ Python tracker <http://bugs.python.org/issue19

[issue21553] Behaviour of modules depends on how they where imported

2014-05-22 Thread Peter Otten
Peter Otten added the comment: Here's a simpler demo for what I believe you are experiencing: $ mkdir package $ cd package/ $ touch __ini__.py module.py $ export PYTHONPATH=.. $ python3 Python 3.3.2+ (default, Feb 28 2014, 00:52:16) [GCC 4.8.1] on linux Type "help", "copy

[issue5950] Make zipimport work with zipfile containing comments

2014-05-28 Thread Peter Otten
Changes by Peter Otten <__pete...@web.de>: -- nosy: +peter.otten ___ Python tracker <http://bugs.python.org/issue5950> ___ ___ Python-bugs-list mailing list

[issue444582] Finding programs in PATH, adding shutil.which

2012-11-06 Thread Peter Eisentraut
Changes by Peter Eisentraut : -- nosy: +petere ___ Python tracker <http://bugs.python.org/issue444582> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11122] bdist_rpm should use rpmbuild, not rpm

2012-11-06 Thread Peter Eisentraut
Peter Eisentraut added the comment: I ran into a similar instance of this problem today and would like to add my support for just getting rid of the "rpm" calls and just call "rpmbuild" in all cases. The last release where "rpm" was used for buildi

[issue16944] German number separators not working using format language and locale "de_DE"

2013-01-12 Thread Peter Stahl
New submission from Peter Stahl: Yesterday, I opened a question on Stackoverflow that explains my problem in detail. Please read this page first: http://stackoverflow.com/questions/14287051/german-number-separators-using-format-language-on-osx A short summary: I'm on OSX 10.8.2. I want

[issue16944] German number separators not working using format language and locale "de_DE"

2013-01-12 Thread Peter Stahl
Peter Stahl added the comment: Using the locale 'de_DE', the output is: {'mon_decimal_point': ',', 'int_frac_digits': 2, 'p_sep_by_space': 0, 'frac_digits': 2, 'thousands_sep': '', 'n_sign_posn':

[issue17020] random.random() generating values >= 1.0

2013-01-23 Thread Peter Otten
Peter Otten added the comment: This could be a duplicate of issue14591. -- nosy: +peter.otten ___ Python tracker <http://bugs.python.org/issue17020> ___ ___ Pytho

[issue19210] Unicode Objects in Tuples

2013-10-09 Thread Peter Otten
Peter Otten added the comment: Be aware that for a 1-tuple the trailing comma is mandatory: >>> print (u"äöü") # this is a string despite the suggestive parens äöü >>> print (u"äöü",) # this is a tuple (u'\xe

[issue19264] subprocess.Popen doesn't support unicode on Windows

2013-10-14 Thread Peter Graham
New submission from Peter Graham: On Windows, subprocess.Popen requires the executable name and working directory to be ascii. This is because it calls CreateProcess instead of CreateProcessW. -- components: Library (Lib), Unicode, Windows messages: 199976 nosy: ezio.melotti, peter0

[issue19452] ElementTree iterparse documentation

2013-10-30 Thread Peter Harris
New submission from Peter Harris: Documentation on python website says: xml.etree.ElementTree.iterparse(source, events=None, parser=None) Parses an XML section into an element tree incrementally, and reports what’s going on to the user. source is a filename or file object containing XML

[issue19452] ElementTree iterparse documentation

2013-10-30 Thread Peter Harris
Peter Harris added the comment: Yeah it would make sense to accept any iterable, but I'm only proposing a documentation fix not a feature enhancement. -- ___ Python tracker <http://bugs.python.org/is

<    1   2   3   4   5   6   7   >