Re: yaxis

2015-12-29 Thread Mark Lawrence
On 29/12/2015 14:25, damien.ishac...@gmail.com wrote: hello I would only change the scale of the y-axis, how to deal with matplotlib.pyplot or another library ? Please show us your code. The best way to deal with any library is to read the docs so start here

[issue25976] telnetlib SyntaxError: invalid syntax

2015-12-29 Thread SilentGhost
SilentGhost added the comment: The host ip needs to be supplied as a string: telnetlib.Telnet(host='192.168.1.15', port=3490, timeout=5) -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-12-29 Thread SilentGhost
Changes by SilentGhost : -- stage: patch review -> commit review ___ Python tracker ___

ANN: PyWavelets 0.4.0

2015-12-29 Thread Gregory Lee
On behalf of the PyWavelets development team I am pleased to announce the release of PyWavelets 0.4.0. As always, new developers interested in wavelets are welcome to join us at: https://github.com/PyWavelets/pywt Description --- PyWavelets is a free Open Source library for wavelet

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-12-29 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Alessandro. I left some comments about documentation part of the patch, but I can fix them myself if you don't have time. -- stage: commit review -> patch review ___ Python tracker

[issue22662] subprocess.Popen.communicate causing local tty terminal settings to change inconsistently

2015-12-29 Thread Jan Spurny
Jan Spurny added the comment: I'm probably experiencing the same problem - and I've found a way to demonstrate it (almost) reliably: import multiprocessing import subprocess import os def x(): fn = '/tmp/somevideo.avi' p = subprocess.Popen('mplayer -identify

[issue25971] Optimize converting float and Decimal to Fraction

2015-12-29 Thread Mark Dickinson
Mark Dickinson added the comment: Any particular reason for the lower-casing of "Cannot" to "cannot" in the exception messages? Otherwise, LGTM. -- ___ Python tracker

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Mark Lawrence
On 29/12/2015 15:20, xeon Mailinglist wrote: On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: 1. How do I create a global variable that can be accessed by all classes? 2. I am using `dogpile.cache` to store data in the cache [1], but if I set and get the same key from

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Peter Otten
xeon Mailinglist wrote: > On Tuesday, December 29, 2015 at 4:18:10 PM UTC, Peter Otten wrote: >> xeon Mailinglist wrote: >> >> > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist >> > wrote: >> >> 1. How do I create a global variable that can be accessed by all >> >> classes? >>

Python.Exe Problem

2015-12-29 Thread Daniel Lee
Hello, When I try to run python.exe on my computer with Windows 8, I get the following error: "Python.exe - Entry Point Not Found" "The Procedure entry point ?terminate@@YAXXZ could not be located in the dynamic link library C:\Program Files\Python3.5\python.exe." What does this error mean and

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-12-29 Thread Alessandro Cucci
Alessandro Cucci added the comment: Berker, thank you. In the last patch, I removed details about timespec options in Python and C docstrings, corrected the rst quotes, and checked PEP7 in the c file. The only problem now is about versionchanged vs versionadded. I leave it as it was, as

[issue25973] Segmentation fault with nonlocal and two underscores

2015-12-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4fa8c0c69ee9 by Benjamin Peterson in branch '3.5': make recording and reporting errors and nonlocal and global directives more robust (closes #25973) https://hg.python.org/cpython/rev/4fa8c0c69ee9 New changeset c64e68d703cf by Benjamin Peterson in

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2015-12-29 Thread Erwann Mest
Erwann Mest added the comment: +1 I've got like 3 apps which are broken. - https://github.com/mkdocs/mkdocs/issues/465 - https://bugzilla.mozilla.org/show_bug.cgi?id=1012443 -- nosy: +_kud ___ Python tracker

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 5:15:24 PM UTC, Mark Lawrence wrote: > On 29/12/2015 15:20, xeon Mailinglist wrote: > > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: > >> 1. How do I create a global variable that can be accessed by all classes? > >> > >> 2. I am using

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 5:33:43 PM UTC, Peter Otten wrote: > xeon Mailinglist wrote: > > > On Tuesday, December 29, 2015 at 4:18:10 PM UTC, Peter Otten wrote: > >> xeon Mailinglist wrote: > >> > >> > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist > >> > wrote: > >>

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 5:38:17 PM UTC, xeon Mailinglist wrote: > On Tuesday, December 29, 2015 at 5:33:43 PM UTC, Peter Otten wrote: > > xeon Mailinglist wrote: > > > > > On Tuesday, December 29, 2015 at 4:18:10 PM UTC, Peter Otten wrote: > > >> xeon Mailinglist wrote: > > >> > > >> >

[issue25976] telnetlib SyntaxError: invalid syntax

2015-12-29 Thread Mark McDonnell
New submission from Mark McDonnell: I'm trying to use telnetlib in a simple script similar to the example show in the documentation. I get an error saying SyntaxError: invalid syntax. This is true with Windows 10, and XP, both using Python 2.7.11 32 bit. Here's what happens in IDLE: >>>

[issue21815] imaplib truncates some untagged responses

2015-12-29 Thread R. David Murray
R. David Murray added the comment: When you think a patch is ready for commit, you can move it to commit review, which will put it in my queue (not that I've been getting to that very fast lately, but I'm going to try to be better about it...) --

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 5:15:24 PM UTC, Mark Lawrence wrote: > On 29/12/2015 15:20, xeon Mailinglist wrote: > > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: > >> 1. How do I create a global variable that can be accessed by all classes? > >> > >> 2. I am using

Re: yaxis

2015-12-29 Thread Peter Pearson
On Tue, 29 Dec 2015 06:25:49 -0800 (PST), damien.ishac...@gmail.com wrote: > hello I would only change the scale of the y-axis, how to deal with > matplotlib.pyplot or another library ? Here's a function I use. ax is an "axes" object, which you can get by calling the get-current-axes (gca())

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: > 1. How do I create a global variable that can be accessed by all classes? > > 2. I am using `dogpile.cache` to store data in the cache [1], but if I set > and get the same key from different modules, I don't get the

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Peter Otten
xeon Mailinglist wrote: > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: >> 1. How do I create a global variable that can be accessed by all classes? >> >> 2. I am using `dogpile.cache` to store data in the cache [1], but if I >> set and get the same key from different

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 4:18:10 PM UTC, Peter Otten wrote: > xeon Mailinglist wrote: > > > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: > >> 1. How do I create a global variable that can be accessed by all classes? > >> > >> 2. I am using `dogpile.cache` to

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Peter Otten
xeon Mailinglist wrote: > No, I cannot get a simpler example. The simpler example works, and in my > code, it doesn't. Then you have to add/remove complexity until you find the problematic statements. > I thought that it was something related to the variable > `region`, but I declare it as

[issue22662] subprocess.Popen.communicate causing local tty terminal settings to change inconsistently

2015-12-29 Thread Jan Spurny
Jan Spurny added the comment: (The video file must exist for this to work) -- ___ Python tracker ___ ___

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-12-29 Thread Alessandro Cucci
Alessandro Cucci added the comment: what about the comment left by SilentGhost about versionadded? -- ___ Python tracker ___

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Chris Angelico
On Wed, Dec 30, 2015 at 8:43 AM, Skybuck Flying wrote: > Not at all, these assembler statements can be replaced with python > statements and then you have the exact same problem ! ;) Then do so. Give us an example where this problem occurs in pure Python. ChrisA --

[issue25863] ISO-2022 seeking forgets state

2015-12-29 Thread John Walker
Changes by John Walker : -- nosy: +johnwalker ___ Python tracker ___ ___

[issue25979] String functions lstrip are not working properly when you have escape sequence

2015-12-29 Thread Kiran Kotari
New submission from Kiran Kotari: In this python code I am collecting list of folders present in the given location path with parent folder and print the folder names (output went wrong due to escape sequence values with lstrip.) Note : "\a \b \f \r \v \0 \1" are working fine. "\c \e \n \ne

[issue25979] String functions lstrip are not working properly when you have escape sequence

2015-12-29 Thread Kiran Kotari
Changes by Kiran Kotari : Removed file: http://bugs.python.org/file41450/string_fun_error.py ___ Python tracker ___

[issue25979] String functions lstrip are not working properly when you have escape sequence

2015-12-29 Thread Kiran Kotari
Kiran Kotari added the comment: In this python code I am collecting list of folders present in the given location path with parent folder and print the folder names (output went wrong due to escape sequence values with lstrip.) Note : "\a \b \f \r \v \0 \1" are working fine. "\c \e \n \ne \t

Path problems when I am in bash

2015-12-29 Thread xeon Mailinglist
I have my source code inside the directory `medusa`, and my unit tests inside `tests` dir. Both dirs are inside `medusa-2.0` dir. Here is my file structure [1]. When I run my tests inside pycharm, everything works fine, but when I try to run my unit tests inside in the prompt [2], the

[issue25977] Typo fixes in Lib/tokenize.py

2015-12-29 Thread John Walker
John Walker added the comment: You're welcome, have a happy new year. :) -- ___ Python tracker ___ ___

[issue25979] String functions lstrip are not working properly when you have escape sequence

2015-12-29 Thread Ethan Furman
Ethan Furman added the comment: lstrip() works by removing any of the characters in its argument, in any order; for example: 'catchy'.lstrip('cat') # 'hy' 'actchy'.lstrip('tac') # 'hy' is stripping, from the left, all 'c's and all 'a's and all 't's -- not just the first three, and order

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Mark Lawrence
On 29/12/2015 22:57, xeon Mailinglist wrote: On Tuesday, December 29, 2015 at 7:23:40 PM UTC, Mark Lawrence wrote: On 29/12/2015 17:27, xeon Mailinglist wrote: On Tuesday, December 29, 2015 at 5:15:24 PM UTC, Mark Lawrence wrote: On 29/12/2015 15:20, xeon Mailinglist wrote: On Tuesday,

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 7:23:40 PM UTC, Mark Lawrence wrote: > On 29/12/2015 17:27, xeon Mailinglist wrote: > > On Tuesday, December 29, 2015 at 5:15:24 PM UTC, Mark Lawrence wrote: > >> On 29/12/2015 15:20, xeon Mailinglist wrote: > >>> On Tuesday, December 29, 2015 at 11:16:10 AM UTC,

[issue25977] Typo fixes in Lib/tokenize.py

2015-12-29 Thread John Walker
New submission from John Walker: Minor fixes to comments and a docstring in Lib/tokenize.py I found while looking for more important bugs. afer -> after alternately -> alternatively intput -> input argment -> argument -- assignee: docs@python components: Documentation files:

[issue25977] Typo fixes in Lib/tokenize.py

2015-12-29 Thread SilentGhost
Changes by SilentGhost : -- nosy: +meador.inge ___ Python tracker ___ ___

[issue25978] escape sequence r'\' giving compilation error

2015-12-29 Thread R. David Murray
R. David Murray added the comment: https://docs.python.org/3/faq/design.html?highlight=raw%20strings#why-can-t-raw-strings-r-strings-end-with-a-backslash -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed

[issue25977] Typo fixes in Lib/tokenize.py

2015-12-29 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, John. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue25977] Typo fixes in Lib/tokenize.py

