[issue41928] ZipFile does not supports Unicode Path Extra Field (0x7075) zip header field

2021-01-21 Thread Andrea Giudiceandrea
Andrea Giudiceandrea added the comment: I submitted more than a month ago a PR that adds support for Unicode Path Extra Field in ZipFile. The PR https://github.com/python/cpython/pull/23736 is awaiting a review in order to be merged

[issue41928] ZipFile does not supports Unicode Path Extra Field (0x7075) zip header field

2020-12-10 Thread Andrea Giudiceandrea
Change by Andrea Giudiceandrea : -- keywords: +patch pull_requests: +22595 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23736 ___ Python tracker <https://bugs.python.org/issu

[issue41928] ZipFile does not supports Unicode Path Extra Field (0x7075) zip header field

2020-12-09 Thread Andrea Giudiceandrea
Change by Andrea Giudiceandrea : -- nosy: +andreaerdna ___ Python tracker <https://bugs.python.org/issue41928> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42148] floating point representation issues

2020-10-25 Thread Andrea Tuccia
New submission from Andrea Tuccia : I'm noticing some floating point representation precision issues that occurs on all versions and platforms: >>> 277*0.1 27.703 >>> 1.2-1.0 0.19996 >>> import numpy as np >>> np.double(277*0.1)

[issue38246] pathlib.resolve and .absolute leave trailing tilde in home expansion

2020-03-26 Thread Andrea Bergonzo
Change by Andrea Bergonzo : -- nosy: +andybergon ___ Python tracker <https://bugs.python.org/issue38246> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39577] venv --prompt argument is ignored

2020-03-01 Thread Andrea
Andrea added the comment: Actually, the virtual_info appears to be a function within the theme, that does the following function virtualenv_info { [ $VIRTUAL_ENV ] && echo '('%F{blue}`basename $VIRTUAL_ENV`%f') ' } So, eventually the problems is in the funct

[issue39577] venv --prompt argument is ignored

