frigcal 1.3: updated calendar desktop GUI

2014-12-19 Thread Mark Lutz
Just in time for the new year... the latest version of frigcal, a refrigerator style calendar desktop GUI, has just been released. This new version, 1.3, incorporates some 20 enhancements since the original 1.0 version was announced here in September. You can read all about them in the

Authomatic 0.0.10

2014-12-19 Thread Peter Hudec
Hi, I would like to announce that Authomatic 0.0.10 is out with following changes: http://peterhudec.github.io/authomatic/changelog.html#version-0-0-10 * Fixed a bug when saving non-JSON-serializable values to third party sessions by the python-openid package caused a KeyError. * Added the

Re: newbie: installing setuptools

2014-12-19 Thread Jean-Michel Pichavant
- Original Message - From: Surbhi Gupta surbhi.2...@gmail.com OK, the problem is now resolved: I just found out that we need to install from prompt instead of IDLE. Setuptools is installed, but I am not able to use easy_install from prompt. It says: easy_install : The term

Re: how to generate a wsdl file for a web service in python

2014-12-19 Thread brice DORA
Le jeudi 18 décembre 2014 11:46:00 UTC, Burak Arslan a écrit : On 12/18/14 11:58, brice DORA wrote: hi to all I am new to python and as part of my project I would like to create a SOAP web service. for now I've developed my python file with all the methods of my future web service, but my

[RELEASE] ‘python-daemon’ version 1.5.7 released

2014-12-19 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 1.5.7 of the ‘python-daemon’ library. The current release is always available at URL:https://pypi.python.org/pypi/python-daemon/. The project's forums and VCS are hosted at Alioth URL:https://alioth.debian.org/projects/python-daemon/.

Bug? Feature? setattr(foo, '3', 4) works!

2014-12-19 Thread Cem Karan
I'm bringing this discussion over from the python-ideas mailing list to see what people think. I accidentally discovered that the following works, at least in Python 3.4.2: class foo(object): ... pass ... setattr(foo, '3', 4) dir(foo) ['3', '__class__', '__delattr__', '__dict__',

Re: Bug? Feature? setattr(foo, '3', 4) works!

2014-12-19 Thread Ben Finney
Cem Karan cfkar...@gmail.com writes: However, the following doesn't work: foo.3 File stdin, line 1 foo.3 ^ SyntaxError: invalid syntax bar.3 File stdin, line 1 bar.3 ^ SyntaxError: invalid syntax I'd like to suggest that getattr(), setattr(), and hasattr()

Re: Bug? Feature? setattr(foo, '3', 4) works!

2014-12-19 Thread Ned Batchelder
On 12/19/14 6:40 AM, Cem Karan wrote: I'm bringing this discussion over from the python-ideas mailing list to see what people think. I accidentally discovered that the following works, at least in Python 3.4.2: class foo(object): ... pass ... setattr(foo, '3', 4) dir(foo) ['3',

Re: Bug? Feature? setattr(foo, '3', 4) works!

2014-12-19 Thread Dave Angel
On 12/19/2014 06:40 AM, Cem Karan wrote: I'm bringing this discussion over from the python-ideas mailing list to see what people think. I accidentally discovered that the following works, at least in Python 3.4.2: class foo(object): ... pass ... setattr(foo, '3', 4) dir(foo) ['3',

Re: Bug? Feature? setattr(foo, '3', 4) works!

2014-12-19 Thread Terry Reedy
On 12/19/2014 6:40 AM, Cem Karan wrote: I'm bringing this discussion over from the python-ideas mailing list to see what people think. I accidentally discovered that the following works, at least in Python 3.4.2: class foo(object): ... pass ... setattr(foo, '3', 4) dir(foo) ['3',

Create New Comment In Xenforo

2014-12-19 Thread hungvuongjs
Hi, https://xenforo.com/community/threads/nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp-nbsp.3864/ i want to add new comment thanks to above topic It can login but can not reply topic. Here my code, please help me fix. Thanks a lot import requests with requests.session() as

Re: Bug? Feature? setattr(foo, '3', 4) works!

