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. Which
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.org/issue37
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' variable in this much
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
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, starting with Op
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 person
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 know each other
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
> the
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/issue3
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.python.
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 some
of the PR
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
substantial:
Thi
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 changing
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 <gabr...@hearot.it>:
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
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 <rep...@bugs.python.org>
<http://bugs.pyt
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, in C
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 os.p
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 <rep...@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/joyent
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 tim
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: normal
st
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/pydpipe
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 <rep...@bugs.p
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
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
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.
On my
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 <rep...@bugs.python.org>
<http://bugs.python.or
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 doubling
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 <rep...@bugs.python.org>
<http://bugs.p
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 GUPB
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 using
Changes by Catalin Gabriel Manciu <catalin.gabriel.man...@intel.com>:
Added file: http://bugs.python.org/file41954/listobject_CPython2.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
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
allocator
Changes by Gabriel Genellina ggenell...@gmail.com:
--
nosy: +ggenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18244
___
___
Python-bugs
Changes by Gabriel Genellina ggenell...@gmail.com:
--
nosy: +ggenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18318
___
___
Python-bugs
Changes by Gabriel Genellina ggenell...@gmail.com:
--
nosy: +ggenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13582
___
___
Python-bugs
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
New submission from Gabriel Rodríguez Alberich:
import re
re.compile((?P))
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python2.7/re.py, line 190, in compile
return _compile(pattern, flags)
File /usr/lib/python2.7/re.py, line 240, in _compile
p
Changes by Gabriel Rodríguez Alberich che...@gmail.com:
--
title: Regular expressions with empty named groups breaks isname check -
Regular expressions with empty named groups break isname check
___
Python tracker rep...@bugs.python.org
http
Gabriel Rodríguez Alberich added the comment:
Uh, sorry about that. Thanks.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16578
Changes by Gabriel Rodríguez Alberich che...@gmail.com:
--
resolution: - duplicate
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16578
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar:
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
Gabriel Genellina gagsl-...@yahoo.com.ar 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 rep...@bugs.python.org
http://bugs.python.org
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar:
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
Gabriel Genellina gagsl-...@yahoo.com.ar 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 rep...@bugs.python.org
http
Gabriel Genellina gagsl-...@yahoo.com.ar 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
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar:
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
Gabriel Genellina gagsl-...@yahoo.com.ar 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 rep...@bugs.python.org
Gabriel Genellina gagsl-...@yahoo.com.ar 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
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar:
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
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
@jpfarias: could you be more specific? Which error(s) do you have? in which
scenario?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4749
Gabriel Genellina gagsl-...@yahoo.com.ar 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
Gabriel Genellina gagsl-...@yahoo.com.ar 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
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1553375
___
___
Python
Gabriel Genellina gagsl-...@yahoo.com.ar 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
Gabriel Genellina gagsl-...@yahoo.com.ar 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 rep
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5879
___
___
Python-bugs
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
In case it matters, 3.0.1 does NOT crash.
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8036
Gabriel Genellina gagsl-...@yahoo.com.ar 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
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
On Windows, trying with different Python versions:
D:\temppython24 -m pydoc sys
[works as expected]
D:\temppython25 -m pydoc sys
No module named tempfile
D:\temppython26 -m pydoc sys
No module named tempfile
D:\temppython27 -m pydoc
Gabriel Genellina gagsl-...@yahoo.com.ar 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
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1578269
___
___
Python
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar:
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 section
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
This patch had unintended consequences; see #6906
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3881
Gabriel Genellina gagsl-...@yahoo.com.ar 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 0 (1)
3 STORE_NAME 0 (x
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
Removed file: http://bugs.python.org/file12774/mimetypes.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4969
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
A new patch taking into account M. Pitrou comments:
- name changed to read_windows_registry()
- read_windows_registry() does nothing on non-Windows platforms; same
as read_mime_types(filename) when the file does not exist.
- I hope
Gabriel Genellina gagsl-...@yahoo.com.ar 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
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
Removed file: http://bugs.python.org/file14644/test_email.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6598
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
Removed file: http://bugs.python.org/file14676/utils.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6598
Gabriel Genellina gagsl-...@yahoo.com.ar 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
Gabriel Genellina gagsl-...@yahoo.com.ar 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 rep...@bugs.python.org
http
1 - 100 of 313 matches
Mail list logo