Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-15 Thread Gisle Vanem
eryksun wrote: Here's a slightly simpler way to open the folder: py -3.5 -c "import os, sys; os.startfile(sys.prefix)" And what to do if the Pylauncher itself seems confused or the Registry settings for PythonCore is messed up? The WOW64 mess MS has have seems to have caused some

Re: Stylistic question regarding no-op code and tests

2015-10-15 Thread Peter Otten
Jason Swails wrote: > Hi everyone, > > I'd like to get some opinions about some coding constructs that may seem > at first glance to serve no purpose, but does have *some* non-negligible > purpose, and I think I've come to the right place :). > > The construct is this: > > def

[issue25409] fnmatch.fnmatch normalizes slashes/backslashes on Windows

2015-10-15 Thread R. David Murray
R. David Murray added the comment: I think the existing behavior is the desirable behavior, but in any case as you say it is too late to change it. The docs should indeed be clarified by changing the wording to indicate that fnmatch calls normcase but fnmatchcase does not, with a link to

How to implement an async message bus

2015-10-15 Thread Nagy László Zsolt
I'm new to Python 3.5 async / await syntax. I would like to create a class - let's call it AsyncBus - that can be used to listen for keys, and send messages for keys ansynchronously. class BusTimeoutError(Exception): pass class AsyncBus(object): def __init__(self, add_timeout):

Re: help(string) commands not working on pyton 3.5

2015-10-15 Thread Bob Gailer
Please show us exactly what you tried and exactly what the results were. For example: >>> help() Syntax error... On Oct 15, 2015 7:34 AM, "Prasad Joshi" wrote: > Hi, > > > > I have installed the “Windows x86-64 executable installer >

Re: Enum class

2015-10-15 Thread Peter Otten
Joseph L. Casale wrote: > Is it possible to override __contains__ from the meta class in the derived > class with the Enum type? >>> import enum >>> class M(enum.EnumMeta): ... def __contains__(self, value): ... print("checking", value) ... return super().__contains__(value)

Re: Stylistic question regarding no-op code and tests

