[issue31947] names=None case is not handled by EnumMeta._create_ method

2018-05-15 Thread Ethan Furman
Ethan Furman added the comment: Thank you, Anentropic! -- assignee: -> ethan.furman resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33427] Dead link in "The Python Standard Library" page

2018-05-15 Thread Ned Deily
Ned Deily added the comment: Thanks for noticing and for providing the PR. The proposed change is a subset of the changes for Issue33503. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> use pypi.org instead of

Re: syntax oddities

2018-05-15 Thread Serhiy Storchaka
15.05.18 22:10, Tobiah пише: Why is it len(object) instead of object.len? Because the first form looked better to Guido van Rossum. Why is it getattr(object, item) rather then object.getattr(item)? How do you get the 'getattr' attribute then? --

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Łukasz Langa
Łukasz Langa added the comment: > It may be deprecated but the usage still exists. This is a glossary, not a > manifesto. Agreed. However, based on the current wording users will argue that Python documentation itself is stressing the lack of an intended purpose for

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-15 Thread Éric Araujo
Change by Éric Araujo : -- Removed message: https://bugs.python.org/msg316703 ___ Python tracker ___

[issue33069] Maintainer information discarded when writing PKG-INFO

2018-05-15 Thread Éric Araujo
Éric Araujo added the comment: See also #33388 -- ___ Python tracker ___ ___

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-15 Thread Éric Araujo
Change by Éric Araujo : -- Removed message: https://bugs.python.org/msg316702 ___ Python tracker ___

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-15 Thread Éric Araujo
Éric Araujo added the comment: I'm sorry I don't have the time to study this and make a judgment call. Bringing this to the release manager's attention. -- ___ Python tracker

Re: Extract data

2018-05-15 Thread Albert-Jan Roskam
On May 15, 2018 08:54, Steven D'Aprano wrote: On Tue, 15 May 2018 11:53:47 +0530, mahesh d wrote: > Hii. > > I have folder.in that folder some files .txt and some files .msg files. > . > My requirement is reading those file contents . Extract data in

syntax oddities

2018-05-15 Thread Tobiah
Why is it len(object) instead of object.len? Why is it getattr(object, item) rather then object.getattr(item)? etc... Thanks -- https://mail.python.org/mailman/listinfo/python-list

[issue33388] Support PEP 566 metadata in dist.py

2018-05-15 Thread Éric Araujo
Éric Araujo added the comment: In the early days, I think distutils was updated to support new metadata PEPs, and then it stopped. Now we have an ecosystem of tools that know how to work with metadata files created by distutils or setuptools; I worry that changing

[issue33525] os.spawnvpe() returns error code 127 instead of raising when env argument is invalid.

2018-05-15 Thread Mark Shannon
New submission from Mark Shannon : >>> os.spawnvpe(os.P_WAIT, "python2", ["python2", "-c", "print 'Hello >>> World!'"], {}) Hello World! 0 >>> os.spawnvpe(os.P_WAIT, "python2", ["python2", "-c", "print 'Hello >>> World!'"], None) 127 The latter should raise an exception of

[issue33519] Should MutableSequence provide .copy()?

2018-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: MutableSequence defines an interface. Adding a new method will break all classes that implemented this protocol but not the new method. And what should .copy() return? list subclasses return an exact list, bytearray subclasses

[issue33510] [logging] add JSON log formatter

2018-05-15 Thread Vinay Sajip
Vinay Sajip added the comment: > I just wanted to say thanks to Steve for at least taking the time to open the > issues to ask if we would consider accepting the proposed changes. Sure, and I probably come across as somewhat tetchy in my responses. That's just down

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-05-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +6547 ___ Python tracker ___ ___

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: Marc-Andre, if you agree the function can be removed in 3.8. This is tracked in https://bugs.python.org/issue28167 -- ___ Python tracker

[issue33503] use pypi.org instead of pypi.python.org

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6546 ___ Python tracker ___

[issue33503] use pypi.org instead of pypi.python.org

