Cannot install python properly - python310.dll not found - no pip

2024-06-03 Thread Jay Cadet | Studio JPC via Python-list
Hi. I'm attempting to install and use stable diffusion. However, while 
installing python 3.10.6, I'm getting the error that the python 310.dll is not 
found. I've made sure the PATH option is enabled, but it makes no difference. 
I've also removed and reinstalled python multiple times.

Even though I get that error, the python still installs, but when I open the 
webui-user.bat file in the stable diffusion folder, it opens up the command 
center and says that there's no module named pip.

Please advise on how to fix this problem.

Thank you,

Jay Cadet

Architectural 3D Artist / Photographer
studio JPC
[p] 516.567.1996  | [w] studiojpc.com<http://studiojpc.com>  | [ig] @studiojpc
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue46570] Windows support for OpenSSL 3.0

2022-01-29 Thread Jay Lee


New submission from Jay Lee :

Steps to reproduce:
1) Compile OpenSSL 3.0 on Windows.
2) use get_externals.bat to download Python external requirements on Windows.
3) Overwrite OpenSSL 1.1.1m in externals with your OpenSSL 3.0 build.

Expected behavior:
Python will build against OpenSSL 3.0

Actual behavior:
Build fails with missing DLLs.

Further information:
- For OpenSSL 3.0 builds, the first suffix for libcrypto and libssl is -3, not 
-1_1.
- For x86_64 builds, there's also an -x64 suffix to distinguish from x86 builds.

I have a openssl.props modified file at:
https://github.com/GAM-team/actions-hello-world/blob/master/openssl.props

which I've overwritten the existing:
https://github.com/python/cpython/blob/main/PCbuild/openssl.props#L13

file with and then succesfully compiled against OpenSSL 3.0. However I'm not 
certain if or where the logic should exist to detect OpenSSL 3.0 DLLs instead 
of 1.1.

--
assignee: christian.heimes
components: Build, SSL
messages: 412072
nosy: christian.heimes, jay0lee
priority: normal
severity: normal
status: open
title: Windows support for OpenSSL 3.0
type: compile error
versions: Python 3.10, Python 3.11

___
Python tracker 
<https://bugs.python.org/issue46570>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33125] Windows 10 ARM64 platform support

2021-07-13 Thread Jay Swanson


Jay Swanson  added the comment:

I know this is closed, but is it possible that the ARM64EC support coming in 
Windows 11 that allows mixed native/emulated code is something that would help 
this along? That along with the sunsetting of 32-bit systems.

--
nosy: +jay.swanson

___
Python tracker 
<https://bugs.python.org/issue33125>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44583] Failure to build on OSF1.

2021-07-12 Thread Jay Krell


Jay Krell  added the comment:

I have a machine up and running that I would like to run this on.
Perhaps that is vastly inadequate.
Nothing is free, I realize.

And Solaris, agreed, would seem to merit "more" support, but zero==zero.

I will see if I can setup a buildbot and I am wondering being a core developer, 
if I have the time, ability (probably), approval, etc.

As long as Solaris is in an amd64 VM (not SPARC) I am interested in that as 
well. I have run it recently and it is vastly easier/faster than OSF1.

--

___
Python tracker 
<https://bugs.python.org/issue44583>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44583] Failure to build on OSF1.

2021-07-09 Thread Jay Krell


Jay Krell  added the comment:

> "credible offer to maintain platform support for several years."

Probably. What does "support" mean?

Fix user-reported bugs? I expect very few/zero.

Run a buildbot? Maybe. Not sure it is worthwhile, depending on frequency.

Provide little autoconf/ifdef patches to keep it working? Sure.
 Hopefully there is some route for "degraded" or "missing" functionality on a 
platform by platform basis; the lack of monotonic time is kinda a problem in my 
PR.

Anyway I'll reread the PEP and email the group, which I tried to join, not sure 
it is working yet.

I will try to use it and keep my copy updated.
I have some python2 scripts I can try to update.

--

___
Python tracker 
<https://bugs.python.org/issue44583>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44583] Failure to build on OSF1.

2021-07-08 Thread Jay Krell


Change by Jay Krell :


--
keywords: +patch
pull_requests: +25616
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27063

___
Python tracker 
<https://bugs.python.org/issue44583>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44583] Failure to build on OSF1.

2021-07-08 Thread Jay Krell


New submission from Jay Krell :

Python fails to compile on OSF1.
I have it about working. (I have Python2 already working.)
I'm opening an issue to meet the PR guidelines.

--
components: Interpreter Core
messages: 397128
nosy: jaykrell
priority: normal
severity: normal
status: open
title: Failure to build on OSF1.
type: compile error
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue44583>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42999] `pathlib.Path.link_to()` documentation is misleading

2021-01-21 Thread Jay Chu


Change by Jay Chu :


--
nosy: +tothesong

___
Python tracker 
<https://bugs.python.org/issue42999>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39950] Add pathlib.Path.hardlink_to()

2021-01-21 Thread Jay Chu

Jay Chu  added the comment:

For me, and as you've pointed out, the current doc of `Path.link_to` is already 
wrong and misleading. Perhaps a fix of the doc should be made as a first step.

