n hell has a landline these days? And
not accepting your mobile number in the landline number field is just when I
give up. Or having a landline only field that does not accept mobile phones.
Simon.
signature.asc
Description: OpenPGP digital signature
--
https://mail.python.org/mailman/listinfo/python-list
>
>
> On 2023-11-02, Simon Connah simon.n.con...@protonmail.com wrote:
>
> > Valid as in conforms to the standard. Although having looked at the
> > standard that might be more difficult than originally planned.
>
>
> Yes. Almost nobody actually impleme
> > What do you mean by 'What do you mean by "obviously invalid"?'
> > Have you read the RFC?
>
>
> About reading the RFC, there's this ... but read the comments too ...
>
> https://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email-address-until-i.as
>
>
> On 11/2/23 00:42, Simon Connah via Python-list wrote:
>
> > Basically I'm writing unit tests and one of them passess in a string
> > with an invalid email address. I need to be able to check the string
> > to see if it is a valid email so that the unit
> Please re-read.
> Discussion is about "closeness".
> Thus, what you might expect from email servers and Admins, NOT what you
> should do. That part should be quite evident by now!
>
My apologies for making a mistake.
Simon.
signature.asc
Description: OpenPGP di
I'm not sure that would be practical. As I'm setting up a mailing list server I
don't know if someone in the future is going to need to use one of those
aliases and testing manually would be tedious.
Simon.
signature.asc
Description: OpenPGP digital signature
--
https://mail.python.org/mailman/listinfo/python-list
>
>
> See https://www.linuxjournal.com/article/9585?page=0,0
>
That looks painful to maintain!
signature.asc
Description: OpenPGP digital signature
--
https://mail.python.org/mailman/listinfo/python-list
>
> On 2023-11-01, Chris Angelico ros...@gmail.com wrote:
>
> > On Thu, 2 Nov 2023 at 05:21, Simon Connah via Python-list
> > python-list@python.org wrote:
> >
> > > Could someone push me in the right direction please? I just want to
> > >
>
>
> On Thu, 2 Nov 2023 at 05:21, Simon Connah via Python-list
> python-list@python.org wrote:
>
> > Could someone push me in the right direction please? I just want to find
> > out if a string is a valid email address.
>
>
> There is only one way to
>
> On 2023-11-01, Simon Connah via Python-list python-list@python.org wrote:
>
> > I'm building a simple project using smtplib and have a
> > question. I've been doing unit testing but I'm not sure how to check
> > if an email message is valid.
>
>
> S
in the right direction please? I just want to find out if
a string is a valid email address.
Thank you.
Simon.
signature.asc
Description: OpenPGP digital signature
--
https://mail.python.org/mailman/listinfo/python-list
---
On Wednesday, 1 November 2023 at 10:09, Simon Connah
wrote:
>
>
> Hi,
>
> I'm building a simple project using smtplib and have a question. I've been
> doing unit testing but I'm not sure how to check if an email message is
> valid. Using regex sounds like a bad ide
print(math.asin(float(input("Enter a small number: "
^
ValueError: math domain error
[1]: https://docs.python.org/3/whatsnew/3.11.html#whatsnew311-pep657
Regards,
Simon
--
A complex system that works is invariably found to have evolved from a
simple system that
On Thu, Apr 13, 2023 at 04:00:59PM +0100, Barry wrote:
Ipaddress was developed outside of the std lib and later added i
recall.
I used it prior to it being in the standard library:
https://pypi.org/project/ipaddr/
Simon
--
A complex system that works is invariably found to have evolved from
lours,
with the aim of helping you see them through the flow of the code.
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
On Fri, Mar 17, 2023 at 11:55:38AM +1300, dn via Python-list wrote:
Do you make use of your IDE's expansionist tendencies, and if-so, which
ones?
Unix (well, GNU/Linux) is my IDE ;)
Simon
--
https://mail.python.org/mailman/listinfo/python-list
separately not requiring inheriting from an ABC.
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
pyenv to install to a custom location:
https://github.com/pyenv/pyenv/wiki/Common-build-problems#installing-a-system-wide-python
Simon
--
https://mail.python.org/mailman/listinfo/python-list
applications.” (It doesn’t depend on readline or
libedit.) It’s used by IPython for its history, editing, and completion
features. If cmd with readline is overkill for your use case then this
is even more so, but I thought it worth a mention.
Simon
--
https://mail.python.org/mailman/listinfo/python-list
fering opinions just
results in forks or wrappers that modify the behaviours that might
otherwise have been configuration options.
Simon
--
https://mail.python.org/mailman/listinfo/python-list
Simon Arlott added the comment:
Another way to do this is to call threading.main_thread().join() in another
thread and do the shutdown cleanup when it returns.
The main thread is stopped at shutdown just before the
threading._threading_atexits are called.
--
nosy: +sa
Change by Simon Wrede :
--
versions: +Python 3.11, Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue46309>
___
___
Python-bug
Change by Simon Wrede :
--
keywords: +patch
pull_requests: +28710
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30505
___
Python tracker
<https://bugs.python.org/issu
Change by Simon Wrede :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue46309>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Simon Wrede :
Documentation states that a reference must be kept when creating a task,
https://docs.python.org/3/library/asyncio-task.html#asyncio.create_task.
This is not done in StreamReaderProtocol,
https://github.com/python/cpython/blob/main/Lib/asyncio/streams.py
Simon McVittie added the comment:
I've opened https://github.com/python/cpython/pull/30417, is that what you want?
I am not a regular CPython developer, so I don't have a good way to assess
which reviewers speak for the project and which reviewers are only offering a
personal opinion
Change by Simon McVittie :
--
keywords: +patch
pull_requests: +28623
pull_request: https://github.com/python/cpython/pull/30417
___
Python tracker
<https://bugs.python.org/issue43
Change by Simon McVittie :
--
keywords: +patch
nosy: +smcv
nosy_count: 1.0 -> 2.0
pull_requests: +27431
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29154
___
Python tracker
<https://bugs.python.org/i
Simon Willison added the comment:
It looks like the relevant test is here:
https://github.com/python/cpython/blob/a1092f62492a3fcd6195bea94eccf8d5a300acb1/Lib/test/test_asyncio/test_locks.py#L722-L727
def test_explicit_lock(self):
lock = asyncio.Lock()
cond
Simon Willison added the comment:
I ran across this issue while trying to use the https://pypi.org/project/janus/
locking library with Python 3.10 - see my issue on their tracker here:
https://github.com/aio-libs/janus/issues/358
--
___
Python
New submission from Simon Willison :
In Python 3.10 it is not possible to instantiate an asyncio.Condition that
wraps an asyncio.Lock without raising a "loop argument must agree with lock"
exception.
This code raises that exception:
asyncio.Condition(asyncio.Lock())
T
New submission from Simon Aldrich :
Running a Valgrind memcheck of Py_Initialize still produces issues even when
using the suggested suppressions file. Am I doing something wrong or is this
expected?
I've attached a simple reproducer which can be run as follows:
1. Extract tarball
2. cmake
.
I think this is something basic involving paths but could be more involved.
Can anyone help!!
Thanks,
Simon Zhang
--
https://mail.python.org/mailman/listinfo/python-list
Change by Simon Munday :
--
title: Can't import extension modules resolved via relative paths in sys.path
on Windows don't don't -> Can't import extension modules resolved via relative
paths in sys.path on Windows
___
Python tracker
<
New submission from Simon Munday :
If I attempt to import an extension module via something like this:
from pkg import extmodule
and it happens that "pkg" is found in a folder that is given in sys.path as a
relative path, then the import fails, with
ImportError: DLL load fa
simon mackenzie added the comment:
I note os.path.realpath("v1") does produce the right path in windows. Maybe
that is what you meant. Will that work cross-platform?
On Tue, 19 Jan 2021 at 18:48, simon mackenzie wrote:
> For most people the expectation would be that it r
simon mackenzie added the comment:
For most people the expectation would be that it returns a path in the same
format as any other path. Furthermore it seems odd to change the default
behaviour after years when it worked as expected. I never heard of this
substitute path before and it does
New submission from simon mackenzie :
os.readlink gives wrong result on python 3.8 onwards for windows
os.readlink("c:/users/simon/v1")
'?\\d:\\v1'
Should read d:\\v1
--
components: Windows
messages: 385218
nosy: paul.moore, simon mackenzie, steve.dower, tim.golden,
Change by Simon Willison :
--
keywords: +patch
pull_requests: +22845
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24002
___
Python tracker
<https://bugs.python.org/issu
New submission from Simon Willison :
asyncio.sleep(0) is the recommended idiom for co-operatively yielding control
of the event loop to another task: https://github.com/python/asyncio/issues/284
and https://til.simonwillison.net/python/yielding-in-asyncio
This isn't currently explained
Change by Simon Cross :
--
nosy: +hodgestar
___
Python tracker
<https://bugs.python.org/issue42262>
___
___
Python-bugs-list mailing list
Unsubscribe:
Simon Cross added the comment:
The documentation for __ipow__ [4] suggests that the intention was to support
the modulus argument, so perhaps that argues for fixing the behaviour of
PyNumber_InPlacePower.
[4] https://docs.python.org/3/reference/datamodel.html#object.__ipow__
New submission from Simon Cross :
The documentation for PyNumber_InPlacePower [1] reads:
This is the equivalent of the Python statement o1 **= o2 when o3 is Py_None, or
an in-place variant of pow(o1, o2, o3) otherwise. If o3 is to be ignored, pass
Py_None in its place (passing NULL for o3
Change by Simon Charette :
--
nosy: +charettes
___
Python tracker
<https://bugs.python.org/issue12029>
___
___
Python-bugs-list mailing list
Unsubscribe:
Simon Willison added the comment:
I asked about this on Twitter and got a couple of tips from Google engineers:
https://twitter.com/simonw/status/1258767730263552000
It sounds like a good solution would be to explicitly design the breadcrumbs
using this mechanism:
https
New submission from Simon Willison :
When I search Google for a Python related term (e.g. "sqlite3 row" - see
attached screenshot) I get back two results - one for the Python 2
documentation and one for the Python 3 documentation.
There is currently no indicator which result is
print(sys.argv)"
[]
Or it leaves them both in:
$ python -c "import sys; print(sys.argv)"
['-c', 'import sys; print(sys.argv)']
What do you think?
Warm regards,
~Simon
--
https://mail.python.org/mailman/listinfo/python-list
Simon Percivall added the comment:
Any and all code from astunparse is certainly available for inclusion. Go ahead.
--
nosy: +simon.percivall
___
Python tracker
<https://bugs.python.org/issue28
Simon Biggs added the comment:
Hi pmp-p and Serhiy,
I'd be more than happy to attempt a pull request, but I imagine a change
such as this needs to be discussed first, trying not to "rush to make a
patch" (https://www.youtube.com/watch?v=voXVTjwnn-U=youtu.be=2546).
Also, I doubt
New submission from Simon Biggs :
Since asm.js came on the scene, and now Web Assembly people have created
CPython patches to support building CPython with emscripten. See:
* https://github.com/PeachPy/EmCPython -- Python 2.7
* https://github.com/dgym/cpython-emscripten/tree/master/3.5.2
Change by Simon :
--
pull_requests: +17944
pull_request: https://github.com/python/cpython/pull/18563
___
Python tracker
<https://bugs.python.org/issue39
Simon added the comment:
The QueueListener in the logging library starts a background thread to monitor
the log event queue. The context manager support is ideal in this case, making
the code simpler, more consistent with other classes (e.g.
multiprocessing.Pool) and prompts stopping
Simon Willison added the comment:
Oh how interesting - yes it looks like this is deliberate behavior introduced
in this commit:
https://github.com/python/cpython/commit/0e3f591aeeef9ed715f8770320f4c4c7332a8794
--
___
Python tracker
<ht
Change by Simon Willison :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue39652>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Simon Willison :
Bit of an obscure bug this one. SQLite allows column names to contain [ and ]
characters, even though those are often used as delimiters in SQLite. Here's
how to create such a database with bash:
```
sqlite3 /tmp/demo.db <
In [5]: cursor.fetch
Change by Simon :
--
keywords: +patch
pull_requests: +17792
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18417
___
Python tracker
<https://bugs.python.org/issu
New submission from Simon :
The QueueListener could be extended to support the context manager.
--
components: Library (Lib)
messages: 361641
nosy: sbrugman
priority: normal
severity: normal
status: open
title: Logging QueueListener should support context manager
versions: Python 3.5
New submission from Simon Berens :
Sorry if this is a silly question (my first bug report), but it seems that
https://docs.python.org/3/library/functions.html#func-tuple
should say "class tuple" instead of just "tuple", as list, dict, and set do.
--
assignee: do
Simon Friedberger added the comment:
And, just to state this explicitly, I think you are right that there are
general idioms for checking if a generator can produce an item but I think it
would be nicer if iterators which could do this is in a cheap way (like in this
case) would allow
Simon Friedberger added the comment:
Hi Tim!
Sorry, if my explanation wasn't clear.
For some of the iterators - like the one produced by ndiff - the iterator will
always return data, even if there is no difference in the files.
My current solution is to run difflib.unified_diff and check
New submission from Simon Friedberger :
It seems there is no easy way to use difflib to show a diff but only when there
actually are differences. The SequenceMatcher has ratio() but that isn't really
available through Differ or any of the convenience functions. Vice versa, when
using
Change by Simon Friedberger :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue38789>
___
___
Python-bugs-list mailing list
Unsubscrib
with the Affero General Public License version 3. On the
other hand I do have a desire to build something similar myself just to
get the hang of things like this. Thank you for your reply.
On Tue, Oct 8, 2019 at 8:33 AM Rhodri James wrote:
On 08/10/2019 11:22, Simon Connah wrote:
I'm
On 08/10/2019 13:17, Rhodri James wrote:
On 08/10/2019 11:22, Simon Connah wrote:
I'm posting this message as a way to gauge interest in the project
and to see if it is worth moving forward with. There are probably
hundreds of CI/CD tools out there and many more general devops tools
but what
I'm posting this message as a way to gauge interest in the project and
to see if it is worth moving forward with. There are probably hundreds
of CI/CD tools out there and many more general devops tools but what I
want to build is a CI/CD tool that ONLY supports Python 3.6 or greater
and only
simon mackenzie added the comment:
Would be clearer if the arguments were listed before the return object.
On Thu, 15 Aug 2019 at 15:05, SilentGhost wrote:
>
> SilentGhost added the comment:
>
> But docs don't say that at all. You're looking at description of an
> attrib
simon mackenzie added the comment:
Technically true but I am not the first person to have incorrectly
interpreted this that it can be a string which suggests it is not clear to
the reader. Maybe should be explicitly stated in the description of run as
it is not obvious or intuitive.
On Thu
New submission from simon mackenzie :
The docs for subprocess.run say "The arguments used to launch the process. This
may be a list or a string."
This works in windows but in linux it has to be a list. Either needs fixing or
the docs need to be changed.
--
messages: 3
he C extension. How can I do that?
Thx,
Simon
--
https://mail.python.org/mailman/listinfo/python-list
Change by Simon Bernier St-Pierre :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue36686>
___
__
Change by Simon Bernier St-Pierre :
--
keywords: +patch
pull_requests: +13493
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/13586
___
Python tracker
<https://bugs.python.org/issu
up the freezing
and I have also provided a few more example scripts.
Cheers,
Simon
--
https://mail.python.org/mailman/listinfo/python-list
a statically built Python? I enabled as
many modules as possible in
Modules/Setup.local
but I could not see any thing for _queue
thanks for any help
*---Simon Michnowicz *
Senior Application Specialist, High-Performance Computing
*Research Support Services - eSolutions*
*Monash eResearch Centre*
M
Simon Bernier St-Pierre added the comment:
Could be cool to also mention that `encoding` / `errors` does not work yet.
https://bugs.python.org/issue31087
--
___
Python tracker
<https://bugs.python.org/issue36
Change by Simon Bernier St-Pierre :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue36687>
___
___
Pyth
Change by Simon Bernier St-Pierre :
--
nosy: sbstp
priority: normal
severity: normal
status: open
title: subprocess encoding
___
Python tracker
<https://bugs.python.org/issue36
New submission from Simon Bernier St-Pierre :
I had trouble figuring out how to simply inherit stdin, stdout, or stderr in
the asyncio.create_subprocess_exec / asyncio.subprocess_exec docs. My
experiments show that passing either None or `sys.std*` works but the way the
docs are written make
Hi,
Hopefully this isn't a stupid question. For the record I am using Python
3.7 on Ubuntu Linux.
I've decided to use asyncio to write a TCP network server using Streams
and asyncio.start_server(). I can handle that part of it without many
problems as the documentation is pretty good. I
Simon Fagerholm added the comment:
Martin: Yeah, they same to be same! Can't believe I didn't find it
--
___
Python tracker
<https://bugs.python.org/issue35
Simon Fagerholm added the comment:
Issue originally from SO:
https://stackoverflow.com/questions/46976256/recursive-unittest-discovery-with-python3-and-without-init-py-files
--
___
Python tracker
<https://bugs.python.org/issue35
New submission from Simon Fagerholm :
When "python -m unittest discover" is run in a folder that is an implicit
namespace package with the structure as below, no tests are discovered.
The condition that the tests must be importable from the top level directory is
fulfilled and has b
On 26/12/2018 19:04, Terry Reedy wrote:
On 12/26/2018 10:35 AM, Simon Connah wrote:
Hi,
I want to build a simple web crawler. I know how I am going to do it
but I have one problem.
Obviously I don't want to negatively impact any of the websites that I
am crawling so I want to implement
On 26/12/2018 18:30, Richard Damon wrote:
On 12/26/18 10:35 AM, Simon Connah wrote:
Hi,
I want to build a simple web crawler. I know how I am going to do it
but I have one problem.
Obviously I don't want to negatively impact any of the websites that I
am crawling so I want to implement some
Hi,
I want to build a simple web crawler. I know how I am going to do it but
I have one problem.
Obviously I don't want to negatively impact any of the websites that I
am crawling so I want to implement some form of rate limiting of HTTP
requests to specific domain names.
What I'd like is
Simon Ruggier added the comment:
I hit this problem today with what I'd consider a valid use case: I wanted to
use a static method as a default argument to a function on the same class.
Within the class definition context, automatic unwrapping of the staticmethod
object doesn't occur, so
Simon Wells added the comment:
oh the rabbit hole...
as i have other builds of python3.7 on my system i wanted to ensure it used the
correct python and python-config (python 3.7 was built and installed into
$HOME/Projects/python/inst/) as such its a rather convoluted configure command
Simon Wells added the comment:
ah ok, sorry i wasn't clear at first, the issue isn't when building python its
when building a library which depends on python in this case libxml2, which
when given the --enable-python stuff uses
"PYTHON_LIBS=`python$PYTHON_VERSION-config --ld
Simon Wells added the comment:
with a fresh 3.7.0 download
./configure --prefix=... --enable-shared
make -j5
make install
path/to/python3-config --ldflags
-lpython3.7m -ldl -framework CoreFoundation -Wl,-stack_size,100 -framework
CoreFoundation
New submission from Simon Wells :
if you didn't build python as a framework it adds
sysconfig.get_config_vars('LINKFORSHARED') when you run 'python-config
--ldflags' this resolves to
>>> sysconfig.get_config_var('LINKFORSHARED')
'-Wl,-stack_size,100 -framework CoreFoundation
/
Simon Sapin added the comment:
Removing python37._pth restores the documented behavior, I don’t know if it has
adverse effects.
--
___
Python tracker
<https://bugs.python.org/issue34
New submission from Simon Sapin :
https://docs.python.org/3/library/sys.html#sys.path documents:
> As initialized upon program startup, the first item of this list, path[0], is
> the directory containing the script that was used to invoke the Python
> interpreter.
O
Change by Simon Sapin :
--
nosy: +ssapin
___
Python tracker
<https://bugs.python.org/issue33698>
___
___
Python-bugs-list mailing list
Unsubscribe:
simon added the comment:
Thanks
I have found teh root cause of the problem ...
--with-openssl=[my_dir]
The configure scripts has an assumption you are compiling against a binary
packaged version of openssl and that there is a /lib folder under [my_dir].
This simply does not exist under
simon added the comment:
Apologies, my bad you are correct the function was defined in x509_vfy.h
Im compiling on RHEL
Red Hat Enterprise Linux Server release 7.5 (Maipo)
I have tried Openssl from source versions;
openssl-1.0.2o (this releaseis a mess and the folder structure has been
New submission from simon :
when compiling Python 3.7.0 setup.py is reporting that the ssl module failed to
compile due to missing support for X509_VERIFY_PARAM_set1_host() despite it
existing in rsa.h for all versions of OpenSSL 1.1.0.
Could not build the ssl module!
Python requires
Noah Simon <noahs2...@gmail.com> added the comment:
Actually, you wouldn't even need to import asyncio.
--
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
New submission from Noah Simon <noahs2...@gmail.com>:
It would be very useful to add an asynchronous lambda syntax, as a shortcut for
coroutines. I'm not experienced enough to write a PEP or edit the C source, but
I have some ideas for syntax:
import asyncio
foo = async lambda a,b: 5 +
Change by Simon Baird <simon.ba...@gmail.com>:
--
nosy: -sbaird
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue12345>
___
__
Simon Charette <charett...@gmail.com> added the comment:
I stumble upon this bug when porting a Python 2 codebase to 3 and suddenly got
a NameError for the following code.
class Foo:
a = [1,2,3]
b = [4,5,6]
c = [x * y for x in a for y in b]
NameError: n
On Monday, December 4, 2017 at 12:44:48 PM UTC-8, christian...@gmail.com wrote:
> Same with me, except that I tried to install Python 3.6.3. Unchecking
> "Install launcher for all users" helped, however.
This worked for me, thanks!
--
https://mail.python.org/mailman/listinfo/python-list
1 - 100 of 1822 matches
Mail list logo