2018-05-15 Thread Ned Deily
New submission from Ned Deily : New changeset 19177fbd5d6d9b29ccc302d65f9d9417ece082ce by Ned Deily (Stéphane Wirtel) in branch 'master': bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814)

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: Marc-Andre, I opened a PR to remove platform.linux_distribution() in Python 3.8. How do you feel about this? -- nosy: +lemburg ___ Python tracker

[issue33465] test_from_import_missing_attr_has_name_and_so_path fails when select is a builtin instead of an extension

2018-05-15 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> barry ___ Python tracker ___ ___

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +6545 ___ Python tracker ___ ___

[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6544 ___ Python tracker ___

[issue33465] test_from_import_missing_attr_has_name_and_so_path fails when select is a builtin instead of an extension

2018-05-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 8709b236fc997077d24b4802320db287640f82e2 by Barry Warsaw in branch 'master': bpo-33465: Use an unlikely to be built-in C extension in a test (#6797)

[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset b056562860c227bad2e0ba7cd3130e115c007768 by Victor Stinner in branch 'master': bpo-33509: Fix _warnings for module_globals=None (#6833) https://github.com/python/cpython/commit/b056562860c227bad2e0ba7cd3130e115c007768

[issue33465] test_from_import_missing_attr_has_name_and_so_path fails when select is a builtin instead of an extension

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6543 ___ Python tracker ___

[issue33399] site.abs_paths should handle None __cached__ type

2018-05-15 Thread Brett Cannon
Brett Cannon added the comment: I didn't bother digging as I assume this was done for a reason. I left a request for changes on the PR to make the code has a stricter `try` block. -- ___ Python tracker

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6542 ___ Python tracker ___

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6541 stage: needs patch -> patch review ___ Python tracker ___

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 389a48ede92bf7965889d554d2cd17b50d6e3d86 by Terry Jan Reedy in branch 'master': bpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, would you review or at least comment on PR 6444? Your comments in msg316669 on #33479 suggest that you have the requisite knowledge. -- nosy: +markroseman ___ Python tracker

[issue33496] Accept Pathlib paths for sqlite file

2018-05-15 Thread John Reese
Change by John Reese : -- nosy: +jreese ___ Python tracker ___ ___ Python-bugs-list

[issue33510] [logging] add JSON log formatter

2018-05-15 Thread Brett Cannon
Brett Cannon added the comment: I just wanted to say thanks to Steve for at least taking the time to open the issues to ask if we would consider accepting the proposed changes. -- nosy: +brett.cannon ___ Python tracker

[issue33479] Document tkinter and threads

2018-05-15 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: @markroseman replied to python-dev since those perspectives are off topic for this ticket. -- ___ Python tracker

Re: What's the rationale for b"..." in this example?

2018-05-15 Thread Chris Angelico
On Wed, May 16, 2018 at 1:14 AM, Skip Montanaro wrote: > Consider this: > bytes("abc", encoding="utf-8") > b'abc' > > Looks reasonable. Then consider this: > str(bytes("abc", encoding="utf-8")) > "b'abc'" > > Why is the b'...' bit still there? I suppose it's

Re: What's the rationale for b"..." in this example?

2018-05-15 Thread Serhiy Storchaka
15.05.18 18:14, Skip Montanaro пише: Consider this: bytes("abc", encoding="utf-8") b'abc' Looks reasonable. Then consider this: str(bytes("abc", encoding="utf-8")) "b'abc'" Why is the b'...' bit still there? I suppose it's because I didn't tell it explicitly how to decode the bytes

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-15 Thread Miro Hrončok
Miro Hrončok added the comment: Sorry for mixing two things here, but I meant that I found out about this because of the private API use in gdb, however nothing from the change is documented on whatsnew at all. This bug was a reaction for

[issue33520] ast.Tuple has wrong col_offset

2018-05-15 Thread Łukasz Langa
Łukasz Langa added the comment: For comparison, a tuple without parentheses: >>> ast.parse("1,2,3").body[0].value.col_offset 0 -- ___ Python tracker

[issue33520] ast.Tuple has wrong col_offset

2018-05-15 Thread Łukasz Langa
Łukasz Langa added the comment: This is because technically parentheses aren't part of the tuple. They are just organizational and unnecessary for the tuple to be recognized by the parser. Those two are equivalent: >>> ast.parse("(1,2,3)").body[0].value.col_offset 1

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset e618e96581a711f2bc4f9bbcff6069bea15f0177 by Petr Viktorin in branch '3.6': bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6864) https://github.com/python/cpython/commit/e618e96581a711f2bc4f9bbcff6069bea15f0177

Re: What's the rationale for b"..." in this example?

2018-05-15 Thread Ben Finney
Skip Montanaro writes: > Consider this: > > >>> bytes("abc", encoding="utf-8") > b'abc' > > Looks reasonable. Then consider this: > > >>> str(bytes("abc", encoding="utf-8")) > "b'abc'" > > Why is the b'...' bit still there? Because the bytes object is asked for a text

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset f4fdb619ddb5b00178c79c2b90adc45075b5f17d by Petr Viktorin (Miss Islington (bot)) in branch '3.7': bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669) (GH-6862)

Re: object types, mutable or not?

2018-05-15 Thread Ben Finney
Mike McClain writes: > Many thanks to those teachers who responded. Thank you for asking the question in a way that allows the discussion :-) > I think I got it. > The variable is not the object just as the name is not the thing. Yes. The term “variable” is so

Re: Extract data from multiple text files

2018-05-15 Thread MRAB
On 2018-05-15 13:12, mahesh d wrote: import glob,os import errno path = 'C:/Users/A-7993\Desktop/task11/sample emails/' files = glob.glob(path) '''for name in files: print(str(name)) if name.endswith(".txt"): print(name)''' for file in os.listdir(path):

[issue33524] non-ascii characters in headers causes TypeError on email.policy.Policy.fold

2018-05-15 Thread R. David Murray
R. David Murray added the comment: Oh, interesting. I could argue that that's a missing feature in Python's slice handling. The value of text_space at that point is '+inf', and I obviously incorrectly assumed that slicing would treat that as if it were [:]. The

[issue19124] os.execv executes in background on Windows

2018-05-15 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-15 Thread Python
On Tue, May 15, 2018 at 12:52:42AM +, Steven D'Aprano wrote: > But you miss the point that even if = versus == errors are picked up by > code reviews or tests, they are still software bugs. Your *process* > (testing and reviews) picked up the bug before they went into production, > but *the

Simplest way to clobber/replace one populated directory with another?

2018-05-15 Thread Travis Griggs
I have a directory structure that might look something like: Data Current A B C Previous A X In as simple/quick a step as possible, I want to rename Current as Previous including the contents and wiping out the

[issue33524] non-ascii characters in headers causes TypeError on email.policy.Policy.fold

2018-05-15 Thread radical164
New submission from radical164 : Python 3.6.5 has trouble on folding email messages: Traceback (most recent call last): File "emailtest.py", line 7, in policy.fold("Subject", msg["Subject"]) File "/usr/lib/python3.6/email/policy.py", line 183, in fold return

Re: What's the rationale for b"..." in this example?

2018-05-15 Thread Ethan Furman
On 05/15/2018 08:14 AM, Skip Montanaro wrote: Consider this: bytes("abc", encoding="utf-8") b'abc' Looks reasonable. Then consider this: str(bytes("abc", encoding="utf-8")) "b'abc'" Why is the b'...' bit still there? Because you are printing a bytes object, not a str. I suppose it's

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-15 Thread Jason Fried
Change by Jason Fried : -- keywords: +patch pull_requests: +6540 stage: -> patch review ___ Python tracker ___

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-15 Thread STINNER Victor
STINNER Victor added the comment: Oh, I'm sorry, I misunderstood the issue. Changes in the *private* API must not be documented. In short, you must not use the private API :-) If you really have to use the private API, be prepared for incompatible changes in new Python

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-15 Thread Jason Fried
Change by Jason Fried : -- nosy: +lukasz.langa ___ Python tracker ___ ___

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-15 Thread Jason Fried
New submission from Jason Fried : At Facebook and Instagram we have large interconnected codebases without clear boundaries of ownership. As we move more and more services to utilize asyncio we are finding that once blocking (but fast) code paths, are now cropping up

[issue33522] Enable CI builds on Visual Studio Team Services

2018-05-15 Thread Steve Dower
New submission from Steve Dower : We have been provided with https://python.visualstudio.com/cpython and a measure of build machines to help us run continuous integration builds. The benefits are more reliable builds (especially Mac and Windows) and higher parallelism

Re: object types, mutable or not?

2018-05-15 Thread Rhodri James
On 15/05/18 15:29, Mike McClain wrote: On Sun, May 13, 2018 at 07:10:11PM -0400, Richard Damon wrote: On 5/13/18 4:02 PM, Mike McClain wrote: I'm new to Python and OOP. Python en 2.7.14 Documentation The Python Language Reference 3. Data model 3.1. Objects, values and types An object's type

[issue33498] pathlib.Path wants an rmtree method

2018-05-15 Thread Aaron Hall
Aaron Hall added the comment: > What is wrong with just using shutil.rmtree()? 0. It's awkward to import just for demonstrations. 1. It's harder for new pythonists to discover. 2. A method provides discoverability in an object's namespace. 3. rmtree is a method of paths

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-15 Thread Eric Snow
Eric Snow added the comment: Yeah, I added an extra parameter. Since it's an internal API I didn't think anything of it. -- ___ Python tracker

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Andrés Delfino
Andrés Delfino added the comment: Hopefully I address your comments with the last PR update. -- ___ Python tracker ___

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +6538 ___ Python tracker ___ ___

[issue33519] Should MutableSequence provide .copy()?

2018-05-15 Thread R. David Murray
R. David Murray added the comment: On the other hand, that section does reference the ABC directly, so I can see the point of your question. So I guess I'm not sure what the answer is...I don't think copy is an essential part of the ABC, but I'm not sure. --

[issue33519] Should MutableSequence provide .copy()?

2018-05-15 Thread R. David Murray
R. David Murray added the comment: The ABCs are different from the standard types provided by python itself. The former are a minimal subset of the methods provided by the latter. So I think the answer is neither. -- nosy: +r.david.murray

[issue33435] incorrect detection of information of some distributions

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: Python's deprecation process takes several years, but linux_distribution is actually nearing the end of it. It is planned to be removed. Your improvement is great, but at this point, it is more similar to adding a new feature to the

[issue24318] Better documentaiton of profile-opt (and release builds in general?)

2018-05-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +6537 ___ Python tracker ___ ___

[issue33521] Optimize asyncio.isfuture by providing C implementation

2018-05-15 Thread Jimmy Lai
New submission from Jimmy Lai : asyncio.isfuture called whenever ensure_future is called. Providing C implementation to make it fast. -- components: asyncio messages: 316670 nosy: asvetlov, jimmylai, yselivanov priority: normal severity: normal status: open title:

[issue33479] Document tkinter and threads

2018-05-15 Thread Mark Roseman
Mark Roseman added the comment: Hi Ivan, thanks for your detailed response. The approach you're suggesting ("Since the sole offender is their threading model, the way is to show them how it's defective and work towards improving it.") is in the end not something I think

[issue31947] names=None case is not handled by EnumMeta._create_ method

2018-05-15 Thread Ethan Furman
Ethan Furman added the comment: New changeset c50e5b1f1f2501f697aa52d9c9a440bdeced7006 by Ethan Furman (Miss Islington (bot)) in branch '3.6': bpo-31947: remove None default for names param in Enum._create_ GH-4288 (GH-6485)

[issue33451] Start pyc file lock the file

2018-05-15 Thread Jean-Louis Tamburini
Jean-Louis Tamburini added the comment: Same for python v3.6.5:f59c0932b4 -- Added file: https://bugs.python.org/file47592/dummy.py ___ Python tracker

[issue33520] ast.Tuple has wrong col_offset

2018-05-15 Thread Isaiah Peng
New submission from Isaiah Peng : The `col_offset` of the ast.Tuple node is set to the column offset of the first element, shown in code: >>> a = "{1,2,3}" >>> b = ast.parse(a).body[0] >>>

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6536 ___ Python tracker ___

What's the rationale for b"..." in this example?

2018-05-15 Thread Skip Montanaro
Consider this: >>> bytes("abc", encoding="utf-8") b'abc' Looks reasonable. Then consider this: >>> str(bytes("abc", encoding="utf-8")) "b'abc'" Why is the b'...' bit still there? I suppose it's because I didn't tell it explicitly how to decode the bytes object, as when I do, I get the expected

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 9eb40bc38de83e6ad3fad1931bba1cd36ae88c24 by Petr Viktorin (Matthias Bussonnier) in branch 'master': bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669)

