[issue18834] Add Clang to distutils to build C/C++ extensions

2020-03-06 Thread Ryan Gonzalez


Ryan Gonzalez  added the comment:

Oh my god this was still open? I think you can just use the CC variable, not 
sure what 6-years-younger-and-more-stupid me was thinking here. Sorry about the 
noise.

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

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



[issue37650] TemporaryDirectory objects should LOCK_SH to avoid being deleted by systemd-tmpfiles

2019-07-22 Thread Ryan Gonzalez


New submission from Ryan Gonzalez :

If e.g. a tar archive is extracted that has dates from several months ago, if 
systemd-tmpfiles runs to clean up data, then it may delete that data while the 
directory is still being used. This can be avoided by holding a LOCK_SH on the 
directory while it's being used.

--
components: Library (Lib)
messages: 348295
nosy: refi64
priority: normal
severity: normal
status: open
title: TemporaryDirectory objects should LOCK_SH to avoid being deleted by 
systemd-tmpfiles
type: enhancement

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



[issue11913] sdist refuses README.rst

2017-03-28 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

FWIW, I opened a PR for this: https://github.com/python/cpython/pull/563

--
nosy: +refi64

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



[issue11913] sdist refuses README.rst

2017-03-27 Thread Ryan Gonzalez

Changes by Ryan Gonzalez <rym...@gmail.com>:


--
pull_requests: +754

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



[issue29104] Left bracket remains in format string result when '\' preceeds it

2017-03-15 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Serhiy: if you want, you can give me your email and I'll submit a PR for you. 
If you want to do it yourself, just:

Download hub: https://hub.github.com/

git clone python/cpython cpython-git
cd cpython-git
git fork
curl 
https://raw.githubusercontent.com/mozilla/moz-git-tools/master/hg-patch-to-git-patch
 > hg-patch-to-git-patch
curl https://bugs.python.org/file46127/fstring_backslash_2.patch | python2 
hg-patch-to-git-patch > fstring.patch
git checkout -b fstring-fix
git apply fstring.patch
git commit -am 'bpo-29104: Commit message here'
git push -u MY_GITHUB_USERNAME fstring-fix
git pull-request

--
nosy: +refi64

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



[issue29527] Travis: doc job is broken

2017-02-10 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Trying to fix this in https://github.com/python/cpython/pull/9...but...

Currently there are approx *pause for effect* 6,245 warnings!

Out of those, around 6,243 are 'reference target not found' warnings, spanning 
over 290 files:


/media/ryan/stuff/cpython/Doc/whatsnew/3.7.rst:121: WARNING: c:member reference 
target not found: doc
/media/ryan/stuff/cpython/Doc/whatsnew/3.7.rst:121: WARNING: c:type reference 
target not found: PyGetSetDef
/media/ryan/stuff/cpython/Doc/whatsnew/3.7.rst:121: WARNING: c:type reference 
target not found: wrapperbase
/media/ryan/stuff/cpython/Doc/whatsnew/3.7.rst:157: WARNING: py:mod reference 
target not found: ntpath
../../Misc/NEWS:348: WARNING: py:data reference target not found: 
socket.TCP_CONGESTION
../../Misc/NEWS:348: WARNING: py:data reference target not found: 
socket.TCP_USER_TIMEOUT
../../Misc/NEWS:1005: WARNING: py:data reference target not found: 
socket.TCP_CONGESTION
../../Misc/NEWS:1005: WARNING: py:data reference target not found: 
socket.TCP_USER_TIMEOUT
../../Misc/NEWS:2718: WARNING: py:obj reference target not found: idlelib/*.py
../../Misc/NEWS:2718: WARNING: py:obj reference target not found: 
idle_test/test_*.py
../../Misc/NEWS:2837: WARNING: c:func reference target not found: malloc
../../Misc/NEWS:2883: WARNING: c:func reference target not found: 
PyObject_Malloc


For some reason, I don't feel like fixing 6,200 warnings is really feasible (or 
at least for me), so would it be worth it to, in the mean time, disable this 
specific kind of warning, at least for the CI builds?

--
nosy: +refi64

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



[issue2786] Names in function call exception should have class names, if they're methods

2016-10-25 Thread Ryan Gonzalez

Changes by Ryan Gonzalez <rym...@gmail.com>:


--
nosy: +Ryan.Gonzalez

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



[issue28536] Show the qualified name when a call fails

2016-10-25 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

HAHA, I lied. :D Attached is what I have so far.

--
keywords: +patch
Added file: 
http://bugs.python.org/file45225/0001-Make-failed-calls-to-methods-show-the-fully-qualifie.patch

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



[issue28536] Show the qualified name when a call fails

2016-10-25 Thread Ryan Gonzalez

New submission from Ryan Gonzalez:

e.g. make this:


class X:
def __init__(self): pass

X(1)


print something like this:


TypeError: X.__init__() takes 1 positional argument but 2 were given


instead of:


TypeError: __init__() takes 1 positional argument but 2 were given


I'm trying to see if I can create a patch right now, though it probably won't 
be ready until Thursday.

--
components: Interpreter Core
messages: 279460
nosy: Ryan.Gonzalez
priority: normal
severity: normal
status: open
title: Show the qualified name when a call fails
versions: Python 3.7

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



[issue28489] Fix comment in tokenizer.c

2016-10-20 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Ugh, hit Submit too soon. I meant to say the patch that has 20:13 as the date 
(I should've probably given them different names...).

--

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




[issue28489] Fix comment in tokenizer.c

2016-10-20 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

@eric.smith How's this instead?

--
Added file: 
http://bugs.python.org/file45160/0001-Fix-comment-in-tokenizer.c.patch

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



[issue28489] Fix comment in tokenizer.c

2016-10-20 Thread Ryan Gonzalez

New submission from Ryan Gonzalez:

Attached is a little fix for a comment in tokenizer.c. I noticed that it was 
never updated for the inclusion of f-strings.

--
assignee: docs@python
components: Documentation
files: 0001-Fix-comment-in-tokenizer.c.patch
keywords: patch
messages: 279056
nosy: Ryan.Gonzalez, docs@python
priority: normal
severity: normal
status: open
title: Fix comment in tokenizer.c
versions: Python 3.6
Added file: 
http://bugs.python.org/file45156/0001-Fix-comment-in-tokenizer.c.patch

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



[ANN] arclib 0.1 released!

2016-04-20 Thread Ryan Gonzalez
I'm happy to announce the very first release of arclib!

https://github.com/kirbyfan64/arclib

To quote the README:

arclib aims at providing a unified API for accessing Python's archive
formats. In particular, it provides the following APIs:

- Basic, one-shot: For gzip, bzip2, and LZMA. Supports one-shot compression
and decompression.
- Basic, incremental: For bzip2 and LZMA. Supports incremental compression
and decompression.
- Complex: For zip and tar. Supports accessing the various members and
their respective information.

Links:

PyPI: https://pypi.python.org/pypi/arclib
Docs: http://arclib.readthedocs.org/en/latest/

-- 
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Re: how to completely uninstall python 2.7 on Windows

2016-01-28 Thread Ryan Gonzalez
Wrong mailing list! You probably want 
https://mail.python.org/mailman/listinfo/python-list

Anyway, does uninstalling from the Control Panel not work?

On January 28, 2016 7:59:00 AM CST, "Shi, Jiajun"  
wrote:
>Hi there,
>
>Please help me to uninstall Python 2.7 on Windows. I want to install
>Python 3, and new python packages are all installed for Python 2.7,
>even I tried uninstalling approaches i searched from web to
>uninstalling previous versions.
>
>Thanks,
>Jiajun Shi 
>-- 
>https://mail.python.org/mailman/listinfo/python-announce-list
>
>Support the Python Software Foundation:
>http://www.python.org/psf/donations/

-- 
Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue23496] Steps for Android Native Build of Python 3.4.2

2015-11-01 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Are there no binaries?

Pretty sure it isn't your device. I'd think a compiler issue. What are you 
using, and what version?

You have insane determination! :D

On November 1, 2015 8:34:21 AM CST, Cyd Haselton <rep...@bugs.python.org> wrote:
>
>Cyd Haselton added the comment:
>
>GDB debugging isn't going to happen any time soon; all of the gdb tests
>fail.
>I re-compiled with the --with-pydebug option, thinking that would help,
>but it won't build; I get the following error when the newly built
>python starts to build packages:
>
>Debug memory block at address p=0xb6003070: API 'a'
>795107700 bytes originally requested
>The 3 pad bytes at p-3 are not all FORBIDDENBYTE (0xfb):
>at p-3: 0x2f *** OUCH
>at p-2: 0x00 *** OUCH
>at p-1: 0x00 *** OUCH
> Because memory is corrupted at the start, the count of bytes requested
>   may be bogus, and checking the trailing pad bytes may segfault.
>The 4 pad bytes at tail=0xe56491e4 are Segmentation fault
>generate-posix-vars failed
>
>Additional things I've attemptedto try to resolve the test_hash
>failure, based on this  bug report
>(https://mail.python.org/pipermail/python-bugs-list/2015-March/267442.html)
>1) compiling with -mno-unaligned-access
>2) compiling with FNV as the default hash algorithm.
>
>Neither worked. At this point I am at a loss and am beginning to think
>there may be a problem with my device.  Any suggestions are welcome.
>
>--
>
>___
>Python tracker <rep...@bugs.python.org>
><http://bugs.python.org/issue23496>
>___

--

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



Re: [Python-ideas] Wheels For ...

2015-09-06 Thread Ryan Gonzalez


On September 6, 2015 12:33:29 PM CDT, "Sven R. Kunze"  wrote:
>Hi folks,
>
>currently, I came across http://pythonwheels.com/ during researching
>how 
>to make a proper Python distribution for PyPI. I thought it would be 
>great idea to tell other maintainers to upload their content as wheels 
>so I approached a couple of them. Some of them already provided wheels.
>
>Happy being able to have built my own distribution, I discussed the 
>issue at hand with some people and I would like to share my findings
>and 
>propose some ideas:
>
>1) documentation is weirdly split up/distributed and references old
>material
>2) once up and running (setup.cfg, setup.py etc. etc.) it works but 
>everybody needs to do it on their own
>3) more than one way to do (upload, wheel, source/binary etc.) it
>(sigh)
>4) making contact to propose wheels on github or per email is easy 
>otherwise almost impossible or very tedious
>5) reactions went evenly split from "none", "yes", "when ready" to
>"nope"
>
>None: well, okay
>yes: that's good
>when ready: well, okay
>nope: what a pity for wheels; example: 
>https://github.com/simplejson/simplejson/issues/122
>
>I personally find the situation not satisfying. Someone proposes the 
>following solution in form of a question:
>
>Why do developers need to build their distribution themselves?
>
>I had not real answer to him, but pondering a while over it, I found it
>
>really insightful. Viewing this from a different angle, packaging your 
>own distribution is actually a waste of time. It is a tedious, 
>error-prone task involving no creativity whatsoever. Developers on the 
>other hand are actually people with very little time and a lot of 
>creativity at hand which should spend better. The logical conclusion 
>would be that PyPI should build wheels for the developers for every 
>python/platform combination necessary.
>

You can already do this with CI services. I wrote a post about doing that with 
AppVeyor:

http://kirbyfan64.github.io/posts/using-appveyor-to-distribute-python-wheels.html

but the idea behind it should apply easily to Travis and others. In reality, 
you're probably using a CI service to run your tests anyway, so it might as 
well build your wheels, too!

>
>With this post, I would like raise awareness of the people in charge of
>
>the Python infrastructure.
>
>
>Best,
>Sven
>___
>Python-ideas mailing list
>python-id...@python.org
>https://mail.python.org/mailman/listinfo/python-ideas
>Code of Conduct: http://python.org/psf/codeofconduct/

-- 
Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-26 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

I don't think so. I believe that switch is just to enable writing gdb 
extensions in Python.

On August 26, 2015 9:34:29 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

UPDATE:
Still working on the test_hash issue; not making much progress

QUESTION
Does gdb have to be configured with the --with-python switch in order
to debug the python binary correctly?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-22 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

After typing 'run', enter 'bt' and post the results.

On Sat, Aug 22, 2015 at 3:06 PM, Cyd Haselton rep...@bugs.python.org
wrote:


 Cyd Haselton added the comment:

 On August 22, 2015 2:47:42 PM CDT, Ryan Gonzalez rep...@bugs.python.org
 wrote:
 
 Ryan Gonzalez added the comment:
 
 I'm assuming gdb still doesn't work?

 It does. I just don't know it well enough to know if the errors are
 something I'm doing wrong or something the program is doing wrong.

 Basically I'm running
 gdb
 file ./python
 set args -m test
 set sysroot /path/to/sysroot
 run

 and examining/posting the results.  Which are confusing to me because,
 again, don't know it well enough.
 
 On August 22, 2015 1:06:41 PM CDT, Cyd Haselton
 rep...@bugs.python.org wrote:
 
 Cyd Haselton added the comment:
 
 Update:
 I found this bug report (https://bugs.python.org/issue23786) and
 re-compiled python with -mno-unaligned-access as mentioned. test_hash
 still throws a bus error.
 
 Back to drawing boardsuggestions welcome.
 
 --
 
 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___
 
 --
 
 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-22 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

I'm assuming gdb still doesn't work?

On August 22, 2015 1:06:41 PM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

Update: 
I found this bug report (https://bugs.python.org/issue23786) and
re-compiled python with -mno-unaligned-access as mentioned. test_hash
still throws a bus error.

Back to drawing boardsuggestions welcome.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-21 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

On August 21, 2015 9:25:10 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

Question for Ryan Gonzalez:
Given this information...

On August 20, 2015 8:03:13 PM CDT, Russell Keith-Magee
rep...@bugs.python.org wrote:

Russell Keith-Magee added the comment:

What hardware architecture are you compiling for? If it's ARM64, and
you're not using a trunk version of libffi, that segfault in
test_ctypes is to be expected.

 Does this mean I can safely ignore the segfault?

Well, safely in the sense that everything except a very recent
version of libffi is known to not work on ARM64 - so if it doesn't
work, it's not because of something Python is doing wrong, it's a
problem with a dependency.


...do you know of a way to run all tests except _ctypes, so that Imcan
verify everything else?


You can temporarily change the last line of Lib/ctypes/test/__init__.py to:

return args[1]

And to answer Russell's questions:

Are you using the libffi sources vendored into the Python source
tree, or a more recent version? 

By 'vendored in' do you mean 'sources included in python source tree
for building?'

Correct. The libffi source code that is in the Python source tree is
quite old, and *definitely* doesn't work on ARM64. I'm not even sure
that it works on ARMv7.

Definitely using the vendored in sources.


 Would your recommend downloading and building libffi from sources
(on
device) and then building python?

Well, for starters - as I've said before, I'd recommend not compiling
on device at all, but that's a separate issue. 

Any particular reason why? The device I'm working with has a port of
GCC which I've used to build other utilities that work well...given
that I'm working on a tablet.

However, regardless of where you're compiling, you can either use an
external libffi, or you can do what I've done in the iOS patch -
update
the Python source tree to include a newer version of libffi. If you
update the source in the Python tree, you need to use 2 versions (or a
merged version); you need v3.2 sources for ARMv7, and trunk sources
for
ARM64. This is because libffi v3.2 doesn't work for ARM64, and trunk
doesn't even compile for ARMv7. See the iOS patch for details.

Since I'm not compiling for ARM64...and have zero experience with
hacking configure.ac files...would it be okay to include just the 3.2
sources if I note somewhere that this fork does not include ARM64
support?

 I'm asking the above questions because I've hit a fairly significant
roadblock; I'm still getting the segfault when test_ctypes is run and
I
can't seem to get anything useful out of gdb.

Personally, I've pretty much given up on CPython on Android. Even when
I got it working, the performance of the JNI layer is *abysmal*, and
severely crippled. If you're planning to actually interact with the
device in any way (like, say, put a button on the screen), that's a
big
problem. 

My goal is to build a port that operates on Android in a Linux-like
environment; I'm currently using KBOX3.  I've no experience with the
Python language so JNI interop is Greek to me.  For what i'm using the
port for it functions fairly well.

I'm working on an approach that uses Java natively - think Jython for
Android. I'm still a way off having anything working, though.

I'll keep an eye out for it once I've got Python basics under my belt.
--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-21 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Bus error is basically unaligned memory access.

...

...do you feel like trying to get a backtrace from GDB again? :) (The last
time likely didn't end well because the machine stack got somehow
corrupted.)

On Fri, Aug 21, 2015 at 2:04 PM, Cyd Haselton rep...@bugs.python.org
wrote:


 Cyd Haselton added the comment:

 Thanks Ryan.

 Running ./python -m test (with the edit to the __init__.py for ctypes)
 produces the following error:

 [151/390/18] test_hash
 Fatal Python error: Bus error

 Current thread 0xb6f72ec8 (most recent call first):
   File /bld/pyt/cpython-android/Lib/test/test_hash.py, line 89 in
 test_unaligned_buffers
   File /bld/pyt/cpython-android/Lib/unittest/case.py, line 577 in run
   File /bld/pyt/cpython-android/Lib/unittest/case.py, line 625 in
 __call__
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in
 __call__
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in
 __call__
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in
 __call__
   File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1668
 in run
   File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1769
 in _run_suite
   File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1803
 in run_unittest
   File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1279 in
 test_runner
   File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1280 in
 runtest_inner
   File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 978 in runtest
   File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 763 in main
   File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1564 in
 main_in_temp_cwd  File /bld/pyt/cpython-android/Lib/test/__main__.py,
 line 3 in module
   File /bld/pyt/cpython-android/Lib/runpy.py, line 85 in _run_code
   File /bld/pyt/cpython-android/Lib/runpy.py, line 170 in
 _run_module_as_main
 Bus error

 Not sure what a bus error is...off to Google

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-17 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Wait, did you compile this with Clang?

On August 17, 2015 9:24:50 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

Result:

(gdb) bt
#0  0xb6a63cc8 in ?? ()
#1  0xb6a5feb0 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt
stack?)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-15 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

What if you run:

bt

?

On August 15, 2015 7:32:37 PM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

I thought porting gdb would be the difficult part of getting debug
info. I was so wrong.

Here is what I have so far, after lengthy consultation of the gdb
manual.  Bear with me...it's basically a copy  paste of gdb session
output:

(gdb) run
Starting program: /bld/pyt/cpython-android/python
setpgrp failed in child: No such process
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.

Program received signal SIGILL, Illegal instruction.
0xb6a63cc8 in ?? ()
(gdb) f
#0  0xb6a63cc8 in ?? ()
(gdb) info f
Stack level 0, frame at 0xbefff618:
 pc = 0xb6a63cc8; saved pc = 0xb6a5feb0
 called by frame at 0xbefff618
 Arglist at 0xbefff618, args:
 Locals at 0xbefff618, Previous frame's sp is 0xbefff618
(gdb) info args
No symbol table info available.
(gdb) info local
No symbol table info available.
(gdb) info source
Current source file is ./Modules/python.c
Compilation directory is /bld/pyt/cpython-android
Located in /bld/pyt/cpython-android/Modules/python.c
Contains 80 lines.
Source language is c.
Compiled with DWARF 2 debugging format.
Does not include preprocessor macro info.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-12 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Doesn't Python still have debug symbols? The system ones don't matter too much.

On August 12, 2015 6:21:23 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

After struggling to get helpful output from gdb it is looking like it
will not be possible due to the lack of debugging symbols in the libs
on the android device.

Still investigating.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-25 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

So...I have *no* clue why _struct can't be found.

Can you use gdb to get the segfault backtrace like you did before?

On July 25, 2015 6:56:10 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

I assume so; I'm using whatever is pulled frommy fork of the git repo.

I've actually run into a different error that occured when i rebuilt to
include readline support; when I run ./python -m test I;m getting
ImportError: no module named _struct found.

Trying to figure that one out first...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-30 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

On June 30, 2015 8:14:34 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

Your question about -fPIE brings up a question: How should the
differences between Android 5 and previous versions be handled in
regards to this issue?

Other than mandatory -fPIE, there are changes to Android[s libc that
may make  patches for python on Android 4.x incompatible with Android
5.


WHAT??? :( I can't find a list anywhere; how do you know?

Thoughts?

Not really...


On June 29, 2015 9:29:35 AM CDT, Cyd Haselton rep...@bugs.python.org
wrote:

Cyd Haselton added the comment:

No...haven't upgraded to Android 5.0 yet.  

On June 29, 2015 9:00:01 AM CDT, Ryan Gonzalez
rep...@bugs.python.org
wrote:

Ryan Gonzalez added the comment:

You compiled with -fPIE and GCC, right? I know the Android Clang
seems
broken.

On June 29, 2015 7:09:25 AM CDT, Cyd Haselton
rep...@bugs.python.org
wrote:

Cyd Haselton added the comment:

FYI, Figured out that running ./configure with --with-pydebug does
NOT
define Py_DEBUG in pyconfig.h.

Defining it in pyconfig.h got me past the undefined reference to
`_PyUnicode_CheckConsistency' error, but i'm now getting this:

if test $? -ne 0 ; then \
echo generate-posix-vars failed ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Debug memory block at address p=0x90b7b0: API ''
2416312320 bytes originally requested
The 3 pad bytes at p-3 are not all FORBIDDENBYTE (0xfb):
at p-3: 0x00 *** OUCH
at p-2: 0x00 *** OUCH
at p-1: 0x00 *** OUCH
 Because memory is corrupted at the start, the count of bytes
requested
   may be bogus, and checking the trailing pad bytes may
segfault.
The 4 pad bytes at tail=0x9096b7b0 are Segmentation fault
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

Will re-check patch application and try again

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-29 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

You compiled with -fPIE and GCC, right? I know the Android Clang seems broken.

On June 29, 2015 7:09:25 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

FYI, Figured out that running ./configure with --with-pydebug does NOT
define Py_DEBUG in pyconfig.h.

Defining it in pyconfig.h got me past the undefined reference to
`_PyUnicode_CheckConsistency' error, but i'm now getting this:

if test $? -ne 0 ; then \
echo generate-posix-vars failed ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Debug memory block at address p=0x90b7b0: API ''
2416312320 bytes originally requested
The 3 pad bytes at p-3 are not all FORBIDDENBYTE (0xfb):
at p-3: 0x00 *** OUCH
at p-2: 0x00 *** OUCH
at p-1: 0x00 *** OUCH
 Because memory is corrupted at the start, the count of bytes requested
   may be bogus, and checking the trailing pad bytes may segfault.
The 4 pad bytes at tail=0x9096b7b0 are Segmentation fault
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

Will re-check patch application and try again

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-05 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

On June 5, 2015 6:22:07 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

Will do...if by try the tests now you mean run 'make tests'

Pretty much.

...but it may be about a week or two as a) I'm currently in the last stages of
a mono port and b) will be working on a PIE gcc for android 5.0 after,
so that I have a KBOX environment to work with after verizon updates my
tablet.

Try CCTools. Works on Android 5.0. Clang can be a little broken, but with a bit 
of flag twiddling it works.


If I can keep putting off the verizon 5.0 update

On June 4, 2015 4:52:59 PM CDT, Ryan Gonzalez rep...@bugs.python.org
wrote:

Ryan Gonzalez added the comment:

#1 and #2 are fixed. I hand-edited the patch file (!!), so here's to
hoping it'll work...

Working on #3. You probably should try the tests now (which is
obviously the scary part ;).

--
Added file: http://bugs.python.org/file39628/kbox_fix.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-04 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

#1 and #2 are fixed. I hand-edited the patch file (!!), so here's to hoping 
it'll work...

Working on #3. You probably should try the tests now (which is obviously the 
scary part ;).

--
Added file: http://bugs.python.org/file39628/kbox_fix.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-04 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Fixes for readline and _crypt done.

--
Added file: http://bugs.python.org/file39629/lib_fixes.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-05-29 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

I thought you were running the tests...

Or was there something I had to do that I missed?

On May 29, 2015 5:54:18 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

All,
Just checking in as it has been a while...is there anything I need to
do on my end for this port?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue14376] sys.exit documents argument as integer but actually requires subtype of int

2015-04-23 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Now we're getting away from the original issue. This wasn't created to handle 
edge cases for sys.exit; is was created to make it accept long values under 
Python 2.

--
nosy: +Ryan.Gonzalez

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



[issue14376] sys.exit documents argument as integer but actually requires subtype of int

2015-04-23 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:


 errors should not pass silently

 The fix makes the problem worse.

 Why would anyone want to pass a long integer to exit?

 I bet the user who discovered this problem had something like 0L or 1L
 coming from a lazily written C extension.

Or the person is using a Python code generator that makes everything a long
for portability reasons! Hy does this.

int and long are supposed to be indistinguishable. Quote by Guido from the
time when I figured out the re module's group function doesn't take longs:

...but any place where an int is accepted but a long is not, is a bug. The
language has been on a long trip to making the two types interchangeable
and this seems one of the last remnants.

Notice the word *interchangeable*.

Also, I find that the current behavior is even more confusing.

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-20 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Nevermind. I was just being stupid. I kept searching the Python directory
for references to get_codec_name and _PyMem_RawStrdup and completely missed
the Programs directory. Sorry.

Did the updated kbox_fix.patch work?

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-19 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

On Sun, Apr 19, 2015 at 7:16 PM, Cyd Haselton rep...@bugs.python.org
wrote:


 Cyd Haselton added the comment:

 Ryan,
 Found the missing fix.

 In ./Programs/python.c

 #ifndef __ANDROID__
 oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL));
 if (!oldloc) {
 fprintf(stderr, out of memory\n);
   return 1;
 }
   #endif

 Added the #ifndef __ANDROID__ #endif around lines 46-51


...that was in android_segfault_fix.patch...

are you sure you're on the same commit as I am?

 I'm now looking at the following syntax error:

 File ./setup.py, line 1950
 elif host_platform.startswith('arm-linux')
  ^
 SyntaxError: invalid syntax
 make: *** [sharedmods] Error 1


I forgot to put a colon and the end of the line. I'll upload a fixed
kbox_fixes.patch.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-19 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


Added file: http://bugs.python.org/file39134/kbox_fix.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-19 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

That's the thing; my repo has no python.c!

On April 19, 2015 7:39:19 PM CDT, Cyd Haselton rep...@bugs.python.org wrote:

Cyd Haselton added the comment:

Ryan,
That fix is in the android_segfault patch, but it's for frozenmain.c
not python.c

I cloned from master on Fri/Sat. Will double-check commit tomorrow but
I think the problem is with the unpatched python.c

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-18 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Ok...try going to Python/pylifecycle.c and changing lines 220-230 from:

#elif defined(HAVE_LANGINFO_H)  defined(CODESET)
char* codeset = nl_langinfo(CODESET);
if (!codeset || codeset[0] == '\0') {
PyErr_SetString(PyExc_ValueError, CODESET is not set or empty);
return NULL;
}
return get_codec_name(codeset);
#elif defined(__ANDROID__)
char* m = malloc(6);
strcpy(m, ascii);
return m;

to:

#elif defined(__ANDROID__)
char* m = malloc(6);
strcpy(m, ascii);
return m;
#elif defined(HAVE_LANGINFO_H)  defined(CODESET)
char* codeset = nl_langinfo(CODESET);
if (!codeset || codeset[0] == '\0') {
PyErr_SetString(PyExc_ValueError, CODESET is not set or empty);
return NULL;
}
return get_codec_name(codeset);

I just swapped the `elif`'s around.

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-18 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Here:

diff -r 38f5b3beeb2a Python/pylifecycle.c
--- a/Python/pylifecycle.c Thu Mar 19 15:16:03 2015 -0500
+++ b/Python/pylifecycle.c Sat Apr 18 13:07:36 2015 -0500
@@ -217,6 +217,10 @@
 char codepage[100];
 PyOS_snprintf(codepage, sizeof(codepage), cp%d, GetACP());
 return get_codec_name(codepage);
+#elif defined(__ANDROID__)
+char* m = malloc(6);
+strcpy(m, ascii);
+return m;
 #elif defined(HAVE_LANGINFO_H)  defined(CODESET)
 char* codeset = nl_langinfo(CODESET);
 if (!codeset || codeset[0] == '\0') {
@@ -224,10 +228,6 @@
 return NULL;
 }
 return get_codec_name(codeset);
-#elif defined(__ANDROID__)
-char* m = malloc(6);
-strcpy(m, ascii);
-return m;
 #else
 PyErr_SetNone(PyExc_NotImplementedError);
 return NULL;

On Sat, Apr 18, 2015 at 12:39 PM, Cyd Haselton rep...@bugs.python.org
wrote:


 Cyd Haselton added the comment:

 Do you have the time/means to create a quick patch for that?

 I ask because even a simple flip like that becomes a major pain when
 working with nano on a tablet.

 If not, I'll start on it. Just thought Id ask

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-15 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Can you try to see exactly *which* line of the function is segfaulting?

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Whoops. Updated the patch.

--
Added file: http://bugs.python.org/file38881/rjmatthews64_fixes2.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Ack...I feel smart. Attached is kind of a part 2 to the rjmatthews patch. 
Apply and the errors shall be solved. :)

--
Added file: http://bugs.python.org/file38880/rjmatthews64_fixes2.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Maybe it's conflicted with the last one...

Try:

git checkout Python/pythonrun.c
git apply rjmatthews...

On Thu, Apr 9, 2015 at 12:28 PM, Cyd Haselton rep...@bugs.python.org
wrote:


 Cyd Haselton added the comment:

 H. That patch failed to apply:

 Possibly reversed hunk 1 at 1582
 Hunk 1 failed 35/35

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

ARGH!

Fixed. Re-apply rjmatthews64_fixes2.patch.

--
Added file: http://bugs.python.org/file38884/rjmatthews64_fixes2.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

I put a fix in the patch; I don't know why the heck it didn't apply. Just
go to Python/pythonrun.c, line 66 and put a semicolon (;) at the end of the
line.

On Thu, Apr 9, 2015 at 1:51 PM, Cyd Haselton rep...@bugs.python.org wrote:


 Cyd Haselton added the comment:

 Done, but got this error:

 Python/pythonrun.c: In function 'android_wcstombs':
 Python/pythonrun.c:67:5: error: expected ';' before 'if'
  if (c = 0xdc800  c = 0xdcff)
  ^
 Python/pythonrun.c:62:11: warning: variable 'c' set but not used
 [-Wunused-but-set-variable]
wchar_t c;
^
 make: *** [Python/pythonrun.o] Error 1

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-06 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


Removed file: http://bugs.python.org/file38579/issue_20306.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-06 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Remove the + at the beginning of line 87.

I re-uploaded issue_20306.patch to fix that issue.

--
Added file: http://bugs.python.org/file38853/issue_20306.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-06 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Ah, crud. androidfn.h was a header I added but forgot to put the patch for. I 
just attached the patch for that now.

The commit I based the patches on was by Alexander Belopolsky and was named 
merge. Committed on February 28.

--
Added file: http://bugs.python.org/file38846/androidfn.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-05 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

I thought this was for the tip, i.e. the 3.5 dev...?

But I created the patches in the order that I wrote the descriptions in the 
comment. So you might want to use that order.

If that fails, I can figure out the revision I was at when I created the 
patches.

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-25 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

No; you need the CPython tip. You can use https://github.com/python/cpython. 
Other than that, it's the configure+make thing.

As I said before, the pyconfig.h changes aren't there yet. Trying to figure out 
how I want to approach those.

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-22 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Cyd: if you could do that, it would be great!

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-20 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

...except for the pyconfig.h changes. Need to do something with autoconf for 
that.

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-19 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

I am slowly attaching the patches I created.

Titles:

- issue_16353.patch - Issue 16353 for tip
- issue_20305_tweaked.patch - Issue 2305 for tip
- rjmatthews62_fixes_tweaked.patch - rjmatthew...@gmail.com's Android fixes (a 
bit more modularized)
- unused_var.patch - An extension of 2305. Can't figure out how to merge them.
- issue_21668.patch - Issue 21668 for tip
- issue_20306.patch - Guess...
- android_segfault_fix.patch - The actual segfault fix
- kbox_fix.patch - Cyd's KBox fixes

Someone, please test them!

--
Added file: http://bugs.python.org/file38575/android_segfault_fix.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-19 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


Added file: http://bugs.python.org/file38578/issue_20305_tweaked.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-19 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


Added file: http://bugs.python.org/file38582/rjmatthews62_fixes_tweaked.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-19 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


Added file: http://bugs.python.org/file38579/issue_20306.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-19 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


Added file: http://bugs.python.org/file38580/issue_21668.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-19 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


Added file: http://bugs.python.org/file38581/unused_var.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-19 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


Added file: http://bugs.python.org/file38576/kbox_fix.patch

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-19 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


Added file: http://bugs.python.org/file38577/issue_16353.patch

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



My emails are getting bounced?

2015-03-12 Thread Ryan Gonzalez
I'm posting this here because I have no clue who the heck the mailing list
manager is.

I got this message:

Your membership in the mailing list Python-ideas has been disabled due
to excessive bounces The last bounce received from you was dated
12-Mar-2015.  You will not get any more messages from this list until
you re-enable your membership.  You will receive 3 more reminders like
this before your membership in the list is deleted.

A quick Google shows:

Find out why list mail to you is bouncing and correct the problem. You
may be able to see a returned bounce by setting
bounce_notify_owner_on_disable to Yes. This will cause Mailman to send
the triggering bounce to the owner, but since that's you, it may
bounce too.

Is it possible for someone to set this up for my email on Python-ideas?

Again, not sure who the manager is, so I'm sending this here.

-- 
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-10 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Ok, please bear with me. I'm going to be REALLY busy for a bit; I have a BIG 
test/exam coming up next week, a music recital shortly afterwards, and lots of 
stuff/studying in between.

Sorry for any delays!

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

This is what I'm using:

PYTHON_FOR_BUILD=`realpath ../cpython/python` CC=arm-linux-androideabi-clang 
CXX=arm-linux-androideabi-clang++ ./configure --host=arm-linux-androideabi 
--build=x86_64 --disable-ipv6 ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no 
ac_cv_have_long_long_format=yes

I know I could use config.site, but I just popped all this in a shell script.

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Python really needs some way of separating the host C compiler and the target C 
compiler.

I'm giving up cross-compiling from my computer and am going to install KBOX on 
an Android virtual device. It worked for Cyd, it'll work for me. Beats 
compiling two separate versions of Python (one just to get host version of pgen 
and _freeze_importlib), passing 20+ arguments to configure segregated in flags 
and environment variables, etc.

Please bear with me.

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Ugh...

I'll just cross my fingers and hope that the libfakechroot KBOX2 comes with is 
new enough.

As for a text editor, I'll just probably use something external.

*crosses fingers*

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-08 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

I'm getting a weird error message building python:

ryan@DevPC-LX:~/stuff/cpydroid$ make
_PYTHON_PROJECT_BASE=/home/ryan/stuff/cpython _PYTHON_HOST_PLATFORM=linux-arm 
PYTHONPATH=./Lib:./Lib/plat-linux python3 -S -m sysconfig --generate-posix-vars 
;\
if test $? -ne 0 ; then \
echo generate-posix-vars failed ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Could not import runpy module
Traceback (most recent call last):
  File ./Lib/runpy.py, line 15, in module
import importlib.util
  File ./Lib/importlib/util.py, line 6, in module
from ._bootstrap import module_from_spec
ImportError: cannot import name 'module_from_spec'
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1
ryan@DevPC-LX:~/stuff/cpydroid$ 


I'm trying to build for generic ARM Linux before I attempt updating the 
changes. Makes sense theoretically.

Then again, when using autotools, NOTHING ever makes sense. I'm probably 
looking in the wrong direction...

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-05 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Ahh...ok, then please post the changes. I want to burn autotools enough right 
now; I doubt that redoing those changes would ease my anger. :)

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-05 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

So...you didn't make the changes by hand? Could you just post whatever you 
passed to configure?

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-04 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Cyd:

What exactly do you mean by post-configure edits?

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-04 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Cyd:

Don't upload them. Git won't even let you add pyconfig.h; running `git add 
PC/pyconfig.h` won't say anything, but running `git status` will show that it 
did not do anything.

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-02 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Cyd:

I was trying to see if I could build the latest Python for Android (not to get 
it to run; just to get it to compile) so that your changes would 
(theoretically) easier to update to the latest Python. That failed. Miserably. 
Joys of cross-compiling Python.

So...I'm just going to wait for you to finish uploaded the changes and work 
from there. :)

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-01 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Cyd:

Just run:

$ git commit -m Put some message here # commit the changes
$ git push # push the changes

I'm working on it, but I haven't even gotten it to build (CURSE YOU, AUTOCONF!)

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-28 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Ok...so the joys of autoconf configuring bite again. ALL Android devices have 
/dev/ptmx (adb even assumes it)...should the configure script be modified to 
skip that check if cross-compiling for Android?

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-27 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

I'll try to do as much as I can to get this through. Once I reinstall the NDK 
(I accidently wiped my hard drive with a bad dd command recently), I'll test 
this on my old Android phone that still runs 2.3 and would be very happy if 
someone else can test it something newer (my laptop doesn't seem to like the 
Android emulator). I'll also try to do this against the development branch or 
tip or head or whatever it's called.

I'd be very happy if someone could contribute a build slave, because I can't.

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-27 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Ok, if I don't finish it today, I *will* finish it tomorrow. Or Sunday. Sunday 
is the latest, though I'm pretty sure I'll be done by Saturday.

Hardest part is likely going to be re-configuring the Android emulator to test 
it.

Cyd (and anyone else who can), do you think you could test the binaries, too? 
I'll get them to you somehow. You have a real device; I have an old real device 
and an emulator.

Side note for Cyd: I'd advise you just use the fork of CPython you have and 
just push them to GitHub:

$ git remote add origin url of your GitHub repo with .git at the end
$ git push --all origin -u

That will push your changes (and every branch of CPython, I have no clue what 
your branch name is, so this just does everything) to the GitHub mirror.

So...I'm understanding that the game plan will go like this:

- Cyd pushes the changes he made to a GitHub fork of Python (and hopefully 
posts the URL here ;)
- I clone the repo and try to get the changes working with the dev version
- Somewhere in between now and the end of the world, Ethan will set up a build 
slave

I'll also help all I can with keeping these changes working with future 
versions of Python.

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-25 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

That's what I was saying; I'll update the patches myself. I highly doubt Cyd 
wants to re-port Python again. :0

I'll ask on python-dev on which would be preferred: configure.ac edits or macro 
tests.

--

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-24 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

So...

I know a decent amount of configure scripts, although Python's is easily going 
to be the absolute longest I've ever touched.

Maybe these should be made against the 3.6 Mercurial source? I'm not sure if 
the Python devs would prefer that.

Also, should the configure script be based on the Android target triple?

--
type:  - enhancement

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-22 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


--
nosy: +Ryan.Gonzalez

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



[issue22530] re rejects index of type long on 2.7

2014-09-30 Thread Ryan Gonzalez

New submission from Ryan Gonzalez:

This should work (but doesn't):

Python 2.7.8+ (2.7:63dc1e32b715, Sep 30 2014, 19:24:46) 
[GCC 4.2.1 Compatible Clang 3.5.0 (207381)] on linux2
Type help, copyright, credits or license for more information.
 import re
 re.match('(foo)', 'foo').group(1L)
Traceback (most recent call last):
  File stdin, line 1, in module
IndexError: no such group
 

I *think* the attached patch fixes it (but I'm not quite sure).

Here's the relevant mailing list thread: 
https://mail.python.org/pipermail/python-ideas/2014-September/029590.html.

--
components: Library (Lib)
files: re.patch
keywords: patch
messages: 228043
nosy: Ryan.Gonzalez
priority: normal
severity: normal
status: open
title: re rejects index of type long on 2.7
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file36766/re.patch

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



[ANN] TinyMk 0.2 Release

2014-08-17 Thread Ryan Gonzalez
TinyMk is a small, single-file make tool written in Python. You write your
build files as a Python script that imports TinyMk. It's small enough and
licensed so that you can distribute it with your project.

See the GitHub page at https://github.com/kirbyfan64/tinymk.

-- 
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated.
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[ANN] ClamAV for Python 0.2!

2014-04-06 Thread Ryan Gonzalez
Announcing ClamAV for Python 0.2! ClamAV for Python is a set of pure-Python
bindings for libclamav. This version adds basic support for callbacks and
makes it work under Python 3. Check it out of
PyPIhttps://pypi.python.org/pypi/clamavand
GitHub https://github.com/kirbyfan64/clamav-python. Report bugs to the Issue
tracker https://github.com/kirbyfan64/clamav-python/issues.

-- 
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated.
-- 
https://mail.python.org/mailman/listinfo/python-list


Ideas for Python 4

2014-04-01 Thread Ryan Gonzalez
I have a bunch of ideas I'd like to share for Python 4:

Use -- for comments instead of #.

Switch to  for not equal instead of !=.

Remove indentation requirement:

-- Python 23
if x != y:
return 7

-- Python 4
if x  y:
return 7
;;

Add multiline lambdas:

my_multiline_lambda = ll { return 7; }

Add implicit lambdas using a clear, simple, and concise syntax:

my_implicit_lambda = ??[0] + ??[1] if ??#? != 0
-- ?? = argument dictionary
-- ??#? = argument count

Add method chaining using even easier syntax:

a = SomeObject()
b = a-m2-m3-m4!!;;

-- Call m2, then m3, then m4, then return the resulting object

-- BTW, April Fools! This is ugly...

-- 
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [Python-Dev] [RELEASED] Python 3.4.0

2014-03-17 Thread Ryan Gonzalez
YES!!! +1 to the authors of the statistics and pathlib modules.


On Mon, Mar 17, 2014 at 1:29 AM, Larry Hastings la...@hastings.org wrote:


 On behalf of the Python development team, I'm thrilled to announce
 the official release of Python 3.4.


 Python 3.4 includes a range of improvements of the 3.x series, including
 hundreds of small improvements and bug fixes.  Major new features and
 changes in the 3.4 release series include:

 * PEP 428, a pathlib module providing object-oriented filesystem paths
 * PEP 435, a standardized enum module
 * PEP 436, a build enhancement that will help generate introspection
information for builtins
 * PEP 442, improved semantics for object finalization
 * PEP 443, adding single-dispatch generic functions to the standard library
 * PEP 445, a new C API for implementing custom memory allocators
 * PEP 446, changing file descriptors to not be inherited by default
in subprocesses
 * PEP 450, a new statistics module
 * PEP 451, standardizing module metadata for Python's module import system
 * PEP 453, a bundled installer for the *pip* package manager
 * PEP 454, a new tracemalloc module for tracing Python memory allocations
 * PEP 456, a new hash algorithm for Python strings and binary data
 * PEP 3154, a new and improved protocol for pickled objects
 * PEP 3156, a new asyncio module, a new framework for asynchronous I/O


 To download Python 3.4.0 visit:

 http://www.python.org/download/releases/3.4.0/


 This is a production release.  Please report any issues you notice to:

  http://bugs.python.org/


 Enjoy!


 --
 Larry Hastings, Release Manager
 larry at hastings.org
 (on behalf of the entire python-dev team and 3.4's contributors)
 ___
 Python-Dev mailing list
 python-...@python.org
 https://mail.python.org/mailman/listinfo/python-dev
 Unsubscribe: https://mail.python.org/mailman/options/python-dev/
 rymg19%40gmail.com




-- 
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Explanation of list reference

2014-02-14 Thread Ryan Gonzalez

On 02/14/2014 12:08 PM, dave em wrote:

Hello,

Background:  My twelve y/o son and I are still working our way through Invent 
Your Own Computer Games with Python, 2nd Edition.
(We finished the Khan Academy Javascript Tutorials is the extent of our 
experience)

He is asking a question I am having trouble answering which is how a variable 
containing a value differs from a variable containing a list or more 
specifically a list reference.

I tried the to explain as best I can remember is that a variable is assigned to 
a specific memory location with a value inside of it.  Therefore, the variable 
is kind of self contained and if you change the variable, you change the value 
in that specific memory location.

However, when a variable contains a list reference, the memory location of the 
variable points to a separate memory location that stores the list.  It is also 
possible to have multiple variable that point to the memory location of the 
list reference.  And all of those variable can act upon the list reference.

Question:  Is my explanation correct?  If not please set me straight :)

And does anyone have an easier to digest explanation?

Thanks in advance,
Dave


You've got it backwards. In Python, /everything/ is a reference. The 
variable is just a pointer to the actual value. When you change a 
variable, you're just changing the memory location it points to.


Strings, ints, tuples, and floats behave differently because they're 
/immutable/. That means that they CANNOT modify themselves. That's why 
all of the string methods return a new string. It also means that, when 
you pass one two a function, a /copy/ of it is made and passed instead.


So, back to the original subject. Everything is a reference. When you do 
this:


|x = [1,2,3]
x = [4,5,6]
|

x now points to a different memory location. And, when you do this:

|x[0] =99000
x[0] =100
|

you're just changing the memory location that |x[0]| points to.



--
--Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple: It's 
becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was nul-terminated.

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


Re: How to begin

2014-02-14 Thread Ryan Gonzalez
Ack, I meant that, not the whole reference.


On Thu, Feb 13, 2014 at 6:57 PM, Ben Finney ben+pyt...@benfinney.id.auwrote:

 Ryan Gonzalez rym...@gmail.com writes:

  Read the Python reference. I know it's long, but it saves you trouble
  of accidentally reinventing the wheel.

 Hmm, the language reference is targeted at people *implementing* Python,
 not people who are learning to use it (though it is valuable for them
 also). It would be rather overwhelming for a beginner, IMO.

 You should instead be directing newcomers to beginner documentation,
 such as URL:https://wiki.python.org/moin/BeginnersGuide and especially
 the Python tutorial URL:http://docs.python.org/3/tutorial/.

 --
  \  If you get invited to your first orgy, don't just show up |
   `\ nude. That's a common mistake. You have to let nudity |
 _o__)  'happen.' --Jack Handey |
 Ben Finney

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




-- 
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to turn a package into something pip can install

2014-02-14 Thread Ryan Gonzalez
python setup.py sdist



On Fri, Feb 14, 2014 at 7:47 PM, Roy Smith r...@panix.com wrote:

 I want to use (https://github.com/timetric/python-metar).  Our
 deployment process more or less requires that it be installed via pip.
 We maintain our own cache of packages and install using:

 pip install --no-index --quiet --find-links packages --requirement
 requirements.txt

 What I can't figure out is what I need to do to go from a clone of the
 github repo to a tarball I can drop into our packages directory.  Is
 there some tutorial somewhere that explains this?
 --
 https://mail.python.org/mailman/listinfo/python-list




-- 
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to begin

2014-02-13 Thread Ryan Gonzalez

On 02/13/2014 07:18 AM, weixixiao wrote:

http://www.codecademy.com

I have learned the basic rules of Python in this website.

What should I do next?where to go?

I download the Pycharm the free version and I think I  dunno how to use it except a 
Hello world

Read the Python reference. I know it's long, but it saves you trouble of 
accidentally reinventing the wheel.


--
--Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple: It's 
becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was nul-terminated.

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


[ANN] PyExt 0.6 Released!

2014-02-09 Thread Ryan Gonzalez
PyExt is a set of nifty(and sometimes either overly hackish, overly
dangerous, or overly both) extensions to Python. It has things like a
switch statement, runtime module creation, function overloading(does NOT
work with class methods...yet), and more!

Links:
PyPI: https://pypi.python.org/pypi/pyext
GitHub: https://github.com/kirbyfan64/pyext

-- 
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue16991] Add OrderedDict written in C

2013-12-06 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


--
nosy: +Ryan.Gonzalez

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



[issue18834] Add Clang to distutils to build C/C++ extensions

2013-08-26 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


Added file: http://bugs.python.org/file31477/cygwinccompiler.diff

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



[issue18834] Add Clang to distutils to build C/C++ extensions

2013-08-26 Thread Ryan Gonzalez

Changes by Ryan Gonzalez rym...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file31476/ccompiler.diff

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



[issue18834] Add Clang to distutils to build C/C++ extensions

2013-08-25 Thread Ryan Gonzalez

New submission from Ryan Gonzalez:

A have created to patches(for ccompiler.py and cygwinccompiler.py) to add Clang 
as a compiler in distutils. The patches are here:

ccompiler.py: http://pastebin.com/yMGYys0P
cygwinccompiler.py: http://pastebin.com/a49qNP6n

I used the distutils version from Mercurial.

--
assignee: eric.araujo
components: Distutils
messages: 196160
nosy: Ryan.Gonzalez, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: Add Clang to distutils to build C/C++ extensions
type: enhancement

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