2015-10-15 Thread Jason Swails
On Wed, Oct 14, 2015 at 10:07 PM, Ben Finney wrote: > Jason Swails writes: > > > What I recently realized, though, that what this construct allows is > > for the coverage testing package (which I have recently started > > employing for my

[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch

2015-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: That's a great test, thanks. If we were designing this from scratch, I agree that raising an exception is the right thing to do. But the questions is: can we change the behavior now? I think it's unlikely that anyone is relying on these functions returning

[issue25402] More accurate estimation of the number of digits in int to decimal string conversion

2015-10-15 Thread R. David Murray
Changes by R. David Murray : -- title: Accurater estimation of the number of digits in int to decimal string conversion -> More accurate estimation of the number of digits in int to decimal string conversion ___ Python

Re: write csv to object and read into pandas

2015-10-15 Thread Peter Otten
Oscar Benjamin wrote: > On 15 October 2015 at 09:16, Peter Otten <__pete...@web.de> wrote: >> >> def preprocess(filename): >> with open(filename) as f: >> for row in csv.reader(f): >> # do stuff >> yield row >> >> rows = preprocess("pandas.csv") > > Take the

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

2015-10-15 Thread Nick Coghlan
Nick Coghlan added the comment: Additional notes for a revised preamble: * it may be worth linking to the OpenHub contributor page to highlight the automatically generated list of active core contributors, and the fact that this page is designed to add the Motivations & Affiliations

Enum class

2015-10-15 Thread Joseph L. Casale
Is it possible to override __contains__ from the meta class in the derived class with the Enum type? Thanks, jlc -- https://mail.python.org/mailman/listinfo/python-list

Re: help(string) commands not working on pyton 3.5

2015-10-15 Thread eryksun
On 10/14/15, Prasad Joshi wrote: > Hi, > > I have installed the "Windows x86-64 executable > installer" > on my desktop but I cannot get help ( ) or help (string) command working. > What could be an issue? >

[issue25411] SMTPHandler in the logging module fails with unicode strings

2015-10-15 Thread simon04
New submission from simon04: This relates to the unresolved issue9208 (Python 2). SMTPHandler fails when receiving unicode strings. Example (from msg109621): import logging,logging.handlers smtpHandler = logging.handlers.SMTPHandler( mailhost=("smtp.free.fr",25),

Re: write csv to object and read into pandas

2015-10-15 Thread Oscar Benjamin
On 15 October 2015 at 09:16, Peter Otten <__pete...@web.de> wrote: > > def preprocess(filename): > with open(filename) as f: > for row in csv.reader(f): > # do stuff > yield row > > rows = preprocess("pandas.csv") Take the with statement outside of the

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

2015-10-15 Thread Berker Peksag
Berker Peksag added the comment: > * it may be worth linking to the OpenHub contributor page to highlight the > automatically generated list of active core contributors +1 but that data is a bit outdated. Perhaps the GitHub mirror can be used as a more up-to-date data source:

help(string) commands not working on pyton 3.5

2015-10-15 Thread Prasad Joshi
Hi, I have installed the "Windows x86-64 executable installer" on my desktop but I cannot get help ( ) or help (string) command working. What could be an issue? Thanks! Prasad Joshi. --

Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-15 Thread John S James
Thank you, this is very helpful. John On Wed, Oct 14, 2015 at 3:31 PM, Zachary Ware wrote: > On Wed, Oct 14, 2015 at 2:05 PM, John S. James > wrote: > > I installed 3.5.0 today and it's working fine -- either from the command > prompt, or

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2015-10-15 Thread Christian Tanzer
Christian Tanzer added the comment: IMNSHO, the problem lies in the Python 3 pickle.py and it is **not** restricted to datetime instances (for a detailed rambling see http://c-tanzer.at/en/breaking_py2_pickles_in_py3.html) . In Python 2, 8-bit strings are used for text and for binary data.

[issue25210] Special-case NoneType() in do_richcompare()

2015-10-15 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks! -- stage: patch review -> resolved ___ Python tracker ___ ___

[issue25410] Clean up and fix OrderedDict

2015-10-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch cleans up and fixes minor bugs in C implementation of OrderedDict. 1. Used the "p" format unit instead of manual calling PyObject_True() for parsing boolean parameters. 2. Used _Py_Identifier private API instead of char* API if

[issue25403] urllib.parse.urljoin is broken in python 3.5

2015-10-15 Thread Wei Wu
Wei Wu added the comment: It's a change made in 3.5 that resolution of relative URLs confirms to the RFC 3986. See https://bugs.python.org/issue22118 for details. -- nosy: +kilowu ___ Python tracker

Re: write csv to object and read into pandas

2015-10-15 Thread Peter Otten
Vincent Davis wrote: > I have a csv file I have to make some changes to before I read it into > pandas. Currently I open the csv read each row, make changes and save it > to a new file. Then read it into pandas with pandas.read_csv(). How do I > skip writing the file to disk? Using python3.5. >

[issue25403] urllib.parse.urljoin is broken in python 3.5

2015-10-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +berker.peksag, martin.panter, orsenthil ___ Python tracker ___

[issue25403] urllib.parse.urljoin is broken in python 3.5

2015-10-15 Thread STINNER Victor
STINNER Victor added the comment: See also this change: changeset: 95683:fc0e79387a3a user:Berker Peksag date:Thu Apr 16 02:31:14 2015 +0300 files: Lib/test/test_urlparse.py Lib/urllib/parse.py Misc/NEWS description: Issue #23703: Fix a

[issue16113] Add SHA-3 (Keccak) support

2015-10-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- priority: release blocker -> normal resolution: fixed -> stage: commit review -> status: closed -> open title: SHA-3 (Keccak) support may need to be removed before 3.4 -> Add SHA-3 (Keccak) support versions:

[issue25402] Accurater estimation of the number of digits in int to decimal string conversion

2015-10-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue21475] Support the Sitemap extension in robotparser

2015-10-15 Thread Berker Peksag
Berker Peksag added the comment: issue 25400 is not a blocker of this, so feel free to write a patch. -- ___ Python tracker ___

[issue25006] List pybind11 binding generator

2015-10-15 Thread Wenzel Jakob
Wenzel Jakob added the comment: Hi, just another ping regarding this ticket. Since the last message, pybind11 now has: - Documentation on readthedocs: http://pybind11.readthedocs.org/en/latest/ - Continuous integration tests: https://travis-ci.org/wjakob/pybind11 - A first stable release:

[issue25402] Accurater estimation of the number of digits in int to decimal string conversion

2015-10-15 Thread STINNER Victor
STINNER Victor added the comment: Currently, the code uses Py_ABS(Py_SIZE(x))*PyLong_SHIFT to estimate the upper-bound of the number of bits of the number x. It's a raw estimation, the difference can be up to 29 bits. We may try to compute the exact number of bits, x.bit_length(). Python 3.5

[issue25403] urllib.parse.urljoin is broken in python 3.5

2015-10-15 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +3.5regression ___ Python tracker ___ ___

[issue25402] Accurater estimation of the number of digits in int to decimal string conversion

2015-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > But why only using 2 digits for log2(10) estimation? Because the difference between 3 and 3.3 is 10%, and the difference between 3.3 and exact log2(10) is only 1%. Yes, we can use more digits, but the effect of any additional digit is decreased in

Adding Bottle framework in existing python script

2015-10-15 Thread gunjal . satish
In my python script I am doing bluetooth and RF communication on individual threads respectively. I want to add Rest Web Method in same script using Bottle web framework. If I add below code, in existing python script, it wont work. How to make it work in existing script. from bottle import

[issue25412] __floordiv__ in module fraction fails with TypeError instead of returning NotImplemented

2015-10-15 Thread Sergey Shashkov
New submission from Sergey Shashkov: __floordiv__ in module fraction fails with TypeError instead of returning NotImplemented when modulo is a class without __rtruediv__ or __mul__. Code sample: class Foo(object): def __rdivmod__(self, other): return 'rdivmod works' from

Re: How to repeat a loop once it is finished

2015-10-15 Thread Denis McMahon
On Thu, 15 Oct 2015 06:29:24 -0700, abbasmo wrote: > what would be a small thing that I could add to make this thing run > again? See what happens when you run the following code. Then adapt it to your application. stop = False while not stop: x = input("enter something, quit, stop or end

Re: Enum class

2015-10-15 Thread Peter Otten
Joseph L. Casale wrote: > import enum > class M(enum.EnumMeta): >>... def __contains__(self, value): >>... print("checking", value) >>... return super().__contains__(value) >>... > class Colors(enum.Enum, metaclass=M): >>... red = 1 >>... green = 2 >>...

Re: Extended functions in embedded code

2015-10-15 Thread Ervin Hegedüs
Hi, I've read many docs and examples, then I made a usable test version. If anybody interested about this (and for the mailing list archives), then it could be found here: https://code.activestate.com/recipes/579110-add-function-to-__builtin__-module-through-c-api/ Hope this helps, and many

Re: issues with Python

2015-10-15 Thread Ian Kelly
On Thu, Oct 15, 2015 at 8:04 AM, wrote: > > I am using the Python Programming third edition for absolute beginners. > I was able to create my Game over program, but I do not have the start menu > with the icons and cannot seem to find it. I have the Shell and the script >

[issue25414] Drop unnecessary size limit test from deques on builds with 64-bit numbers

2015-10-15 Thread Raymond Hettinger
New submission from Raymond Hettinger: The following test can never succeed when PY_SSIZE_T_MAX is 63-bits (as that number of allocations would exceed possible time and memory). #define MAX_DEQUE_LEN (PY_SSIZE_T_MAX - 3*BLOCKLEN) if (len >= MAX_DEQUE_LEN) {

[issue25414] Bypass unnecessary size limit test from deques on builds with 64-bit numbers

2015-10-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: +Extension Modules keywords: +patch stage: -> patch review title: Drop unnecessary size limit test from deques on builds with 64-bit numbers -> Bypass unnecessary size limit test from deques on builds with

Re: write csv to object and read into pandas

2015-10-15 Thread Vincent Davis
That worked, Thanks! Vincent Davis 720-301-3003 On Thu, Oct 15, 2015 at 6:11 AM, Peter Otten <__pete...@web.de> wrote: > Oscar Benjamin wrote: > > > On 15 October 2015 at 09:16, Peter Otten <__pete...@web.de> wrote: > >> > >> def preprocess(filename): > >> with open(filename) as f: > >>

[issue25412] __floordiv__ in module fraction fails with TypeError instead of returning NotImplemented

2015-10-15 Thread STINNER Victor
STINNER Victor added the comment: Can you please write a patch? See https://docs.python.org/devguide/ -- nosy: +haypo ___ Python tracker ___

Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-15 Thread Gisle Vanem
eryksun wrote: The version of py.exe distributed with Python 3 is a 32-bit application, so when the debug output says it's looking in the "native" registry, it's referring to the WOW64 redirected registry path, i.e. "HKLM\Software\Wow6432Node\Python". If py.exe can't find your installation of

[issue25414] Bypass unnecessary size limit test from deques on builds with 64-bit numbers

2015-10-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file40790/deque_limit_test.diff ___ Python tracker ___

[issue25412] __floordiv__ in module fraction fails with TypeError instead of returning NotImplemented

2015-10-15 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker ___ ___

Re: How to implement an async message bus

2015-10-15 Thread Ian Kelly
On Thu, Oct 15, 2015 at 5:25 AM, Nagy László Zsolt wrote: > I'm new to Python 3.5 async / await syntax. I would like to create a class - > let's call it AsyncBus - that can be used to listen for keys, and send > messages for keys ansynchronously. > > class

[issue25006] List pybind11 binding generator

2015-10-15 Thread Wenzel Jakob
Wenzel Jakob added the comment: Dear Antoine, I wonder if this makes sense, as pybind11 is a collection of C++ header files using the Python C API. The library is meant to be used by other projects but does not generate any installable code by itself. (i.e. it isn't clear what pip install

Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-15 Thread eryksun
On 10/15/15, Gisle Vanem wrote: > > This is non-sense. I do have Python2 + 3 both on PATH (but both 32-bits). > Not sure if PyLauncher looks for 64-bit registry entries only. Running "py -3" doesn't use PATH. The launcher only uses PATH when evaluating "/usr/bin/env" in a

How to repeat a loop once it is finished

2015-10-15 Thread abbasmo
import time #this is so that i can set a timer print ("only print numbers as your answers (Round all numbers up) also the programme adds 0.5 extra for cost of : ") time.sleep(2) #this is to let the person know what format to write it in# answer = input ("enter the height of the room walls

Re: How to repeat a loop once it is finished

2015-10-15 Thread abbasmo
could you change it to python v3.4 -- https://mail.python.org/mailman/listinfo/python-list

[issue25006] List pybind11 binding generator

2015-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: You could perhaps start by creating a PyPI entry for your package: https://pypi.python.org/pypi?%3Aaction=search=pybind11=search -- nosy: +pitrou ___ Python tracker

Re: How to implement an async message bus

2015-10-15 Thread Nagy László Zsolt
> async def waitfor(self, keys, timeout=None): > """Wait for keys. > > :arg keys: An iterable of immutable keys. > :arg timeout: Raise TimeoutError if nothing hits the > bus for this amount of time. > None means: wait indefinitely.

[issue25411] SMTPHandler in the logging module fails with unicode strings

2015-10-15 Thread R. David Murray
R. David Murray added the comment: This mostly looks good to me, Vinay. Simon: did you intentionally omit the date header, and if so why? (The smtp server normally adds one, but you can't really depend on that). Adding it would look like: msg['Date'] = email.utils.localtime() (Hmm. I

[issue25412] __floordiv__ in module fraction fails with TypeError instead of returning NotImplemented

2015-10-15 Thread Sergey Shashkov
Sergey Shashkov added the comment: def __floordiv__(a, b): """a // b""" if isinstance(b, numbers.Complex): return math.floor(a / b) else: return NotImplemented And the same for __mod__. -- ___ Python

Re: How to repeat a loop once it is finished

2015-10-15 Thread Mark Lawrence
On 15/10/2015 14:31, abba...@centralfoundationboys.co.uk wrote: if you could write a small piece of code for me it would great If you used your favourite search engine in an attempt to write the code before you ask questions about it, then that would be even better. Knowing what piece of

Re: Enum class

2015-10-15 Thread Joseph L. Casale
import enum class M(enum.EnumMeta): >... def __contains__(self, value): >... print("checking", value) >... return super().__contains__(value) >... class Colors(enum.Enum, metaclass=M): >... red = 1 >... green = 2 >... blue = 3 >... Colors.red in

[issue25411] SMTPHandler in the logging module fails with unicode strings

2015-10-15 Thread simon04
Changes by simon04 : -- nosy: +r.david.murray ___ Python tracker ___ ___

Re: How to repeat a loop once it is finished

2015-10-15 Thread abbasmo
if you could write a small piece of code for me it would great -- https://mail.python.org/mailman/listinfo/python-list

Re: How to repeat a loop once it is finished

2015-10-15 Thread Nagy László Zsolt
> what would be a small thing that I could add to make this thing run again? Something like this? TERMINATOR = "STOP" def read_int(prompt,minvalue,maxvalue): while True: answer = raw_input(prompt) if answer.lower().strip() == TERMINATOR.lower().strip(): print

issues with Python

2015-10-15 Thread vjdeluccie
I am using the Python Programming third edition for absolute beginners. I was able to create my Game over program, but I do not have the start menu with the icons and cannot seem to find it. I have the Shell and the script mode but I am not able to find the start menu with the icons the

Re: How to repeat a loop once it is finished

2015-10-15 Thread Denis McMahon
On Thu, 15 Oct 2015 14:51:05 +0100, Mark Lawrence wrote: > On 15/10/2015 14:31, abba...@centralfoundationboys.co.uk wrote: >> if you could write a small piece of code for me it would great >> >> > If you used your favourite search engine in an attempt to write the code > before you ask questions

[issue25413] ctypes (libffi) fails to compile on Solaris X86

2015-10-15 Thread Cristi Fati
New submission from Cristi Fati: 2.7.10 regression (at least compared to 2.7.3), not sure which exact version between the 2 first introduced it. Due to addition of `win32.S` in the list build on Solaris X86 (32bit which also identifies the platform as X86) fails. Attaching a patch. After

[issue25410] Clean up and fix OrderedDict

2015-10-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: These all look good except for perhaps #5 which I need to look at a bit more for its effect on OD subclasses. -- ___ Python tracker

RE: Enum class

2015-10-15 Thread Joseph L. Casale
> Like that? > > >>> class M2(enum.EnumMeta): >... def __contains__(self, value): >... print(value, "? never", sep="") >... return False >... > >>> Colors.__class__ > > >>> Colors.red in Colors > checking Colors.red > True > >>> Colors.__class__ = M2 > >>> Colors.red in

[issue25415] I can create instances of io.IOBase

2015-10-15 Thread Gerrit Holl
Gerrit Holl added the comment: When the documentation says there is no public constructor, I expected it would be impossible to create instances, as in: TypeError: cannot create 'builtin_function_or_method' instances Perhaps I misunderstand the documentation. --

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-15 Thread James DeVincentis
I think I tracked this down and resolved it. It appears taking an object from a multiprocess.Queue and placing it into a queue.Queue is a no-no even if the queue.Queue isn’t shared across processes. I have a series of workers (multiprocessing) that share a multiprocess.Queue across all

[issue25417] Minor typo in Path.samefile docstring

2015-10-15 Thread Antony Lee
New submission from Antony Lee: The output of pydoc for Path.samefile currently reads pathlib.Path.samefile = samefile(self, other_path) Return whether `other_file` is the same or not as this file. (as returned by os.path.samefile(file, other_file)). It should arguably be something

[issue25417] Minor typo in Path.samefile docstring

2015-10-15 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: -ethan.furman ___ Python tracker ___ ___

[issue25403] urllib.parse.urljoin is broken in python 3.5

2015-10-15 Thread Martin Panter
Martin Panter added the comment: It is true that 3.5 is meant to follow RFC 3986, which obsoletes RFC 1808 and specifies slightly different behaviour for abnormal cases. This change is documented under urljoin(), and also in “What’s New in 3.5”. Pavel’s first case is one of these differences

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-15 Thread James DeVincentis
I take that back. It’s not entirely fixed. Something else strange is going on here. More debugging needed. > On Oct 15, 2015, at 6:36 PM, James DeVincentis wrote: > > I think I tracked this down and resolved it. > > It appears taking an object from a multiprocess.Queue

[issue25417] Minor typo in Path.samefile docstring

2015-10-15 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-15 Thread James DeVincentis
Looking into it, I seem to have found a race condition where a multiprocessing.Queue.get() can get hung waiting for an object even if there are objects in the Queue when being placed into the queue by a forked process and then the process ending quickly. I don’t know how to track this down

Re: How to repeat a loop once it is finished

2015-10-15 Thread Mark Lawrence
On 15/10/2015 15:06, abba...@centralfoundationboys.co.uk wrote: could you change it to python v3.4 Sorry no, try python 1.5, it's got far fewer bugs. As an alternative, please tell us what the hell you're on about, we're not mind readers. -- My fellow Pythonistas, ask not what our

[issue21475] Support the Sitemap extension in robotparser

2015-10-15 Thread Peter Wirtz
Peter Wirtz added the comment: Here is a patch that provides support for the Sitemap extension. -- keywords: +patch Added file: http://bugs.python.org/file40791/robotparser_site_maps_v1.patch ___ Python tracker

Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-15 Thread eryksun
On 10/15/15, Gisle Vanem wrote: > > Thanks for the detailed info. I fixed some paths under: >HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.5-32 > > Now my Python3.5 almost works. But something is wrong with the > Python3 sys.prefix: >c:> py -2 -c "import os, sys;

RE: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-15 Thread James DeVincentis
Anyone have any ideas? I feel like this could be a bug with the garbage collector across multiprocessing. From: James DeVincentis [mailto:ad...@hexhost.net] Sent: Wednesday, October 14, 2015 12:41 PM To: 'python-list@python.org' Subject: Problem with copy.deepcopy and multiprocessing.Queue

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-15 Thread Ian Kelly
On Thu, Oct 15, 2015 at 4:02 PM, James DeVincentis wrote: > > Anyone have any ideas? I feel like this could be a bug with the garbage collector across multiprocessing. I'll second MRAB's response from yesterday: could it just be reusing space that it has recently freed? As a

[issue25415] I can create instances of io.IOBase

2015-10-15 Thread Martin Panter
Martin Panter added the comment: “No public constructor” to me means that it is not defined how or if you can construct instances other than by the public subclasses. What do you expect to happen? How do you expect the public subclasses such as FileIO and BufferedReader to work if the base

Re: How to implement an async message bus

2015-10-15 Thread Nagy László Zsolt
>> async def waitfor(self, keys, timeout=None): >> """Wait until a message comes in for any of the given key(s). Raise >> BusTimeoutError after the given timedelta.""" >> >> >> >> Internally, the waitfor method would use the add_timeout to resume itself >> and raise the

[issue25409] fnmatch.fnmatch normalizes slashes/backslashes on Windows

2015-10-15 Thread Florian Bruhin
New submission from Florian Bruhin: On Windows 8: >>> fnmatch.fnmatch(r'foo\bar', 'foo/bar') True >>> fnmatch.fnmatchcase(r'foo\bar', 'foo/bar') False This is due to fnmatch calling os.path.normpath on the arguments (to get the case-sensitivity of the filesystem), which on Windows *also*

Pyvenv use

2015-10-15 Thread Gary Roach
Hi all, I needed to switch a projects from python 2.7 to 3.4 and had trouble setting up the virtual environment using the virtualenvwrapper utility. It seemed to want to install python 2.7 no matter what I did. I switched to pyvenv which solved the problem. But I now need to completely clean

[issue25416] Add encoding aliases from the (HTML5) Encoding Standard

2015-10-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Unicode nosy: +ezio.melotti, haypo, lemburg, loewis stage: -> needs patch versions: +Python 3.6 ___ Python tracker

Re: How to implement an async message bus

2015-10-15 Thread Ian Kelly
On Thu, Oct 15, 2015 at 11:16 AM, Nagy László Zsolt wrote: > In order to schedule a callback in the future, you would have to have a > standard event loop interface for scheduling. We do have a base class > asyncio.BaseEventLoop, but tornado's ioloop is NOT a descendant of