[issue33471] string format with 'n' failling with french locales

2018-05-15 Thread Licht Takeuchi
Change by Licht Takeuchi : -- keywords: +patch pull_requests: +6535 stage: -> patch review ___ Python tracker ___

[issue33519] Should MutableSequence provide .copy()?

2018-05-15 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : https://docs.python.org/3.7/library/stdtypes.html#mutable-sequence-types lists .copy() among the methods provided by mutable sequences. However, MutableSequence does not actually define .copy():

[issue33435] incorrect detection of information of some distributions

2018-05-15 Thread Andrey Bychkov
Andrey Bychkov added the comment: I think that it would be good to update linux_distribution, the discussion has been going on for a long time, but still in some cases the information is not determined correctly. It seems to me that the methods used are not entirely

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-05-15 Thread Paul Ganssle
Paul Ganssle added the comment: I don't really agree with these changes to the documentation. The format that paulc identifies is actually an RFC 3339 datetime, which is a subset of ISO 8601, to the extent that you consider the fact that "we're using RFC 3339" is "mutual

Re: object types, mutable or not?

2018-05-15 Thread Mike McClain
On Sun, May 13, 2018 at 07:10:11PM -0400, Richard Damon wrote: > On 5/13/18 4:02 PM, Mike McClain wrote: > > I'm new to Python and OOP. > > Python en 2.7.14 Documentation The Python Language Reference > > 3. Data model > > 3.1. Objects, values and types > > An object's type is also unchangeable.

