[issue33079] subprocess: document the interaction between subprocess.Popen and os.set_inheritable

2018-03-15 Thread Simon Lipp
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

[issue32879] Race condition in multiprocessing Queue

2018-02-19 Thread Simon Bouchard
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

[issue24255] Replace debuglevel-related logic with logging

2018-02-09 Thread Simon Lipp
Change by Simon Lipp <keeja...@hwold.net>: -- nosy: +sloonz ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue24255> ___ __

[issue32245] OSError: raw write() returned invalid length on latest Win 10 Consoles

2017-12-10 Thread Simon Depiets
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

[issue32245] OSError: raw write() returned invalid length on latest Win 10 Consoles

2017-12-07 Thread Simon Depiets
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

[issue32108] configparser bug: section is emptied if you assign a section to itself

2017-11-21 Thread Simon Lambourn
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

[issue31889] difflib SequenceMatcher ratio() still have unpredictable behavior

2017-11-07 Thread Simon Descarpentries
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

[issue31889] difflib SequenceMatcher ratio() still have unpredictable behavior

2017-10-28 Thread Simon Descarpentries
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

[issue21009] Potential deadlock in concurrent futures when garbage collection occurs during Queue.get

2017-09-10 Thread Simon Jagoe
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

[issue30957] pathlib: Path and PurePath cannot be subclassed

2017-07-18 Thread Simon Bernier St-Pierre
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

[issue29966] typing.get_type_hints doesn't really work for classes with ForwardRefs

2017-04-11 Thread Simon Percivall
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

[issue29966] typing.get_type_hints doesn't really work for classes with ForwardRefs

2017-04-03 Thread Simon Percivall
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

RE: Python application launcher (for Python code)

2017-02-20 Thread Simon Ward
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

[issue29226] Comment generates syntax error

2017-01-10 Thread Simon Grantham
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

[issue29226] Comment generates syntax error

2017-01-10 Thread Simon Grantham
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 &

[issue29226] Comment generates syntax error

2017-01-10 Thread Simon Grantham
Changes by Simon Grantham <sgrant...@walled.net>: -- type: -> compile error ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue29226] Comment generates syntax error

2017-01-10 Thread Simon Grantham
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

[issue29167] Race condition in enum.py:_decompose()

2017-01-07 Thread Simon Percivall
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

[issue29168] multiprocessing pickle error

2017-01-05 Thread Simon Schuler
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

[issue29168] multiprocessing pickle error

2017-01-05 Thread Simon Schuler
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

[issue29168] multiprocessing pickle error

2017-01-05 Thread Simon Schuler
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.

[issue29168] multiprocessing pickle error

2017-01-05 Thread Simon Schuler
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

[issue29167] Race condition in enum.py:_decompose()

2017-01-05 Thread Simon Percivall
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

[issue28723] tkinter, radiobutton, indicatoron=0 has no effect.

2016-11-17 Thread Simon Holland
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

[issue28723] tkinter, radiobutton, indicatoron=0 has no effect.

2016-11-17 Thread Simon Holland
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

[issue28723] tkinter, radiobutton, indicatoron=0 has no effect.

2016-11-16 Thread Simon Holland
Changes by Simon Holland <simonmarkholl...@gmail.com>: -- nosy: +gpolo, serhiy.storchaka ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28723] tkinter, radiobutton, indicatoron=0 has no effect.

2016-11-16 Thread Simon Holland
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

[issue24853] Py_Finalize doesn't clean up PyImport_Inittab

2016-08-11 Thread Simon McVittie
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

[issue27736] repeated Py_Initialize/PyRun_SimpleString/Py_Finalize segfaults

2016-08-11 Thread Simon McVittie
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

[issue27736] repeated Py_Initialize/PyRun_SimpleString/Py_Finalize segfaults

2016-08-11 Thread Simon McVittie
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

Pyscripter Issues

2016-03-31 Thread Simon Martin
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

Re: numpy arrays

2016-03-23 Thread Simon Ward
] > [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

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Simon
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

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Simon
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

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Simon
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 <

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-22 Thread Simon
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.

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-21 Thread Simon
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

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-21 Thread Simon
Changes by Simon <sim...@crypthal.com>: -- components: +Interpreter Core, Windows ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26598] Embbedable zip does not import modules in (zip)subdirectory

2016-03-20 Thread Simon
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

Re: Continuing indentation

2016-03-04 Thread Simon Ward
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

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-22 Thread Simon Bernier St-Pierre
Changes by Simon Bernier St-Pierre <sbernierstpie...@gmail.com>: -- status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-21 Thread Simon Bernier St-Pierre
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

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Simon Bernier St-Pierre
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

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Simon Bernier St-Pierre
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

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Simon Bernier St-Pierre
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

Help using Thread (or other method)

2016-02-08 Thread Brendan Simon (eTRIX)
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

[issue26252] Add an example to importlib docs on setting up an importer

2016-02-03 Thread Simon Cross
Changes by Simon Cross <hodges...@gmail.com>: -- nosy: +hodgestar ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26252> ___ __