2020-03-01 Thread Andrea
Andrea added the comment: Hi, Apologies for the delays in returning to you. I have been using ZSH and Oh My ZSH on top. The prompt variable, which I have customised, looks like the following: % $(virtualenv_info)$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}$(box_name)%{$reset_color

[issue39577] venv --prompt argument is ignored

2020-02-10 Thread Andrea
Andrea added the comment: Operative system is OS X 10.15.3 (19D76) Catalina Python 3.7.4 installed via HomeBrew If I do this python -m venv ciao --prompt NewOne by the time I activate the environment, the prompt looks like (ciao) andreamoro@MacBookAir:~/Python Am I misunderstanding the

[issue39577] venv --prompt argument is ignored

2020-02-07 Thread Andrea
New submission from Andrea : In creating a new virtual environment, the help suggest a --prompt argument to specify a different name by the time the environment is active. https://docs.python.org/3/library/venv.html The argument is apparently ignored as the folder name always appears instead

[issue37255] Pathlib: Add an expandUserPath method or argument

2019-06-12 Thread Andrea Moro
Change by Andrea Moro : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue37255> ___ ___ Python-bugs-list

[issue37255] Pathlib: Add an expandUserPath method or argument

2019-06-12 Thread Andrea Moro
Andrea Moro added the comment: I have completely missed it. Thanks for flagging it. -- ___ Python tracker <https://bugs.python.org/issue37255> ___ ___ Python-bug

[issue37255] Pathlib: Add an expandUserPath method or argument

2019-06-12 Thread Andrea Moro
New submission from Andrea Moro : Assuming the given path contains a '~' character, it would be nice to have a function to expand the given path so any further calls to an .exists doesn't fail. A prototype of the function could be # Expand the home path in *ix based

[issue13670] Increase test coverage for pstats.py

2019-03-16 Thread andrea crotti
andrea crotti added the comment: It has been a long time but if it's still useful sure. I can see some tests have been added in commit 863b1e4d0e95036bca4e97c1b8b2ca72c19790fb but if these are still relevant I'm happy to go ahead. --

[issue32990] Supporting extensible format(PCM) for wave.open(read-mode)

2018-03-03 Thread Andrea Celletti
Andrea Celletti added the comment: I am currently working on a patch for this. When done can I try pushing this in 3.7 rather than 3.8? It is not much of an enhancement but rather fixing the code that raises an error for a perfectly valid PCM wave file (bugfix). -- versions

[issue32990] Supporting extensible format(PCM) for wave.open(read-mode)

2018-03-03 Thread Andrea Celletti
New submission from Andrea Celletti : The wave.Wave_read class currently supports 8, 16, 24, and 32 bit PCM files. Wave files are only supported if the wFormatTag in the format chunk matches the flag WAVE_FORMAT_PCM, which is correct but incomplete for 24 bit files. According to the

[issue29744] memmap behavior changed

2017-03-06 Thread Andrea Giovannucci
Changes by Andrea Giovannucci : -- resolution: -> not a bug ___ Python tracker <http://bugs.python.org/issue29744> ___ ___ Python-bugs-list mailing list Un

[issue29744] memmap behavior changed

2017-03-06 Thread Andrea Giovannucci
New submission from Andrea Giovannucci: The previous version 2.7.12 was returning a memmap file when slicing with a list of integers, now it returns an array. This affects the behaviour of several functions in my package. Is that an aware choice or a side product of some other change

[issue28695] Add SSL_CTX_set_client_cert_engine

2016-12-23 Thread Andrea Grandi
Andrea Grandi added the comment: What about using OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL) instead of OPENSSL_config()? -- nosy: +Andrea Grandi ___ Python tracker <http://bugs.python.org/issue28

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-09-21 Thread Andrea De Pasquale
Andrea De Pasquale added the comment: To provide additional context, Microsoft has patched his Outlook client to be RFC2046-compliant. More details below: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-3366 https://technet.microsoft.com/library/security/MS16-107 http

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-09-08 Thread Andrea De Pasquale
Andrea De Pasquale added the comment: Yes you are right, my patch produces an RFC2046-compliant output and also registers the "not-unique-boundary" defect. -- ___ Python tracker <http://bugs.python.o

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-08-03 Thread Andrea De Pasquale
Andrea De Pasquale added the comment: Ok thanks, please kindly let me know. -- ___ Python tracker <http://bugs.python.org/issue27010> ___ ___ Python-bugs-list m

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-06-14 Thread Andrea De Pasquale
Andrea De Pasquale added the comment: Hello, did you have a chance to look at my patch? -- ___ Python tracker <http://bugs.python.org/issue27010> ___ ___ Pytho

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-05-26 Thread Andrea De Pasquale
Andrea De Pasquale added the comment: How about the following patch? If it's different from what you had in mind, please let me know. -- keywords: +patch Added file: http://bugs.python.org/file43016/issue27010-notuniqueboundary.patch ___ P

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-05-25 Thread Andrea De Pasquale
Andrea De Pasquale added the comment: Isn't this covered by the following test case? Lib/test/test_email/test_defect_handling.py:18 -- ___ Python tracker <http://bugs.python.org/is

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-05-25 Thread Andrea De Pasquale
Changes by Andrea De Pasquale : -- nosy: +adepasquale ___ Python tracker <http://bugs.python.org/issue27010> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20567] test_idle causes test_ttk_guionly 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-09-01 Thread Andrea Torre
Andrea Torre added the comment: Ubuntu 12.04 64-bit Python 2.7.3 (virtualenv) Hi, just adding a few info, hope not completely useless, that seem related to the issue. I got the same message when running nosetests against my source. It's an application using Tkinter as frontend. All tests

[issue18454] distutils crashes when uploading to PyPI having only the username (no pw) defined

2013-09-08 Thread Andrea Corbellini
Changes by Andrea Corbellini : -- versions: +Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issue18454> ___ ___ Pytho

[issue18807] Allow venv to create copies, even when symlinks are supported

2013-08-22 Thread Andrea Corbellini
New submission from Andrea Corbellini: I'd really appreciate if `venv` could create environments without symlinks. Working on many Python projects, each one with different requirements, I prefer to keep everything I need in a single virtualenv directory, rather than two (one fo

[issue16547] IDLE raises an exception in tkinter after fresh file's text has been rendered

2013-07-07 Thread Andrea Griffini
Andrea Griffini added the comment: The error cannot be reproduced on 2.7, 3.3 or 3.4 because the problem has been fixed with 1e5e497ee33b (issue 17614) -- nosy: +ag6502 ___ Python tracker <http://bugs.python.org/issue16

[issue18156] Add an 'attr' attribute to AttributeError