The doc uses the expression "Create a hard link pointing to a path named 
target." 
But comparing this to the doc of `Path.symlink_to`, which says "Make this path 
a symbolic link to target.", 
(and the doc of `os.link`, which says, "Create a hard link pointing to src 
named dst.",)
the current doc should actually be "Create a hard link at `target` pointing to 
this path." Sadly the argument name can't be changed here already.

And the doc of `Path.symlink_to` even have a helpful note: "Note: The order of 
arguments (link, target) is the reverse of os.symlink()’s." 
We could also add one for `Path.link_to`, too, like "Note: The order of 
arguments (link, target) is the consistent with os.link()’s.

Based on that foundation, we could finally continue to implement the correct 
"Path.hardlink_to". 

We can refer to how people retained `subprocess.call` while adding a newer , 
preferred `subprocess.run`, by noting people to prefer `Path.hardlink_to` as 
it's more consistent with the `pathlib` and OOP, along with telling them the 
obscurity of `Path.link_to` and why it's left here for backward capability.

--

___
Python tracker 
<https://bugs.python.org/issue39950>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39950] Add pathlib.Path.hardlink_to()

2021-01-18 Thread Jay Chu


Jay Chu  added the comment:

Maybe we could have the correct `Path.hardlink` implemented before removing or 
even deprecating the confusing `Path.link_to`? It will only help even if we 
don't remove the latter in a hurry.

--
nosy: +tothesong

___
Python tracker 
<https://bugs.python.org/issue39950>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Solaris 11 GUI framework

2020-11-02 Thread Jay Braun
Thank you.  I should have mentioned that I am looking for a Python GUI 
framework.  I neglected to mention that since this is a Python group.  Sorry.
-- 
https://mail.python.org/mailman/listinfo/python-list


Solaris 11 GUI framework

2020-11-02 Thread Jay Braun
Looking for a GUI framework supported on Solaris 11.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue41799] splunklib.client does not handle Unicode characters

2020-09-16 Thread Jay Patel

New submission from Jay Patel :

Using splunklib.client module to use Pythonic interface to the Splunk REST API. 
I am using the connect method of the module to connect and log in to a Splunk 
instance.

Code:
import splunklib.client as splunk_client
kwargs_config_flags = {
'host': "test_instance漢字",
'port': 8089,
'username': ,
'password': ,
'owner': None,
'app': None}
sc = splunk_client.connect(**kwargs_config_flags)

For python 3
Output:
''latin-1' codec can't encode characters in position 0-1: ordinal not in 
range(256)'

I tried to encode the host to utf-8, "test_instance漢字".encode("utf-8")
Output:
'a bytes-like object is required, not 'str''

For python 2
It is working as expected.
output: 'nodename nor servname provided, or not known'

Is there a way by which this can be handled at the module level?

--
components: Unicode
messages: 377005
nosy: ezio.melotti, jpatel, vstinner
priority: normal
severity: normal
status: open
title: splunklib.client does not handle Unicode characters
type: behavior
versions: Python 3.6

___
Python tracker 
<https://bugs.python.org/issue41799>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40108] Improve error message for -m option when .py is present

2020-09-11 Thread Jay Cee Garcia


Change by Jay Cee Garcia :


--
components: +XML
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue40108>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41157] email.message_from_string() is unable to find the headers for the .msg files

2020-06-29 Thread Jay Patel


New submission from Jay Patel :

I need to extract the email data from an MSG file on Python v2.7. But as Python 
v2.7 has been deprecated, I tried to replicate this scenario on Python v3.8 and 
faced the same issue.
I am trying to extract the message using the "Message" class of the 
"extract_msg" module. After extracting the text from the "Message" object, I am 
using email.message_from_string() method to separate the headers and the body 
(or payload). The same workflow can be observed in the "extract_mail.py" file.
The issue with the attached file, "msgfile_not_working_correctly.msg", is that 
the headers of this file begin with "Microsoft Mail Internet Headers Version 
2.0" which is interpreted as body and not as headers (as it is not in the 
standard email headers format like "To": "recei...@gmail.com").
According to this 
(https://support.microsoft.com/en-us/office/view-internet-message-headers-in-outlook-cd039382-dc6e-4264-ac74-c048563d212c)
 link the message headers in Outlook will begin with "Microsoft Mail Internet 
Headers Version 2.0" which is added by Outlook (mentioned in the "Interpreting 
email headers" section of the mentioned link). 
The email data can be observed in the "email_data.txt" file.

I have tried omitting the first line, when there are no headers and it works as 
per the expectation. Can this scenario be handled at the modular level (email 
module) or is there any other way to extract headers for the .msg files.

--
files: extract_mail.py
messages: 372560
nosy: jpatel
priority: normal
severity: normal
status: open
title: email.message_from_string() is unable to find the headers for the .msg 
files
type: enhancement
versions: Python 3.8
Added file: https://bugs.python.org/file49273/extract_mail.py

___
Python tracker 
<https://bugs.python.org/issue41157>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41157] email.message_from_string() is unable to find the headers for the .msg files

2020-06-29 Thread Jay Patel


Change by Jay Patel :


Added file: https://bugs.python.org/file49274/msgfile_not_working_correctly.msg

___
Python tracker 
<https://bugs.python.org/issue41157>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41023] smtplib does not handle Unicode characters

2020-06-29 Thread Jay Patel


Change by Jay Patel :


Removed file: 
https://bugs.python.org/file49250/providing_only_ascii_characters.png

___
Python tracker 
<https://bugs.python.org/issue41023>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41023] smtplib does not handle Unicode characters

2020-06-18 Thread Jay Patel


Change by Jay Patel :


Added file: 
https://bugs.python.org/file49252/providing_mail_options_in_sendmail.png

___
Python tracker 
<https://bugs.python.org/issue41023>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41023] smtplib does not handle Unicode characters

2020-06-18 Thread Jay Patel


Change by Jay Patel :


Added file: 
https://bugs.python.org/file49251/providing_Unicode_characters_in_email_body.png

___
Python tracker 
<https://bugs.python.org/issue41023>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41023] smtplib does not handle Unicode characters

2020-06-18 Thread Jay Patel


Jay Patel  added the comment:

Screenshot for the case, where only the 'raw_email' variable contains only 
'ascii' characters.

--
Added file: 
https://bugs.python.org/file49250/providing_only_ascii_characters.png

___
Python tracker 
<https://bugs.python.org/issue41023>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41023] smtplib does not handle Unicode characters

2020-06-18 Thread Jay Patel


New submission from Jay Patel :

According to the user requirements, I need to send an email, which is provided 
as a raw email, i.e., the contents of email are provided in form of headers. To 
accomplish this I am using the methods provided in the "send_rawemail_demo.py" 
file (attached below).
The smtplib library works fine when providing only 'ascii' characters in the 
'raw_email' variable. But, when I provide any Unicode characters either in the 
Subject or Body of the email, then the sendmail method of the smtplib library 
fails with the following message:
UnicodeEncodeError 'ascii' codec can't encode characters in position 123-124: 
ordinal not in range(128)
I tried providing the mail_options=["SMTPUTF-8"] in the sendmail method (On 
line no. 72 in the send_rawemail_demo.py file), but then it fails (even for the 
'ascii' characters) with the exception as SMTPSenderRefused.
I have faced the same issue on Python 3.6. 
The sendmail method of the SMTP class encodes the message using 'ascii' as:
if isinstance(msg, str):
msg = _fix_eols(msg).encode('ascii')
The code works properly for Python 2 as the smtplib library for Python 2 does 
not have the above line and hence it allows Unicode characters in the Body and 
the Subject.

--
components: email
files: send_rawemail_demo.py
messages: 371801
nosy: barry, jpatel, r.david.murray
priority: normal
severity: normal
status: open
title: smtplib does not handle Unicode characters
type: enhancement
versions: Python 3.8
Added file: https://bugs.python.org/file49249/send_rawemail_demo.py

___
Python tracker 
<https://bugs.python.org/issue41023>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33722] Document builtins in mock_open

2019-04-11 Thread Jay Crotts


Change by Jay Crotts :


--
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue33722>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33722] Document builtins in mock_open

