[issue43532] Add keyword-only fields to dataclasses
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker <https://bugs.python.org/issue43532> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29687] smtplib does not support proxy
Ryan Hiebert added the comment: Thank you, Christian. It sounds like you believe that we should view the `_get_socket` method as a public interface? That at least makes it possible to use a proxy socket through an appropriate mechanism, which solves my use-case. -- ___ Python tracker <https://bugs.python.org/issue29687> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29687] smtplib does not support proxy
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker <https://bugs.python.org/issue29687> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33129] Add kwarg-only option to dataclass
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker <https://bugs.python.org/issue33129> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker <https://bugs.python.org/issue30491> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31387] asyncio should make it easy to enable cooperative SIGINT handling
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker <https://bugs.python.org/issue31387> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker <https://bugs.python.org/issue29988> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11339] annotation for class being defined
Changes by Ryan Hiebert <r...@ryanhiebert.com>: -- nosy: +ryanhiebert ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11339> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24941] Add classproperty as builtin class
Changes by Ryan Hiebert r...@ryanhiebert.com: -- nosy: +ryanhiebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24941 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: None in string = TypeError?
On Mon, Jun 9, 2014 at 10:34 AM, Roy Smith r...@panix.com wrote: We noticed recently that: None in 'foo' raises (at least in Python 2.7) TypeError: 'in string' requires string as left operand, not NoneType This is surprising. It's the same in 3.4, and I agree that it's surprising, at least to me . I don't know the story or implementation behind it, so I'll leave that to others. -- https://mail.python.org/mailman/listinfo/python-list
Re: Unicode and Python - how often do you index strings?
2014-06-05 13:42 GMT-05:00 Johannes Bauer dfnsonfsdu...@gmx.de: On 05.06.2014 20:16, Paul Rubin wrote: Johannes Bauer dfnsonfsdu...@gmx.de writes: line = line[:-1] Which truncates the trailing \n of a textfile line. use line.rstrip() for that. rstrip has different functionality than what I'm doing. How so? I was using line=line[:-1] for removing the trailing newline, and just replaced it with rstrip('\n'). What are you doing differently? -- https://mail.python.org/mailman/listinfo/python-list
Re: Unicode and Python - how often do you index strings?
On Thu, Jun 5, 2014 at 2:59 PM, Chris Angelico ros...@gmail.com wrote: On Fri, Jun 6, 2014 at 4:52 AM, Ryan Hiebert r...@ryanhiebert.com wrote: 2014-06-05 13:42 GMT-05:00 Johannes Bauer dfnsonfsdu...@gmx.de: On 05.06.2014 20:16, Paul Rubin wrote: Johannes Bauer dfnsonfsdu...@gmx.de writes: line = line[:-1] Which truncates the trailing \n of a textfile line. use line.rstrip() for that. rstrip has different functionality than what I'm doing. How so? I was using line=line[:-1] for removing the trailing newline, and just replaced it with rstrip('\n'). What are you doing differently? line = Hello,\nworld!\n\n line[:-1] 'Hello,\nworld!\n' line.rstrip('\n') 'Hello,\nworld!' If it's guaranteed to end with exactly one newline, then and only then will they be identical. OK, that's not an issue for my case, and additionally I'm using the open(_, 'U') file iterable, so I shouldn't see multiple trailing newlines anyway. -- https://mail.python.org/mailman/listinfo/python-list
Re: Off-topic circumnavigating the earth in a mile or less [was Re: Significant digits in a float?]
On Wed, Apr 30, 2014 at 9:02 AM, Ethan Furman et...@stoneleaf.us wrote: On 04/30/2014 06:14 AM, Ethan Furman wrote: On 04/29/2014 03:51 PM, Chris Angelico wrote: On Wed, Apr 30, 2014 at 8:42 AM, emile em...@fenx.com wrote: On 04/29/2014 01:16 PM, Adam Funk wrote: A man pitches his tent, walks 1 km south, walks 1 km east, kills a bear, walks 1 km north, where he's back at his tent. What color is the bear? ;-) From how many locations on Earth can someone walk one mile south, one mile east, and one mile north and end up at their starting point? Any point where the mile east takes you an exact number of times around the globe. So, anywhere exactly one mile north of that, which is a number of circles not far from the south pole. It is my contention, completely unbacked by actual research, that if you find such a spot (heading a mile east takes you an integral number of times around the pole), that there is not enough Earth left to walk a mile north so that you could then turn-around a walk a mile south to get back to such a location. Wow. It's amazing how writing something down, wrongly (I originally had north and south reversed), correcting it, letting some time pass (enough to post the message so one can be properly embarrassed ;), and then rereading it later can make something so much clearer! Or maybe it was the morning caffeine. Hmmm. At any rate, I withdraw my contention, it is clear to me now (at least until the caffeine wears off). Sure, but that still leaves the nagging problem that there aren't any Polar Bears in Antarctica (as someone else pointed out). This man must have brought a bear with him. Perhaps the story is something like this: A man near the south pole takes his dear friend and pet bear for a walk. He'd gone to great lengths to bring his pet bear with him to his Antarctic expedition, and his bear is his best friend, and sole companion, save for the constant, biting cold. They walk toward the pole, then begin their excursion eastward, encircling the pole. As the man grows weary, and decides to head back, a legion of penguins collaborate with a host of Weddell seals to be rid of their uninvited guests. It isn't clear what the man did to cause those seals to rise against him, but it must have been some dire feat, for Weddell seals are not easily frightened. After a fierce battle, the man and his bear (well, mostly the bear) manage to defend themselves against the attacking throng. However, the new peace realizes a terrible fate: his bear is mortally wounded, and is suffering immensely. The man, loving his friend dearly, shoots his solitary compatriot, and weeps as he watches the blood turn his dear bear's fur an ominous red. Overcome with grief, he heads back north to his tent to mourn his loss, and to arrange his trip north to the populated tropics, where he hopes to forget his troubles, and the place where he lost his closet pal, a bear. -- https://mail.python.org/mailman/listinfo/python-list
Re: Significant digits in a float?
On Tue, Apr 29, 2014 at 3:16 PM, Adam Funk a24...@ducksburg.com wrote: A man pitches his tent, walks 1 km south, walks 1 km east, kills a bear, walks 1 km north, where he's back at his tent. What color is the bear? ;-) Skin or Fur? -- https://mail.python.org/mailman/listinfo/python-list
Re: Installing PyGame?
On Thu, Apr 24, 2014 at 9:38 PM, Ned Deily n...@acm.org wrote: In article brtt0jf10j...@mid.individual.net, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: My advice would be to steer clear of things like Fink and MacPorts and do things the native MacOSX way wherever possible. That means using a framework installation of Python and framework versions of the various libraries that PyGame uses. FYI, MacPorts Pythons are framework installations. And I disagree that installing a bunch of disparate software from various sources via binary installers and/or source is to be preferred to a modern third-party package manager on OS X like MacPorts or Homebrew. That's just setting yourself up for a long-term maintenance headache. What could be easier than: sudo port install py27-game I'd love to hear more about Greg's take on MacPorts. I've chosen to use MacPorts because it keeps things separate, because when things get hosed using the system libraries, I don't have to erase my whole system to get back to a vanilla OS X install. Unfortunately, it seems like the differences in which libraries are used, what options are enabled at library build time, etc, make it difficult to ensure that things always work when you try to use the stuff built-in to the system, and untangling the Homebrew mess can be painful. -- https://mail.python.org/mailman/listinfo/python-list
Re: Why Python 3?
If you are starting a new project, I'd highly encourage you to use Python 3. It is a stable, well supported, and beautiful language, and gives you the full power of the innovation that is current in the Python world. Python 2 is still well supported (for a while to come), but you won't have the same access to new features and ideas that you would on Python 3. The only reason that I'd still be on Python 2 is if I absolutely had to use a library that for some reason is not yet working on Python 3. Even then, I'd work hard to try and write it in Python 3 style Python 2, because I'd want to be on Python 3 as soon as possible. On Fri, Apr 18, 2014 at 10:28 PM, Anthony Papillion papill...@gmail.comwrote: Hello Everyone, So I've been working with Python for a while and I'm starting to take on more and more serious projects with it. I've been reading a lot about Python 2 vs Python 3 and the community kind of seems split on which should be used. Some say 'Python 3 is the future, use it for everything now' and other say 'Python 3 is the future but you can't do everything in it now so use Python 2'. What is the general feel of /this/ community? I'm about to start a large scale Python project. Should it be done in 2 or 3? What are the benefits, aside from the 'it's the future' argument? Thanks, Anthony -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list