2014-12-19 Thread random832
On Fri, Dec 19, 2014, at 07:23, Ben Finney wrote: Cem Karan cfkar...@gmail.com writes: I'd like to suggest that getattr(), setattr(), and hasattr() all be modified so that syntactically invalid statements raise SyntaxErrors. What syntactically invalid statements? The only syntactically

Re: newbie: installing setuptools

2014-12-19 Thread Mark Lawrence
On 19/12/2014 04:43, Surbhi Gupta wrote: Hey, I am new to python and facing problem with installing packages. I am using VPython which requires Python 2.7.x from python.org; it will not work with versions of Python other than the one from python.org. So I need to install packages separately.

Advice needed - Choosing appropriate GUI (IDE) and Data Visualization software (3D also)

2014-12-19 Thread Ivan Evstegneev
Hello guys, Here is a brief description for my question: I'm currently dealing with my EE B.Sc. final project. This projects generally relates to the SDN Optical Networks. One of its goals is to build some GUI framework based on mininet software (http://mininet.org/) Mostly, I'll need expand its

resource based job queue manager

2014-12-19 Thread Parthiban Ramachandran
can someone suggest a resource based job queue manager. for eg i have 3 resources and 10 jobs based on the resource busy/free we should start running the jobs. I can write the code but want to know if there is any established scheduler which can run the jobs from different servers too. --

code python

2014-12-19 Thread Khetam Yassen
Hello all I Have problem about , How i can compute accuracy to unigram,bigram and trigram and how i can change the size to iteration separate from 1 to 10 in each stage from iteration train take 90% and training 10%. thank you to read my message import codecs import nltk from nltk import*

Changing script's search path at install time

2014-12-19 Thread Mitko Haralanov
Hi all, I have a question regarding installation of Python scripts and modules using distutils that I can't find an answer to by searching through Google and the Python website. Hopefully, someone on this list might have ideas? I am writing a Python app, which I would eventually like to install

Re: Google Maps and Python: creating a map, embedding it, adding images, videos, markers, using python

2014-12-19 Thread Daniel da Silva
Kevin, that client library looks like it is for accessing Google Maps related services, not modifying maps themselves. On Fri, Dec 19, 2014 at 1:02 AM, Kev Dwyer kevin.p.dw...@gmail.com wrote: Veek M wrote: I'm messing with Google-Maps. Is there a way I can create a map, embed it on a

Re: Changing script's search path at install time

2014-12-19 Thread Dave Angel
On 12/19/2014 05:51 PM, Mitko Haralanov wrote: Hi all, I have a question regarding installation of Python scripts and modules using distutils that I can't find an answer to by searching through Google and the Python website. Hopefully, someone on this list might have ideas? I am writing a

Re: Changing script's search path at install time

2014-12-19 Thread sohcahtoa82
On Friday, December 19, 2014 6:00:15 PM UTC-8, Mitko Haralanov wrote: Hi all, I have a question regarding installation of Python scripts and modules using distutils that I can't find an answer to by searching through Google and the Python website. Hopefully, someone on this list might

Re: Changing script's search path at install time

2014-12-19 Thread Ben Finney
Dave Angel da...@davea.name writes: On 12/19/2014 05:51 PM, Mitko Haralanov wrote: However, when the app gets installed, I would like to install the modules to /usr/lib64/pythonX.Y/site-packages/myapp. I know that I can do this by using the package_dir argument to the setup() function in

regex tool in the python source tree

2014-12-19 Thread Rustom Mody
I remember seeing here (couple of weeks ago??) a mention of a regex debugging/editing tool hidden away in the python source tree. Does someone remember the name/path? There are of course dozens of online ones... Looking for a python native tool --

Re: regex tool in the python source tree

2014-12-19 Thread Rustom Mody
On Saturday, December 20, 2014 12:01:10 PM UTC+5:30, Rustom Mody wrote: I remember seeing here (couple of weeks ago??) a mention of a regex debugging/editing tool hidden away in the python source tree. Does someone remember the name/path? There are of course dozens of online ones...

[issue22113] memoryview and struct.pack_into

2014-12-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: lgtm :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22113 ___ ___ Python-bugs-list mailing list