2019-04-10 Thread Jay Crotts


Jay Crotts  added the comment:

No worries, I think all of your points make sense, especially number one after 
looking at the patch again. I looked at the docs again, and there is even an 
example of another built in being patched.

Thanks for taking the time to review it.

I'm okay with closing it if you don't think there is any value add.

--

___
Python tracker 
<https://bugs.python.org/issue33722>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33722] Document builtins in mock_open

2019-04-10 Thread Jay Crotts


Change by Jay Crotts :


--
pull_requests: +12700

___
Python tracker 
<https://bugs.python.org/issue33722>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33722] Document builtins in mock_open

2019-04-10 Thread Jay Crotts


Jay Crotts  added the comment:

Yeah the PR had been stale for a while, and I re-based my fork without closing 
the PR, so when I pushed it to the fork it updated the PR reviewer list. Silly 
mistake by me, I should have made sure the diff wasn't huge before pushing it. 
I know review time is valuable and did not mean to waste it.

If you think it is a worthwhile change I'm happy to start over with another PR.

--

___
Python tracker 
<https://bugs.python.org/issue33722>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2019-03-15 Thread Joshua Jay Herman


Joshua Jay Herman  added the comment:

So I changed 'pthread_cond_timedwait' to 'take_gil' and this didn't seem to 
have an effect on the unit test.

I installed GDB 8.2 is that the same version you are using?

--

___
Python tracker 
<https://bugs.python.org/issue36184>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2019-03-11 Thread Joshua Jay Herman


Joshua Jay Herman  added the comment:

I was able to reproduce this on FreeBSD 12.0.

--

___
Python tracker 
<https://bugs.python.org/issue36184>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2019-03-10 Thread Joshua Jay Herman


Joshua Jay Herman  added the comment:

Hi, I would like to try to solve this issue. Does this occur on the latest 
version of FreeBSD?

--
nosy: +zitterbewegung

___
Python tracker 
<https://bugs.python.org/issue36184>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35744] Problem in the documentation of numpy.random.randint in python 2.7

2019-01-15 Thread Jay


New submission from Jay :

Official Documentation of python 2.7 mentions that numpy.random.randint(a,b) 
will return a random integer from N such that a<=N<=b. But I have run the code 
and I have found that it never returns equal to b. So, what I did was I ran 
numpy.random.randint(0,1) for 50 milion times and finally printed the sum. 

The output was 0. 

I don't know if this a documentation or an implementation issue, but this is an 
issue which needs to be looked at. I am attaching the code that I ran.

--
assignee: docs@python
components: Documentation
files: sample.py
messages: 333701
nosy: Jay, docs@python
priority: normal
severity: normal
status: open
title: Problem in the documentation of numpy.random.randint in python 2.7
type: behavior
versions: Python 2.7
Added file: https://bugs.python.org/file48051/sample.py

___
Python tracker 
<https://bugs.python.org/issue35744>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33722] Document builtins in mock_open

2018-06-07 Thread Jay Crotts


Change by Jay Crotts :


--
keywords: +patch
pull_requests: +7116
stage:  -> patch review

___
Python tracker 
<https://bugs.python.org/issue33722>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33722] Document builtins in mock_open

2018-05-31 Thread Jay Crotts


New submission from Jay Crotts :

The examples on using mock_open only include instances where objects are mocked 
in the REPL, so '__main__'.open is replaced. Commonly objects are mocked for 
use in other test modules, so builtins.open would be used instead.

A note about this in the documentation would be useful not familiar with python 
internals. I'm happy to do a PR for it.

--
assignee: docs@python
components: Documentation
messages: 318337
nosy: docs@python, jcrotts
priority: normal
severity: normal
status: open
title: Document builtins in mock_open
type: enhancement
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue33722>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-03-18 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

srry I opened another issue bpo-33099

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33099] test_poplib hangs with the changes done in PR

2018-03-18 Thread Jay Yin

New submission from Jay Yin <jayyin11...@gmail.com>:

my test hangs locally on my computer with the changes I've done in bpo-32642 
but doesn't hang on TravisCI, anyone able to help with checking what's wrong 
here (sounds like another edge case with my env but I could be wrong)

the trace for the command https://pastebin.com/q4FKnPZH

--
components: Tests
messages: 314064
nosy: jayyin11043
priority: normal
severity: normal
status: open
title: test_poplib hangs with the changes done in PR
versions: Python 3.7, Python 3.8

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33099>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-03-15 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

it seems to me like the issue in my tests is that some SSL thing is failing?, 
anyone have any experience with this?

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-03-15 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

https://pastebin.com/q4FKnPZH

the trace for the test_poplib

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-03-15 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

I'm having issues with my local changes for my PR, I'm unsure why my local 
machine takes a seemingly infinite amount of time on test_poplib, so again I 
think something to do with my local environment is causing issues again, any 
help would be appreciated...

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-03-08 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

The issue was resolved by updating my version of the rest of the package 
apparently and remaking the whole thing, must have been some outdated stuff on 
my end causing the issue

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-03-07 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

I've been stuck on "test_poplib" for over 149661 sec now, that's about 41 
hours... I don't think this is working correctly, although I'm unsure  what 
test_poplib is doing that has been affected by what I've changed here.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-03-05 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

I'm unsure how to regenerate the files that interact with the code for sys.path 
as travisCI states
"
Generated files not up to date
 M Python/importlib_external.h
"
since my code changes some of how the importing is handled

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2018-02-28 Thread Jay Crotts

Change by Jay Crotts <crotts@gmail.com>:


--
versions: +Python 3.8 -Python 2.7, Python 3.6, Python 3.7

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue8243>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32854] Add ** Map Unpacking Support for namedtuple

2018-02-19 Thread Jay Crotts

Jay Crotts <crotts@gmail.com> added the comment:

Thanks Raymond, I wasn't sure if it was a common pattern or not, that makes 
sense.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32854>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32854] Add ** Map Unpacking Support for namedtuple

2018-02-16 Thread Jay Crotts

Jay Crotts <crotts@gmail.com> added the comment:

Would it be worth adding an example of unpacking such as, t(**a._asdict()), or 
something similar to the documentation ?

--
nosy: +jcrotts

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32854>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32495] Adding Timer to multiprocessing

2018-02-16 Thread Jay Crotts

Jay Crotts <crotts@gmail.com> added the comment:

Closing this issue, for the reasons Antoine outlined.

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32495>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32855] Add documention stating supported Platforms

2018-02-15 Thread Jay Yin

New submission from Jay Yin <jayyin11...@gmail.com>:

we can probably add a section that includes all supported platforms and 
possibly "partially" supported platforms, and maybe include platforms that 
currently aren't supported but want/plan to be supported.

--
assignee: docs@python
components: Documentation
messages: 312225
nosy: docs@python, jayyin11043
priority: normal
severity: normal
status: open
title: Add documention stating supported Platforms

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32855>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-02-14 Thread Jay Yin

Change by Jay Yin <jayyin11...@gmail.com>:


--
keywords: +patch
pull_requests: +5484
stage:  -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32773] distutils should NOT preserve timestamps

2018-02-14 Thread Jay Yin

Change by Jay Yin <jayyin11...@gmail.com>:


--
pull_requests: +5483

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32773>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32835] Add documention mentioning that Cygwin isn't fully compatible

2018-02-12 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

ah I see, hence the *currently* incompatible, there must be some way of 
tracking areas in need of help without having to use the search, kind of like 
the way Github uses labels.

--
type: enhancement -> 

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32835>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32835] Add documention mentioning that Cygwin isn't fully compatible

2018-02-12 Thread Jay Yin

New submission from Jay Yin <jayyin11...@gmail.com>:

I didn't find any documentation stating that Cygwin isn't currently compatible 
with building, I was wondering if it would be good to add documentation stating 
this and that it would be an area requiring help.

--
assignee: docs@python
components: Documentation
messages: 312080
nosy: docs@python, jayyin11043
priority: normal
severity: normal
status: open
title: Add documention mentioning that Cygwin isn't fully compatible
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32835>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-02-12 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

https://github.com/python/cpython/blob/3c34aad4e7a95913ec7db8e5e948a8fc69047bf7/Lib/importlib/_bootstrap_external.py#L1069-L1090

those are the particular class and lines I'm referring to

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-02-12 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

ok, so I found the PathFinder class you referenced, just making sure, this 
issue pertains to changing "self.path"'s usage and declaration to be a 
path-like object instead of the hard coded 'sys', 'path' returns? or is that 
part of it already?, also since this uses a tuple to keep track of the parent 
path, is there functionality in the path-like objects to find parent paths?

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-02-11 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

Thanks for the reply

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-02-08 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

what file(s) is/are the sys.path code located in?

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32773] distutils should NOT preserve timestamps

2018-02-07 Thread Jay Yin

Change by Jay Yin <jayyin11...@gmail.com>:


--
keywords: +patch
pull_requests: +5401
stage:  -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32773>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32773] distutils should NOT preserve timestamps

2018-02-07 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

would it be ok for me to make a patch for this as practice?, I will be making a 
PR though, I will be making the -- option available for backward compatibility.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32773>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32773] distutils should NOT preserve timestamps

2018-02-06 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

so what you're proposing, is that the function copy_file() itself, use 
defaults, but make it so that any functions that reference it not save the 
timing?, if so wouldn't that still require an internal option?

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32773>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32773] distutils should NOT preserve timestamps

2018-02-06 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

That's why I said to have the default be the old setting, so that any previous 
setups wouldn't need to changes (aka backward compat.) the option would give 
people the "option" to choose.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32773>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32773] distutils should NOT preserve timestamps

2018-02-06 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