2013-07-06 Thread Andrea Griffini
Andrea Griffini added the comment: Even porting to the new wonderful 'attr' field is not going to make the code correct... (the exception could be bubbling up from code down ten frames about a different unrelated attribute that happens to have the same name in a different object). B

[issue5765] stack overflow evaluating eval("()" * 30000)

2012-08-20 Thread Andrea Griffini
Andrea Griffini added the comment: On Mon, Aug 20, 2012 at 12:27 AM, Antoine Pitrou wrote: > Indeed I don't like the introduction of COMPILER_STACK_FRAME_SCALE. > Re-using the existing infrastructure would be much easier to maintain. > The default recursion limit is 1000, which sh

[issue5765] stack overflow evaluating eval("()" * 30000)

2012-08-19 Thread Andrea Griffini
Andrea Griffini added the comment: I missed all the macrology present :-( ... the following is a patch that takes it into account (also defines a VISIT_QUIT macro to make more visible the exit points). The handling has been also extended to visit_stmt because the macros are shared. Of course

[issue15438] Incredible issue in math.pow

2012-07-26 Thread andrea bergamini
andrea bergamini added the comment: Ok guys, ticket closed, but I'm still confused: I'm not a Python expert, I've understood that math is a sort of wrapper of C math.h or something like this, but: - I can't find any reason in using math.pow if I can get errors like the on

[issue15438] Incredible issue in math.pow

2012-07-24 Thread andrea bergamini
andrea bergamini added the comment: Well, from a library I'm used to expect a good result or an exception. Not a value that differs from the correct of one unit! I agree with Antoine, the doc should warn about this behavior. I've lost a lot of time before discovering my applica

[issue15438] Incredible issue in math.pow

2012-07-24 Thread andrea bergamini
andrea bergamini added the comment: Ok, but math.pow IMPO has to be aligned to pow and built-in pow (**), otherwise this kind of "inaccuracies" can compromise the application behavior. I was using this funcion in a cryptographic mechanisms, and this issue resulted in a failure.

[issue15438] Incredible issue in math.pow

2012-07-24 Thread andrea bergamini
New submission from andrea bergamini : math.pow(43, 10) gives the wrong result: 21611482313284248.0 Instead, the build-in function 43**10 and pow(43, 10) give the correct result: 21611482313284249L. This bug has been seen on ActivePython 2.5.1.1. Sorry no tests on recent versions

[issue1616125] Cached globals+builtins lookup optimization

2012-07-07 Thread Andrea Griffini
Andrea Griffini added the comment: Closing as it was a partial implementation of a bad idea with questionable gains. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue15274] Patch for issue 5765: stack overflow evaluating eval("()" * 30000)

2012-07-07 Thread Andrea Griffini
Andrea Griffini added the comment: I sent an email because I was not able to log in. The patch has been submitted to the correct issue (6765). -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.p

[issue5765] stack overflow evaluating eval("()" * 30000)

2012-07-07 Thread Andrea Griffini
Andrea Griffini added the comment: This is a fix for this issue. The solution was to add two fields (recursion_depth and recursion_limit) to the symbol table object and just increment and check the depth in symtable_visit_expr raising a RuntimeError in case the limit is exceeded. The test

[issue15274] Patch for issue 5765: stack overflow evaluating eval("()" * 30000)

2012-07-07 Thread Andrea Griffini
New submission from Andrea Griffini : This is a fix for issue #5765: stack overflow evaluating eval("()" * 3) The solution was to add two fields (recursion_depth and recursion_limit) to the symbol table object and just increment and check the depth in symtable_visit_expr

[issue13991] namespace packages depending on order

2012-02-13 Thread andrea crotti
Changes by andrea crotti : -- resolution: invalid -> ___ Python tracker <http://bugs.python.org/issue13991> ___ ___ Python-bugs-list mailing list Unsubscri

[issue13991] namespace packages depending on order

2012-02-13 Thread andrea crotti
andrea crotti added the comment: I reopen the ticket because I'm still not convinced.. I tried to substitute the setuptools namespace declaration with the more standard python: from pkgutil import extend_path __path__ = extend_path(__path__, __name__) It behaves exactly in the sam

[issue13991] namespace packages depending on order

2012-02-12 Thread andrea crotti
andrea crotti added the comment: About the binary file, in theory I agree with you, but that archive contains 5 or 6 subdirectories with a few almost empty files. Of course I can write a script that recreates that situation, but does it make sense when I can just tar and untar it? And what

