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
The Kivy team and contributors to the PyJNIus project are happy to announce
the release of PyJNIus 1.3.0.
PyJNIus is a library allowing to use Java classes in CPython, by using the
Java Native Interface, and reflection, it works on desktop (Windows, OSX,
Linux) and Android. Java 8 to 12 are
En Mar, 31 Marzo, 2020 en 18:48, yo escribió:
Para: python-list@python.org
I installed the Python software , but I could not find the python.exe file
with the Unscramble software
What do you advise ?
Regards
--
https://mail.python.org/mailman/listinfo/python-list
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
, line 1327, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
This error is also reproducible using sudo.
Please advise how to fix it.
Thanks in advance.
Best regards
2017-10-28 14:33 GMT+02:00 David Gabriel <davidgab...@gmail.com>:
> I forget to
I forget to precise that I am using pycharm.
And this issue is reproducible also using command line to run the code.
Best regards
2017-10-28 14:31 GMT+02:00 David Gabriel <davidgab...@gmail.com>:
> Thanks so Lutz much for your reply.
> I am using python2.7 and I am runni
3:56:39PM +0200, David Gabriel wrote:
> > from packaging import version as pack_version
> > ImportError: No module named packaging
> >
> > I googled it and I have found so many suggestions regarding updating
> > 'pip' and installing python-setuptools but all of these
Dears,
I am running a python code that generates for me this error :
from packaging import version as pack_version
ImportError: No module named packaging
I googled it and I have found so many suggestions regarding updating 'pip'
and installing python-setuptools but all of these did not fix this
Hello, guys
I'm using python to automate some seriously boring stuff at work, but would
like to improve current code.
The way it is now, PyAutoGui moves mouse and clicks the Application. I am,
therefore, hostage of my python "assistant", as I cannot use my computer while
the .py is running.
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.
against my two libraries.
How can I choose the order of my link arguments that I pass to gcc using
setup.py ?
Best regards,
--
Gabriel Ganne
--
https://mail.python.org/mailman/listinfo/python-list
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
meu python não esta reconhecendo os sinais de calculos em geral, peço a
ajuda de vocês.
--
https://mail.python.org/mailman/listinfo/python-list
Sorry for the multiple questions but my while loop is not working as intended.
Here is the code :
n = 1
list1 = []
count = 0 #amount of times program repeats
steps = 0 # amount of steps to reach 1
step_list = []
while n!=0:
n= int(input())
list1.append(n)
length = len(list1)
while count
Hey there,
I just started out python and I was doing a activity where im trying to find
the max and min of a list of numbers i inputted.
This is my code..
num=input("Enter list of numbers")
list1=(num.split())
maxim= (max(list1))
minim= (min(list1))
print(minim, maxim)
So the problem is
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
e me how to fix this issue.
Kind regards.
2016-01-18 12:03 GMT+01:00 David Gabriel <davidgab...@gmail.com>:
> Dears,
>
> I have an issue when I use eventlet Api to create parallel threads.
> In fact, when I run the below code, only the program dealing with the
>
can't see. Please post a
> link to the *actual* code that you are running.
>
> --Ned.
>
>
> On 1/12/16 7:00 AM, David Gabriel wrote:
>
> Dears
>
> For more details, I am using this code
> <https://github.com/rbarrois/python-ldap/blob/master/Dem
The original plan was doing it using python. But, anyway, I should build a
robot program to do that task for me... Because I need to capture hundreds of
hours of different videos... You mean that is difficult because it's Python...
or it's difficult because it's a Flash Application?
Thx
--
Hi Paul, I presume the stream operator doesn't want to prevent me from
downloading or recording the videos. I just wanna know more about some lib that
could be used to deal with Flash Player Applications... Or possibly, anything
that could lead me to be able to get those streaming videos.
Thx
Mark Lawrence wrote:
I don't actually know, but could you please provide some context and
write in plain English, those damn ... things are extremely annoying.
Hi, Mark.
I am developing a research project, which includes video analysis (computer
vision, big data, data mining, etc). The
Hello,
I need some help in downloading videos from flash applications in web using
python. Is there any lib to deal with flash player using python?
The videos I need to download are, in fact, live streaming content.
You can see an example here:
Thanks for the Hint... But it seems not to support the website i mentioned...
Is there a way to make it possible for any kind of video player in the net?
Flash player... Since it's not a ordinary video... I'm trying to record
download a live streaming video!!
Thx
--
I appreciate your help. I'm just afraid that Youtube-DL doesn't allow me to
record or download a LIVE STREAMING VIDEO. Do you guys think it is possible,
since I make some adjustments into the code of the library?
--
https://mail.python.org/mailman/listinfo/python-list
The list.pop(index) returns the element represented by the index and also
reduces the list by removing that element. So it a short one liner for doing
both things.
But when it comes for popping a slice of the list there is nothing similar for
doing in that simple way.
If you want to remove a
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
Hi
I have tried now for ages to make a loop that does the following:
Makes a new list with 9 random values, from 9 different lists, with 9 elements.
And makes sure that none of the elements repeat!
Is there anyone that can help, with a very simple solution??
Best
Christian
--
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
I have a system that uses request.META ['HTTP_HOST'] to identify which will run
APPLICATION.
The domains testes1.xyz.com.br, tes.xyzk.com.br, xx.xyzk.com.br through a DNS
redirect TYPE A link to the server IP.
In most cases I get the request.META ['HTTP_HOST'] with the URL in the request
, and compiles it all along with the Python interpreter and
SDL into a static binary.
It's still a long way of from being something serious, but you can already
make nice Android Live wallpapers with it!
You can check it out at www.ignifuga.org
Thanks!
--
Gabriel.
--
http://mail.python.org/mailman
place to ask is python-list@python.org
Please include the Python version you're using. Also, a small, complete,
runnable code example showing the problem would be very valuable. Usually,
in building such example, you may well find out where your problem is.
--
Gabriel Genellina
--
http
(itertools.islice(my_generator(), 10))
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
(Testingencode(sys.stdout.encoding)), or tell ctypes about
the right parameter type:
printf = msvcrt.printf
printf.argtypes = [c_char_p]
printf(Testing\n)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
to the database file - *any* OS user who can read the
database file can connect to it.
sqlite does not have internal users, and does not implement GRANT/REVOKE
statements.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
in its 'format'
parameter, and is not stored anywhere.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
En Fri, 07 Oct 2011 03:23:57 -0300, selahattin ay selahattin...@msn.com
escribió:
hi all. I want to get my ftp list and send the list to my mail adress...
my codes are
And your problem is...?
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
useful. Try this:
def posta_olustur():
...
lines = []
baglanti.retrlines(LIST, lines.append)
text = '\n'.join(lines)
posta.attach(MIMEText(text))
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
flag
anything when you built Python?
On Windows, Python 2.7.1:
server_address=('lepton', 1)
sock.bind(server_address)
sock.getsockname()
('127.0.0.1', 1)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 5431 matches
Mail list logo