I can tackle this if it's alright?

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32773>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32642] add support for path-like objects in sys.path

2018-02-05 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

This looks a lot like https://bugs.python.org/issue32446, I'd like to tackle 
this, if we are going through with it.

--
nosy: +jayyin11043

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32642>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32773] distutils should NOT preserve timestamps

2018-02-05 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

Will an option be added to copy_file() function? if we did we could probably 
make it preserve the times by default and have an -- option to make it update?

--
nosy: +jayyin11043

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32773>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32714] remove resourceLoader related code since it's deprecated

2018-01-29 Thread Jay Yin

Change by Jay Yin <jayyin11...@gmail.com>:


--
resolution:  -> postponed
stage:  -> resolved
status: open -> closed

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32714>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32714] remove resourceLoader related code since it's deprecated

2018-01-29 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

Alright I see, so I guess I'll set this as "postponed" and close it?

--
versions: +Python 3.7

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32714>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32714] remove resourceLoader related code since it's deprecated

2018-01-29 Thread Jay Yin

New submission from Jay Yin <jayyin11...@gmail.com>:

I recently discovered in the documentation within the code and recent 
discussions with Barry, that ResourceLoader is deprecated and was wondering if 
we wanted to remove the code exclusively pertaining to ResourceLoader for 
clarity and to remove unused code. (PS if this is will be done I'll gladly 
contribute to doing so)

--
messages: 311177
nosy: jayyin11043
priority: normal
severity: normal
status: open
title: remove resourceLoader related code since it's deprecated
versions: Python 3.7, Python 3.8

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32714>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32714] remove resourceLoader related code since it's deprecated

2018-01-29 Thread Jay Yin

Change by Jay Yin <jayyin11...@gmail.com>:


--
components: +Library (Lib)

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32714>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32446] ResourceLoader.get_data() should accept a PathLike

2018-01-26 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

I hope this isn't a dumb question but where is ResourceLoader.get_data() 
implemented, using ATOM to search the whole project and I can't seem to find it.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32446>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32446] ResourceLoader.get_data() should accept a PathLike

2018-01-26 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

nvm I temporarily forgot I was working with python here, I'd need to use "is" 
to check what the entered "path" is huh?

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32446>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32446] ResourceLoader.get_data() should accept a PathLike

2018-01-26 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

this would extend to set and get data right?, also would it be good to use the 
current get_data() (one that reads only string) function for the overloaded one 
and extract the string path from the os.path object? or would we want the 
os.path object to be handled separately?

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32446>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32446] ResourceLoader.get_data() should accept a PathLike

2018-01-26 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

I'm taking a look now, this looks interesting

--
nosy: +jayyin11043

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32446>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27931] Email parse IndexError <""@wiarcom.com>

2018-01-26 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

https://github.com/python/cpython/pull/5329
this is the pending pull request for this

--
nosy: +jayyin11043

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue27931>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2793] Dictionary fails to index when adding list when in a deeply nested loop

2018-01-25 Thread Jay Yin

Change by Jay Yin <jayyin11...@gmail.com>:


--
pull_requests: +5177

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue2793>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27931] Email parse IndexError <""@wiarcom.com>

2018-01-25 Thread Jay Yin

Change by Jay Yin <jayyin11...@gmail.com>:


--
pull_requests: +5174
stage: commit review -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue27931>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread Jay Yin

Jay Yin <jayyin11...@gmail.com> added the comment:

no problem, thanks for helping and fixing the issue, I can now help contribute 
to python =D

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32667>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread Jay Yin

Change by Jay Yin <jayyin11...@gmail.com>:


--
versions: +Python 2.7

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32667>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread Jay Yin

Change by Jay Yin <jayyin11...@gmail.com>:


--
versions: +Python 3.6

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32667>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread Jay Yin

Change by Jay Yin <jayyin11...@gmail.com>:


--
resolution:  -> fixed

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32667>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread Jay Yin

Change by Jay Yin <jayyin11...@gmail.com>:


--
stage: patch review -> resolved
status: open -> closed

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32667>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32667] Failing test_dtrace and test_subprocess on Ubuntu 16.04 on master

2018-01-25 Thread Jay Yin

New submission from Jay Yin <jayyin11...@gmail.com>:

Hello everyone,


I've been trying to build the master branch on Ubuntu 16.04 and it currently 
fails 2 test, I was wondering if this was normal or if I'm missing 
dependencies, I also tried apt-get build-dev python3.6 and python3.7 to no 
avail, the build requirements install worked for python3.5 but I suspect 3.7 
has different dependencies but I can't find where the documentation for the 
requirements are. 
2 tests failed:
test_dtrace test_subprocess


running test_dtrace as verbose gave https://pastebin.com/ZGzzxwjk

[Bash] FAILED (errors=4) test test_dtrace failed 1 test failed: test_dtrace R - 
Pastebin.com
pastebin.com


and running test_subprocess gives


https://pastebin.com/DNjPzpgp

--
messages: 310678
nosy: jayyin11043
priority: normal
severity: normal
status: open
title: Failing test_dtrace and test_subprocess on Ubuntu 16.04 on master
type: compile error
versions: Python 3.7

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32667>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2018-01-16 Thread Jay Crotts

Jay Crotts <crotts@gmail.com> added the comment:

Submitted a PR for this issue, awaiting review.

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue8243>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2018-01-13 Thread Jay Crotts

Change by Jay Crotts <crotts@gmail.com>:


--
keywords: +patch
pull_requests: +5031
stage: needs patch -> patch review

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue8243>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2018-01-05 Thread Jay Crotts

Jay Crotts <crotts@gmail.com> added the comment:

I can create a documentation patch and PR if this still needs doing.

--
nosy: +jcrotts

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue8243>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32495] Adding Timer to multiprocessing

2018-01-05 Thread Jay Crotts