[issue33316] Windows: PyThread_release_lock always fails

2018-05-15 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > So I would drop the pretense and make these fns void. Scratch that. In POSIX, they are #define'd as pthread fns which do return an error code. So, nothing more to do here. -- ___ Python

Re: Read data from .msg all files

2018-05-15 Thread Grant Edwards
On 2018-05-15, mahesh d wrote: > import glob _Please_ stop creating new threads for this question. I think this is the fifth thread you've started for what appears to be a single question. -- Grant Edwards grant.b.edwardsYow! Like I always say

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: I talked to Ned, the release manager for 3.7. It's too late to remove this in 3.7, so I'll update the docs and make the deprecation notice more current/useful, and link to the distro library. --

[issue33435] incorrect detection of information of some distributions

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: Oh, and there's a long discussion on the deprecation here: https://bugs.python.org/issue1322 -- ___ Python tracker

[issue33435] incorrect detection of information of some distributions

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: linux_distribution is deprecated since 3.5, so I don't think it makes sense to modify it. (see https://docs.python.org/3/library/platform.html#platform.linux_distribution) Can you use a third-party package instead, e.g. distro?

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-05-15 Thread Eric Snow
Eric Snow added the comment: New changeset 6bd0c476c58ca0046969f70dc2a4e4dfb3268062 by Eric Snow in branch '3.7': bpo-32604: Remove xid registry. (#6813) https://github.com/python/cpython/commit/6bd0c476c58ca0046969f70dc2a4e4dfb3268062 --

[issue33505] Optimize asyncio.ensure_future by reordering if conditions

2018-05-15 Thread Jimmy Lai
Jimmy Lai added the comment: Benchmark result: ./python.exe -m perf compare_to ensure_future_original.json ensure_future_optimized.json Mean +- std dev: [ensure_future_original] 57.4 ms +- 4.0 ms -> [ensure_future_optimized] 49.3 ms +- 4.5 ms: 1.17x faster (-14%)

[issue29640] _PyThreadState_Init and fork race leads to inconsistent key list

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: Not immediately, but it is on my TODO list. If anyone wants to tackle it in the mean time, I'd be happy to answer any questions -- ___ Python tracker

[issue33517] dataclasses: Add the field type to Field repr

2018-05-15 Thread Eric V. Smith
Change by Eric V. Smith : -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33198] Build on Linux with --enable-optimizations fails