[issue21862] cProfile command-line should accept -m module_name as an alternative to script path

2014-12-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch does not seem to allow parameters after the -m option. I'm sure this restriction can be lifted. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21862

[issue21279] str.translate documentation incomplete

2014-12-19 Thread John Posner
John Posner added the comment: Regarding Martin's patch of 12-18: stdtypes.rst -- looks good to me unicodeobject.c -- I suggest changing this sentence: If a character is not in the table, the subscript operation should raise LookupError, and the character is left untouched. ... to: If the

[issue23085] update internal libffi copy to 3.2.1

2014-12-19 Thread Gustavo Temple
Gustavo Temple added the comment: @steve.dower, so, can I abandon this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23085 ___ ___

[issue23085] update internal libffi copy to 3.2.1

2014-12-19 Thread Steve Dower
Steve Dower added the comment: I'm not entirely familiar with our layout of libffi, but I don't think your patch will affect Windows at all. If your intent was to update the version used in Windows builds, then you may as well abandon it. I'm not the one to ask about other platforms -

[issue23085] update internal libffi copy to 3.2.1

2014-12-19 Thread Gustavo Temple
Gustavo Temple added the comment: @steve.dower, so no problems, because my patch won't affect Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23085 ___

[issue23089] Update config files

2014-12-19 Thread Gustavo Temple
New submission from Gustavo Temple: Update config.guess and config.sub -- components: Installation files: config.patch keywords: patch messages: 232937 nosy: gustavotemple priority: normal severity: normal status: open title: Update config files versions: Python 3.4, Python 3.5 Added

[issue23089] Update config files

2014-12-19 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23089 ___ ___

[issue23084] Expose C struct timespec (nanosecond resolution) in time module

2014-12-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- components: +Extension Modules -Library (Lib) status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23084 ___

[issue23089] Update libffi config files

2014-12-19 Thread R. David Murray
R. David Murray added the comment: How does this patch relate to the discussion on python-dev about libffi? -- components: +ctypes nosy: +r.david.murray title: Update config files - Update libffi config files ___ Python tracker rep...@bugs.python.org

[issue23089] Update libffi config files

2014-12-19 Thread Gustavo Temple
Gustavo Temple added the comment: @r.david.murray, I think they aren't related. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23089 ___ ___

[issue23089] Update libffi config files

2014-12-19 Thread R. David Murray
R. David Murray added the comment: What is the purpose of your patch, then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23089 ___ ___

[issue22896] Don't use PyObject_As*Buffer() functions

2014-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Antoine's comments. I still hesitate about C-contiguousity. Looks as all buffers created in the stdlib are C-contiguous, so we can't test non-contiguous buffers. Shouldn't PyObject_AsCharBuffer (or even PyObject_AsReadBuffer

[issue23089] Update libffi config files

2014-12-19 Thread Gustavo Temple
Gustavo Temple added the comment: @r.david.murray, the config.guess inside the root folder fixes some verifications about IBM arch, the config.guess inside the libffi folder fixes some verifications about PowerPC, and the config.sub inside the libffi folder fixes some verifications about

[issue23063] `python setup.py check --restructuredtext --strict --metadata` fails with: `warning: check: Could not finish the parsing.` if the RST document uses code or code-block directives.