Jay Crotts <crotts@gmail.com> added the comment:

I think your three reasons make sense, I've only found threading.Timer helpful 
in pretty trivial cases.

Do you think a more flexible or efficient Timer class would be useful?

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32495>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32495] Adding Timer to multiprocessing

2018-01-04 Thread Jay Crotts

New submission from Jay Crotts <crotts@gmail.com>:

I wanted to propose the addition of a Timer class to the multiprocessing 
library similar to the one that exists in the Threading module.

Timer provides an example of how to extend the Process class that might be 
helpful to beginners. 

The current lack of a Timer in the multiprocessing library could encourage 
newer programmers to use threads where processes would be more appropriate.

In the implementation below I have added the ability to specify a # of 
iterations that the timed function should execute, and an additional infinite 
argument that would make the process execute the given function until the Timer 
is explicitly stopped.

--
components: Library (Lib)
files: Timer.py
messages: 309487
nosy: davin, jcrotts, pitrou
priority: normal
severity: normal
status: open
title: Adding Timer to multiprocessing
type: enhancement
versions: Python 3.7
Added file: https://bugs.python.org/file47364/Timer.py

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32495>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24459] Mention PYTHONFAULTHANDLER in the man page

2017-07-19 Thread Joshua Jay Herman

Joshua Jay Herman added the comment:

Was this ever merged? I'm not sure whats happening.

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30657] Unsafe arithmetic in PyString_DecodeEscape

2017-06-13 Thread Jay Bosamiya

Jay Bosamiya added the comment:

I've made a patch that should fix the vulnerability. Please do let me know if 
changes are required. Thanks a lot :)

PS: For anyone who looks at this later on, in my original message describing 
the issue, the line `*p++ = *s++;` should be marked as (4) instead to 
understand this issue better.

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30657>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30657] Unsafe arithmetic in PyString_DecodeEscape

2017-06-13 Thread Jay Bosamiya

Changes by Jay Bosamiya <jaybosam...@gmail.com>:


--
pull_requests: +2226

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30657>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30657] Unsafe arithmetic in PyString_DecodeEscape

2017-06-13 Thread Jay Bosamiya

New submission from Jay Bosamiya:

In Python 2.7, there is a possible integer overflow in
PyString_DecodeEscape function of the file stringobject.c, which can
be abused to gain a heap overflow, possibly leading to arbitrary code
execution.

The relevant parts of the code are highlighted below:

PyObject *PyString_DecodeEscape(const char *s,
Py_ssize_t len,
const char *errors,
Py_ssize_t unicode,
const char *recode_encoding)
{
int c;
char *p, *buf;
const char *end;
PyObject *v;
(1) Py_ssize_t newlen = recode_encoding ? 4*len:len;
(2) v = PyString_FromStringAndSize((char *)NULL, newlen);
if (v == NULL)
return NULL;
(3) p = buf = PyString_AsString(v);
end = s + len;
while (s < end) {
if (*s != '\\') {
  non_esc:
#ifdef Py_USING_UNICODE
[...]
#else
*p++ = *s++;
#endif
continue;
[...]
}
}
(4) if (p-buf < newlen)
_PyString_Resize(, p - buf); /* v is cleared on error */
return v;
  failed:
Py_DECREF(v);
return NULL;
}


(1) If recode_encoding is true (i.e., non-null), we have an integer
  overflow here which can set newlen to be some very small value
(2) This allows a small string to be created into v
(3) Now p (and buf) use that small string
(4) The small string is copied into with a larger string, thereby
  giving a heap buffer overflow

In the highly unlikely but definitely possible situation that we pass
it a very large string (in the order of ~1GB on a 32-bit Python
install), one can reliably get heap corruption. It is possible to
access this function (and condition in line(1)) through function
parsestr from ast.c, when the file encoding of an input .py file is
something apart from utf-8 and iso-8859-1. This can be trivially done
using the following at the start of the file:
# -*- coding: us-ascii -*-

The attached file (poc-gen.py) produces a poc.py file which satisfies
these constraints and shows the vulnerability.

Note: To see the vulnerability in action, it is necessary to have an
ASAN build of Python, compiled for 32 bit on a 64 bit machine.
Additionally, the poc.py file generated can take an extremely long
time to load (over a few hours), and finally crash. Instead, if one
wishes to see the proof of vulnerability quicker, then it might be
better to change the constant 4 in line (1) to 65536 (just for
simplicity sake), and change the multiplication_constant in poc-gen.py
file to be the same (i.e. 65536).

Proposed fix: Confirm that the multiplication will not overflow,
before actually performing the multiplication and depending on the
result.

--
components: Interpreter Core
files: poc-gen.py
messages: 295930
nosy: jaybosamiya
priority: normal
severity: normal
status: open
title: Unsafe arithmetic in PyString_DecodeEscape
type: security
versions: Python 2.7
Added file: http://bugs.python.org/file46950/poc-gen.py

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30657>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24459] Mention PYTHONFAULTHANDLER in the man page

2017-05-06 Thread Joshua Jay Herman

Joshua Jay Herman added the comment:

Ping

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



"pandas" pronunciation

2017-04-03 Thread Jay Braun
I hear people say it like the plural of "panda", and others as "panduss".  Is 
there a correct way?

j
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python under PowerShell adds characters