2018-05-15 Thread Florian Schulze
Florian Schulze added the comment: Due to the TLS changes on pypi.org the buildout I used before doesn't work anymore on Travis and I have now switched to pyenv. If I ever stumble over it again, I will open a new bug with more information. -- stage: ->

[issue33518] Add PEP to glossary

2018-05-15 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +6534 stage: -> patch review ___ Python tracker ___

[issue33518] Add PEP to glossary

2018-05-15 Thread Andrés Delfino
New submission from Andrés Delfino : I think PEP should be mentioned in the glossary, as it is an important piece of how Python is developed and learned. The PR's wording is taken from PEP1, mostly verbatim. -- assignee: docs@python components: Documentation

[issue33517] dataclasses: Add the field type to Field repr

2018-05-15 Thread miss-islington
miss-islington added the comment: New changeset 5c7e079158db869c9ede1ac9b5b9735091d3ffb6 by Miss Islington (bot) in branch '3.7': bpo-33517: dataclasses: Add the field type to Field repr (GH-6858)

Re: Pandas cat.categories.isin list, is this a bug?

2018-05-15 Thread Matt Ruffalo
On 2018-05-15 06:23, Zoran Ljubišić wrote: > Matt, > > thanks for the info about pydata mailing group. I didn't know it exists. > Because comp.lang.python is not appropriate group for this question, I > will continue our conversation on gmail. > > I have put len(df.CRM_assetID.cat >

