Re: Opening Multiple files at one time

2015-04-20 Thread Dave Angel
On 04/20/2015 07:59 AM, subhabrata.bane...@gmail.com wrote: Dear Group, I am trying to open multiple files at one time. I am trying to do it as, for item in [ one, two, three ]: f = open (item + world.txt, w) f.close() This is fine. But it does not open multiple files at

[issue24001] Clinic: use raw types in types= set

2015-04-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Usually converters are named by the C type of the result. May be rename the str converter to pchar? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24001

[issue23989] Add recommendation to use requests to the documentation, per summit

2015-04-20 Thread VanL
VanL added the comment: Given the generally positive comments, here are patches for 2.7, 3.3, 3.4, and 3.5 (3.5 patch updated to also include urllib.request). -- Added file: http://bugs.python.org/file39153/recommend_requests_2.patch ___ Python

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-04-20 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- dependencies: +PEP 479: Change StopIteration handling inside generators ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___

[issue6824] help for a module should list supported platforms

2015-04-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. The resolution is that help fails for objects that do not exist on the platform. We do not supply non-functional dummy objects that only exist to document non-support. Any objects with undocumented platform-specific behavior should be handled on a

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-04-20 Thread STINNER Victor
STINNER Victor added the comment: Does the implementation depends on the implementation of the PEP 479? (issue #22906) Attaching a patch generated with mercurial Next time, if possible, try to skip generated files. Maybe write a script for that, but sorry I don't know how :-( --

[issue24018] add a Generator ABC

2015-04-20 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- assignee: - lukasz.langa nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24018 ___

[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2015-04-20 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: test needed - patch review versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12606 ___

[issue22619] Possible implementation of negative limit for traceback functions

2015-04-20 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Here's the documentation patch. -- Added file: http://bugs.python.org/file39152/traceback_limit_doc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue24018] add a Generator ABC

2015-04-20 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24018 ___ ___ Python-bugs-list

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Paul Rubin
Chris Angelico ros...@gmail.com writes: @cmdline def adduser(user: Name of user to add, password: Password for the new user=): Add a new user Does this conflict with type signature proposals using that annotation mechanism? I guess that means PEP 0484 but I've lost track of what's where.

[issue10308] Modules/getpath.c bugs

2015-04-20 Thread STINNER Victor
STINNER Victor added the comment: Reading msg120918 and msg120940 it looks as if work has been completed so this can be closed as fixed. Attached patch contains more fixes. -- ___ Python tracker rep...@bugs.python.org

[issue23989] Add recommendation to use requests to the documentation, per summit

2015-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset c9239543235e by Benjamin Peterson in branch '3.4': recommend requests library (closes #23989) https://hg.python.org/cpython/rev/c9239543235e New changeset 3cf2990d19ab by Benjamin Peterson in branch '2.7': recommend requests library (closes #23989)

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Chris Angelico
On Tue, Apr 21, 2015 at 11:13 AM, Paul Rubin no.email@nospam.invalid wrote: Chris Angelico ros...@gmail.com writes: @cmdline def adduser(user: Name of user to add, password: Password for the new user=): Add a new user Does this conflict with type signature proposals using that

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1764d42b340d by Greg Ward in branch 'default': #17445: difflib: add diff_bytes(), to compare bytes rather than str https://hg.python.org/cpython/rev/1764d42b340d -- nosy: +python-dev ___ Python tracker

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-20 Thread Greg Ward
Changes by Greg Ward g...@gerg.ca: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17445 ___ ___

[issue23989] Add recommendation to use requests to the documentation, per summit

2015-04-20 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23989 ___ ___

Hooked, a pure Python Windows Hotkey module

2015-04-20 Thread IronManMark20
Announcing Hooked Hooked is a pure python hotkey module. There are some great options such as pyHook, and pyhk, but I wanted a pure Python version so all Python implementations could use hotkeys. Now, an example! def foo(): print I was triggered by Ctrl+B! from hooked import hook

[issue24018] add a Generator ABC

2015-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: For the other ABCs, if you define the required abstract methods, you get working versions of all the mixin methods. In the case of the Generator ABC, throw() and close() are useless empty stub methods. In the other ABCs, we leave optional methods out

Re: New to Python - block grouping (spaces)

2015-04-20 Thread Rustom Mody
On Monday, April 20, 2015 at 9:14:23 AM UTC+5:30, Chris Angelico wrote: I definitely don't see how a non-text source code format would improve on it. Feel like elaborating? You are putting emphasis on the 'non'. This puts you into an oscillatory system between tautology and contradiction: How

[issue9246] os.getcwd() hardcodes max path len

2015-04-20 Thread William Orr
William Orr added the comment: I've incorporated some of the feedback from the reviews into this new patch. I used the PyMem_Raw* functions to do allocation to avoid having to acquire the GIL and also avoid complciations from the builtin memory allocator, since I'm not using python objects.

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-20 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: commit review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17445 ___ ___

[issue23974] random.randrange() biased output

2015-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: we *still* have no documented guarantees of reproducibility, so maybe it's safe to go ahead and change this. Raymond? It is documented here: https://docs.python.org/3/library/random.html#notes-on-reproducibility The idea that is that algorithms (and

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-04-20 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- assignee: - yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___

[issue24018] add a Generator ABC

2015-04-20 Thread Stefan Behnel
Stefan Behnel added the comment: Here's a new patch that addresses the review comments. I kept throw() and close() non-abstract and added an example to the tests instead that implements a minimal generator by inheriting these methods from the Generator base class, using it as a mixin. It only

[issue24019] str/unicode encoding kwarg causes exceptions

2015-04-20 Thread Mahmoud Hashemi
New submission from Mahmoud Hashemi: The encoding keyword argument to the Python 3 str() and Python 2 unicode() constructors is excessively constraining to the practical use of these core types. Looking at common usage, both these constructors' primary mode is to convert various objects into

Re: a python song - learning

2015-04-20 Thread Chris Angelico
On Tue, Apr 21, 2015 at 3:43 PM, Sayth flebber.c...@gmail.com wrote: If you were asked to right a song to teach new python programmers the core concepts of python to new pythonistas could you? What would be your song? song and mnemonics are a key to learning and memorizing but very rarely

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Paul Rubin
Chris Angelico ros...@gmail.com writes: Does this conflict with type signature proposals In the sense that you can't use both together, yes. But docstringargs follows the rule of if you're going to use annotations, also use a decorator; and the decorator removes all the annotations it uses.

[issue1927] raw_input behavior incorrect if readline not enabled

2015-04-20 Thread Bhuvan Arumugam
Bhuvan Arumugam added the comment: For the record, this bug is still open. The proposed patch is not merged in any of branches. The prompt for raw_input in all versions, go to stderr. -- nosy: +bhuvan ___ Python tracker rep...@bugs.python.org

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-04-20 Thread Yury Selivanov
Yury Selivanov added the comment: Attaching a revised patch (all Victor's comments but asyncio changes) -- Added file: http://bugs.python.org/file39155/await_02.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Chris Angelico
On Tue, Apr 21, 2015 at 1:44 PM, Paul Rubin no.email@nospam.invalid wrote: Chris Angelico ros...@gmail.com writes: Does this conflict with type signature proposals In the sense that you can't use both together, yes. But docstringargs follows the rule of if you're going to use annotations, also

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Paul Rubin
Chris Angelico ros...@gmail.com writes: @cmdline def adduser( user: {cmdline: Name of user to add, typing: str}, password: {cmdline: Password for the new user, typing: str}=): Add a new user In the case of just one decorator, the dictionary could be omitted. The

[issue8548] Building on CygWin 1.7: PATH_MAX redefined

2015-04-20 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: This issue resolved on default branch in #20597 . In 3.4 branch latest, PATH_MAX seems unused already in Modules/main.c:12 and Python/pythonrun.c:35. I want to cherry-pick #20597 to 3.4 branch. -- nosy: +masamoto

[issue24018] add a Generator ABC

2015-04-20 Thread Stefan Behnel
Stefan Behnel added the comment: Next question: should inspect.isgenerator() be changed? Or should its usages be replaced by isinstance(obj, Generator) ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24018

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Paul Rubin
Chris Angelico ros...@gmail.com writes: PEP 484 says that type hints don't need a decorator, but if it were anything else, then yes, it'd need a second decorator. But what if one of the annotation usages wants to be a dictionary? How can you elide the outer dictionary and still recognize

[issue23987] docs about containers membership testing wrong for broken objects

2015-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: There is a separate report for taking care of the identity check for contains: https://bugs.python.org/issue23986 I think notes about crazy hashes shouldn't spill all over our docs. At best, it warrants a FAQ entry about how hash tables work. The risk

multiprocessing module and matplotlib.pyplot/PdfPages

2015-04-20 Thread Paulo da Silva
I have program that generates about 100 relatively complex graphics and writes then to a pdf book. It takes a while! Is there any possibility of using multiprocessing to build the graphics and then use several calls to savefig(), i.e. some kind of graphic's objects? Thanks for any help/comments.

[issue24018] add a Generator ABC

2015-04-20 Thread Stefan Behnel
Stefan Behnel added the comment: Is it a problem that the check can't be done in a fast way from C code? C code can still quickly special case the generator type in the positive case, and it will usually be interested in an exact type match anyway. Determining that an object is *not*

[issue24018] add a Generator ABC

2015-04-20 Thread Martin Panter
Martin Panter added the comment: I agree that there is no big reason why we should force generators to stop working after close(). Your new default implementation of close() is probably the right thing too. I added a few new comments on Reitveld. --

a python song - learning

2015-04-20 Thread Sayth
If you were asked to right a song to teach new python programmers the core concepts of python to new pythonistas could you? What would be your song? song and mnemonics are a key to learning and memorizing but very rarely used, at least in my experience with programming. Yet everyone knows

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Paul Rubin
Chris Angelico ros...@gmail.com writes: Other decorators have to be able to recognize whether there's an outer dictionary or not. That means they have to dig into the annotating object to inquire as to whether or not their thing is there. I'm imagining the annotation consumers themselves being

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Paul Rubin
Paul Rubin no.email@nospam.invalid writes: If there's only one annotation it can take a dictionary without an outer one. If there's more than one annotation Hmm, I see what you might be getting at: the decorators run innermost-first so only the outer ones can tell if there are multiple ones

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Chris Angelico
On Tue, Apr 21, 2015 at 2:33 PM, Paul Rubin no.email@nospam.invalid wrote: Chris Angelico ros...@gmail.com writes: @cmdline def adduser( user: {cmdline: Name of user to add, typing: str}, password: {cmdline: Password for the new user, typing: str}=): Add a new user In

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Chris Angelico
On Tue, Apr 21, 2015 at 3:08 PM, Paul Rubin no.email@nospam.invalid wrote: Chris Angelico ros...@gmail.com writes: PEP 484 says that type hints don't need a decorator, but if it were anything else, then yes, it'd need a second decorator. But what if one of the annotation usages wants to be a

[issue24018] add a Generator ABC

2015-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it a problem that the check can't be done in a fast way from C code? Other than that, sounds good to me. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24018

[issue23975] numbers.Rational implements __float__ incorrectly

2015-04-20 Thread Paul Moore
Paul Moore added the comment: Alternatively, return int(self.numerator) / int(self.denominator). After all, a fraction whose numerator can't be represented as a Python (unlimited precision) integer is a pretty odd sort of fraction... -- ___ Python

[issue23990] Callable builtin doesn't respect descriptors

2015-04-20 Thread R. David Murray
R. David Murray added the comment: The only 'consistency' fix that would make any sense, IMO, would be to disallow special methods to be descriptors. We can't do that for backward compatibility reasons, so that's pretty much case closed. Eric already mentioned one of the other 'capability'

[issue24014] Second pass of PyCode_Optimize

2015-04-20 Thread Yury Selivanov
Yury Selivanov added the comment: Is there any noticeable performance increase with the patch? Please attach results from https://hg.python.org/benchmarks -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org

ANN: eGenix mxODBC Plone/Zope Database Adapter 2.2.1

2015-04-20 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING mxODBC Plone/Zope Database Adapter Version 2.2.1 for the Plone CMS and Zope server platform Available for Plone 4.0-4.3 and Plone 5.0,

[issue10308] Modules/getpath.c bugs

2015-04-20 Thread Mark Lawrence
Mark Lawrence added the comment: Reading msg120918 and msg120940 it looks as if work has been completed so this can be closed as fixed. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10308

Re: New to Python - block grouping (spaces)

2015-04-20 Thread Rustom Mody
On Monday, April 20, 2015 at 4:00:16 PM UTC+5:30, Steven D'Aprano wrote: On Monday 20 April 2015 12:43, Rustom Mody wrote: You've a 10-file python project in which you want to replace function 'f' by function 'longname' How easy is it? About a thousand times easier than the

Re: Python and lotus notes

2015-04-20 Thread gianluca . pucci
Il giorno lunedì 20 aprile 2015 10:29:42 UTC+2, gianluc...@gmail.com ha scritto: Hi, i am having a problem when i try to access lotus notes with python, think i do all ok but it seems something is going wrong because i can't print any db title even if i've opened the .nsf file. My code:

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-20 Thread Cyd Haselton
Cyd Haselton added the comment: FYI, I'm on commit c917493dc4ea2c32371da861aca2235f0a08e68e -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-20 Thread R. David Murray
R. David Murray added the comment: Is there a bug being fixed here? I mean other than socket not handling EINTR, where I think we agree that handling it is a feature, given the PEP. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-20 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, There's not a python.c in the ./Programs file? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

Opening Multiple files at one time

2015-04-20 Thread subhabrata . banerji
Dear Group, I am trying to open multiple files at one time. I am trying to do it as, for item in [ one, two, three ]: f = open (item + world.txt, w) f.close() This is fine. But I was looking if I do not know the number of text files I would create beforehand, so not trying

[issue23975] numbers.Rational implements __float__ incorrectly

2015-04-20 Thread Paul Moore
Paul Moore added the comment: Is it not reasonable to simply say that implementations of numbers.Rational which allow the numerator and denominator to have types for which true division doesn't return a float, have to provide their own implementation of __float__()? It's certainly less

Re: New to Python - block grouping (spaces)

2015-04-20 Thread BartC
On 20/04/2015 11:30, Steven D'Aprano wrote: On Monday 20 April 2015 12:43, Rustom Mody wrote: You've a 10-file python project in which you want to replace function 'f' by function 'longname' How easy is it? About a thousand times easier than the corresponding situation: You have ten PDF

[issue24014] Second pass of PyCode_Optimize

2015-04-20 Thread Eric Snow
Eric Snow added the comment: Also, Python/importlib.h blew up in the diff; should this be included in the patch? Yes. It is the frozen bytecode for bootstrapping importlib as the import system. So changes to bytecode generation like this will propagate there. -- nosy: +eric.snow

[issue6824] help for a module should list supported platforms

2015-04-20 Thread Mark Lawrence
Mark Lawrence added the comment: As there was no reply to msg109130 (nearly five years ago) can we close this as won't fix? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6824

[issue23975] numbers.Rational implements __float__ incorrectly

2015-04-20 Thread Wolfgang Maier
Wolfgang Maier added the comment: Is it not reasonable to simply say that implementations of numbers.Rational which allow the numerator and denominator to have types for which true division doesn't return a float, have to provide their own implementation of __float__()? Unfortunately,

[issue23990] Callable builtin doesn't respect descriptors

2015-04-20 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: My point was about consistency in descriptor handling, not consistency of fault (eg: broken everywhere). I don't understand why that's not clear here. The big idea here is to harmonize capability checking with descriptor handling. Justifying breakage in

[issue23990] Callable builtin doesn't respect descriptors

2015-04-20 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: Also, descriptors are a core mechanism in new-style classes - you can't have methods without descriptors. Why would you even consider removing descriptors from the special method lookup if that's part of the object model design? On Monday, April 20,

Re: New to Python - block grouping (spaces)

2015-04-20 Thread Gregory Ewing
Steven D'Aprano wrote: Wheels have been round for thousands of years! Why can't we try something modern, like triangular wheels? http://en.wikipedia.org/wiki/Reuleaux_triangle http://blog.geomblog.org/2004/04/square-wheels.html -- Greg -- https://mail.python.org/mailman/listinfo/python-list

[issue24014] Second pass of PyCode_Optimize

2015-04-20 Thread Joe Jevnik
New submission from Joe Jevnik: There are a lot of optimizations that are being missed by only running a single pass of PyCode_Optimize. I originally started by trying to optimize for De Morgan's Laws in if tests; however, I realized that the issue actually went away if you run the optimizer

Re: New to Python - block grouping (spaces)

2015-04-20 Thread edmondo . giovannozzi
I work in research and mainly use Fortran and Python. I haven't had any problem with the python indentation. I like it, I find it simple and easy. Well, sometimes I may forget to close an IF block with an ENDIF, in Fortran, so used I am on ending a block just decreasing the indentation, not a

[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-04-20 Thread Ilia Kurenkov
Ilia Kurenkov added the comment: Hi Berker! I hope all's well on your end. Let me know if you have questions about the reasoning behind my changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20362

[issue23975] numbers.Rational implements __float__ incorrectly

2015-04-20 Thread Wolfgang Maier
Wolfgang Maier added the comment: Good point. If the numbers ABC guaranteed numerator and denominator to be Integral numbers, this could be solved by: return float(int(self.numerator) / int(self.denominator)) but since both could be Rationals again that does not seem to be an option either.

[issue23990] Callable builtin doesn't respect descriptors

2015-04-20 Thread R. David Murray
R. David Murray added the comment: I in case it wasn't clear, I closed this not because of my case closed statement, but because as Eric pointed out we *do* have consistency here: things which check *capabilities* (as opposed to actually *using* the special methods), like callable and

[issue24015] timeit should start with 1 loop, not 10

2015-04-20 Thread Joachim Breitner
New submission from Joachim Breitner: The docs for the timeit command line interface specify If -n is not given, a suitable number of loops is calculated by trying successive powers of 10 until the total time is at least 0.2 seconds. This sounds as if it it first tries 1, then 10, then 100

[issue23728] binascii.crc_hqx() can return negative integer

2015-04-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23728 ___

[issue23842] SystemError: ../Objects/longobject.c:998: bad argument to internal function

2015-04-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23842 ___

[issue23990] Callable builtin doesn't respect descriptors

2015-04-20 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: On Mon, Apr 20, 2015 at 7:02 AM, Raymond Hettinger rep...@bugs.python.org wrote: AFAICT, there isn't a real problem here and the API for better-or-worse has proven to be usable in practice (the callable() API has been around practically forever and

[issue7018] Recommend * over # in getargs.c typecodes

2015-04-20 Thread Mark Lawrence
Mark Lawrence added the comment: The 3.x arg.html seems a great improvement to my eye compared to the 2.x version so I'd guess this can be closed as out of date. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Steven D'Aprano
On Monday 20 April 2015 16:20, Chris Angelico wrote: Looking for comments, recommendations, advice that I've just wasted half a day on something utterly useless, whatever it be! I've just posted a new (single-module) package to PyPI that simplifies the creation of an argparse UI for a

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2015-04-20 Thread Robert Collins
Robert Collins added the comment: Ok, so here's whats happening: the default behaviour is to do discovery of '.', which bypasses the namespace support code. Running with tests as the first parameter works because it doesn't require the directory being directly scanned to be a package.

[issue12712] weave build_tools library identification

2015-04-20 Thread Tim Golden
Tim Golden added the comment: I can't see anything here which is clearly a Python bug. If the OP or anyone else cares to come back (after more than 4 years!) with a clearly-reproducible problem I'm happy to revisit. I apologise for waking up this issue after so long; we really should have

Re: Please Help to build an addon for Anki

2015-04-20 Thread Ben Finney
Mahesh Chiramure mchirm...@gmail.com writes: I liked the addon Picture-flasher written for anki very much and I was wondering if the same thing could be done with mp3 and/or flac files. Quite probably. That sounds like a good small project to tackle: you've found a free-software program, it

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2015-04-20 Thread Alex Shkop
Alex Shkop added the comment: Thanks. I understand the code pretty well and I saw issue17457 that fixes discovery for explicitly specified namespace package. What I need is to know how discovery has to work. Do we need to discover namespace packages inside discovery path? And should we do

[issue23908] Check path arguments of os functions for null character

2015-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset cdadde8396a4 by Serhiy Storchaka in branch '3.4': Issue #23908: os functions now reject paths with embedded null character https://hg.python.org/cpython/rev/cdadde8396a4 New changeset bdf13c7dcf7f by Serhiy Storchaka in branch 'default': Issue

Re: Python and lotus notes

2015-04-20 Thread Dave Angel
On 04/20/2015 04:29 AM, gianluca.pu...@gmail.com wrote: Hi, Hi and welcome. I don't know Lotus Notes, but i can at least comment on some of your code, pointing out at least some problems. i am having a problem when i try to access lotus notes with python, think i do all ok but it seems

Re: New to Python - block grouping (spaces)

2015-04-20 Thread Steven D'Aprano
On Monday 20 April 2015 18:38, Gregory Ewing wrote: Steven D'Aprano wrote: Wheels have been round for thousands of years! Why can't we try something modern, like triangular wheels? http://en.wikipedia.org/wiki/Reuleaux_triangle http://blog.geomblog.org/2004/04/square-wheels.html I

Python and lotus notes

2015-04-20 Thread gianluca . pucci
Hi, i am having a problem when i try to access lotus notes with python, think i do all ok but it seems something is going wrong because i can't print any db title even if i've opened the .nsf file. My code: import win32com.client from win32com.client import Dispatch

[issue23990] Callable builtin doesn't respect descriptors

2015-04-20 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: On Mon, Apr 20, 2015 at 4:50 AM, Eric Snow rep...@bugs.python.org wrote: We should simply leave callable alone (and consistent with the other helpers that inspect the special *capability* of objects). ​Which are the other helpers?​ Thanks, -- Ionel

Please Help to build an addon for Anki

2015-04-20 Thread Mahesh Chiramure
Hi I liked the addon Picture-flasher written for anki very much and I was wondering if the same thing could be done with mp3 and/or flac files. Means I am looking for an addon that chooses a random mp3 and/or flac file from a directory provided by me (to the addon as we have to provide in

ANN: eGenix mxODBC Plone/Zope Database Adapter 2.2.1

2015-04-20 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING mxODBC Plone/Zope Database Adapter Version 2.2.1 for the Plone CMS and Zope server platform Available for Plone 4.0-4.3 and Plone 5.0,

[issue23485] PEP 475: handle EINTR in the select and selectors module

2015-04-20 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23485 ___ ___ Python-bugs-list mailing

[issue22117] Rewrite pytime.h to work on nanoseconds

2015-04-20 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22117 ___ ___ Python-bugs-list mailing

[issue23908] Check path arguments of os functions for null character

2015-04-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch for 2.7 should be different and more complex. First at all, s and u format units don't check for null character (but et and es used in Unix implementations of os functions do). -- stage: patch review - needs patch versions: +Python 2.7

[RELEASED] Python 3.5.0a4 is now available

2015-04-20 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm thrilled to announce the availability of Python 3.5.0a4. Python 3.5.0a4 is the fourth and alpha release of Python 3.5, which will be the next major release of Python. Python 3.5 is still under development,

[issue23882] unittest discovery and namespaced packages

2015-04-20 Thread Alex Shkop
Alex Shkop added the comment: This script creates following directory structure issue_23882\ tests\ test_fail.py If you run from issue_23882 directory python -m unittest it doesn't find any tests. If there is __init__.py inside tests folder, same command finds test_fail.py and runs

[issue16840] Tkinter doesn't support large integers

2015-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8ab077c22fbf by Serhiy Storchaka in branch '2.7': Issue #16840: Turn on support of bignums only in final release of Tcl 8.5. https://hg.python.org/cpython/rev/8ab077c22fbf New changeset 7f1622478d17 by Serhiy Storchaka in branch '3.4': Issue

[RELEASED] Python 3.5.0a4 is now available

2015-04-20 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm thrilled to announce the availability of Python 3.5.0a4. Python 3.5.0a4 is the fourth and alpha release of Python 3.5, which will be the next major release of Python. Python 3.5 is still under development,

Re: [RELEASED] Python 3.5.0a4 is now available

2015-04-20 Thread Mark Summerfield
Hi Larry, On Mon, 20 Apr 2015 01:16:00 -0700 Larry Hastings la...@hastings.org wrote: [snip] * There is now a third type of Windows installer for Python 3.5. In addition to the conventional installer and the web-based installer, Python 3.5 now has an embeddable installer designed to

[issue11344] Add os.path.splitpath(path) function

2015-04-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I thought that splitpath() could be used in implementations of realpath(), relpath(), commonpath(), and in user code. But looks as realpath(), relpath() and commonpath() should use specialized inlined versions for efficiency, and user code can use more

[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-20 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23863 ___ ___ Python-bugs-list mailing

[issue16840] Tkinter doesn't support large integers

2015-04-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is at least one buildbot that now fails to build _tkinter. http://buildbot.python.org/all/builders/x86%20FreeBSD%206.4%202.7/builds/2457/steps/test/logs/stdio building '_tkinter' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -O0 -Wall

Re: New to Python - block grouping (spaces)

2015-04-20 Thread Steven D'Aprano
On Monday 20 April 2015 12:43, Rustom Mody wrote: You've a 10-file python project in which you want to replace function 'f' by function 'longname' How easy is it? About a thousand times easier than the corresponding situation: You have ten PDF files in which you want to replace the word f

Re: docstringargs: Python module for setting up argparse

2015-04-20 Thread Chris Angelico
On Mon, Apr 20, 2015 at 5:22 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Monday 20 April 2015 16:20, Chris Angelico wrote: Looking for comments, recommendations, advice that I've just wasted half a day on something utterly useless, whatever it be! I've just posted a

[issue23998] PyImport_ReInitLock() doesn't check for allocation error

2015-04-20 Thread Christian Heimes
Christian Heimes added the comment: Thanks, Brett! -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23998 ___

  1   2   >