New submission from Simon Lipp <keeja...@hwold.net>:
>From current `os` documentation:
> A file descriptor has an “inheritable” flag which indicates if the file
> descriptor can be inherited by child processes
from current `subprocess` documentation:
> If close_fds
New submission from Simon Bouchard <simon.bouchar...@gmail.com>:
The clear list function call in made after the put(data) on the queue. But the
data is sometime clear in the queue (randomly). Since both function are call
within the same process, a race condition is not ex
Change by Simon Lipp <keeja...@hwold.net>:
--
nosy: +sloonz
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue24255>
___
__
Simon Depiets <sdepi...@gmail.com> added the comment:
The issue doesn't seem to happen on either 3.6 (with the new stdio mode) or
with win_unicode_console enabled.
I was able to reproduce it on 3.6 with the PYTHONLEGACYWINDOWSSTDIO flag
enabled, it's easier to trigger when using direc
New submission from Simon Depiets <sdepi...@gmail.com>:
A couple of users have been having issues on console output since the Fall 2017
Creator Update on Windows 10
An OSError is triggered randomly when rewriting data on the console (typically
with progress bars, for instance when you i
New submission from Simon Lambourn <simon.lambo...@gmail.com>:
If you assign a ConfigParser section back to the parent ConfigParser object
(say after updating the section), the section is emptied.
(I realise now that you don't need to assign the section back to the parent as
it's a
Simon Descarpentries <silt...@acoeuro.com> added the comment:
Hi,
I missed the part of the doc you pointed out, being focused on ratio()
function family.
Thanks for your gentle reply.
--
___
Python tracker <rep...@bugs.python.or
New submission from Simon Descarpentries <silt...@acoeuro.com>:
I, it's my 1st post here. I'm a French computer-science engineer with 10 years
XP and manager at Acoeuro.com SSLL compagny. I suggested a better regexp
integration on python-ideas a few months ago failing to convince g
Simon Jagoe added the comment:
In the script attached to the original issue, the weakref callback that causes
the hang is the callback defined in ThreadPoolExecutor._adjust_thread_count
Attached is a faulthandler stack captured from Python 3.6.1. The script
submitted here uses a patched
New submission from Simon Bernier St-Pierre:
Because of the special way Path and PurePath are instantiated, they can't be
inherited like a normal class. Here's an example of the issue:
>>> import pathlib
>>> class MyPath(pathlib.Path):
... pass
...
>>> p = MyPa
Simon Percivall added the comment:
It think it's important to document this caveat in `get_type_hints`, that there
is virtually _no_ way to use it safely with a class, and that there will always
be a high risk of getting an exception unless using this function in a highly
controlled setting
New submission from Simon Percivall:
For classes with ForwardRef annotations, typing.get_type_hints is unusable.
As example, we have two files:
a.py:
class Base:
a: 'A'
class A:
pass
b.py:
from a import Base
class MyClass(Base):
b: 'B'
class B:
pass
>>> from typi
ed into one convenient application.
From some of what you said above I suggest taking a look at Jupyter Notebook[3]
and/or the underlying iPython[4] shell.
[2]: https://docs.python.org/3/library/idle.html
[3]: http://jupyter.org/
[4]: https://ipython.org/
Simon
--
Sent from Kaiten Mail. Please excuse my brevity.
--
https://mail.python.org/mailman/listinfo/python-list
Simon Grantham added the comment:
My googling skills are a bit amiss too. I searched for some kind of
encoding pragma before reporting. Perhaps just a footnote in the basic
documentation of a python comment is the easiest solution.
Simon
On 1/10/2017 12:58 PM, Ammar Askar wrote:
> Am
Simon Grantham added the comment:
Thanks Ammar. Curiously, the comment I had put in my code was a note
regarding usage and actually didn't contain the word "coding:" but the
word "encoding:".
# curl -v --header "Transfer-Encoding: chunked" -d @somefile.txt
&
Changes by Simon Grantham <sgrant...@walled.net>:
--
type: -> compile error
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
New submission from Simon Grantham:
Placing the word "coding:" in a hash tag comment in a file causes a syntax
error. Eg:
~ $ cat tst.py
# coding: Wow! How odd!
~ $ python tst.py
File "tst.py", line 2
SyntaxError: encoding problem: Wow
~ $
--
components: Inter
Simon Percivall added the comment:
Run this a couple of times (it fails for me the first time, but it's a race, so
YMMV):
```
import enum
from concurrent.futures import ThreadPoolExecutor
class MyEnum(enum.IntFlag):
one = 1
with ThreadPoolExecutor() as executor:
print(list
Simon Schuler added the comment:
I don't have any lock object. I just use the multiprocessing pool and a
QueueHandler in order to be able to log from all processes.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Simon Schuler added the comment:
I want to handle the logging of the main and all my started processes. They
should all log to the same Queue.
Have a look at the sample.py program. In addition there is a inconsistency in
using a multiprocessing pool or just the process class directly
Simon Schuler added the comment:
Attached is a sample program to illustrate the problem. When I use a
multiprocessing pool the exception is raised.
--
Added file: http://bugs.python.org/file46160/sample.py
___
Python tracker <rep...@bugs.python.
New submission from Simon Schuler:
Hello,
the following code doesn't work any longer in the new Python version 3.6.
import sys
import os
import subprocess
from multiprocessing import Pool, Value, Queue
import multiprocessing
import logging
import logging.handlers
import pickle
queue
New submission from Simon Percivall:
When called by `_create_pseudo_member_()`, the dictionary iteration of
`_value2member_map` in `_decompose()` in enum.py may lead to a "RuntimeError:
dictionary changed size during iteration". For me, it happened in `re.compile`.
```
Traceback (m
Simon Holland added the comment:
FYI, it seems that the Tk team are unable to use cocoa for this
functionality so indicatoron has not worked on OSX for Radiobuttons or
Checkbuttons for over 4 years.
On 17 November 2016 at 18:21, Simon Holland <rep...@bugs.python.org> wrote:
>
> S
Simon Holland added the comment:
Thank you
On 17 November 2016 at 15:29, Serhiy Storchaka <rep...@bugs.python.org>
wrote:
>
> Serhiy Storchaka added the comment:
>
> Works to me on Linux (identical results with Tkinter and Tk). In any case
> if there is some
Changes by Simon Holland <simonmarkholl...@gmail.com>:
--
nosy: +gpolo, serhiy.storchaka
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
New submission from Simon Holland:
tkinters radiobutton's have an option 'indicatoron=0' which should display
Radio Buttons as actual labelled buttons.
button = tk.Radiobutton(self, text=option, variable = var, value = answer,
indicatoron=0)
Screenshots of expected and actual results
Simon McVittie added the comment:
http://bugs.python.org/issue27736 might be related, or even a duplicate of this.
--
nosy: +smcv
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Simon McVittie added the comment:
This might be a duplicate of https://bugs.python.org/issue24853 but there
wasn't enough detail on that bug for me to be sure.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
New submission from Simon McVittie:
dbus-python has a regression test for
https://bugs.freedesktop.org/show_bug.cgi?id=23831 which repeatedly initializes
the interpreter, imports dbus and finalizes the interpreter. This test passes
in Python up to 3.5, but is failing under Python 3.6 nightly
Hi
I have been having issues trying to run python 3.5.1 and pyscripter 2.6. Giving
the error message that it cannot initialize python.
I have tried to re-install multiple versions of both python and pyscripter to
no avail. Any advice?
Thanks
Simon
Sent from Mail for Windows 10
--
https
]
> [3,3,3,3]
> [4,4,4,4]]
Use the transpose() method:
http://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.ndarray.transpose.html
Simon
--
Sent from Kaiten Mail. Please excuse my brevity.
--
https://mail.python.org/mailman/listinfo/python-list
Simon added the comment:
Not sure if I should be closing the issue or if you should.
I think it is not an issue.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Simon added the comment:
Yes, it was a debug build, I didn't know it only works in release, that's the
part I was clearly missing.
It would be great if we could have a debug embeddable zip file, but I
understand that it might be asking for a bit much.
Is the project that builds all the pyds
Simon added the comment:
Sorry I should add that
1- I do *not* have python installed on my dev machine.
2- VS2015 Enterprise.
3- Windows 10 - x64
4- *Not* running as admin
Everything else is fairly standard.
--
___
Python tracker <
Simon added the comment:
1- New solution Win32 "console application", (left all default settings).
2- downloaded "Gzipped source tarball" from
https://www.python.org/downloads/release/python-351/
3- Extracted everything, (didn't change anything).
4- Added "pythoncore.
Simon added the comment:
I have tried with the zip file in both the exe alongside the zip and not
alongside it, (mine was not).
And I get the same error in both cases.
I am using Windows 10, VS2015.
I compile the Python35.dll directly and my config is default, I don't change
anything really
Changes by Simon <sim...@crypthal.com>:
--
components: +Interpreter Core, Windows
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
New submission from Simon:
I downloaded the Embeddable zip file from the Python site,
(https://www.python.org/downloads/release/python-351/) and rand the code below.
When I run the code below certain modules are not imported while others are
imported fine.
The modules that are not imported
is what matters, and what style
guides help (including PEP8).
Simon
--
Sent from Kaiten Mail. Please excuse my brevity.
--
https://mail.python.org/mailman/listinfo/python-list
Changes by Simon Bernier St-Pierre <sbernierstpie...@gmail.com>:
--
status: open -> closed
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
Simon Bernier St-Pierre added the comment:
I created a patch for it on the asyncio github repo.
https://github.com/python/asyncio/pull/321
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Simon Bernier St-Pierre added the comment:
I want to have a loop that receives data like this:
socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
socket.bind(('0.0.0.0', port))
socket.setblocking(False)
while True:
data, addr = await loop.sock_recvfrom(sock, 4096)
# process
Simon Bernier St-Pierre added the comment:
That could work. I came up with this
class MyProtocol(aio.DatagramProtocol):
def __init__(self, fut):
self._fut = fut
def datagram_received(self, data, addr):
self.fut.set_result((data, addr))
fut = aio.Future
New submission from Simon Bernier St-Pierre:
I want to receive data on a UDP socket that was bound, without blocking the
event loop. I've looked through the asyncio docs, and I haven't found a way of
doing that using the coroutine API (yield from/await).
There is a sock_recv method
Hi. Need some urgent help.
I have a python app that uses `select` to wait for data from an arm
embedded linux kernel interrupt (every second). The mainloop of the app
then grabs data from some memory mapped area, processes it and then does
a http post to a server.
The problem is the http post
Changes by Simon Cross <hodges...@gmail.com>:
--
nosy: +hodgestar
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26252>
___
__
New submission from Simon Fraser:
grp.getgrgid is capable of accepting a string:
from grp import getgrgid
print(getgrgid('0'))
However, pwd.getpwuid can't do the same:
from pwd import getpwuid
print(getpwuid('0'))
Traceback (most recent call last):
File "getpwuid_test.py&quo
Simon Conseil added the comment:
I have looked at the webbrowser tests and it seems not so easy: currently the
MacOS browser classes are not tested, and they don't the GenericBrowser base
class. Instead they use custom code with os.popen, so it would require some
work either replace os.popen
New submission from Simon Charette:
I attached a file with a reproduction test case that passes on Python 2.7 and
3.4 but fails on 3.5.0 and 3.5.1
This might be solved by the improvement planed in #25410.
--
components: Extension Modules
files: test.py
messages: 256945
nosy: charettes
Changes by Simon Charette <charett...@gmail.com>:
--
nosy: +charettes
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25137>
___
_
New submission from Simon Conseil:
Hi,
There is an issue in the webbrowser module for Mac OS when the BROWSER
environment variable is set:
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type help, copyright, credits or license
On 23 August 2015 00:06:44 BST, Chris Angelico ros...@gmail.com wrote:
Precisely. Every time you support multiple versions of some
dependency, you have to test your code on all of them, and in the
common case (new features added in newer versions), you have to target
the oldest and weakest
Dear Peter Otten,
Yes, I have been copying and pasting, as it saves typing. I do get 'indented
block' error responses as a small price to pay for the time and energy thus
saved. Also Console seems to reject for 'indented block' reasons better known
to itself, copy and pasted lines that it
Dear Peter Otten,
Incidentally, you have discovered a fault in that there is an erroneous
difference in my code of 'ecologicalpyramid.html' and that given in the text,
in the first few lines re:
html
body
div
Dear Mark Lawrence, thank you for your advice.
I take it that I use the input you suggest for the line :
soup = BeautifulSoup(C:\Beautiful Soup\ecological_pyramid.html,lxml)
seeing as I have to give the file's full address I therefore have to modify
your :
soup =
Dear Peter Otten, thank you for your reply that I have not gone very far into
the detail of which, as it seems Python console cannot recognise the name 'f'
as given it, re output below :
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win
32
Type help, copyright,
Dear Peter Otten,
I typed in (and did not copy and paste) the code as you suggested just now
(6.28 pm, Sunday 12th July 2015), this is the result I got:
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit
Good morning,
Everything else appeared to work though.
Kept getting the windows 'donut' telling
me it was doing something, but then
the program did not appear.
Windows 7 Home Premium Service Pack 1 intel 64 bit pc.
Kind regards
Simon Ball
Luton
Bedfordshire
UK
--
Using Opera's mail client
Dear Programmers,
Thank you for your advice regarding giving the console a current address in the
code for it to access the html file.
The console seems to accept the code to that extent, but when I input the two
lines of code intended to access the location of a required word, the console
in these
branches. I also have pyOpenSSL built against these branches.
Simon
--
A complex system that works is invariably found to have evolved from a
simple system that works.—John Gall
--
https://mail.python.org/mailman/listinfo/python-list
Simon Hoinkis added the comment:
Could someone review this issue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23575
___
___
Python-bugs-list
Changes by Simon Ye sye...@gmail.com:
--
nosy: +yesimon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21571
___
___
Python-bugs-list mailing list
New submission from Simon Ye:
Based off of https://github.com/Homebrew/linuxbrew/pull/330.
Currently building python on linux only looks for sqlite include paths in a
hardcoded set of system paths, but if the user specifies -I/-L options during
compilation, python setup.py looks
New submission from Simon Hoinkis:
MIPS64 needs ffi's n32.S linking in for _ctypes to work otherwise build errors
will occur (e.g. python-setuptools).
--
components: ctypes
files: mips64.patch
keywords: patch
messages: 237150
nosy: Simon Hoinkis
priority: normal
severity: normal
status
On 26 February 2015 21:23:34 GMT+00:00, Ben Finney ben+pyt...@benfinney.id.au
wrote:
Simon Ward simon+pyt...@bleah.co.uk writes:
0 = success and non-zero = failure is the meme established, rather
than 0 = true, non-zero = false.
That is not the case: the commands ‘true’ (returns value 0
are inverted. No programming language
other than that provided by system shells I have used evaluates 0 to
true.
I hope the following examples from bash illustrate this:
$ (( 0 )) echo success
$ (( 1 )) echo success
success
$ (( 0 )) ; echo $?
1
$ (( 1 )) ; echo $?
0
Simon
--
https://mail.python.org
On 27 February 2015 20:06:25 GMT+00:00, Simon Ward simon+pyt...@bleah.co.uk
wrote:
I mentioned the true and false. OK, so it's a meme, but it's based on a
false (pun intended) understanding of exit status codes. That success
evaluates to true and failure evaluates to false does not mean
it makes the extra character a practical defensive
technique. I agree it is not a worst case.
Simon
--
https://mail.python.org/mailman/listinfo/python-list
be encountered when running other processes.
Simon
--
https://mail.python.org/mailman/listinfo/python-list
(re: cd Soup)as instructed on
page 30, and put a duplicate file of 'EcologicalPyramid.html' in the python 2.8
directory.
I therefore am wondering where I ought put this html file where the Python
console will recognize it ?
Thank you for your attention,
Yours
Simon
--
https
Simon Zack added the comment:
For those who want to use this right away, I've added a python implementation
of the patch, which passes the unit tests. There's a slight difference in
usage, where instead of using super() directly, super_prop(super()) needs to be
used, so we can still use super
@Steven D'Aprano,
I input the following to Python 2.7, which got the following:-
from bs4 import BeautifulSoup
with open(ecologicalpyramid.html,r) as ecological_pyramid:
... soup= next(ecological_pyramid,lxml)
...
to the above or not.
Yours
Simon.
--
https://mail.python.org/mailman/listinfo/python-list
- 'soup' has been defined as an object made of file
'EcologicalPyramid.html
I hope you can help me on this point.
Yours
Simon
--
https://mail.python.org/mailman/listinfo/python-list
that I put all the code into a file then run it - how do I do
that ? I am new to Python, as you might have gathered.
Thank you for your help.
Yours Simon
--
https://mail.python.org/mailman/listinfo/python-list
Dear Jussi, and Billy
I have changed the input in accordance with your advice, re:
--
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win
32
Type help, copyright, credits or license for more
syntax
Thank you for reading, hope you can help.
Yours
Simon Evans
--
https://mail.python.org/mailman/listinfo/python-list
Simon Zack added the comment:
+1 to this feature, this will dramatically simplify property setting code.
--
nosy: +simonzack
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14965
that a slap on the wrist
and a bit of re-indentation/re-alignment is all that is necessary (although I
have worked with people who consider pure style changes to be a sin too).
Simon
--
https://mail.python.org/mailman/listinfo/python-list
=
Thank you.
Yours
Simon.
--
https://mail.python.org/mailman/listinfo/python-list
Simon Zack added the comment:
Ok, my bad, I was creating my own OSErrors so I was just testing it out. I just
found the default to be rather confusing as I thought None would not be mapped
to anything.
--
___
Python tracker rep...@bugs.python.org
Changes by Simon Zack simonz...@gmail.com:
--
components: +ctypes
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22961
New submission from Simon Zack:
The ctypes.WinError function returns:
OSError(None, descr, None, code)
However OSError does not appear to allow None as a first argument, and converts
it to 22 which is the EINVAL Invalid Argument error. This is rather confusing
as there was no invalid
New submission from Simon Zack:
Python already has tuple unpacking in many places, I wonder if this has been
considered for arguments yet, it seems rather convenient and a natural
extension to me.
Here's what I mean:
def func((a, b, c)):
print(a, b, c)
func((1, 2, 3))
should print 1 2
everything the
text tells you to.
Thank you for reading.
Simon Evans
--
https://mail.python.org/mailman/listinfo/python-list
concerned such
trivialities are besides the point, and are of no help, so vent your ire
elsewhere.
YOurs Simon Evans.
--
https://mail.python.org/mailman/listinfo/python-list
re:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Intel Atompip install html5lib
Downloading/unpacking html5lib
Running setup.py (path:c:\users\intela~1\appdata\local\temp\pip_build_Intel At
om\html5lib\setup.py) egg_info for
I input 'pip install html5lib' to the Python 2.7 console and got :
pip install html5lib
File stdin, line 1
pip install html5lib
^
SyntaxError: invalid syntax
I am not sure what you mean about 'single line paragraphs'. I put my text
into double line spacing in my last
I input to the cmd console 'pip install html5lib' but again got an error
return. I thought one of the participants was unhappy about single line spacing
(re: single line paragraphs') Okay I will go back to single line spacing, I
don't think it is all that important, really.
Anyway this is my
Dear Terry Reedy
I am using operating system Windows 7.
I put the HTML TreeBuilder / htm5 library into the Python2.7 folder.
I read that the LXML Treebuilder /lmxl installs itself automatically to the
Python2.7 installation, so that is why I am not having difficulty with that
installation.
I
I have proceeded to click on the 'setup.py' in the html5-0.999 lib and got a
python console for a few seconds, this may have been the installation of the
HTML5 parser/ treebuilder - I will have to put the code that did not work to it
previously to it again, hopefully it will.
--
Dear Mark Lawrence,
I have tried inputting the code in the first link, re:
import lxml
import lxml.etree
import bs4.builder.htmlparser
Traceback (most recent call last):
File stdin, line 1, in module
ImportError: No module named htmlparser
import bs4.builder._lxml
import
I have got the html5lib-0.999.tar.gz
and the HTMLParser-0.0.2.tar.gz files in my Downloads the problem is how I
install them to Python2.7.
The lxml-3.3.3.win32-py2.7 is an exe file, which upon clicking will install
but obviously the html and the html5 installations are not so
Oh I don't mind quoting console output, I just thought I'd be sparing you
unnecessary detail.
output was going nicely as I input text from my 'Getting Started with
Beautiful Soup' even when the author reckoned things would go wrong - due to
lxml not being installed, things went right,
What I meant to say was I can't get the html5 or the html parsers to install, I
have got their downloads in their respective directories in the downloads
directory.
--
https://mail.python.org/mailman/listinfo/python-list
but best to cross that bridge when gotten to, as
they say.
Thank you for reading.I look forward to hearing from you.
Yours
Simon Evans
--
https://mail.python.org/mailman/listinfo/python-list
On Thursday, 23 October 2014 20:02:43 UTC+1, Chris Angelico wrote:
I don't think it's possible to auto-solve the Google Groups formatting
issues at the mailing list level, as the fundamental problem is that
information isn't being transmitted. (Forcing everything to be wrapped
and forcing
On Wednesday, 22 October 2014 19:43:25 UTC+1, luc2 wrote:
hello, would you know how to make data_files work in setuptools ?
i can't figure out how to put datas in the generated .tar.gz
If you're creating an sdist then you'll need to create a MANIFEST.in file in
the same folder as setup.py
Just out of academic interest, is there somewhere in the Python docs where the
following is explained?
3 == True
False
if 3:
print(It's Twue)
It's Twue
i.e. in the if statement 3 is True but not in the first
--
https://mail.python.org/mailman/listinfo/python-list
101 - 200 of 1822 matches
Mail list logo