2015-12-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9057e3857119 by Berker Peksag in branch '3.5': Issue #25977: Fix typos in Lib/tokenize.py https://hg.python.org/cpython/rev/9057e3857119 New changeset 5b43d7984a63 by Berker Peksag in branch 'default': Issue #25977: Fix typos in Lib/tokenize.py

[issue25978] escape sequence r'\' giving compilation error

2015-12-29 Thread Kiran Kotari
New submission from Kiran Kotari: >>> '\test'.lstrip(r'\') SyntaxError: EOL while scanning string literal -- components: 2to3 (2.x to 3.x conversion tool) messages: 257221 nosy: Kiran Kotari priority: normal severity: normal status: open title: escape sequence r'\'

Re: Path problems when I am in bash

2015-12-29 Thread Karim
On 30/12/2015 00:21, xeon Mailinglist wrote: I have my source code inside the directory `medusa`, and my unit tests inside `tests` dir. Both dirs are inside `medusa-2.0` dir. Here is my file structure [1]. When I run my tests inside pycharm, everything works fine, but when I try to run my

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Mark Lawrence
On 29/12/2015 17:27, xeon Mailinglist wrote: On Tuesday, December 29, 2015 at 5:15:24 PM UTC, Mark Lawrence wrote: On 29/12/2015 15:20, xeon Mailinglist wrote: On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: 1. How do I create a global variable that can be accessed

Re: Python.Exe Problem

2015-12-29 Thread Terry Reedy
On 12/29/2015 11:24 AM, Daniel Lee wrote: Hello, When I try to run python.exe on my computer with Windows 8, Which exact version? From what source? How did you download (from where) or compile? How did you install? How do you try to run it? I get the following error: "Python.exe -

[issue25971] Optimize converting float and Decimal to Fraction

2015-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you all for your review. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Steven D'Aprano" wrote in message news:5682892c$0$1587$c3e8da3$54964...@news.astraweb.com... On Tue, 29 Dec 2015 10:25 pm, Skybuck Flying wrote: Great that means you will understand the example below: mov eax, 0 add eax, 10 mul eax, 4 There is an instruction sequence for you. "

Re: EOFError: marshal data too short -- causes?

2015-12-29 Thread Terry Reedy
On 12/29/2015 3:01 AM, Glenn Linderman wrote: Now the __pycache__ directory is full of .pyc and .pyo files (from the install? The installer optionally runs compileall on /Lib and recursively on its subpackages. The option defaults to 'yes', at least for 'install for everyone', as writing

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2015-12-29 Thread Davin Potts
Davin Potts added the comment: Two core issues are compounding one another here: 1. An un-pythonic, inconsistent behavior currently exists with how managed lists and dicts return different types of values. 2. Confusion comes from reading what is currently in the docs regarding the expected

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2015-12-29 Thread Davin Potts
Changes by Davin Potts : -- assignee: jnoller -> davin ___ Python tracker ___ ___

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Rustom Mody
On Saturday, December 19, 2015 at 11:26:55 PM UTC+5:30, Skybuck Flying wrote: > Hello, > > I'd like to see instruction execution enhanced with the following two ideas: > > 1. A termination bit, and a terminator pointer. > 2. A alternation bit, and a alternate pointer. > > The purpose of these

[issue25863] ISO-2022 seeking forgets state

2015-12-29 Thread John Walker
John Walker added the comment: Here is Martin's message as a unit test. It checks utf-8 and the iso-2022 family except iso-2022-cn and iso-2022-cn-ext because they are not supported. The errors occur with all iso-2022 charsets. -- keywords: +patch Added file:

[issue24682] Add Quick Start: Communications section to devguide

2015-12-29 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW when I added the quickstart (#13228), its main target wasn't newbies, but devs that already have experience with other open source projects and want to contribute to CPython. These people just need to know where is the repo and the bug tracker, how to

[issue23738] Clarify documentation of positional-only default values

2015-12-29 Thread Ezio Melotti
Ezio Melotti added the comment: One thought that occurred to me is that we could make the * and / in the signature links that point to a relevant section of the documentation. I believe this is doable with Sphinx, even though I'm not sure how complex it is and if it's worth it. If we do this,

[issue25194] Opt-in motivations & affiliations page for core contributors

2015-12-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: commit review -> resolved status: open -> pending ___ Python tracker

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-29 Thread lee
On Monday, December 28, 2015 at 11:30:18 PM UTC+1, Cameron Simpson wrote: > On 28Dec2015 01:34, Prince Udoka wrote: > >bu i have come up with a solution, that will work but encounter a problem in > >the set, giving set not manipulated correctly: > > > >def manipulate_data(kind, data): > >if

[issue21815] imaplib truncates some untagged responses

2015-12-29 Thread Maciej Szulik
Maciej Szulik added the comment: I've checked the patch: it looks good, applies cleanly to latest default and passes all the tests. I'm ok with merging this as is. -- ___ Python tracker

[issue25856] The __module__ attribute of non-heap classes is not interned

2015-12-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file41443/intern_and_cache___module__.patch ___ Python tracker ___

[issue25856] The __module__ attribute of non-heap classes is not interned

2015-12-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file41444/intern_and_cache___module__.patch ___ Python tracker ___

Re: EOFError: marshal data too short -- causes?

2015-12-29 Thread Glenn Linderman
On 12/28/2015 11:19 PM, Terry Reedy wrote: On 12/29/2015 1:50 AM, Glenn Linderman wrote: Here's a sanatized stack trace off my web server: File ".../cgihelpers.py", line 10, in import cgitb File ".../py34/lib/python3.4/cgitb.py", line 24, in import inspect File

yaxis

2015-12-29 Thread damien . ishacian
hello I would only change the scale of the y-axis, how to deal with matplotlib.pyplot or another library ? -- https://mail.python.org/mailman/listinfo/python-list

[issue25973] Segmentation fault with nonlocal and two underscores

2015-12-29 Thread SilentGhost
Changes by SilentGhost : -- components: +Interpreter Core versions: +Python 3.5, Python 3.6 -Python 3.4 ___ Python tracker ___

[issue25973] Segmentation fault with nonlocal and two underscores

2015-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get a crash when just compile the example. -- Added file: http://bugs.python.org/file41445/test_issue25973.py ___ Python tracker

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2015-12-29 Thread Stefan Krah
Stefan Krah added the comment: Setting to blocker because I've disabled the offending tests. -- nosy: +georg.brandl, larry, skrah priority: high -> release blocker ___ Python tracker

[issue25974] Fix statistics.py after the Decimal.as_integer_ratio() change

2015-12-29 Thread Stefan Krah
Stefan Krah added the comment: No, I haven't done any benchmarks. In a quick test type(x) == float does not seem any faster than isinstance(x, float), so perhaps we could reduce the try/except complexity. -- ___ Python tracker

[issue25975] Weird multiplication

2015-12-29 Thread Alex
Alex added the comment: Wow. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Grant Edwards" wrote in message news:n59k40$e27$1...@reader1.panix.com... On 2015-12-21, Dennis Lee Bieber wrote: On Mon, 21 Dec 2015 13:40:21 +0100, "Skybuck Flying" declaimed the following: The original idea I posted is less about

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Grant Edwards" wrote in message news:n59k40$e27$1...@reader1.panix.com... On 2015-12-21, Dennis Lee Bieber wrote: On Mon, 21 Dec 2015 13:40:21 +0100, "Skybuck Flying" declaimed the following: The original idea I posted is less about

[issue25928] Add Decimal.as_integer_ratio()

2015-12-29 Thread Stefan Krah
Stefan Krah added the comment: I've opened #25974 for the statistics.py issues. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25973] Segmentation fault with nonlocal and two underscores

2015-12-29 Thread Konstantin Enchant
Konstantin Enchant added the comment: The problem happens only when "nonlocal __something" in a class method. In your case f2() isn't class method. More interesting behavior with underscores - https://gist.github.com/sirkonst/6eff694c4546700417ea --

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Steven D'Aprano
On Tue, 29 Dec 2015 10:25 pm, Skybuck Flying wrote: > Great that means you will understand the example below: > > mov eax, 0 > add eax, 10 > mul eax, 4 > > There is an instruction sequence for you. Skybuck, this is completely off-topic for a Python forum like this. -- Steven --

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-29 Thread lee
On Tuesday, December 29, 2015 at 11:48:42 AM UTC+1, Cameron Simpson wrote: > On 29Dec2015 00:49, lee wrote: > >thumbs up Cameron , you and others here are really wonderful > >https://mail.python.org/mailman/listinfo/python-list > > Hi Lee, > > While we're generally happy to help, these

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2015-12-29 Thread Christian Brabandt
Christian Brabandt added the comment: Note this issue breaks Vim compiled with python support (issue: https://github.com/vim/vim/issues/526) and ci.appveyor.com tests (e.g. https://ci.appveyor.com/project/chrisbra/vim/build/211) -- nosy: +Christian Brabandt

[issue19873] There is a duplicate function in Lib/test/test_pathlib.py

2015-12-29 Thread NAVNEET SUMAN
NAVNEET SUMAN added the comment: Thanks.. Finally after two years the patch got submitted. :D -- ___ Python tracker ___

[issue25974] Fix statistics.py after the Decimal.as_integer_ratio() change

2015-12-29 Thread Stefan Krah
Stefan Krah added the comment: The clear winner for float and Decimal is hasattr(x, 'as_integer_ratio'). The other types are a bit disadvantaged if the lookup fails, but they go through additional try/excepts anyway. -- ___ Python tracker

[issue25961] Disallow the null character in type name

2015-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because tp_name is a pointer to null-terminated C string and there is no way to distinguish the name containg the null byte from the name terminated by null byte. tp_name is used for example in error messages. >>> t = type('B\0C', (), {}) >>> t.__name__

[issue25973] Segmentation fault with nonlocal and two underscores

2015-12-29 Thread Alessandro Cucci
Alessandro Cucci added the comment: I don't think the problem is about the underscores, since this work... class Foo: def f1(self): __obj = object() def f2(): nonlocal __obj __obj = [] f2() return isinstance(__obj, list) f =

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-29 Thread Cameron Simpson
On 29Dec2015 00:49, lee wrote: thumbs up Cameron , you and others here are really wonderful https://mail.python.org/mailman/listinfo/python-list Hi Lee, While we're generally happy to help, these questions are better taken to the tutor list here:

Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
1. How do I create a global variable that can be accessed by all classes? 2. I am using `dogpile.cache` to store data in the cache [1], but if I set and get the same key from different modules, I don't get the value. Here is an example in [2]. The value than I get is `NO_VALUE.NO_VALUE`. Why

[issue25973] Segmentation fault with nonlocal and two underscores

2015-12-29 Thread Konstantin Enchant
New submission from Konstantin Enchant: Code: # --- __obj = object() class Foo: def f1(self): nonlocal __obj f = Foo() f.f1() # <-- segmentation fault # --- -- messages: 257174 nosy: Konstantin Enchant priority:

[issue25973] Segmentation fault with nonlocal and two underscores

2015-12-29 Thread Alessandro Cucci
Alessandro Cucci added the comment: quoting the docs: The statement [nonlocal] allows encapsulated code to rebind variables outside of the local scope BESIDES the global (module) scope. -- ___ Python tracker

Re: EOFError: marshal data too short -- causes?

2015-12-29 Thread D'Arcy J.M. Cain
On Tue, 29 Dec 2015 00:01:00 -0800 Glenn Linderman wrote: > OK, so I actually renamed it instead of zapping it. Them, actually, Really, just zap them. They are object code. Even if you zap a perfectly good .pyc file a perfectly good one will be re-created as soon as

[issue25975] Weird multiplication

2015-12-29 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue25975] Weird multiplication

2015-12-29 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: LCK: it's a trait of float point arithmetic in computing: https://docs.python.org/3.5/tutorial/floatingpoint.html . It's not a bug. -- nosy: +Unit03 ___ Python tracker

[issue25961] Disallow the null character in type name

2015-12-29 Thread ppperry
ppperry added the comment: Why are null bytes being excluded from type names in the first place? -- nosy: +ppperry ___ Python tracker ___

[issue25973] Segmentation fault with nonlocal and two underscores

2015-12-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, serhiy.storchaka, yselivanov ___ Python tracker

[issue25974] Fix statistics.py after the Decimal.as_integer_ratio() change

2015-12-29 Thread Stefan Krah
New submission from Stefan Krah: Here's a fix for the fallout from #25928. I've set it to release blocker to make sure we don't forget. -- assignee: steven.daprano components: Library (Lib) files: statistics_as_integer_ratio.diff keywords: 3.5regression, patch messages: 257178 nosy:

[issue25973] Segmentation fault with nonlocal and two underscores

2015-12-29 Thread Konstantin Enchant
Konstantin Enchant added the comment: Yes. Case: # --- class A: def f(self): nonlocal __x # --- must raises SyntaxError like case: # --- class A: def f(self): nonlocal x >> SyntaxError: no binding for nonlocal 'x' found

[issue25975] Weird multiplication

2015-12-29 Thread Alex
New submission from Alex: Hi! I'm nube and just learning, but found weird thing 5 * 1.1 equals 55000.001, but that's not wright. I'm using 3.5.1 Shell. My friend checked - his got the same result. So is it a bug or a feature? -- components: IDLE, Windows messages: 257187

[issue25918] AssertionError in lib2to3 on 2.7.11 Windows

2015-12-29 Thread Marc Schlaich
Marc Schlaich added the comment: Not sure. Somehow I got these corrupted files just by upgrading to 2.7.11. It might be that they are not getting updated when installing 2.7.11 over an existing 2.7.10. So maybe it's worth to investigate further as others could be affected, too. --

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Chris Angelico" wrote in message news:mailman.62.1450799815.2237.python-l...@python.org... On Wed, Dec 23, 2015 at 2:46 AM, Skybuck Flying wrote: One idea which immediatly comes to mind to fix this problem is to offer a "PushTerminationFlag" onto stack and then

[issue25974] Fix statistics.py after the Decimal.as_integer_ratio() change

2015-12-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. I haven't tested that "type(x) is float or type(x) is Decimal" is faster than alternatives ("type(x) in (float, Decimal)", or "isinstance(x, (float, Decimal))", or "hasattr(x, 'as_integer_ratio')") and believe you have tested this. -- stage: