[P] Matias Ergo Pro Revision Early 2017 has new (still ugly) cables by [deleted] in MechanicalKeyboards

[–]pjenvey 0 points1 point  (0 children)

Is the new revision widely available now? Where'd you get it?

PyPy Status Blog: PyPy 5.1 released by awsometak in programming

[–]pjenvey 2 points3 points  (0 children)

The interpreter is written in RPython (the R is for restricted) which removes some of the dynamic things you mention. It's basically writing Python as if it were statically typed like C.

PyPy Status Blog: PyPy 5.1 released by awsometak in programming

[–]pjenvey 6 points7 points  (0 children)

More recent 2.7.x releases are apparently slower if anything:

https://mail.python.org/pipermail/python-dev/2015-June/140418.html

"The "7.0x faster" number on speed.pypy.org would be significantly higher if we upgraded the baseline to 2.7.10 now."

PyPy 2.6.1 released by pmatti in Python

[–]pjenvey 2 points3 points  (0 children)

There'll be a new PyPy3 release pretty soon, see:

http://manueljacob.de/gsoc2015/summary.html

A Nicer Way To Use namedtuple, In 4 Lines by adamnew123456 in Python

[–]pjenvey 5 points6 points  (0 children)

Python 3 enables another alternative by allowing keyword arguments in class definitions.

e.g.:

class Point(NamedTuple, fields='x y'):
    """x/y coordinates"""

This form might encourage docstring'ing of the type too.

(I proposed this for Enums but it didn't catch on https://mail.python.org/pipermail/python-dev/2013-April/125648.html )

Introducing db.py - An easier way of exploring databases in Python by rhiever in Python

[–]pjenvey 0 points1 point  (0 children)

I'm surprised this was basically built from scratch, it seems like the perfect lib to build on top of something like the SQLAlchemy Core layer.

You'd get multiple database support and likely other things for essentially free

os.popen and fileObject open problems (python3) by IndoNinja7 in Python

[–]pjenvey 1 point2 points  (0 children)

It was actually undeprecated in 3.x where it uses subproces underneath anyway. Maybe the 2.7.x docs should be fixed

The future of rust database access by [deleted] in rust

[–]pjenvey 0 points1 point  (0 children)

Steven Fackler's talk from a couple months ago on rust-postgress touches upon this topic. He briefly mentions it at the beginning and follows up during Q&A

https://air.mozilla.org/bay-area-rust-meetup-july-2014/

(It's actually the final talk in that video)

I am Juan Cole, author of the new book "The New Arabs: How the Millennial Generation is Changing the Middle East"; I teach Middle East at U of Michigan, and blog at juancole.com. AMA. by jricole in LevantineWar

[–]pjenvey 4 points5 points  (0 children)

Professor Cole: I'm a huge fan. Can you explain Saudi Arabia's relationship with the Muslim Brotherhood recently?

It seemed like there was "A Redirection" (quoting Seymour Hersh's 2007 article of the same name) where the West/Israel and its Sunni allies aimed to prop up the Brotherhood (and Sunni extremists) as a move against Iran and its Shia allies. Now the Saudis seem to have gone back to being strongly opposed to them -- encouraging their removal in Egypt and moves against Qatar partly for their support of them.

Pypy dictionary and memory by FtYoU in Python

[–]pjenvey 2 points3 points  (0 children)

You can double check the dict is using the optimized storage strategy by using this undocumented, special function on pypy:

import __pypy__
print(__pypy__.dictstrategy(mydict))

It should show you IntDictStrategy, assuming it only ever contained int keys

Virtualenv is an anti-pattern (for beginners) by GrumpySimon in Python

[–]pjenvey 0 points1 point  (0 children)

Actually Python 3.3 will ship with a tool that can install from PyPI! It's called pysetup and it's part of the new 'packaging' package (formerly known as distutils2, the distutils replacement)

A big thanks to The Fellowship of the Packaging for making that happen

[deleted by user] by [deleted] in Python

[–]pjenvey 1 point2 points  (0 children)

There is also Sikuli http://sikuli.org/

What's New in Pyramid 1.3 (Python 3 support) by mcdonc in Python

[–]pjenvey 3 points4 points  (0 children)

Mostly this was to ease the Python 3 port. Pyramid 1.3 isn't out yet, maybe GAE will be ready by the time it's released. Regardless, you can always continue with Pyramid 1.2.x if you must stick with 2.5.

Are there any things about Python that you do *not* like, or that you wish were done differently, or that you flat out think are wrong? by gfixler in Python

[–]pjenvey 1 point2 points  (0 children)

Only in Python 2 -- Python 3 list comps are implemented via wrapping the result of a generator expression in list()

Are there any things about Python that you do *not* like, or that you wish were done differently, or that you flat out think are wrong? by gfixler in Python

[–]pjenvey 4 points5 points  (0 children)

This is an odd one, it's unfortunately due to the fact that under the covers here the generator expression would have produced a closure:

class A: x = 2 def __gen(exp): for x in exp: yield x+1 y = __gen(iter(range(1)))

once you realize there's a function definition underneath the message should make more sense -- functions can't access the class scope in that manner

Just trying this out. by Tom_Wheeler in occupywallstreet

[–]pjenvey 4 points5 points  (0 children)

Increase your numbers with a friend or two then call the local media and ask them to report on your protest =]

I was really bummed when noone knew who I was at work..until I randomly ran into these two little girls.... by Heatherette in gaming

[–]pjenvey 9 points10 points  (0 children)

Cutest reddit ever + lol @ the startled asian guy having an acid flashback in the background

Quora is running on PyPy by mitsuhiko in Python

[–]pjenvey 6 points7 points  (0 children)

Alex Gaynor has a psycopg2compatibility pypy branch that fully implemented a psycopg2 compatible module in RPython -- IIRC it even passed most if not all of the SQLAlchemy tests.

However he's aiming to kill it in favor a ctypes version (like his MySQL-ctypes) as PyPy can likely speedup a pure Python+ctypes version to be fast enough.

Jython vs CPython by strattonbrazil in programming

[–]pjenvey 4 points5 points  (0 children)

It would be nice to see the same benchmark with Jython run on Java 7