[issue30800] zlib.compressobj took too much memory on window

2017-06-28 Thread dennis
New submission from dennis: I'm working on a MMORPG Game server, and using the 32bit window Python(Python2.7.9 and Python3.6.0). And i create a zlib.compressobj for every connection. when the connection reach about 7500, the program raise an MemoryError exception. The Program only took me

[issue15862] IDLE: startup problem when HOME does not exist

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: #8231, msg297255 suggests some refactoring to make this sort of thing testable without crippling a developer system. -- assignee: -> terry.reedy nosy: -BreamoreBoy stage: -> test needed versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4,

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-28 Thread Nathaniel Smith
Nathaniel Smith added the comment: > I like it because it categorically eliminates the "tracing or not?" global > state dependence when it comes to manipulation of the return value of > locals() - manipulating that will either always affect the original execution > namespace immediately

[issue8231] Unable to run IDLE without write-access to home directory

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Problems with patching 2.7 are no longer relevant. To test, we should refactor config so that the attempt to find and access $HOME and .idlerc are isolated in a function that can be mocked to simulate various problems. def get_rc(): """Return a directory

[issue30799] Improved test coverage Lib/_osx_support.py 99%

2017-06-28 Thread chexex
Changes by chexex : -- pull_requests: +2539 ___ Python tracker ___ ___

[issue30799] Improved test coverage Lib/_osx_support.py 99%

2017-06-28 Thread chexex
Changes by chexex : -- components: Tests nosy: chexex priority: normal severity: normal status: open title: Improved test coverage Lib/_osx_support.py 99% versions: Python 3.7 ___ Python tracker

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal's comments from Rietveld review (see msg220391); 529: Does this have to be a separate, new Tk instance? Wouldn't a temporary widget under the current Tk be just as good? Creating a new Tk instance could take a relatively large amount of time time and

[issue6691] Support for nested classes and function for pyclbr

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking at the code, there are several references to nested classes, implying that they should already work. So I might want to claim this is a behavior issue, contrary to my adding 'enhancement' before. But moot point until patch is reviewed and otherwise

Re: Combining 2 data series into one

2017-06-28 Thread Bhaskar Dhariyal
On Wednesday, 28 June 2017 23:43:57 UTC+5:30, Albert-Jan Roskam wrote: > (sorry for top posting) > Yes, I'd try pd.concat([df1, df2]). > Or this: > df['both_names'] = df.apply(lambda row: row.name + ' ' + row.surname, axis=1) > > From: Python-list

[issue30422] Add roadmap.txt section to idlelib

2017-06-28 Thread KunYu Chen
KunYu Chen added the comment: Thanks Terry, I'll focus on the current tests. Will catch up with you guys later. :D -- ___ Python tracker ___

[issue30780] IDLE: configdialog - add tests for ConfigDialog GUI.

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Proceed as you want. Keep in mind that the interface to the changes structure will be changed by #30779. The testing logic should not be, however. -- ___ Python tracker

[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Let's do it 'right'. Step 1: Write class design in the form of a class with methods with APIs and docstrings as the bodies. class Changes: """Manage a user's proposed configuation option changes. Changes are either cancelled or applied in a single

[issue30422] Add roadmap.txt section to idlelib

2017-06-28 Thread Louie Lu
Louie Lu added the comment: Terry: I'm on idle-dev, the bi-weekly sprint I said isn't only one time, I mean about each bi-weekly. I'm ok with concentrate on multiple improvements of one component. -- ___ Python tracker

[issue30780] IDLE: configdialog - add tests for ConfigDialog GUI.

2017-06-28 Thread Louie Lu
Louie Lu added the comment: I'm trying to add the test on configdialog, currently working on KeysTest. -- nosy: +louielu ___ Python tracker ___

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2017-06-28 Thread zachrahan
zachrahan added the comment: This one just bit me too. It seems that if JSON serialization accepts non-string dict keys, it should make sure to accept them in all circumstances. Currently, there is an error *only* with mixed-type dicts, *only* when sort_keys=True. In addition, the error

[issue30792] Add contextlib.convert_exception manager

2017-06-28 Thread Nick Coghlan
Nick Coghlan added the comment: Also clarifying a point that came up later in the thread [1]: one of the motivating examples that came up in the thread was the idea of using this to catch AttributeError exceptions in property and __getattr__ implementations and convert them to RuntimeError.

