New submission from Pavel V :
There are no parentheses for 'font' argument in turtle.write() documentation
https://docs.python.org/3.10/library/turtle.html#turtle.write
--
assignee: docs@python
components: Documentation
messages: 406795
nosy: docs@python, willyns
priori
pavel-lexyr added the comment:
Thank you all for your input! Migrating the discussion to
https://mail.python.org/archives/list/python-id...@python.org/thread/UQRCDWMFNC5NRLLQCTYPOEGWJOIV7BGJ/
for now, if anyone wants to continue.
--
resolution: rejected
Change by pavel-lexyr :
--
resolution: -> rejected
___
Python tracker
<https://bugs.python.org/issue44768>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by pavel-lexyr :
--
versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue44
pavel-lexyr added the comment:
Touche. Another advantage a namedtuple has is that it can expand out of the box
- i.e., can write something like
> for x, y, z in namedtuple_list:
without any list comprehensions.
Can we bring those advantages into the dataclass while also preserving
pavel-lexyr added the comment:
Most of the differences are direct upgrades added in the dataclass module.
Deprecating dataclass in favour of nametuple would be counterproductive, I
agree - what about vice versa?
--
___
Python tracker
<ht
Change by pavel-lexyr :
--
keywords: +patch
nosy: +pavel-lexyr
nosy_count: 3.0 -> 4.0
pull_requests: +25959
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/27430
___
Python tracker
<https://bugs.p
New submission from pavel-lexyr :
PEP 20 states:
> There should be one-- and preferably only one --obvious way to do it.
As of right now, two very similar constructions for making a lightweight
dataclass exist in Python.
collections.namedtuple is one of them. dataclasses.dataclass is
Pavel Moiseenko added the comment:
@paul.moore, but you don't need to open additional menus in the control panel
to see the version of the app.
--
___
Python tracker
<https://bugs.python.org/is
Pavel Moiseenko added the comment:
This does not cause any problems in the operation of the app, but visually it
looks strange. Most other apps don't indicate the version of the app in the
name of the app, but just indicate it in a specially made field for this.
Therefore, it would be
Change by Pavel Moiseenko :
Added file: https://bugs.python.org/file50148/2021-07-14 13-50-19 Programs and
Features.png
___
Python tracker
<https://bugs.python.org/issue44
New submission from Pavel Moiseenko :
The version of the app is duplicated in the name of the app in the list of
installed apps in "Settings - Apps - Apps & features" and "Control Panel -
Programs - Programs and Features" in the version for Windows. Please remove the
pavel-lexyr added the comment:
Thank you - that answers the questions. The use case where we would want to
know if the last element is transitional or not completely slipped my mind for
some reason.
--
___
Python tracker
<https://bugs.python.
pavel-lexyr added the comment:
There is a core part of the `takedowhile` proposal's use case that I am having
trouble envisioning via the alternative `before_and_after` proposal. If the
`after` part of the iterator the user does not engage with, the transitional
elements will be
pavel-lexyr added the comment:
I see. If the syntax allows for better ways to do it now, perhaps a move
towards deprecation would be a better idea then? This would agree with the Zen.
Also, please elaborate more on the generator-based solutions you have in mind.
The suggestion stems from a
New submission from pavel-lexyr :
As described in the documentation, itertools.takewhile() returns all the
elements until the first one that does not match the provided criterion. In
case of a destructive iterator, or one with side effects, not yielding an
element downstream may render
New submission from pavel-lexyr :
Python's native HTTP server (http.server module) has special code to allow it
to detect and bind to IPv6 addresses when called as a CLI tool. As of right
now, the code is in private functions. Those are not intended to be called by
library users - onl
Change by Pavel Ditenbir :
--
versions: -Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue42875>
___
___
Python-bugs-list mailin
Change by Pavel Ditenbir :
--
versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue42875>
___
___
Pytho
Change by Pavel Ditenbir :
--
keywords: +patch
pull_requests: +23003
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24177
___
Python tracker
<https://bugs.python.org/issu
New submission from Pavel Ditenbir :
Steps to reproduce.
Run the attached script:
$ python3 argparse-indent-sample.py --help
The output is:
usage: argparse-indent-sample.py [-h] CMD ...
optional arguments:
-h, --help show this help message and exit
service:
CMD
Pavel Raiskup added the comment:
Check out this default behavior of /bin/cp though:
$ mkdir a b
$ echo content > a/file
$ ln -s non-existing b/file
$ cp a/file b
cp: not writing through dangling symlink 'b/file'
Shouldn't shutil.copy*() refuse to write
Change by Pavel Trukhanov :
--
type: -> enhancement
versions: +Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python
3.9
___
Python tracker
<https://bugs.python.org/issu
New submission from Pavel Trukhanov :
The documentation found in
https://docs.python.org/3/library/hashlib.html#hash-algorithms
give us the following two examples:
```
For example, to obtain the digest of the byte string b'Nobody inspects the
spammish repetition':
>>>
Pavel Minaev added the comment:
Debuggers will have to work around this in past Python versions that they
support (which still includes Python 2 for pretty much all of them), so this is
solely about resolving the inconsistency for the future. No point rushing it
for 3.8 specifically.
(The
Pavel Minaev added the comment:
It's also possible to hit if using some native code that starts a background
thread without going via threading, and runs Python code on that background
thread. In that case, if that Python code then does "import threading", and
threading hasn&
Pavel Minaev added the comment:
This is a bit tricky to explain... There's no easy way to achieve this effect
"normally". It manifests due to the way some Python debuggers (specifically,
pydevd and ptvsd - as used by PyCharm, PyDev, and VSCode) implement
non-cooperative
Change by Pavel Minaev :
--
nosy: +int19h
___
Python tracker
<https://bugs.python.org/issue37416>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Pavel Koneski :
--
keywords: +patch
pull_requests: +13535
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/13639
___
Python tracker
<https://bugs.python.org/issu
Pavel Koneski added the comment:
> I'm assuming the real issue is wanting to make IronPython pass as much of the
> CPython test suite as possible.
This is indeed the case. The CPython test suite is invaluable in guiding
IronPython development. Most of the time, the tests are pre
Change by Pavel Koneski :
--
versions: -Python 3.5, Python 3.6
___
Python tracker
<https://bugs.python.org/issue36919>
___
___
Python-bugs-list mailin
Pavel Koneski added the comment:
If "equivalent input" is acceptable, then it looks like case B: other
implementations possibly having different forms of equivalent input.
I am going to post this question on python-dev.
--
versions: +Python 3.5,
Pavel Kostyuchenko added the comment:
Also it might be viable to add some assertion to verify the take_gil is not
called with uninitialized interpreter.
I used the changes in the attachment (take_gil.assert.patch), but it produced
errors during test_tracemalloc with
Pavel Kostyuchenko added the comment:
I was able to reproduce the error with version
f13c5c8b9401a9dc19e95d8b420ee100ac022208 on FreeBSD 12.0 VM. The error seems to
be caused not by those changes, but by lack of synchronization in the
multiprocessing.managers.Server.
The failure happens
New submission from Pavel Koneski :
Since Python 3.2, input in 'exec' mode of 'compile' does not have to end in a
newline anymore. However, it creates a surprising behavior when a 'SyntaxError'
is reported:
>>> try: compile('try', '
Shishmarev Pavel added the comment:
https://github.com/python/cpython/blob/master/Lib/urllib/parse.py#L875
It's redundant to raise and then catch exception.
I mean:
if len(query) and not isinstance(query[0], tuple):
ty, va, tb = sys.exc_info()
raise TypeError("not a valid
Change by Shishmarev Pavel :
--
pull_requests: +10288
___
Python tracker
<https://bugs.python.org/issue35447>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Shishmarev Pavel :
--
keywords: +patch
pull_requests: +10287
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35447>
___
_
New submission from Shishmarev Pavel :
https://github.com/python/cpython/blob/master/Lib/urllib/parse.py#L875
It's redundant to raise and then catch exception.
--
components: Library (Lib)
messages: 331436
nosy: PashaWNN
priority: normal
severity: normal
status: open
title: Redu
Change by Pavel Jurkas :
--
pull_requests: +7838
___
Python tracker
<https://bugs.python.org/issue34129>
___
___
Python-bugs-list mailing list
Unsubscribe:
Pavel Jurkas added the comment:
https://github.com/python/cpython/pull/8304
--
___
Python tracker
<https://bugs.python.org/issue34129>
___
___
Python-bugs-list m
Pavel Jurkas added the comment:
https://github.com/python/cpython/pull/8302
--
___
Python tracker
<https://bugs.python.org/issue34129>
___
___
Python-bugs-list m
Change by Pavel Jurkas :
--
pull_requests: +7836
___
Python tracker
<https://bugs.python.org/issue34129>
___
___
Python-bugs-list mailing list
Unsubscribe:
Pavel Jurkas added the comment:
https://github.com/python/cpython/pull/8301
--
___
Python tracker
<https://bugs.python.org/issue34129>
___
___
Python-bugs-list m
Change by Pavel Jurkas :
--
keywords: +patch
pull_requests: +7835
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34129>
___
___
Py
New submission from Pavel Jurkas :
CGITB does not mangle private variables names. So they are displayed as
undefined even though they are defined. Example:
self.__core undefined
--
messages: 321757
nosy: pjurkas
priority: normal
severity: normal
status: open
title: CGITB does not
Pavel Raiskup added the comment:
On Friday, June 15, 2018 11:54:04 AM CEST Daniel Walsh wrote:
> Correct, the reason I would want this is to add something to a Makefile
> ...
> manpages: foo.py
> ./python foo.py --manpage > foo.1
The /bin/argparse-manpage could help temp
Pavel Raiskup added the comment:
On Friday, June 15, 2018 1:52:41 AM CEST Ben Finney wrote:
> On Thu, 2018-06-14 23:46 +, Aaron Meurer wrote:
> > Couldn't such a tool exist outside the standard library.
>
> I've tried writing such a tool. It would ideally re-u
Change by Pavel Raiskup :
--
nosy: +Pavel Raiskup
___
Python tracker
<https://bugs.python.org/issue14102>
___
___
Python-bugs-list mailing list
Unsubscribe:
Pavel Shpilev added the comment:
I know that CSV specification says empty field and empty string are the same,
however, I still believe there is practical use for unconventional processing
of such fields.
In our specific case we parse CSVs produced by Amazon Athena (based on Presto)
in
New submission from Pavel Shpilev :
It appears that in current implementation csv.QUOTE_ALL has no effect on csv.
reader(), it only affects csv.writer(). I know that csv is a poorly defined
format and all, but I think this might be useful to distinguish None and ''
values for the so
New submission from Pavel:
At the very beginning the csv module documentation
(https://docs.python.org/3.7/library/csv.html) advises to open files passing
newline='' parameter though three examples don't include it:
Here are the examples:
1:
>>> import csv
>&
Pavel Chuvakhov added the comment:
Sorry about script, n1 should be n, and n2 should be m. Updated script is
attached.
Ofc mpz is a way out. One also could cast int( np.int32 ) explicitly. I just
wanted to underline that the best way is to hide all this stuff from a user and
not make the
New submission from Pavel Chuvakhov:
Standard `pow` function of three integer arguments should result in a reminder
`(x**y) % z`. It seems that `pow(x,y,z)` ignores `%z` operation if type(z) is
not `int`. This happens also in the cases when `z` has type numpy.int32,
numpy.int64, etc. I
Pavel Savchenko added the comment:
An implementation of this exists in pytest-mock. Recently an idea was brought
up to shift the development of PR #57 into mock directly for everyone's benefit.
https://github.com/pytest-dev/pytest-mock
https://github.com/pytest-dev/pytest-mock/pu
Changes by Pavel Cisar :
--
versions: +Python 3.5
___
Python tracker
<http://bugs.python.org/issue28486>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Pavel Cisar:
Hi,
python re returns wrong end index of searched group and also subgroup itself.
Example:
In: price_string = u"1 307 000,00 Kč"
In: match = re.search(r"([,\.]00)\s?.*$", price_string)
In: print price_string, "|", matc
New submission from Pavel Belikov:
To demonstrate the capabilities of our analyzer, we regularly perform analysis
of open source projects. We had recently checked the CPython project.
Here is the link to the article about it: http://www.viva64.com/en/b/0414/
Official page of the analyzer: http
New submission from Pavel:
The example advises ".*[.](?!bat$).*$" expression "to match filenames where the
extension is not bat". But here is an example which passes such check:
>>> re.match("(.*)[.](?!bat$).*$", "test.a.bat")
<_sre.SR
New submission from Pavel Ivanov:
urllib.parse.urljoin does not conform the RFC 1808 in case of joining relative
URL’s containing ‘..’ path components anymore.
Examples:
Python 3.4:
>>> urllib.parse.urljoin('http://a.com', '..')
'http://a.com/..'
Pyt
Pavel Roskin added the comment:
Thank you for the comments. I was annoyed by py_compile making files with names
very similar to the original scripts, names that could not even be recognized
by shell patterns in .gitignore unless scripts ending with "c" are banned. But
that
Pavel Roskin added the comment:
That's what I have now:
check:
$(PYTHON) -m py_compile $(SOURCES)
rm -f $(addsuffix c, $(SOURCES))
make check
python -m py_compile redacted-build redacted-git-diff redacted-git-gc
redacted-git-status redacted-init redacted-s
New submission from Pavel Roskin:
$ echo "'''Simple script'''" >simple-script
$ PYTHONDONTWRITEBYTECODE=1 python3 -B -m py_compile simple-script
$ ls __pycache__
simple-scriptcpython-35.pyc
py_compile should recognize when the user doesn't want t
New submission from Pavel Strashkin:
According to http://www.json.org/ and
https://tools.ietf.org/html/rfc7159#section-7, the solidus ("/") should be
escaped ("\/") and currently it's not.
--
messages: 239170
nosy: xaka
priority: normal
severity: normal
statu
Pavel Roskin added the comment:
I have tested the patch. It fixes the problem for me.
You are right, new programs would just supply translated help to the version
action. No effort would be saved.
But the programs updated from the deprecated syntax may rely on a separate
string list for
Changes by Pavel Repin :
--
nosy: -paxan
___
Python tracker
<http://bugs.python.org/issue4431>
___
___
Python-bugs-list mailing list
Unsubscribe:
Pavel Tyslyatsky added the comment:
Thanks for reply, I really missed many cases. I will try look deeper.
--
___
Python tracker
<http://bugs.python.org/issue21
New submission from Pavel Tyslyatsky:
This proposal look preaty close to pep-463:
http://legacy.python.org/dev/peps/pep-0463/, but in assertion context.
Now python test libraries have different aproach for assertions, some try use
own implementations, for example, for equality `assertEqual
Pavel Kazlou added the comment:
The idea is to keep the same order as in input.
--
___
Python tracker
<http://bugs.python.org/issue21650>
___
___
Python-bug
Pavel Kazlou added the comment:
This is the line in module I'm talking about:
json.dump(obj, outfile, sort_keys=True, indent=4)
--
___
Python tracker
<http://bugs.python.org/is
New submission from Pavel Kazlou:
Currently when you use json.tool, fields are reordered alphabetically.
In source code the value of sort_keys is hardcoded to be true.
It should be easy to expose this option as command line parameter.
--
components: Library (Lib)
messages: 219675
nosy
Pavel Machyniak added the comment:
This is the proposed patch (compared 2 trees src & upd where src is latest
release 3.4.1, upd is my working). Changes are in: configure, setup.py. Please
review it and hopefully integrate to future releases.
--
keywords: +patch
versions: +Python
New submission from Pavel Machyniak:
There is no easy way to build python with custom openssl build. This can lead
to miscellaneous problems (like segmentation faults) in various
situations/configurations (see eg.
http://stackoverflow.com/questions/22409092/coredump-when-compiling-python-with
Pavel Machyniak added the comment:
Unfortunately this patch will not work if there is other (system) openssl
installed in the default locations (`/usr/include`, `/usr/lib`) because this
patch only add another path at the end of the search list.
Instead of this I will make a ticket for
Pavel Aslanov added the comment:
This function is broken again in version 3.4
The way it should look is:
Python 2.7.6 (default, Feb 26 2014, 12:07:17)
[GCC 4.8.2 20140206 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license"
Pavel Kazakov added the comment:
> (Alternatively, we could redefine squares in Python. All other languages
> just have the regular squares; Python has a super *extra* square 2! That
> clearly makes squares in Python *better* than squares in other languages...)
Heh. I initially wa
New submission from Pavel Kazakov:
This is probably being nitpicky, but in the introduction section, the squares
list include a 2:
squares = [1, 2, 4, 9, 16, 25]
However, 2 is not a square number (perfect square). So it should be:
[1, 4, 9, 16, 25]
I've included a patch that removes
New submission from Pavel Maltsev:
ppc_405, Linux 2.4, GCC 3.3.1
Python crashes on attempt to pass python callback function to custom C++
library under PowerPC 405. This happens because some versions of GCC (I guess
below 4.1) doesn't raise __NO_FPRS__ flag if hard-floats is not supp
Pavel Fedin added the comment:
I see it's deprecated and dropped, but anyway, why not to fix it to work on
Windows? From 10197 i see the fix is quite simple, and there is lots of legacy
code i believe.
--
___
Python tracker
New submission from Pavel Fedin :
commands.getoutput() is broken on Windows. The issue has been detected in
v2.7.2, but still persists in v2.7.3:
--- cut ---
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on
win32
Type "help", "copyright", "
Pavel Aslanov added the comment:
Main use case of pkgutil.get_loader is to determine if its possible to load
module and either return loader or None. But it throws exception more over it
is AttributeErrror exception.
--
___
Python tracker
<h
New submission from Pavel Aslanov :
if module was marked as not existing by setting sys.modules [fullname] to None,
then pkgutil.get_loader (fullname) will throw AttributeError.
Example:
#! /usr/bin/evn python
import unittest
import pkgutil
def main ():
pkgutil.get_loader
Changes by Pavel Labushev :
--
nosy: +Arach
___
Python tracker
<http://bugs.python.org/issue13703>
___
___
Python-bugs-list mailing list
Unsubscribe:
Pavel Boldin added the comment:
We have raw data packages from some tools. These packages contains bitfields,
arrays, simple data and so on.
We want to parse them into Python objects (structures) for analysis and
storage. I tried to use ctypes, but now I wrote myself implementation of raw
Pavel Boldin added the comment:
OK. So, it seems just like ctypes work, but don't for my needs.
Thing that bothers me anyway is the strange code, where size contains either
size (when bitsize==0) or bitsize in upper 16 bits and bitoffset in lower 16
Pavel Boldin added the comment:
Yes. Thanks. But here is another error:
import ctypes
class X(ctypes.Structure):
_pack_ = 1
_fields_ = [
('a', ctypes.c_ubyte, 4),
('b', ctypes.c_ubyte, 4),
('c', ctypes.c_ushort, 4),
New submission from Pavel Boldin :
ctypes seems to work incorrectly with _swappedbytes_ specified.
I.e. it misses some values from buffer:
class X(ctypes.Structure):
_swappedbytes_ = 1
_pack_ = 1
_fields_ = [
('a', ctypes.c_ubyte, 4),
('b'
Pavel Bogdanovic added the comment:
yes, the patch mentioned in issue 11715 works.
Sorry for crossposting the issue.
--
___
Python tracker
<http://bugs.python.org/issue12
New submission from Pavel Bogdanovic :
Compiling of Python does end with an error.
It has to do with changes in Ubuntu: https://wiki.ubuntu.com/MultiarchSpec
I added one line after python's setup.py after line 351
add_dir_to_list(self.compiler.library_dirs, '/usr/lib/i386-linux-gnu
Pavel Labushev added the comment:
How to reproduce:
# mkdir /mnt/readonly
# mount --bind / /mnt/readonly
# mount -o remount,ro /mnt/readonly
# mount -t proc proc /mnt/readonly/proc
# chroot /mnt/readonly python3.2 -c "import ctypes"
Segmentation fault
If your python build expect
New submission from Pavel Labushev :
"import ctypes" causes segfault on read-only filesystem
This regression was introduced in python-2.6.6 and exists in all the later
versions.
To reproduce run python -c "import ctypes" on read-only filesystem:
(gdb) file python3.2
Pavel Labushev added the comment:
Note that the removing of PROT_EXEC flag doesn't break any ctypes test.
--
nosy: +Arach
___
Python tracker
<http://bugs.python.org/i
New submission from Pavel Denisow :
We have a problem with using native Mac OS dialogs (Save As..., Load) on
Russian Mac:
Dialogs are not translated even with file-translation. See attached screenshots.
Same code in Linux works perfect. C++ QT project in Mac has translation in
native dialogs
Pavel Kosina added the comment:
Trying to patch the latest revision 72608 and it didnt work, here on winxp.
C:\prg\Python30\Lib\idlelib>svn update
Restored 'IOBinding.py'
At revision 72608.
C:\prg\Python30\Lib\idlelib>patch IOBinding.py defaultextension.patch
--verbose
Hmm.
Pavel Repin added the comment:
Marc-Andre,
I can also repro this on Vista machine with the same Python & MSVS
configuration.
This is the build error stemming from missing manifest file
(unnecessary details elided; note the absence of /MANIFEST option):
C:\src\MySQL-python-1.2.2>python s
Pavel Repin added the comment:
Hi Marc,I am pretty sure it helped on my particular configuration.
I was trying to compile MySQL-python-1.2.2.tar.gz package from source and it
was failing in mt.exe step because the manifest file was not there.
I didn't do anything special on my machine. I h
Pavel Repin added the comment:
I'd like to point out that on some configurations (at least mine), you
really need to specify /MANIFEST option to the linker, even though MSDN
documentation seems to imply that /MANIFEST behavior is ON by default.
My config:
beta version of Wind
New submission from Pavel Kosina :
There should not be necessity to write filename *with extension* at the
saving dialog. It should be enough, at least on Windows, to put there
just "hello" and get "hello.py". It is really complication especially
for beginners. If they, as t
Pavel Kosina added the comment:
Martin v. Löwis napsal(a), dne 4.1.2009 14:39:
> Why that? This file is already encoded in utf-8 just fine. It is,
> simultaneously, also encoded in ASCII, cp1250, cp1252, and nearly
> any other encoding in use (as long as it is ASCII-based).
>
W
Pavel Kosina added the comment:
With this file - hello.py (attached) - I should be also asked for
converting to utf8. When I open it, nothing changes, after making
changes and saving then the encodings is my windows standard cp1250
Added file: http://bugs.python.org/file12582/hello.py
1 - 100 of 126 matches
Mail list logo