Re: Extract data from multiple text files

2018-05-15 Thread Rhodri James
On 15/05/18 13:12, mahesh d wrote: import glob,os import errno path = 'C:/Users/A-7993\Desktop/task11/sample emails/' files = glob.glob(path) for file in os.listdir(path): print(file) if file.endswith(".txt"): print(os.path.join(path, file)) print(file)

[issue33517] dataclasses: Add the field type to Field repr

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6533 ___ Python tracker ___

[issue33517] dataclasses: Add the field type to Field repr

2018-05-15 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 01abc6ec3a61769c55ee86834a432fb97801d28f by Eric V. Smith in branch 'master': bpo-33517: dataclasses: Add the field type to Field repr (GH-6858) https://github.com/python/cpython/commit/01abc6ec3a61769c55ee86834a432fb97801d28f

Re: Uploading on PyPI fail (solved)

2018-05-15 Thread Vincent Vande Vyvre
Le 15/05/18 à 12:05, Vincent Vande Vyvre a écrit : Hi, Trying to upgrade a package on PyPI, I get this error: $ python3 setup.py register sdist upload ... Submitting dist/py3exiv2-0.3.0.tar.gz to https://pypi.python.org/pypi Upload failed (308): Redirect to Primary Domain error: Upload failed

[issue29640] _PyThreadState_Init and fork race leads to inconsistent key list

2018-05-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Petr, Do you continue this patch/issue? Thank you -- nosy: +matrixise ___ Python tracker ___

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Yes, local annotations are important and should be mentioned (maybe even with an example). -- ___ Python tracker

Uploading on PyPI fail

2018-05-15 Thread Vincent Vande Vyvre
Hi, Trying to upgrade a package on PyPI, I get this error: $ python3 setup.py register sdist upload ... Submitting dist/py3exiv2-0.3.0.tar.gz to https://pypi.python.org/pypi Upload failed (308): Redirect to Primary Domain error: Upload failed (308): Redirect to Primary Domain I know the site

[issue32534] Speed-up list.insert: use memmove()

2018-05-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, just a small reminder for this issue because I was reviewing the PR. what is the status? Thanks -- nosy: +matrixise ___ Python tracker

Read data from .msg all files

2018-05-15 Thread mahesh d
import glob import win32com.client files = glob.glob('C:/Users/A-7993/Desktop/task11/sample emails/*.msg') for file in files: print(file) with open(file) as f: msg=f.read() print(msg) outlook =

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Guido van Rossum
Guido van Rossum added the comment: I actually intended to say that annotations continue to be usable for non-typing purposes (beyond ClassVar/InitVar). It may be deprecated but the usage still exists. This is a glossary, not a manifesto. I'm fine with adding that the main

<    1   2   3   >