2017-03-29 Thread Jay Braun
On Wednesday, March 29, 2017 at 11:20:45 AM UTC-7, eryk sun wrote:
> On Wed, Mar 29, 2017 at 5:42 PM, Jay Braun <lyngw...@gmail.com> wrote:
> >
> > I'm not using ISE.  I'm using a pre-edited script, and running it with the 
> > python command.
> >
> > Consider the following simple script named hello.py (Python 2.7):
> >
> > print "Hello"
> >
> > If I enter:
> > python hello.py > out.txt
> >
> > from cmd.exe I get a 6-character file (characters plus new-line).
> > from PowerShell I get an extract ^@ character after every character
> 
> You didn't say you were redirecting the output to a file. That's a
> completely different story for PowerShell -- and far more frustrating.
> 
> cmd.exe implements redirecting a program's output to a file by
> temporarily changing its own StandardOutput to the file; spawing the
> process, which inherits the StandardOutput handle; and then changing
> back to its original StandardOutput (typically a console screen
> buffer). The program can write whatever it wants to the file, and cmd
> isn't involved in any way.
> 
> PowerShell is far more invasive. Instead of giving the child process a
> handle for the file, it gives it a handle for a *pipe*. PowerShell
> reads from the pipe, and like an annoying busybody that no asked for,
> decodes the output as text, processes it (e.g. replacing newlines),
> and writes the processed data to the file. For example:
> 
> PS C:\Temp> $script = "import sys; sys.stdout.buffer.write(b'\n')"
> PS C:\Temp> python -c $script > test.txt
> PS C:\Temp> python -c "print(open('test.txt', 'rb').read())"
> b'\xff\xfe\r\x00\n\x00'
> 
> I wrote a single byte, b'\n', but PowerShell decoded it, replaced "\n"
> with "\r\n", and wrote it as UTF-16 with a BOM.

You are correct.  Sorry I omitted that in my first post.  Thank you for your 
help.

j
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python under PowerShell adds characters

2017-03-29 Thread Jay Braun
On Wednesday, March 29, 2017 at 10:28:58 AM UTC-7, eryk sun wrote:
> On Wed, Mar 29, 2017 at 4:06 PM,   wrote:
> > I wrote a Python script, which executed as intended on Linux and
> > from cmd.exe on Windows.  Then, I ran it from the PowerShell
> >command line, all print statements added ^@ after every character.
> 
> ISE is the only command-line environment that's specific to
> PowerShell. Surely you wouldn't be running Python scripts in ISE.
> 
> If powershell.exe is run normally, then it's a console application.
> python.exe would inherit the console handle, and that's the end of its
> interaction with PowerShell. At most PowerShell (or any process that's
> attached to the console) may have set the console to a different
> output codepage via SetConsoleOutputCP or set the mode on the screen
> buffer via SetConsoleMode. As far as I know, neither of these can make
> the console print "^@" as a representation of NUL. It only shows "^@"
> in the input buffer when you type Ctrl+2, which is what most terminals
> do. For example:
> 
> >>> s = sys.stdin.read(6)
> spam^@
> >>> s
> 'spam\x00\n'
> >>> print(s)
> spam

I'm not using ISE.  I'm using a pre-edited script, and running it with the 
python command.

Consider the following simple script named hello.py (Python 2.7):

print "Hello"

If I enter:

python hello.py > out.txt

from cmd.exe I get a 6-character file (characters plus new-line).

from PowerShell I get an extract ^@ character after every character

j
-- 
https://mail.python.org/mailman/listinfo/python-list


SQL CE Database (.sdf) file connection with python

2017-01-31 Thread Jay Desai
Hello,


I came across a post from Nikhil Joshi at 
https://mail.python.org/pipermail/python-list/2014-November/681568.html.

*.sdf database access - 
mail.python.org
mail.python.org
On Saturday, April 21, 2012 6:55:55 AM UTC-4, Alex Willmer wrote: > On Apr 19, 
9:18 pm, Page3D wrote: > > Hi, I am trying to connect and access ...




I am facing the following problem. Can anyone please provide some guideline?

Problem Statement: Extract data stored in the .sdf file to python. System 
config: Win 10 Pro 64-bit, python 3.5.2-64 bit, adodbapi library, SQL CE 3.5

I am fairly new to programming and I have picked up Python as my first language 
to learn. Currently, I have hit a wall in process of connecting a SQL CE 3.5 
.sdf file.

I have used the adodbapi library. I have searched the web extensively over the 
past week to find a solution to this problem and to make sure that my 
connection string is correct. I have tried multiple options/solutions provided 
on stack overflow and 
https://www.connectionstrings.com/microsoft-sqlserver-ce-oledb-3-5/.

Code:

import adodbapi

cons_str = "Provoider=Microsoft.SQLSERVER.MOBILE.OLEDB.3.5;" \
   "Data Source=D:\Work\Programming\Python\SQL_DataTransfer\LF.sdf;"\
   "Persist Security Info=False;" \
   "SSCE:Max Database Size=4091"

connection = adodbapi.connect(cons_str)
print(connection)

Error Message: Traceback (most recent call last): File 
"D:\Work\Programs\Python35.virtualenvs\sql_output\lib\site-packages\adodbapi\adodbapi.py",
 line 93, in make_COM_connecter c = Dispatch('ADODB.Connection') #connect after 
CoIninialize v2.1.1 adamvan NameError: name 'Dispatch' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File 
"D:\Work\Programs\Python35.virtualenvs\sql_output\lib\site-packages\adodbapi\adodbapi.py",
 line 112, in connect co.connect(kwargs) File 
"D:\Work\Programs\Python35.virtualenvs\sql_output\lib\site-packages\adodbapi\adodbapi.py",
 line 269, in connect self.connector = connection_maker() File 
