[issue41780] Generic Alias attributes nor in dir()

2020-09-15 Thread Allan Daemon
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

[issue41780] Generic Alias attributes nor in dir()

2020-09-14 Thread Allan Daemon
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] >>

[issue41450] OSError is not documented in ssl library, but still can be thrown

2020-08-03 Thread Allan Chandler
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

[issue41174] asyncio.coroutine decorator returns a non-generator function when using PYTHONASYNCIODEBUG

2020-06-30 Thread Allan Feldman
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

[issue40312] Weakref callbacks running before finalizers in GC collection

2020-04-20 Thread Allan Feldman
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

[issue40312] Weakref callbacks running before finalizers in GC collection

2020-04-20 Thread Allan Feldman
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

[issue40312] Weakref callbacks running before finalizers in GC collection

2020-04-20 Thread Allan Feldman
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

[issue40312] Weakref callbacks running before finalizers in GC collection

2020-04-20 Thread Allan Feldman
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

[issue40312] Weakref callbacks running before finalizers in GC collection

2020-04-18 Thread Allan Feldman
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

[issue40312] Weakref callbacks running before finalizers in GC collection

2020-04-18 Thread Allan Feldman
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).

[issue40312] Weakref callbacks running before finalizers in GC collection

2020-04-17 Thread Allan Feldman
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

Problema na DLL

2018-09-22 Thread Allan Sobrero
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

[issue33380] Update module attribute on namedtuple methods for introspection.

2018-04-30 Thread Allan Feldman
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

NumPy 1.14.3 released

2018-04-29 Thread Allan Haldane
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

NumPy 1.14.3 released

2018-04-29 Thread Allan Haldane
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

[issue33380] Update module attribute on namedtuple methods for introspection.

2018-04-28 Thread Allan Feldman
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

[issue33380] Update module attribute on namedtuple methods for introspection.

2018-04-28 Thread Allan Feldman
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. _

[issue30562] SSL socket does not respect SO_RCVTIME0 timeouts

2017-06-03 Thread Allan Crooks
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

[issue26746] struct.pack(): trailing padding bytes on x64

2016-07-06 Thread Allan Haldane
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

Fwd: Re: Error 0*80070570

2016-04-21 Thread Allan Leo
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

Re: Error 0*80070570

2016-04-21 Thread Allan Leo
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

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Allan Lewis
Changes by Allan Lewis <allanlewi...@gmail.com>: -- nosy: +Allan Lewis ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25391> ___ _

[issue20612] cElementTree has problems with StringIO object containing unicode content

2014-02-12 Thread Allan Crooks
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

[issue19504] Change customise to customize.

2013-11-05 Thread Cameron Allan
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

Re: Teaching Python

2011-04-19 Thread Allan Davis
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

[issue10835] sys.executable default and altinstall

2011-01-05 Thread Allan McRae
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

[issue10318] make altinstall installs many files with incorrect shebangs

2010-11-04 Thread Allan McRae
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

Re: [jython] Problem with an huge dictionary

2010-05-17 Thread Allan Davis
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

Re: RELEASED Python 2.6.5

2010-03-23 Thread Allan Davis
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

Re: How to tell if you're running on windows?

2009-12-04 Thread Allan Davis
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

Re: can python do this?

2009-12-02 Thread Allan Davis
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

recording input from USB port and write to text file

2009-08-18 Thread Allan
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! --

New to python

2009-08-17 Thread Allan Fong
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! --

Form/Template Fill-in the blanks

2009-07-25 Thread allan
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

Re: Your confirmation is required to join the Python-list mailing list

2009-05-04 Thread Allan Yuan
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

[issue5808] Subprocess.getstatusoutput Fails Executing 'dir' Command on Windows

2009-04-21 Thread Lawrence Allan Jones
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

[issue5808] Subprocess.getstatusoutput Fails Executing 'dir' Command on Windows

2009-04-21 Thread Lawrence Allan Jones
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

[issue4643] cgitb.html fails if getattr call raises exception

2008-12-29 Thread Allan Crooks
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

[issue4643] cgitb.html fails if getattr call raises exception

2008-12-17 Thread Allan Crooks
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

[issue4643] cgitb.html fails if getattr call raises exception

2008-12-12 Thread Allan Crooks
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

[issue4644] Minor documentation fault in 2to3 script

2008-12-12 Thread Allan Crooks
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

[issue4643] cgitb.html fails if getattr call raises exception

2008-12-12 Thread Allan Crooks
Changes by Allan Crooks a...@users.sourceforge.net: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4643 ___ ___ Python-bugs

[issue3622] Slight documentation quirk for random.random

2008-08-20 Thread Allan Crooks
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

Re: Unbuffered mode

2008-02-13 Thread Hamish Allan
) 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

Re: Unbuffered mode

2008-02-13 Thread Hamish Allan
, 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

Unbuffered mode

2008-02-12 Thread Hamish Allan
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: $

Automatic login to website (newbie)

2007-10-19 Thread Allan Pedersen, Profilm
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

[ANN] DOPAL 0.60 - Python library for Azureus

2006-05-04 Thread Allan Crooks
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

Python string.title Function

2006-04-11 Thread Allan
, Allan -- http://mail.python.org/mailman/listinfo/python-list

[ANN] DOPAL 0.56 - Python library for Azureus

2006-03-13 Thread Allan Crooks
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

how do I factor a number down to one digit?

2006-02-27 Thread Allan
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

[ANN] DOPAL 0.55 - Python library for Azureus

2006-02-04 Thread Allan Crooks
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

Re: sockets

2006-01-20 Thread Allan Zhang
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 =

Re: Parsing files -- pyparsing to the rescue?

2006-01-16 Thread Allan Zhang
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

Re: anaconda.real in RH7.1

2005-09-07 Thread Allan Adler
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

anaconda.real in RH7.1

2005-09-02 Thread Allan Adler
, 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 use PayPal you might consider an alternative

2005-05-02 Thread Allan
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 --

Looking for a coder to do some work

2004-12-13 Thread Allan Irvine
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