[issue30798] Document that subprocess.Popen does not set PWD

2017-06-28 Thread James Lin
New submission from James Lin: Even though http://bugs.python.org/issue4057 was rejected (which I think is fair), I think it would be worth mentioning something about PWD in the Python docs for subprocess.Popen's cwd parameter (and possibly for os.chdir): 1. It's pretty common for people to

[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: This request doesn't make sense to me. Decorators are an implementation technique and not really a topic unto themselves. FWIW, Guido recently rejected a request to create a listing of all the command line tools. Python docs are primarily organized by

Re: Create a list of dates for same day of week in a year

2017-06-28 Thread Michael F. Stemper
On 2017-06-28 18:30, Sayth Renshaw wrote: Thoughts or examples? dateutil.rrule is what you may use e.g. In [44]: days[:5], days[-5:] Out[44]: ([datetime.datetime(2017, 6, 28, 23, 58, 11), datetime.datetime(2017, 7, 3, 23, 58, 11), datetime.datetime(2017, 7, 5, 23, 58, 11),

Re: A Good Tutorial on Python Decorators

2017-06-28 Thread Marko Rauhamaa
Steve D'Aprano : > When you run Javascript in your browser, you allow anonymous, > untrusted third-parties to run code on your PC. Yes. I'm running NoScript on my browser, but I believe JavaScript (or equivalent) is the way forward. I *love* my Turing Tarpit. Aus

Re: Create a list of dates for same day of week in a year

2017-06-28 Thread Sayth Renshaw
> > Thoughts or examples? > > > dateutil.rrule is what you may use e.g. > > > In [38]: from dateutil import rrule > > In [39]: from datetime import date

[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-28 Thread Nathaniel Smith
Nathaniel Smith added the comment: Sorry, I meant bpo-21895. -- ___ Python tracker ___ ___ Python-bugs-list

[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-28 Thread Nathaniel Smith
Nathaniel Smith added the comment: In terms of general design cleanliness, I think it would be better to make `interrupt_main` work reliably than to have IDLE add workarounds for its unreliability. AFAICT the ideal, minimal redundancy solution would be: - interrupt_main just calls

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-06-28 Thread Xavier G. Domingo
Changes by Xavier G. Domingo : -- nosy: +xgdomingo ___ Python tracker ___ ___

[issue30793] Parsing error on f-string-expressions containing strings with backslash

2017-06-28 Thread Eric V. Smith
Eric V. Smith added the comment: The reason that this was done was to give us flexibility in deciding how the backslashes should be interpreted in the future. I announced it on python-dev here: https://mail.python.org/pipermail/python-dev/2016-August/145979.html. That message contains a link

RE: Error

2017-06-28 Thread justin walters
On Jun 28, 2017 1:47 PM, "Ken R. Lewis" wrote: Hello! I am running a script, and it comes up with an error. What can I do to make the error be corrected? I am thinking it is something with the data, possibly. I have only had Python for a few days, so maybe I

Re: How to build a simple neural network in 9 lines of Python code

2017-06-28 Thread sohcahtoa82
On Tuesday, June 27, 2017 at 12:31:49 PM UTC-7, John Ladasky wrote: > On Tuesday, June 27, 2017 at 9:24:07 AM UTC-7, Sam Chats wrote: > > https://medium.com/technology-invention-and-more/how-to-build-a-simple-neural-network-in-9-lines-of-python-code-cc8f23647ca1 > > OK, that's cheating a bit,

[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: koobs, perhaps you would like to give me temporary shell access to that machine? -- ___ Python tracker ___

[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-28 Thread Antoine Pitrou
New submission from Antoine Pitrou: The test added for issue #30703 crashes on some Unix buildbots (FreeBSD 9.x, OS X Tiger, AIX). Example here: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/275/steps/test/logs/stdio As noted in the PR for that issue, some systems

[issue30797] ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]

2017-06-28 Thread Segev Finer
New submission from Segev Finer: This is caused by _GNU_SOURCE being defined here: https://github.com/python/cpython/blob/c08177a1ccad2ed0d50898c2731b518c631aed14/configure.ac#L124, But also getting defined by AC_USE_SYSTEM_EXTENSIONS

[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list

Re: A Good Tutorial on Python Decorators

2017-06-28 Thread D'Arcy Cain
On 06/28/17 17:59, Steve D'Aprano wrote: On Thu, 29 Jun 2017 01:56 am, Peter Pearson wrote: (Blushing) Thanks. Life is getting difficult for us JavaScript paranoids. Its not paranoia if they're really out to get you.

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset 7526cadd64566725ffc56071a7208828a46ddbd8 by Steve Dower (Segev Finer) in branch 'master': bpo-30726: Also fix pyexpat.vcxproj (#2375) https://github.com/python/cpython/commit/7526cadd64566725ffc56071a7208828a46ddbd8 --

Re: Syntax error for simple script

2017-06-28 Thread Erik
On 28/06/17 03:46, Steve D'Aprano wrote: All of this is irrelevant if beginners don't read the error message. "if". End-users don't read error messages, no matter how well written they are, Reference? and every word you add probably cuts the number of people reading it by half.

Re: A Good Tutorial on Python Decorators

2017-06-28 Thread Steve D'Aprano
On Thu, 29 Jun 2017 01:56 am, Peter Pearson wrote: > (Blushing) Thanks. Life is getting difficult for us JavaScript paranoids. Its not paranoia if they're really out to get you. https://www.cnet.com/news/javascript-opens-doors-to-browser-based-attacks/

[issue21998] asyncio: support fork

2017-06-28 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue21998] asyncio: support fork

2017-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: > I'm not sure why it would be debug-only. You usually don't fork() often, and > you don't have many event loops around, so the feature sounds cheap. I think you're right. If it's low or zero overhead we can have the check always enabled. --

[issue30703] Non-reentrant signal handler (test_multiprocessing_forkserver hangs)

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset c08177a1ccad2ed0d50898c2731b518c631aed14 by Antoine Pitrou in branch 'master': bpo-30703: Improve signal delivery (#2415) https://github.com/python/cpython/commit/c08177a1ccad2ed0d50898c2731b518c631aed14 --

[issue21998] asyncio: support fork

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure why it would be debug-only. You usually don't fork() often, and you don't have many event loops around, so the feature sounds cheap. In any case, I'm not directly affected by this issue, I'm merely suggesting options. --

[issue21998] asyncio: support fork

2017-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: > A compromise for the short term would be to detect fork in debug mode and raise an exception, and explain how to fix such bug. What do you think? I'd prefer to fix it properly in 3.7. -- ___ Python tracker

[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2017-06-28 Thread Steve Dower
Steve Dower added the comment: There is only one deprecation warning left in current builds: ..\Modules\expat\xmlparse.c(796): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online

[issue21998] asyncio: support fork

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: A compromise for the short term would be to detect fork in debug mode and raise an exception, and explain how to fix such bug. What do you think? -- ___ Python tracker

[issue22087] asyncio: support multiprocessing (support fork)

2017-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: > It seems there's a check in the top-level get_event_loop() function but not > in the DefaultEventLoopPolicy.get_event_loop() method. Yes, as users aren't supposed to work with policies directly. > (also: wow, that stuff is complicated) Yep. Please assign

[issue27546] Integrate tkinter and asyncio (and async)

2017-06-28 Thread Tamás Bajusz
Changes by Tamás Bajusz : -- nosy: +gbtami ___ Python tracker ___ ___ Python-bugs-list

[issue21998] asyncio: support fork

2017-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: > Possible answer: have a global WeakSet of event loops. In the child fork > handler, iterate over all event loops and "break" those that have already > been started. We can do this but only in debug mode. -- ___

[issue22087] asyncio: support multiprocessing (support fork)

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems there's a check in the top-level get_event_loop() function but not in the DefaultEventLoopPolicy.get_event_loop() method. (also: wow, that stuff is complicated) -- ___ Python tracker

[issue22087] asyncio: support multiprocessing (support fork)

2017-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: > The approach in Dan's patches looks sane to me and I agree the issue needs > fixing. Dan, would you like to submit a PR for this? We're using Github for > patch submissions now. Mind that the patch is very outdated and we already have these checks in

[issue1495754] os.listdir(): inconsistent behavior with trailing spaces

2017-06-28 Thread Eric Fahlgren
Eric Fahlgren added the comment: Would it be appropriate to make a comment about this Windows bug in both os.stat and os.path.exists documentation? I just stumbled upon it independently (both Win7 and 10, both Py 2.7 and 3.6) with nearly the same incantation that Kenneth reported over 10

Re: Error

2017-06-28 Thread Nathan Ernst
Not sure if this is the cause of your error, but the value for the variable "user" is misspelled according to the preceding comment. "admim" vs "admin" (not the M instead of an N at the end). Regards, Nathan On Wed, Jun 28, 2017 at 3:08 PM, Ken R. Lewis wrote: >

[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2017-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset 9f3bdcb643623e07497af2fc35f0496c2302f1be by Steve Dower (Segev Finer) in branch 'master': bpo-23451: Fix socket deprecation warnings in socketmodule.c (#2318) https://github.com/python/cpython/commit/9f3bdcb643623e07497af2fc35f0496c2302f1be

[issue29293] Missing parameter "n" on multiprocessing.Condition.notify()

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___

Re: DJANGO cannot import name _compare_digest

2017-06-28 Thread Xristos Xristoou
i dont have 'operator.py' in my system only 'test_operator.py' and 'fix_operator.py' if : import sys print sys.modules['operator'] i get this : that say me how to rename it? -- https://mail.python.org/mailman/listinfo/python-list

RE: Error

2017-06-28 Thread Ken R. Lewis
Hello! I am running a script, and it comes up with an error. What can I do to make the error be corrected? I am thinking it is something with the data, possibly. I have only had Python for a few days, so maybe I copied some codes wrong. Also, does Python have a way to save files

[issue29293] Missing parameter "n" on multiprocessing.Condition.notify()

2017-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2538 ___ Python tracker ___ ___

[issue30795] OS X failures in test_site

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: Yeah, it's a known issue, see: http://bugs.python.org/issue29585#msg297194 -- ___ Python tracker ___

Re: DJANGO cannot import name _compare_digest

2017-06-28 Thread Thomas Jollans
On 28/06/17 21:52, Xristos Xristoou wrote: > > > hello i have python 7.13 > > DJANGO 1.11.2 version > > django-crypto 0.20 version on windows 10. > > i want to create a DJANGO app but anytime to try to migrate i take > > that error : > > from django.utils.crypto import get_random_string

[issue22087] asyncio: support multiprocessing (support fork)

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: The approach in Dan's patches looks sane to me and I agree the issue needs fixing. Dan, would you like to submit a PR for this? We're using Github for patch submissions now. -- nosy: +pitrou stage: -> needs patch

[issue1230540] sys.excepthook doesn't work in threads

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apparently the `traceback` module has been used from the start (since changset 7f5013a9a9678e86bff00c97f98e7a92c515b94d) to print the exception and not sys.excepthook. I presume this is an oversight, as I don't see any reason to prefer `traceback` here.

[issue26253] tarfile in stream mode always set zlib compression level to 9

2017-06-28 Thread wim glenn
wim glenn added the comment: This issue also got me. compresslevel kwarg works fine for tarfile.open(..., mode='w:gz') but raises exception for tarfile.open(..., mode='w|gz') I want to use stream compression, and compresslevel=1 is more than enough for my use case, the default of 9 is way

[issue21998] asyncio: support fork

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Possible answer: have a global WeakSet of event loops. In the child fork handler, iterate over all event loops and "break" those that have already been started. -- ___ Python tracker

[issue21998] asyncio: support fork

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: > The most reasonable IMHO would be for it to mark the event loop "broken" (or > closed?) in the child, to forbid any further use. Hum, the problem is that Python cannot guess if the event loop will be used in the child or the parent process :-/ The problem

[issue30795] OS X failures in test_site

2017-06-28 Thread Antoine Pitrou
New submission from Antoine Pitrou: It seems there is a sporadic failure on OS X (oops, sorry, I mean "macOS"): https://travis-ci.org/python/cpython/jobs/248079407#L3403 == FAIL: test_getsitepackages

[issue30794] Add multiprocessing.Process.kill()

2017-06-28 Thread Antoine Pitrou
New submission from Antoine Pitrou: subprocess.Popen() has both terminate() and kill() methods. Under Unix, the first sends SIGTERM and the second SIGKILL. multiprocessing.Process() only has terminate(), which sends SIGTERM. It may be useful to add a kill() method to send SIGKILL (on

DJANGO cannot import name _compare_digest

2017-06-28 Thread Xristos Xristoou
hello i have python 7.13 DJANGO 1.11.2 version django-crypto 0.20 version on windows 10. i want to create a DJANGO app but anytime to try to migrate i take that error : from django.utils.crypto import get_random_string File "C:\Python27\lib\site-packages\django\utils\crypto.py", line

[issue29759] Deadlock in multiprocessing.pool.Pool on terminate

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is tricky to reproduce but can definitely happen. It seems it is enough to release the lock when done, why did you have to move the `task_handler._state = TERMINATE` line in your patch? -- nosy: +pitrou ___

memoryview handling deallocated memory

2017-06-28 Thread djd
>From C I'm creating a memoryview object that wraps memory that is not under my >control and will be deallocated when the C function creating the memoryview >and passing it into Python returns. In Python 3.5 I can invoke `memoryview.release()` to handle this situation but I'm not seeing any

[issue30362] Launcher add list and list with paths options

2017-06-28 Thread Steve Dower
Steve Dower added the comment: Thanks, Steve! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue20210] Support the *disabled* marker in Setup files

2017-06-28 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +2537 ___ Python tracker ___ ___

[issue30362] Launcher add list and list with paths options

2017-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset 5b8f972e093157cc55185841db9ad33fa332a641 by Steve Dower (Steve (Gadget) Barnes) in branch 'master': bpo-30362 : Add list options to launcher. (#1578) https://github.com/python/cpython/commit/5b8f972e093157cc55185841db9ad33fa332a641 --

[issue30291] Allow windows launcher to specify bit lengths with & without minor version

2017-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset 5b8f972e093157cc55185841db9ad33fa332a641 by Steve Dower (Steve (Gadget) Barnes) in branch 'master': bpo-30362 : Add list options to launcher. (#1578) https://github.com/python/cpython/commit/5b8f972e093157cc55185841db9ad33fa332a641 --

[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Roman, do you think my analysis above is wrong? Otherwise, I'm inclined to close the issue. -- status: open -> pending ___ Python tracker

[issue30685] Multiprocessing Send to Manager Fails for Large Payload

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: As the comment just above that line says, this is for wire compatibility with older Python versions. But we could have an escape hatch: a special value of the length (which happens to be encoded as a signed integer), such as -64, which would signal a

[issue26251] Use "Low-fragmentation Heap" memory allocator on Windows

2017-06-28 Thread Steve Dower
Steve Dower added the comment: We tried it at one point, but it made very little difference because we don't use the Windows heap for most allocations. IIRC, replacing Python's optimised allocator with the LFH was a slight performance regression, but I'm not sure the benchmarks were reliable

[issue30703] Non-reentrant signal handler (test_multiprocessing_forkserver hangs)

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, https://github.com/python/cpython/pull/2415 is ready. -- ___ Python tracker ___

[issue21998] asyncio: support fork

2017-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Python 3.7 got as new os.register_at_fork() function. I don't know if it > could help: The most reasonable IMHO would be for it to mark the event loop "broken" (or closed?) in the child, to forbid any further use. By the way, on Python 3 (which is pretty

[issue30793] Parsing error on f-string-expressions containing strings with backslash

2017-06-28 Thread Anselm Kiefner
New submission from Anselm Kiefner: Considering that x = 3 f"{'hello' if x == 3 else 'goodbye'} world" is a simple, elegant and powerful piece of code that works just as expected by itself, I often find myself stumbling and wondering why f"text {'\n' if x == 3 else ''} text" fails horribly

[issue24905] Allow incremental I/O to blobs in sqlite3

2017-06-28 Thread Aviv Palivoda
Aviv Palivoda added the comment: Pinging. As I mentioned in the PR I need a little help with __contains__. -- ___ Python tracker ___

Re: Combining 2 data series into one

2017-06-28 Thread Albert-Jan Roskam
(sorry for top posting) Yes, I'd try pd.concat([df1, df2]). Or this: df['both_names'] = df.apply(lambda row: row.name + ' ' + row.surname, axis=1) From: Python-list on behalf of Paul Barry

[issue30772] If I make an attribute "[a unicode version of B]", it gets assigned to "[ascii B]", and so on.

2017-06-28 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-28 Thread Brett Cannon
Brett Cannon added the comment: Why do you want an index of *just* decorators? The documentation is structured so you look for the module that probably contains a solution to your problem and then you see what the module may have (which may have a solution that isn't a decorator). Jumping

[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: If possible, I'd like to work on this. -- nosy: +csabella ___ Python tracker ___

[issue30785] ast.c duplicates STR(CHILD)

2017-06-28 Thread Emily Morehouse
Emily Morehouse added the comment: Thanks Christopher, you are absolutely correct. There are a few ways in which this code could be optimized (and many other small optimizations probably exist elsewhere in the code). If you are interested in submitting a PR for this, you are more than welcome

[issue12939] Add new io.FileIO using the native Windows API

2017-06-28 Thread R. David Murray
R. David Murray added the comment: Given that background, closing it seems reasonable to me :) -- ___ Python tracker ___

[issue23808] Symlink to directory on Windows 8

2017-06-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2535 ___ Python tracker ___ ___

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2017-06-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2536 ___ Python tracker ___ ___

[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-06-28 Thread Sharan Yalburgi
Sharan Yalburgi added the comment: > Hi, did you read http://docs.python.org/devguide/ ? IMHO its a good start. > You can also join the https://www.python.org/dev/core-mentorship/ group to > get help! Yes I did. Thank you. I have made a PR. I says I haven't signed CLA yet. I am doing that

[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-06-28 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: When uploading patch from another person, please include "Original patch by " in the PR, and the commit message. Thanks. -- nosy: +Mariatta ___ Python tracker

[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-06-28 Thread Sharan Yalburgi
Changes by Sharan Yalburgi : -- pull_requests: +2533 ___ Python tracker ___ ___

Re: Mouse position values

2017-06-28 Thread Grant Edwards
On 2017-06-28, jorge.conr...@cptec.inpe.br wrote: > I have 3D data array and would like to plot arbitrary cross section > by cliking in my image. I was an IDL user and in IDL we have a > cursor.pro that I used to get the X and Y positions on my image. I > would like

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset b01c574ad6d796025152b5d605eceb7816e6f7a7 by Victor Stinner in branch 'master': bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h (#2477) https://github.com/python/cpython/commit/b01c574ad6d796025152b5d605eceb7816e6f7a7 --

[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: > Hey, I am new to Open Source, can I work on this? Hi, did you read http://docs.python.org/devguide/ ? IMHO its a good start. You can also join the https://www.python.org/dev/core-mentorship/ group to get help! --

[issue26506] [EASY] hex() documentation: mention "%x" % int

2017-06-28 Thread Sharan Yalburgi
Sharan Yalburgi added the comment: Hey, I am new to Open Source, can I work on this? -- nosy: +Sharan Yalburgi ___ Python tracker ___

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2532 ___ Python tracker ___ ___

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread STINNER Victor
STINNER Victor added the comment: Test fails on macOS: http://buildbot.python.org/all/builders/x86-64%20Sierra%203.x/builds/402/steps/test/logs/stdio == FAIL: test_getsitepackages (test.test_site.HelperFunctionsTests)

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2531 ___ Python tracker ___ ___

Re: A Good Tutorial on Python Decorators

2017-06-28 Thread Peter Pearson
On Tue, 27 Jun 2017 16:43:38 +, Andre Müller wrote: > Peter Pearson schrieb am Di., 27. Juni 2017 um > 18:35 Uhr: > >> On Tue, 27 Jun 2017 15:10:53 + (UTC), Saurabh Chaturvedi wrote: >> > https://opensource.google.com/projects/py-decorators-tutorial >> >> "No

[issue30792] Add contextlib.convert_exception manager

2017-06-28 Thread Steven D'Aprano
New submission from Steven D'Aprano: As discussed on Python-Ideas, there's some interest in a context manager that can convert an exception from one type to another (similarly to the way PEP 479 has StopIteration converted to RuntimeError. See the thread starting here:

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +2530 ___ Python tracker ___ ___

[issue29585] site.py imports relatively large `sysconfig` module.

2017-06-28 Thread INADA Naoki
INADA Naoki added the comment: New changeset a8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4 by INADA Naoki in branch 'master': bpo-29585: optimize site.py startup time (GH-136) https://github.com/python/cpython/commit/a8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4 --

[issue30791] tkinter.Tk() adds suffix to window class name when launching multiple instances

2017-06-28 Thread Håkon Hægland
New submission from Håkon Hægland: Hello. In order to group several instances of a given application under one icon in the desktop launcher (I am using Ubuntu 17.04) they must have the same appName property of the WM_CLASS string. For example, if I run emacs twice: $ emacs & $ emacs & Both

  1   2   >