Allan Daemon added the comment:
> I actually have no idea where dir() gets its information.
I will share what I find out already, so it may hopefully be helpful.
The dir function used is the general object.__dir__ function, defined in
Objects/typeobject.c:type___dir___impl(), that j
New submission from Allan Daemon :
The implementation of PEP 585 in 3.9 adds some new attributes, but they aren't
listed with dir() (then, not list in autocomplete and IntelliSense).
Python 3.9.0rc1+ (heads/3.9:d7cd1164c1, Aug 25 2020, 17:27:09)
>>> li = list[int]
>>
Allan Chandler added the comment:
If you look through the source for PyExc, you'll find items for (over and above
OsError) ValueError, NotImplementedError, TypeError, OverflowError,
AttributeError, MemoryError, UnicodeEncodeError, and RuntimeWarning. I don't
think ANY of those
New submission from Allan Feldman :
This code behaves differently when PYTHONASYNCIODEBUG=1
import asyncio
import inspect
@asyncio.coroutine
def foo():
yield from asyncio.sleep(0)
print("isgeneratorfunction:", inspect.isgeneratorfunction(foo))
PYTHONASYNCIODEBUG:
isgenerat
Allan Feldman added the comment:
Yup agree with all the points above, just wanted to point out that I think
self.value is strongly referenced (even though it's just internal references
and will be collected by the gc) during Foo.__del__ execution (annotated code
below), yet
Allan Feldman added the comment:
I definitely understand the possibility that some code is relying on the
current gc behavior of weakref callbacks being invoked after finalizers.
That being said, the behavior is currently inconsistent between gc and
reference counted paths. The language
Allan Feldman added the comment:
Also I just noticed this statement:
> In current CPython, for your ForeverObject(False), `del o` does not make the
> object trash "for real". __del__ runs immediately (due to deterministic,
> synchronous reference counting) and resurrects
Allan Feldman added the comment:
Thanks for the explanation! I agree that "about to be finalized" is unclear in
the docs :)
I still believe that having different behavior for the ordering of finalizers
versus weakref callbacks depending on whether the path is through gc versus
Allan Feldman added the comment:
Reading more carefully, I may have jumped to conclusions here :)
Looking at the weakref docs, I see the following description of the callback
functionality:
> If callback is provided and not None, and the returned weakref object is
> still
Allan Feldman added the comment:
Thanks for the response!
> if a weakref W refers to object O, and W and O are _both_ in cyclic trash
I believe that in the examples W is not in cyclic trash, but remains referenced
as a global in the frame. Only O is in cyclic trash (O references itself).
New submission from Allan Feldman :
Our team is making use of a weakref.WeakValueDictionary() that is accessed
through the finalizer of a class. We observed that in Python 3 occasionally
values that are directly referenced by an object being finalized were missing
from
Olá, estou tendo problemas para executar o Python, baixei a versão 64 bit
pois nas configurações de meu computador mostra 64x, porém na hora de
executar diz que não tenho o api-ms-win-crt-runtime-l1-1-0.dll
--
https://mail.python.org/mailman/listinfo/python-list
Allan Feldman <allan.d.feld...@gmail.com> added the comment:
That explanation makes sense to me. Thanks for taking the time to look into
this!
--
resolution: -> works for me
stage: -> resolved
status: open -> closed
___
Pyth
cythonized with Cython 0.28.2.
Contributors
A total of 6 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
* Allan Haldane
* Charles Harris
* Jonathan March +
* Malcolm Smith +
* Matti Picus
* Pauli Virtanen
cythonized with Cython 0.28.2.
Contributors
A total of 6 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
* Allan Haldane
* Charles Harris
* Jonathan March +
* Malcolm Smith +
* Matti Picus
* Pauli Virtanen
Allan Feldman <allan.d.feld...@gmail.com> added the comment:
Attached is a proposed change.
--
keywords: +patch
Added file:
https://bugs.python.org/file47555/0001-bpo-33380-Update-module-attribute-on-namedtuple-meth.patch
___
Python tracke
New submission from Allan Feldman <allan.d.feld...@gmail.com>:
Python 3.7 made several performance improvements to the namedtuple class as
part of https://bugs.python.org/issue28638
Prior to the implementation of bpo-28638, the __module__ attribute for a
namedtuple's methods (e.g. _
New submission from Allan Crooks:
I initially filed this ticket against the ldap3 library, as this is where I
first encountered the issue: https://github.com/cannatag/ldap3/issues/356
I've attached a file which reproduces the issue using the standard library - it
makes both a HTTP and HTTPS
Allan Haldane added the comment:
Hello,
Over at numpy I have a proposed fix for the bug you discovered, that numpy
drops trailing padding in the 3118 format string. My strategy is going to make
numpy interpret format strings exactly the same way as the struct module, let
me know if you
I need help with this setup error.
-- Forwarded message --
From: "Allan Leo" <erissatal...@gmail.com>
Date: Apr 21, 2016 10:06 AM
Subject: Re: Error 0*80070570
To: <python-list@python.org>
Cc:
When running the setup for your 3.5.1(32-bit version), the set
When running the setup for your 3.5.1(32-bit version), the setup
experiences error 0*80070570 and tells me to check the log file. What could
be the problem and whats the solution.
On Apr 21, 2016 7:05 AM, "Allan Leo" <erissatal...@gmail.com> wrote:
> When running the setup fo
Changes by Allan Lewis <allanlewi...@gmail.com>:
--
nosy: +Allan Lewis
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25391>
___
_
New submission from Allan Crooks:
There seems to be a specific issue when using cElementTree.parse on a StringIO
object containing unicode text - it generates a ParseError.
I've tried variations of ElementTree and cElementTree, variations of StringIO
and cStringIO, and used str and unicode
Cameron Allan added the comment:
Done using Notepad++ and regex as needed.
Also changed file name appropriately.
--
nosy: +c3n9
Added file: http://bugs.python.org/file32510/customize.diff
___
Python tracker rep...@bugs.python.org
http
How about this. http://inventwithpython.com/
thanks,
Allan
On Tue, Apr 19, 2011 at 7:35 PM, geremy condra debat...@gmail.com wrote:
On Tue, Apr 19, 2011 at 4:24 PM, Dan Stromberg drsali...@gmail.com
wrote:
On Tue, Apr 19, 2011 at 4:03 PM, geremy condra debat...@gmail.com
wrote:
On Tue
New submission from Allan McRae al...@archlinux.org:
when sys.executable is run with a modified argv[0] such as:
sh -c exec -a '' /usr/bin/python2.7 -c 'import sys; print(sys.executable)'
it returns some a hardcoded value. In this case, it returns /usr/bin/python.
This value is likely
New submission from Allan McRae al...@archlinux.org:
The following files are incorrectly installed with a #!/usr/bin/env python
shebang when using make altinstall:
usr/lib/python2.7/base64.py
usr/lib/python2.7/bsddb/dbshelve.py
usr/lib/python2.7/bsddb/test/test_dbtables.py
usr/lib/python2.7
KeoBox,
Can i look at the jython file you are executing? the ClassFormatException is
not with the size of the dictionary. Jython is failing on an import.
thanks,
--
Allan Davis
Member of NetBeans Dream Team
http://wiki.netbeans.org
I just downloaded the installer and tested it on my win xp machine. The
installer worked fine.
--
Allan Davis
Member of NetBeans Dream Team
http://wiki.netbeans.org/NetBeansDreamTeam
Lead Developer, nbPython
http://wiki.netbeans.org
Try this
import sys
import os
sep = None
if sys.platform == 'cygwin':
sep = ';'
else:
sep = os.pathsep
# then use sep in your path statment
Hope this helps
Thanks,
--
Allan Davis
Member of NetBeans Dream Team
http
Try your distribution of linux package management tool. You will find PIL
there
--
Allan Davis
Member of NetBeans Dream Team
http://wiki.netbeans.org/NetBeansDreamTeam
Lead Developer, nbPython
http://wiki.netbeans.org/Python
http
Hi! I'm fairly new to Python. I understand the basics basics but I'm
been trying to write a simple python code that will let me read input
data (such as mouse movement) from my USB port and write it in a text
file and I am so lost. Can anyone help or direct me to some
resources? Thank you!
--
Hi! I'm fairly new to Python. I understand the basics basics but I'm been
trying to write a simple python code that will let me read input data from
my USB drive and write it in a text file and I am so lost. Can anyone help
or direct me to some resources? Thank you!
--
at this fusing together thing. Is this a good approach? Is
there an easier to implement approach?
Comments, suggestions, questions please.
Allan
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I just wanna know how to set SYSTEM variables and USER variables of windows,
but got no way.
Firstly I thought os.environ + os.system may work well, but found no way
to let os.environ run to retrive USER variables.
Then I tried win32api, finding the GetEnvironmentVariables() mixing SYSTEM
New submission from Lawrence Allan Jones mrwizard8...@earthlink.net:
When attempting to use the subprocess.getstatusoutput() function on
Windows, I noticed an unusual error message:
'{' is not recognized as an internal or external command,
operable program or batch file.
When the output
Lawrence Allan Jones mrwizard8...@earthlink.net added the comment:
Oops: user error. The manual states that subprocess.getstatusoutput() is
only open under Unix. Somehow :) I missed this note.
Sorry for wasting bandwidth.
--
status: open - closed
Allan Crooks a...@users.sourceforge.net added the comment:
In the interests of getting this fixed (and not letting it die), should
I submit a proper patch? I suppose I would have to do one for each
version of Python that is affected (which is all of them, really
Allan Crooks a...@users.sourceforge.net added the comment:
In terms of patching scanvars, I came up with the following solution:
ORIGINAL:
if parent is not __UNDEF__:
value = getattr(parent, token, __UNDEF__)
vars.append((prefix + token, prefix, value))
SOLUTION:
if parent
New submission from Allan Crooks a...@users.sourceforge.net:
If cgitb.html tries to get the value of an attribute from an object, and
the getattr call causes an exception to be raised (other than an
AttributeError), then cgitb.html fails to work:
If you run the attached file in Python 2.5.2
New submission from Allan Crooks a...@users.sourceforge.net:
When I run the following command:
C:\temp\python26\Tools\scripts\2to3.py --help
Usage: refactor.py [options] file|dir ...
It mentions that the script name is refactor.py, rather than 2to3.py (I
guess that was the scripts original
Changes by Allan Crooks a...@users.sourceforge.net:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4643
___
___
Python-bugs
New submission from Allan Crooks [EMAIL PROTECTED]:
The documentation for random.random function shows this:
random() - x in the interval [0, 1).
That should either be [0, 1] or (0, 1).
--
assignee: georg.brandl
components: Documentation
messages: 71582
nosy: amc1, georg.brandl
) does not:
$ ssh localhost python -u
pront
[^D]
Traceback (most recent call last):
File stdin, line 1, in module
NameError: name 'pront' is not defined
$
Can anyone tell me why?!
Thanks,
Hamish
On Feb 13, 2008 1:12 AM, Hamish Allan [EMAIL PROTECTED] wrote:
Hi,
The man page for python says
, but otherwise nothing
is executed until EOF.
So the answer to my question is to run:
$ ssh localhost python -ui
Best wishes,
Hamish
On Feb 13, 2008 4:20 PM, Hamish Allan [EMAIL PROTECTED] wrote:
Further to my query about trying to make Python run unbuffered, I have
discovered that a SyntaxError
Hi,
The man page for python says:
-u Force stdin, stdout and stderr to be totally unbuffered.
However, when I try:
$ ssh localhost python -u
print 'hello, world'
[^D]
hello, world
$
Nothing happens until I send that EOF. I'm pretty sure it's not SSH
that's buffering because when I try:
$
Did you ever find a solution for this? if so i would like to hear about
it... :-)
Regards
Allan Pedersen, Denmark
--
http://mail.python.org/mailman/listinfo/python-list
Summary:
---
DOPAL is a library to allow programs written in Python to easily
communicate the Java BitTorrent client Azureus, via the XML/HTTP plugin
(allowing communication over a network).
Changes:
---
Version 0.60 is the fourth public release of DOPAL. The first major
change is the
,
Allan
--
http://mail.python.org/mailman/listinfo/python-list
Summary:
---
DOPAL is a library to allow programs written in Python to easily
communicate the Java BitTorrent client Azureus, via the XML/HTTP plugin
(allowing communication over a network).
Changes:
---
Version 0.56 is the third public release of DOPAL. One of the main
changes is support
I'm trying to write a numerology program where I have each letter
identified by a numerical value like
a=1
b=2
c=3
as so forth. I then input a name. How do I treat each letter as a
single value? That is, instead of print myname I have to do a print
m+y+n+a+m+e which returns a number. I next want
Summary:
---
DOPAL is a library to allow programs written in Python to easily
communicate the Java BitTorrent client Azureus, via the XML/HTTP plugin
(allowing communication over a network).
Changes:
---
Version 0.55 is the second public release of DOPAL. The main change is a
massive
the following code works perfectly
import socket, sys
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((www.python.org, 80))
s.send(GET)
here, You need to speak HTTP protocol. I would suggest to change
s.send( GET / HTTP/1.0\x0d\x0a\x0d\x0a )
while 1:
buf =
Try this
code
=
import re
p = re.compile(r'SYSLIB([^]*)')
s = open(file).read()
m = re.search(p, s)
if m: res = m.groups()[0]
res = res.lstrip(\n)
res = res.rstrip(\n)
print res
result:
===
%python parser.py
Sys Data
Sys-Data
asdkData
Data
%
Thanks
Allan
rh0dium [EMAIL PROTECTED] wrote
Allan Adler [EMAIL PROTECTED] writes:
I'm trying to reinstall RedHat 7.1 Linux on a PC that was disabled when
I tried to upgrade from RH7.1 []
The file anaconda.real is invoked with the line
exec /usr/bin/anaconda.real -T $@
I don't know what effect the -T $@ has.
Tiny progress
, in a nutshell, whenever I see anything specific in the file
anaconda.real, it isn't mentioned in the book and I don't know how to
get more information about it and I don't know how python gets its information
about it.
What do I need to read?
--
Ignorantly,
Allan Adler [EMAIL PROTECTED]
* Disclaimer: I
If you used PayPal and are not satisifed with their service there is a
new and better service opening. They will be starting up during the
early summer this year. The best of all - signup is FREE.
Check out their benefits:
www.greenzap.com/benefits
--
HI
Hope this is the right place for this, I am new. I have a spec to
create
a (dual screen) framework application that
1 displays mp3, flash, jpegs etc. on top screen
2: displays buttons on bottom screen which alter image when a key is
pressed.
The hardware is a dell pc basically, no
58 matches
Mail list logo