[issue26129] Difference in behaviour with grp.getgrgid and pwd.getpwuid

2016-01-15 Thread Simon Fraser
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

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

2016-01-12 Thread Simon Conseil
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

[issue25935] OrderedDict prevents garbage collection if a circulary referenced class is used as key

2015-12-23 Thread Simon Charette
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

[issue25137] Behavioral change / regression? with nested functools.partial

2015-09-15 Thread Simon Charette
Changes by Simon Charette <charett...@gmail.com>: -- nosy: +charettes ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25137> ___ _

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

2015-08-29 Thread Simon Conseil
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

Re: Bug!

2015-08-23 Thread Simon Ward
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

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
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

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
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

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
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 =

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
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,

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
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

Python 3.5.0b3(64 bit) - idle refused to work on windows 7 desktop pc.

2015-07-11 Thread Simon Ball
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

Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-11 Thread Simon Evans
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

Re: Query on Python 3.2 and supported OpenSSL Versions

2015-05-25 Thread Simon Ward
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

[issue23575] MIPS64 needs ffi's n32.S

2015-04-09 Thread Simon Hoinkis
Simon Hoinkis added the comment: Could someone review this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23575 ___ ___ Python-bugs-list

[issue21571] Python build should check CPATH, C_INCLUDE_PATH for module dependencies

2015-04-03 Thread Simon Ye
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

[issue23858] Look for local sqlite3 by parsing -I/-L flags in linux as well.

2015-04-03 Thread Simon Ye
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

[issue23575] MIPS64 needs ffi's n32.S

2015-03-03 Thread Simon Hoinkis
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

Re: Python Worst Practices

2015-02-27 Thread Simon Ward
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

Re: Python Worst Practices

2015-02-27 Thread Simon Ward
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

Re: Python Worst Practices

2015-02-27 Thread Simon Ward
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

Re: Python Worst Practices

2015-02-26 Thread Simon Ward
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

Re: Python Worst Practices

2015-02-26 Thread Simon Ward
be encountered when running other processes. Simon -- https://mail.python.org/mailman/listinfo/python-list

Re: Python console rejects an object reference, having made an object with that reference as its name in previous line

2015-01-04 Thread Simon Evans
(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

[issue14965] super() and property inheritance behavior

2014-12-27 Thread Simon Zack
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

Re: Python console rejects an object reference, having made an object with that reference as its name in previous line

2014-12-18 Thread Simon Evans
@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) ...

Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax'

2014-12-14 Thread Simon Evans
to the above or not. Yours Simon. -- https://mail.python.org/mailman/listinfo/python-list

Python console rejects an object reference, having made an object with that reference as its name in previous line

2014-12-14 Thread Simon Evans
- '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

Re: Python console rejects an object reference, having made an object with that reference as its name in previous line

2014-12-14 Thread Simon Evans
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

Re: Python console rejects an object reference, having made an object with that reference as its name in previous line

2014-12-14 Thread Simon Evans
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

Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax'

2014-12-11 Thread Simon Evans
syntax Thank you for reading, hope you can help. Yours Simon Evans -- https://mail.python.org/mailman/listinfo/python-list

[issue14965] super() and property inheritance behavior

2014-12-10 Thread Simon Zack
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

Re: Tabs for indentation Spaces for alignment in Python 3?

2014-12-06 Thread Simon Ward
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

Re: python 2.7 and unicode (one more time)

2014-12-02 Thread Simon Evans
= Thank you. Yours Simon. -- https://mail.python.org/mailman/listinfo/python-list

[issue22961] ctypes.WinError OSError

2014-11-28 Thread Simon Zack
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

[issue22961] ctypes.WinError OSError

2014-11-27 Thread Simon Zack
Changes by Simon Zack simonz...@gmail.com: -- components: +ctypes versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22961

[issue22961] ctypes.WinError OSError

2014-11-27 Thread Simon Zack
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

[issue22944] Python argument tuple unpacking

2014-11-25 Thread Simon Zack
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

Tag objects in Beautiful Soup

2014-11-20 Thread Simon Evans
everything the text tells you to. Thank you for reading. Simon Evans -- https://mail.python.org/mailman/listinfo/python-list

How do you download and install HTML5TreeBuilder ?

2014-11-18 Thread Simon Evans
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: How do you download and install HTML5TreeBuilder ?

2014-11-18 Thread Simon Evans
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

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-03 Thread Simon Evans
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

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-03 Thread Simon Evans
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

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
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

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
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. --

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
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

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
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

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
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,

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-02 Thread Simon Evans
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

Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

2014-11-01 Thread Simon Evans
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

Re: OS X Menubar in Tkinter

2014-10-28 Thread Simon Kennedy
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

Re: setuptools + data_files = 2

2014-10-23 Thread Simon Kennedy
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

Truthiness

2014-10-23 Thread Simon Kennedy
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

<    1   2   3   4   5   6   7   8   9   10   >