New submission from Jeremiah Gabriel Pascual :
In https://docs.python.org/3/c-api/typeobj.html#static-types, it says that
PyTypeObject isn't part of the stable ABI. Yet, in
https://docs.python.org/3/c-api/type.html#c.PyTypeObject, it says that
PyTypeObject IS part of the stable ABI. Whi
Change by Jeremiah Gabriel Pascual :
--
nosy: +Crowthebird
___
Python tracker
<https://bugs.python.org/issue47012>
___
___
Python-bugs-list mailing list
Unsub
Jeremiah Gabriel Pascual added the comment:
New benchmarks with the new changes:
PyLong_AsSsize_t: Mean +- std dev: [orig] 10.3 us +- 0.6 us -> [modif] 9.03 us
+- 0.61 us: 1.14x faster
PyLong_AsSize_t: Mean +- std dev: [orig] 10.5 us +- 2.4 us -> [modif] 9.26 us
+- 0.17 us: 1.13x
Jeremiah Gabriel Pascual added the comment:
Revisiting this 2+ year-old bug report, can I create another PR that implements
the old PR's comments' suggestions?
--
nosy: +Crowthebird
___
Python tracker
<https://bugs.python.o
New submission from Gabriel Costa :
>>> datetime.now(timezone.utc).timestamp()
1626556067.054988
>>> datetime.utcnow().timestamp()
1626566875.174921
Should there be a difference between the two modes?
--
components: C API
messages: 397733
nosy: gabhcosta
priorit
Change by Gabriel Amine Eddine :
--
nosy: +gabrielhae
___
Python tracker
<https://bugs.python.org/issue15751>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Elian Mariano Gabriel :
--
keywords: +patch
pull_requests: +22358
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23468
___
Python tracker
<https://bugs.python.org/issu
New submission from Elian Mariano Gabriel :
Inside the file calendar.py, there are two functions which are supposed to
calculate the previous and next month relative to the actual year and month.
def _prevmonth(year, month):
if month == 1:
return year-1, 12
else
Change by Elian Mariano Gabriel :
--
keywords: +patch
pull_requests: +21099
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21993
___
Python tracker
<https://bugs.python.org/issu
New submission from Elian Mariano Gabriel :
Refactoring in the Makefile is needed due a hard coded declaration to the
'OBJECT_OBJS' variable in the line 388.
This hard coded declaration can be replaced by a pattern substitution function
which assigns the 'OBJECT_OBJS' v
New submission from Jose Gabriel :
I was doing a small serial communication system using pyserial. when I done the
script on a .py file, it not worked. but when I opened
the python console and writed line by line the same code of the .py file, it
worked.
the .py file:
import serial
ser
Gabriel Tardif added the comment:
Be aware that maxtasksperchild work together with the chunksize parameter of
the map fonction when you use it and the default chunksize value is not 1, it's
calculated according to your inputs, process and other parameters.
--
resolution: -&g
Change by Gabriel Tardif :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue39458>
___
___
Python-bugs-list
New submission from Gabriel Tardif :
Hello
This bug is about the maxtasksperchild parameter in the Pool object constructor
of the multiprocessing module.
When you set processes = 1 in the Pool constructor
maxtasksperchild value is double by two for unknow raison whatever the
maxtaskperchild
Gabriel C added the comment:
Some further investigation suggests this may have nothing to do with pickle at
all.
Consider the following short example:
```
def CreateDynamicClass(basetype):
class DynamicClassImpl(basetype):
def __init__(self):
super(DynamicClassImpl
New submission from Gabriel C :
The following results in a segfault on 3.7.4 (running on macOS high sierra) and
3.5 (running on ubuntu 16.04). It does not happen in python 2.7.
The problem seems to involve two effects. The first is the creation of a class
with a dynamic type that inherits
New submission from Gabriel Corona :
The CLI tools shipped in Debian python-rdflib-tools package can load modules
from the current directory [1]:
$ echo 'print("Something")' > cgi.py
$ rdf2dot
INFO:rdflib:RDFLib Version: 4.2.2
Something
Reading from
Gabriel Corona added the comment:
Now that the default PRNG of the 'random' package is automatically reseeded at
fork, wouldn't it make sense to reseed the OpenSSL seed as well?
(At the same time the OpenSSL wiki states [1] that "The situation has changed
greatly, s
Gabriel Marko added the comment:
@Larry and Terry:
I want to stay out of this discussion or participation on Python development
for the future as I've expressed it elsewhere
(https://bugs.python.org/issue34660#msg325515). However, I want to address the
unfair treatment of my perso
Gabriel Marko added the comment:
@terry.reed:
I politely ask you: Please use my proper first name if you refer to me and
please don't call me an extremist (like here
https://bugs.python.org/msg325802). Feel free to criticize my opinion but don't
put labels on me. We don't
Change by Gabriel Marko :
--
nosy: -suic
___
Python tracker
<https://bugs.python.org/issue34605>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Gabriel Marko :
--
nosy: -suic
___
Python tracker
<https://bugs.python.org/issue34660>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Gabriel Marko :
--
nosy: -suic
___
Python tracker
<https://bugs.python.org/issue34694>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gabriel Marko added the comment:
@terry.reedy
> Gabriel, I believe I addressed most your concerns in my previous post.
I don't think so (see below) but we don't have to agree in everything. :)
> Are you are suggesting that we judge proposals _by the proposer_, rather than
Gabriel Marko added the comment:
@terry.reedy: By madness I meant:
1. blank replacement of words without relevant justification. Collecting 5
links and labelling some words as pejorative or ist or do it for
“diversity reasons” etc. is no justification. I have no problem with changing
Gabriel Marko added the comment:
@serhiy.storchaka: IMO, the problem isn't the master/slave terminology itself
but the way how the changes were introduced (no discussion) and the
justification ("diversity reasons"???).
IMO this is the next level: https://bugs.python.org/i
Gabriel Marko added the comment:
@Mariatta:
> There will be no further discussion about this.
Repeating this over and over again won't solve the (any) issue. This madness
reached another level here: https://bugs.python.org/issue34660. That was
exactly my point here: https://bugs.py
Gabriel Marko added the comment:
Come on guys. Stop this madness. :(
--
nosy: +suic
___
Python tracker
<https://bugs.python.org/issue34660>
___
___
Python-bug
Gabriel Marko added the comment:
The discussion under GH PRs is now censored. What will be the next level?
--
___
Python tracker
<https://bugs.python.org/issue34
Gabriel Marko added the comment:
@cheryl.sabella let me challenge some points in your arguments:
> Based on that, I don't think it's fair to blame Victor for bringing it up for
> discussion.
Ok, but where was the discussion? @vstinner didn't even make a point and
Gabriel Marko added the comment:
@mcepl: I completely agree with you that we shouldn't waste time with this. I
would be better not to dig into the discussion about "master-slave"
terminology. IMO we don't even need to go into that as the problem here is more
substan
Gabriel Marko added the comment:
@vstinner:
> For diversity reasons, it would be nice to try to avoid "master" and "slave"
> terminology which can be associated to slavery.
This is too vague. Define what "diversity reasons" are and elaborate your
point.
Gabriel McManus added the comment:
I don't know of any other OS that implements epoll, so this is issue is likely
no longer a problem. Although it is strange to convert -1 to -1000 (as though
from seconds to milliseconds), it may not be worth cha
New submission from Gabriel Tremblay :
Types under the typing module used to behave like other python classes
regarding the __name__ attribute before Python 3.7. The behavior seems to have
changed to a non-standard way.
Py3.6
>>> from typing import List
>>> dir(List)
[
New submission from Gabriel Hearot :
Traceback (most recent call last):
File "setup.py", line 45, in
classifiers=[]
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py&qu
Gabriel Somlo added the comment:
output of "gcc -E -Wall -I/usr/include/python2.7 -c netnsmodule.c > foo.c"
I think gcc7 is a bit more paranoid about whether some expression evaluating to
an int can/should in itself be used as a Boolean (i.e., without being compared
to 0).
---
Gabriel Somlo added the comment:
This attachment illustrates how the problem is triggered. The file is part of
the CORE network emulator (github.com/coreemu/core). Compile with "gcc -Wall
-I/usr/include/python2.7 -c netnsmodule.c".
--
Added file: http://bugs.python.org
New submission from Gabriel Somlo:
C programs using PyMem_MALLOC in pymem.h generate a warning when
-Wint-in-bool-context is enabled (typically through -Wall). In places where
-Werror is enabled (such as RPM build), this causes the build to fail with an
error that looks like:
...
In file
Gabriel POTTER added the comment:
Thanks a lot, that resolved it.
--
resolution: -> works for me
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Gabriel POTTER added the comment:
Thanks for your answers. I'll try to be as precise as possible.
The problem i have is really specific:
I have a custom file, that i added in C:/Windows/System32/
I have a Windows 10 x64 computer, with 2 versions of python installed:
- Python 2.7,
New submission from Gabriel POTTER:
If python 3 is installed on another drive (for instance D:/), then it cannot
access any C:/ files, but can access D:/ files.
I use:
open("C:/path/")
The same function did work under python 2.7 but now doesn't anymore.
That means that
Gabriel POTTER added the comment:
To be precise, i cannot detect (only know if the file exist) any file located in
C:/Windows/... (in particulary System32)
contrary to Python 2.7 where it was possible.
--
___
Python tracker
<http://bugs.python.
Gabriel McManus added the comment:
As mentioned in [1], Illumos will be fixed to match Linux's behaviour, so this
problem will go away. It may still be worth changing epoll to just send -1
though, in case this causes similar issues in other operating systems.
[1] https://github.com/j
New submission from Gabriel McManus:
The select module epoll.poll method takes a "timeout" parameter which is
documented as having a default value of -1 [1]. If no timeout (or None) is
passed to epoll.poll, then a value of -1 is passed to the epoll_wait system
call. But if a timeou
New submission from Gabriel Lopez:
Every time I try loading Python 3.5, it says "The program can't start because
api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer." How can I fix
this?
--
messages: 283411
nosy: Gabriel Lopez
priority: normal
severity: norm
Gabriel Devenyi added the comment:
I'm running into this issue with python 3.5 and a ZFS-backed NFS4 mount.
Strace of a setuptools install:
chmod("/opt/quarantine/pydpiper/2.0/build/lib/python3.4/site-packages/pydpiper-2.0-py3.4.egg",
0644) = 0
listxattr("dist/py
Paulo Gabriel Poiati added the comment:
You are absolutely right David. I was calling join after putting `None` in the
queue. Sorry, I'm closing this.
--
resolution: -> not a bug
status: open -> closed
___
Python tracker
<http://b
New submission from Paulo Gabriel Poiati:
I believe the code example at https://docs.python.org/3.6/library/queue.html is
broken. The break condition in the worker loop (when the queued value is None)
must call the `task_done` before breaking, otherwise the code blocks
indefinitely in the
New submission from Gabriel Pettier (Tshirtman):
Up to apparently python 3.5, using help('signal') used to show the
'signal.signal' function among others, now it's not in the list, while of
course help('signal.signal') does work, it was reported t
Gabriel Hackebeil added the comment:
All good points. Perhaps further emphasis on this in the documentation would be
helpful to. As it stands, this module is a dangerous one for a naive user (like
me) to stumble across.
Maybe introducing an “exact” or “slow" diff function to the module
New submission from Gabriel Hackebeil:
I would like to propose changing the default setting for the shallow compare
option in filecmp.cmp to False (or providing access an exact comparison
function that does not use various performance optimizations).
I think many users will turn to this
Gabriel Mesquita Cangussu added the comment:
Terry,
About your question, "Isn't there some other way to asynchronously read/file
files, as opposed to sockets and pipes, on Windows?", that is exactly the
problem I was trying to overcome, specifically for reading the stdin.
O
New submission from Gabriel Mesquita Cangussu:
The documentation of asyncio specifies that the methods connect_read_pipe and
connect_write_pipe are available on Windows with the ProactorEventLoop. The
documentation then says that those methods accept file-like objects on the pipe
parameter
Gabriel Devenyi added the comment:
>From what I can tell a workaround for this still isn't documented.
--
nosy: +Gabriel Devenyi
___
Python tracker
<http://bugs.python.org
Catalin Gabriel Manciu added the comment:
I've just posted the results to an OpenStack Swift benchmark run using the
patch from my proposition, issue #26382.
Victor's patch, applied to CPython 2.7, adds an extra 1% compared to mine
(which improved throughput by 1%), effectively do
Catalin Gabriel Manciu added the comment:
Our Haswell-EP OpenStack Swift setup shows a 1% improvement in throughput rate
using CPython 2.7 (5715a6d9ff12) with this patch.
--
___
Python tracker
<http://bugs.python.org/issue26
Catalin Gabriel Manciu added the comment:
Hi all,
Please find below the results from a complete GUPB run on a patched CPython
3.6. In average, an improvement of about 2.1% can be observed.
I'm also attaching an implementation of the patch for CPython 2.7 and its
benchmark results. On
Catalin Gabriel Manciu added the comment:
Theoretically, an object type that consistently allocates more than the small
object threshold would perform a bit slower because
it would first jump to the small object allocator, do the size comparison and
then jump to malloc. There would be a small
Catalin Gabriel Manciu added the comment:
Hi Victor,
This patch follows the same idea as your proposal, but it's focused on a single
object type. I think doing this incrementally is the safer approach, allowing
us to have finer control over the new
areas where we enable allocating usin
Changes by Catalin Gabriel Manciu :
Added file: http://bugs.python.org/file41954/listobject_CPython2.patch
___
Python tracker
<http://bugs.python.org/issue26382>
___
___
New submission from Catalin Gabriel Manciu:
Hi All,
This is Catalin from the Server Scripting Languages Optimization Team at Intel
Corporation. I would like to submit a patch that replaces the 'malloc'
allocator used by the list object (Objects/listobject.c) with the small object
Changes by Gabriel Genellina :
--
nosy: +ggenellina
___
Python tracker
<http://bugs.python.org/issue13582>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gabriel Genellina :
--
nosy: +ggenellina
___
Python tracker
<http://bugs.python.org/issue18318>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gabriel Genellina :
--
nosy: +ggenellina
___
Python tracker
<http://bugs.python.org/issue18244>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gabriel Nistor added the comment:
Thanks for the fast reply. The explanation seems valid, but the behavior is not
consistent with other high level languages, and also with plain reasoning. I
have a big java background experience and I am now with python for almost 3
years doing really hard
New submission from Gabriel Nistor:
I am using Lubuntu x64 version and python 3.2.3
I have a tree search method:
node = self
while xpaths:
xpath = xpaths.popleft()
for path, child in node.childrens.items():
if path == xpath:
node = child
break
else
Changes by Gabriel Rodríguez Alberich :
--
resolution: -> duplicate
___
Python tracker
<http://bugs.python.org/issue16578>
___
___
Python-bugs-list mai
Gabriel Rodríguez Alberich added the comment:
Uh, sorry about that. Thanks.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issu
Changes by Gabriel Rodríguez Alberich :
--
title: Regular expressions with empty named groups breaks isname check ->
Regular expressions with empty named groups break isname check
___
Python tracker
<http://bugs.python.org/issu
New submission from Gabriel Rodríguez Alberich:
>>> import re
>>> re.compile("(?P<>)")
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/re.py", line 190, in compile
return _compile(pattern, flags)
Gabriel Genellina added the comment:
Is this the intended behavior then? I don't get the rationale for that change.
There is no way to completely supress traceback information now; for
sys.tracebacklimit to be of any significance, it must be >= 1; 0 and negative
values behave the sa
Gabriel Genellina added the comment:
Originally reported by Thorsten Kampe in comp.lang.python 2011-5-27
<http://permalink.gmane.org/gmane.comp.python.general/691496>
--
___
Python tracker
<http://bugs.python.org/i
New submission from Gabriel Genellina :
Python 3.x doesn't honor sys.tracebacklimit=0
According to
http://docs.python.org/py3k/library/sys.html#sys.tracebacklimit
when set to 0, it should not print any stack trace, but it does.
Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 3
Gabriel Genellina added the comment:
Note: There is a much bigger problem here: IDLE should not abort abruptly in
such cases, without any error indication.
--
___
Python tracker
<http://bugs.python.org/issue12
New submission from Gabriel Genellina :
On Windows, IDLE closes all open windows and exits completely, without any
error message, when selecting the "Print window" menu command.
Starting IDLE from inside a console, one can see the error message:
Exception in Tkinter callback
Trace
New submission from Gabriel Genellina :
Steve Holden, in <http://permalink.gmane.org/gmane.comp.python.general/658347>,
about the RuntimeError you get when a Thread object is started twice:
«"thread already started" implies that the thread is running, but you
actually get the
Gabriel Genellina added the comment:
@jpfarias: could you be more specific? Which error(s) do you have? in which
scenario?
--
___
Python tracker
<http://bugs.python.org/issue4
New submission from Gabriel Genellina :
Lib\lib2to3\tests\data\py2_test_grammar.py, in test_with_statement, requires a
variant of the with statement (multiple targets) that is not available in
Python 2.6. Compiling py2_test_grammar.py raises a SyntaxError. This makes
the 2.6.5 installer
Gabriel Genellina added the comment:
Sorry for being so terse and not filling in the gaps! In the end, I changed my
mind on this bug - it's not an installer issue.
The 2.6.5 MSI installer, when asked to compile .pyc files, exits with an error
as reported here:
http://mail.pytho
Gabriel Genellina added the comment:
r78994 (exclude 2to3 tests from compileall) should be backported to trunk and
the 2.6 branch, but I don't see them (yet).
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/i
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue1553375>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gabriel Genellina added the comment:
Just a few comments on the code itself:
if type_ in self.__dispatch.keys():
should be:
if type_ in self.__dispatch:
Previously, error reporting of recursive data stated the type of the offending
value; with this patch, this hint is lost (see
Gabriel Genellina added the comment:
Just a few comments on the code itself:
if type_ in self.__dispatch.keys():
should be:
if type_ in self.__dispatch:
Previously, error reporting of recursive data stated the type of the offending
value; with this patch, this hint is lost (see
Gabriel Genellina added the comment:
Why the *Ex names? Can't we just add additional arguments to the original names?
The Python names do not necesarily have to match the API calls. Having
QueryValue and QueryValueEx was a mistake in the first place, and I would
prefer not continuing
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue5879>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gabriel Genellina added the comment:
This doesn't look like a documentation bug to me - handling of uploaded files
via CGI *should* work, even if CGI is not the best way to do that.
--
nosy: +gagenellina
___
Python tracker
<http://bugs.py
Gabriel Genellina added the comment:
In case it matters, 3.0.1 does NOT crash.
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue8
Gabriel Genellina added the comment:
A different patch to solve the same issue.
This one uses a standard tkSimpleDialog to prompt for the command line, and
follows the directives found at the top of the source (only took 8 years to
implement... not so bad :) )
XXX GvR Redesign this interface
Gabriel Genellina added the comment:
This happens to be a duplicate of issue #7328 -- pydoc used to remove the
Python standard library from sys.path (!) when run with -m
Fixed in r76312 (2.7). I think the fix should be backported to 2.6
@gib: you may patch your Python 2.5 installation
Gabriel Genellina added the comment:
On Windows, trying with different Python versions:
D:\temp>python24 -m pydoc sys
[works as expected]
D:\temp>python25 -m pydoc sys
No module named tempfile
D:\temp>python26 -m pydoc sys
No module named tempfile
D:\temp>python27 -m pydoc s
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue1578269>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Gabriel Genellina :
The next/previous links in the documentation skip some sections. This happens
both in HTML format and the CHM Windows help file.
e.g.: in the Library Reference, section "8.5 StringIO" [next] points to "8.7
textwrap", skipping se
Gabriel Genellina added the comment:
The compiler doesn't know how the code is going to be used apart from
the "mode" parameter:
py> c=compile("x=1","","exec")
py> import dis
py> dis.dis(c)
1 0 LOAD_CONST
Gabriel Genellina added the comment:
This patch had unintended consequences; see #6906
--
___
Python tracker
<http://bugs.python.org/issue3881>
___
___
Python-bug
Gabriel Genellina added the comment:
Documentation patch for BaseServer.server_forever() and shutdown()
--
keywords: +patch
Added file: http://bugs.python.org/file15342/socketserver.rst.diff
___
Python tracker
<http://bugs.python.org/issue6
Gabriel Genellina added the comment:
Document that warnings.catch_warnings is not thread safe.
--
keywords: +patch
Added file: http://bugs.python.org/file15341/warnings.diff
___
Python tracker
<http://bugs.python.org/issue6
Gabriel Genellina added the comment:
An up-to-date patch; same contents, but this one can be cleanly
applied to trunk (as of r76294)
--
versions: +Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file15340/subprocess.diff
Changes by Gabriel Genellina :
Removed file: http://bugs.python.org/file14676/utils.diff
___
Python tracker
<http://bugs.python.org/issue6598>
___
___
Python-bugs-list m
Changes by Gabriel Genellina :
Removed file: http://bugs.python.org/file14644/test_email.diff
___
Python tracker
<http://bugs.python.org/issue6598>
___
___
Python-bug
Gabriel Genellina added the comment:
An updated version of the make_msgid patch.
Includes a random part plus a sequential part. Testing takes at most 3
seconds now (we're interested in those msgids generated in a whole
second)
--
Added file: http://bugs.python.org/file
1 - 100 of 323 matches
Mail list logo