[issue13991] namespace packages depending on order

2012-02-11 Thread andrea crotti
andrea crotti added the comment: There is nothing binary in the archive, just a simple example of namespace packages, which was the minimal example that I could create to make things fail. I use the standard pkg_resources way to do things: __import__('pkg_resources').declare

[issue13991] namespace packages depending on order

2012-02-10 Thread andrea crotti
New submission from andrea crotti : I am not really sure that it is a bug, but for me it's at least not the expected behaviour. In short supposing I have two namespace packages ab and ac (as seen in the tar file), this works perfectly: import sys from os import path sys.path.a

[issue13670] Increase test coverage for pstats.py

2011-12-28 Thread andrea crotti
andrea crotti added the comment: It's really hard to understand true, and if should not go in the patch in general of course. The sense was that the only test I added is trivial, but I haven't produced something better yet. And ok I will remove the docstrings, I was actually d

[issue13670] Increase test coverage for pstats.py

2011-12-28 Thread andrea crotti
New submission from andrea crotti : This patch increases test coverage for pstats.py from 25 to 36%. It's my first proposed patch so sorry in advance if there are problems. Much more can be done for pstats.py (which is also not much commented) but I want to get some feedback on this

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Andrea Trasatti
New submission from Andrea Trasatti : We found a problem with SSL certificates, when they are larger than 1024 bits and you need to check Alternative Subject Names. In our case we have a 2048 bit certificate, issued by Verisign for the domain developer.nokia.com. The certificate also covers

[issue9417] Declaring a class creates circular references

2010-07-30 Thread Andrea Colangelo
Andrea Colangelo added the comment: I can confirm this bug should be addressed some way. On my high-traffic server, keeping GC enabled causes performance issues due to this bug, and disabling it causes an out-of-memory within hours. -- nosy: +warp10

[issue812369] module shutdown procedure based on GC

2010-07-29 Thread Andrea Corbellini
Changes by Andrea Corbellini : -- nosy: +candrea ___ Python tracker <http://bugs.python.org/issue812369> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
Andrea Corbellini added the comment: This is an unwanted an unexpected behavior, so this is a bug by definition. If it's not easy to fix, it's a different matter. However here's a proposed solution: * for the __mro__: instead of using a tuple, use a new object that inherits

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
Andrea Corbellini added the comment: Having a __del__ inside a metaclass is strange, I know... but probably there are situations where you need to do so. Why shouldn't a developer be able to add a __del__ to a metaclass without creating uncollectable objects? I don't think this b

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
Andrea Corbellini added the comment: Disabling the GC can increase performances (although not significantly). But this bug is the cause of other problems too: what if the metaclass contains a __del__() method? An another issue that I've found is that debugging is harder. I always t

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
New submission from Andrea Corbellini : Creating a class (either using the 'class' statement or using type()) creates a circular reference. I've attached a script that simply demonstrates this. The problem is caused by the fact that MyClass.__dict__['__dict__'

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Andrea Corbellini
Andrea Corbellini added the comment: Well, writing every time 'from X import Y' looks to me uncomfortable. But of course what I'm asking is not essential :-) ___ Python tracker <http://bugs.py

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Andrea Corbellini
Changes by Andrea Corbellini : -- type: -> feature request ___ Python tracker <http://bugs.python.org/issue5082> ___ ___ Python-bugs-list mailing list Un

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Andrea Corbellini
New submission from Andrea Corbellini : Most of the Python frameworks have some functions and classes that are widely used. For example a 'log.debug' function will be used in almost all modules. It is inconvenient to write 'import log' every time. It would be useful to hav

[issue2216] Problems using logging module with idle

2008-03-03 Thread Andrea Griffini
Andrea Griffini added the comment: I thougt it was a bug because when calling close() handlers are removed from some data structure (the global dictionary and the global list) but they're left inside the loggers they're attached to. Now I understand that this is a responsibility of wh

[issue2216] Problems using logging module with idle

2008-03-02 Thread Andrea Griffini
New submission from Andrea Griffini: I'm not a user of idle, but when asked about a strange behaviour of the logging module I digged a bit and found what I think is indeed a problem in the module itself. The problem is visible if the module is used from idle (or any other IDE that keeps the