"D:\Work\Programs\Python35.virtualenvs\sql_output\lib\site-packages\adodbapi\adodbapi.py",
 line 95, in make_COM_connecter raise api.InterfaceError ("Windows COM Error: 
Dispatch('ADODB.Connection') failed.") adodbapi.apibase.InterfaceError: Windows 
COM Error: Dispatch('ADODB.Connection') failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File 
"D:/Work/Programming/Python/SQL_DataTransfer/SQL_CE_reportDB.py", line 8, in 
connection = adodbapi.connect(cons_str) File 
"D:\Work\Programs\Python35.virtualenvs\sql_output\lib\site-packages\adodbapi\adodbapi.py",
 line 116, in connect raise api.OperationalError(e, message) 
adodbapi.apibase.OperationalError: (InterfaceError("Windows COM Error: 
Dispatch('ADODB.Connection') failed.",), 'Error opening connection to 
"Provoider=Microsoft.SQLSERVER.MOBILE.OLEDB.3.5;Data 
Source=D:\Work\Programming\Python\SQL_DataTransfer\LF.sdf;Persist Security 
Info=False;SSCE:Max Database Size=4091"')

At this point any help is much appreciated.

Thank you, Sincerely, JD.

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-11-19 Thread Joshua Jay Herman

Joshua Jay Herman added the comment:

Thanks for pointing out that wasn't in the latest patch this has been corrected.

--
Added file: http://bugs.python.org/file45552/corrected.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-11-13 Thread Joshua Jay Herman

Joshua Jay Herman added the comment:

ping

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-10-10 Thread Joshua Jay Herman

Joshua Jay Herman added the comment:

Thanks for reviewing Mariatta I have made a new patch that has those typos 
corrected.

--
Added file: 
http://bugs.python.org/file45045/correctedRebasedAddMissingEnvironmentalVariables.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-10-09 Thread Joshua Jay Herman

Joshua Jay Herman added the comment:

Hi I performed the rebase on the default branch.

--
Added file: 
http://bugs.python.org/file45041/rebased_addMissingEnvironmentalVariables.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Problem with difflib SequenceMatcher

2016-09-12 Thread Jay
Hello

I am having an odd problem with difflib.SequenceMatcher. Sample code below:

The strings "src" and "trg" differ only a little. The
SequenceMatcher.ratio() for these strings 0.0. Many other similar
strings are working fine without problems (see below) with non-zero
ratios depending on how much difference there is between strings (as
expected).

Tested on Python 2.7 on Ubuntu 14.04

Program follows:
---
from difflib import SequenceMatcher as SM

src = u"N KPT T HS KMNST KNFKXNS AS H KLT FR 0 ALMNXN AF PRFT PRPRT AN
RRL ARS T P RPLST P KMNS H ASTPLXT HS ANTSTRL KR0 PRKRM NN AS 0 KRT LP
FRRT 0S PRKRM KLT FR 0 RPT TRNSFRMXN AF XN FRM AN AKRRN AKNM T A SSLST
ANTSTRL SST"
trg = u"M KPT T HS KMNST KNFKXNS AS H KLT FR 0 ALMNXN AF PRFT PRPRT AN
RRL ARS T P RPLST P KMNS H ASTPLXT HS ANTSTRL KR0 PRKRM NN AS 0 KRT LP
FRRT 0S PRKRM KLT FR 0 RPT TRNSFRMXN AF XN FRM AN AKRRN AKNM T SSLST
ANTSTRL SST"
print src, '\n', trg, '\n', SM(None, trg, src).ratio()
---


The following sequence prints a ratio() of 0.989795918367 which seems
about right.
---
src = u"M STNK AS AN AF 0 MST AMPRTNT LTRS TRNK 0 TNT0 SNTR HS MST
PRMNNT AKMPLXMNT AS 0 ASTPLXMNT AF 0 PPLS RPPLK AF XN HS A0R AXFMNTS
ANKLTT LTNK HS PPL AN 0 LNK MRX AFR FR 0SNT MLS T KP 0 KMNST MFMNT
ALF"
trg = u"M STNK AS AN AF 0 MST AMPRTNT LTRS TRNK 0 0 SNTR HS MST PRMNNT
AKMPLXMNT AS 0 ASTPLXMNT AF 0 PPLS RPPLK AF XN HS A0R AXFMNTS ANKLT
LTNK HS PPL AN 0 LNK MRX AFR FR 0SNT MLS T KP 0 KMNST MFMNT ALF"
print src, '\n', trg, '\n', SM(None, trg, src).ratio()
---

What could be the cause? Is there something I am doing wrong?

Thanks in advance
-- 
Regards
Jay
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-07-06 Thread Joshua Jay Herman

Joshua Jay Herman added the comment:

ping

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: the best online course

2016-07-06 Thread Jay Thompson
There are a ton of great resources on
https://wiki.python.org/moin/BeginnersGuide . The resource I generally
recommend to people first is "Learn Python The Hard Way" @
http://learnpythonthehardway.org/ . The course is $29.95 and worth every
penny but if you can't afford it the author has made the course available
for free. Just scroll to the bottom of the page to find the link.

On Wed, Jul 6, 2016 at 12:28 PM,  wrote:

> Hello,
> i am totaly beginner and i want to learn python.
> I have see that there is many course in codeacademy, udemy, treehouse etc
> but i not know who is the best.
> Can you please give me some advice?
> I want to be easy and not bored so i can learn python.
> Thank you and sorry for my bad english
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
"It's quite difficult to remind people that all this stuff was here for a
million years before people. So the idea that we are required to manage it
is ridiculous. What we are having to manage is us."   ...Bill Ballantine.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-06-05 Thread Joshua Jay Herman

Joshua Jay Herman added the comment:

I have reviewed the comments on Rietveld and made the changes to the patch. 
Attached is the revised version.

--
Added file: 
http://bugs.python.org/file43248/addMissingEnvironmentVariables-review-1.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-06-03 Thread Joshua Jay Herman

Joshua Jay Herman added the comment:

Undid alphabetization and added additional missing environment variables 
including debug mode variables.

--
Added file: 
http://bugs.python.org/file43166/addMissingEnvironmentVariables.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-06-03 Thread Joshua Jay Herman

Joshua Jay Herman added the comment:

Ping.

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   5   >