2014-12-19 Thread Éric Araujo
Éric Araujo added the comment: An active core developer needs to see this and decide to commit the patch. You can see if there’s someone on IRC. If there’s no action in a week or two, feel free to ask on python-dev (maybe listing more than one waiting patch, or offering reviews in exchange

[issue23090] fix test_doctest relying on refcounting to close files

2014-12-19 Thread Brian Kearns
Changes by Brian Kearns bdkea...@gmail.com: -- files: fix_test_doctest.patch keywords: patch nosy: bdkearns priority: normal severity: normal status: open title: fix test_doctest relying on refcounting to close files type: behavior versions: Python 2.7 Added file:

[issue22896] Don't use PyObject_As*Buffer() functions

2014-12-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Shouldn't PyObject_AsCharBuffer (or even PyObject_AsReadBuffer and_PyBuffer_Converter) accept only C-contiguous buffers? PyBUF_SIMPLE enforces contiguity. See https://www.python.org/dev/peps/pep-3118/#access-flags and

[issue23089] Update libffi config files

2014-12-19 Thread R. David Murray
R. David Murray added the comment: How do these relate to the upstream libffi? I think we probably need to deal with this as part of the libffi discussion on python-dev. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23089

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2014-12-19 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: multiprocessing.pool methods imap() and imap_unordered() cause deadlock - multiprocessing.pool methods imap()[_unordered()] deadlock ___ Python tracker rep...@bugs.python.org

[issue22896] Don't use PyObject_As*Buffer() functions

2014-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, there is a way to create non-contiguous buffers. b = bytes(range(16)) m = memoryview(b) m[::2].c_contiguous False PyBUF_SIMPLE enforces contiguity. Then contiguousity check in getbuffer() in Python/getargs.c is redundant. And in most cases the use

[issue22896] Don't use PyObject_As*Buffer() functions

2014-12-19 Thread Stefan Krah
Stefan Krah added the comment: Yes, a PyBUF_SIMPLE request implies c-contiguous, so it's ok. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22896 ___

[issue23059] cmd module should sort misc help topics

2014-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: cmd.Cmd has a documented do_help(self, arg) method (written in 2000). If arg is '', it prints 1. Documented commands (do_x with help_x or do_x.__doc__ != ''), sorted 2. Other help topics (help_y with no do_y), unsorted 3. Undocumented commands (do_ without no

[issue23061] Update pep8 to specify explicitly 'module level' imports at top of file

2014-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I read Nick's post and I would like PEP8 to continue to discourage imports at class scope unless there is actually a use case. I discovered yesterday that idlelib.ColorDelegator has several imports at the top of the module and more as the top of the class

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2014-12-19 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.r ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051 ___ ___

[issue23069] IDLE's F5 Run Module doesn't transfer effects of future import

2014-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that this is broken. I verified that the following works in 2.7.9 from __future__ import division, print_function 32 / 5 6.4 print(2,3,sep='**') 2**3 #13296 was about self.compile.compiler.flags (in ModifiedInterpreter, which inherits .compile...

[issue22896] Don't use PyObject_As*Buffer() functions

2014-12-19 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22896 ___ ___ Python-bugs-list

[issue23087] Exec variable not found error

2014-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://stackoverflow.com/questions/27554334/python-3-dictionary-comprehension-exec-error/27571212#27571212 -- nosy: +terry.reedy resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker

[issue15443] datetime module has no support for nanoseconds

2014-12-19 Thread mdcb
mdcb added the comment: patch in attachment is an attempt to provide the datetime type nanosecond support, handles pickle versioning, expose a new class method datetime.fromnanoseconds -- keywords: +patch nosy: +mdcb...@gmail.com Added file:

[issue15443] datetime module has no support for nanoseconds

2014-12-19 Thread mdcb
Changes by mdcb mdcb...@gmail.com: ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15443 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15955] gzip, bz2, lzma: add option to limit output size

2014-12-19 Thread Nikolaus Rath
Nikolaus Rath added the comment: *ping*. It's been another 8 months. It would be nice if someone could review the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15955 ___

[issue23004] mock_open() should allow reading binary data

2014-12-19 Thread Aaron Hill
Aaron Hill added the comment: I've fixed the formatting issues. -- Added file: http://bugs.python.org/file37510/mock-open-allow-binary-data-fix-formatting.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23004

[issue23080] BoundArguments.arguments should be unordered

2014-12-19 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23080 ___ ___

[issue21071] struct.Struct.format is bytes, but should be str

2014-12-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like to see this and issue 8934 discussed as a usability bug. As far as I can tell, the current state of affairs an unintended by-product of a rushed effort to split the standard library to bytes apis and unicode apis. I don't see any reason that

[issue23091] unpacked keyword arguments are not unicode normalized

2014-12-19 Thread S. Andrew Sheppard
New submission from S. Andrew Sheppard: I came across unexpected behavior working with unpacking keyword arguments in Python 3. It appears to be related to the automatic normalization of unicode characters to NFKC (PEP 3131), which converts e.g. MICRO SIGN to GREEK SMALL LETTER MU. This

[issue23092] Python 2.7.9 test_readline regression on CentOS 6

2014-12-19 Thread Vinson Lee
New submission from Vinson Lee: test_readline regressed from Python 2.7.8 to Python 2.7.9 on CentOS 6 Python 2.7.8 $ ./python -m test.regrtest test_readline test_readline 1 test OK. Python 2.7.9 $ ./python -m test.regrtest test_readline [1/1] test_readline test test_readline failed --

[issue23091] unpacked keyword arguments are not unicode normalized

2014-12-19 Thread S. Andrew Sheppard
S. Andrew Sheppard added the comment: Here's a simple namedtuple example for good measure. from collections import namedtuple Test = namedtuple(Test, [chr(181)]) Test(**{chr(956): test1}) Test(µ='test1') Test(**{chr(181): test1}) Traceback (most recent call last): File stdin, line 1, in

[issue23091] unpacked keyword arguments are not unicode normalized

2014-12-19 Thread R. David Murray
R. David Murray added the comment: I suspect that the normalization is happening in the parsing phase. That is, the keyword argument gets normalized when the python source is compiled, but the dictionary key is, of course, *not* normalized, since it is a literal string. If I'm right, I

[issue23091] unpacked keyword arguments are not unicode normalized

2014-12-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yeah, kwarg dicts do not have the same checks applied to them as syntactic keyword args. It would be weird if, for example, dict(**mydict) normalized the keys of mydict. -- nosy: +benjamin.peterson resolution: - not a bug status: open - closed

[issue22836] Broken Exception ignored in: message on exceptions in __repr__

2014-12-19 Thread Martin Panter
Martin Panter added the comment: Here is a patch that substitutes an explanation if the repr() fails. Output now looks like this, terminated with a newline: === BrokenObj === Exception ignored in: repr() failed Traceback (most recent call last): File stdin, line 3, in __del__ Exception: in

[issue15443] datetime module has no support for nanoseconds

2014-12-19 Thread mdcb
mdcb added the comment: minor bug fixes and improvements in new attachment. -- Added file: http://bugs.python.org/file37512/datetime.nanosecond.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15443

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2014-12-19 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5319 ___ ___ Python-bugs-list

[issue23091] unpacked keyword arguments are not unicode normalized

2014-12-19 Thread S. Andrew Sheppard
S. Andrew Sheppard added the comment: Fair enough. For future reference by anyone coming across this issue, here's a simplified version of the workaround I used: from unicodedata import normalize def normalize_keys(data): return { normalize('NFKC', key): value for key,

[issue23065] Pyhton27.dll at SysWOW64 not updated when updating Python 2.7.X

2014-12-19 Thread Steve Dower
Steve Dower added the comment: That's strange, and it isn't what normally happens, so I suspect it's a configuration or corruption issue on your machine (possibly Kapersky Pure is to blame?). The 2.7.7, 2.7.8 and 2.7.9 installers all have the correct version information and there's no

[issue22671] Typo in class io.BufferedIOBase docs

2014-12-19 Thread Chandan kumar
Changes by Chandan kumar chkumar...@gmail.com: -- nosy: +Chandan.kumar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22671 ___ ___

[issue23092] Python 2.7.9 test_readline regression on CentOS 6

2014-12-19 Thread Berker Peksag
Berker Peksag added the comment: This looks like a duplicate of issue 19884. -- nosy: +berker.peksag resolution: - duplicate stage: - resolved status: open - closed superseder: - Importing readline produces erroneous output type: - behavior ___

[issue23092] Python 2.7.9 test_readline regression on CentOS 6

2014-12-19 Thread Vinson Lee
Vinson Lee added the comment: The regression is introduced with this commit. commit fa06e2bb13a3e67a0641025483efb19ef569dbd9 Author: Victor Stinner victor.stin...@gmail.com Date: Thu Jul 24 12:22:24 2014 +0200 Issue #19884: readline: Disable the meta modifier key if stdout is not a