[issue462628] NNTPLib supports saving BODY to a file

2022-04-10 Thread admin
Change by admin : -- github: None -> 35193 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Saving/exporting plots from Jupyter-labs?

2022-02-21 Thread Martin Schöön
Den 2022-02-14 skrev Martin Schöön : > > Now I am trying out Jupyter-labs. I like it. I have two head- > scratchers for now: > > 2) Why is Jupyter-labs hooking up to Google-analytics? Now I can answer this one myself. In a tab I had been working my way through a Holoviews tutorial. The tutorial

Re: Saving/exporting plots from Jupyter-labs?

2022-02-15 Thread Martin Schöön
Den 2022-02-15 skrev Reto : > On Mon, Feb 14, 2022 at 08:54:01PM +, Martin Schöön wrote: >> 1) In notebooks I can save a plot by right-clicking on it and do >> save image as. In Jupyter-lab that does not work and so far I >> have not been able to figure out how to do it. Yes, I have looked >>

Re: Saving/exporting plots from Jupyter-labs?

2022-02-14 Thread Reto
On Mon, Feb 14, 2022 at 08:54:01PM +, Martin Schöön wrote: > 1) In notebooks I can save a plot by right-clicking on it and do > save image as. In Jupyter-lab that does not work and so far I > have not been able to figure out how to do it. Yes, I have looked > in the documentation. Shift +

Saving/exporting plots from Jupyter-labs?

2022-02-14 Thread Martin Schöön
I have used Jupyter notebooks for some time now. I am not a heavy or advanced user. I find the notebook format a nice way to create python documents. Now I am trying out Jupyter-labs. I like it. I have two head- scratchers for now: 1) In notebooks I can save a plot by right-clicking on it and

[issue21140] Idle: saving Shell or an OutputWindow should default to .txt

2021-09-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From #45297, closed as duplicate. https://discuss.python.org/t/what-is-this-syntax-i-dont-know-how-to-fix-it/10844 -- ___ Python tracker

Re: Recommendation for drawing graphs and creating tables, saving as PDF

2021-06-12 Thread Chris Nyland
If you don't want to have to do any layout, Graphviz, which you mentioned, is probably the best and there are/were Python libraries that will let you control it to automatically produce files. The whole point of graphviz is to do all the layout, however my only grip is it doesn't always make the

Re: Recommendation for drawing graphs and creating tables, saving as PDF

2021-06-11 Thread Martin Di Paola
You could try https://plantuml.com and http://ditaa.sourceforge.net/. Plantuml may not sound as the right tool but it is quite flexible and after a few tweak you can create a block diagram as you shown. And the good thing is that you *write* which elements and relations are in your diagram

Re: Recommendation for drawing graphs and creating tables, saving as PDF

2021-06-11 Thread Neal Becker
Jan Erik Moström wrote: > I'm doing something that I've never done before and need some advise for > suitable libraries. > > I want to > > a) create diagrams similar to this one > https://www.dropbox.com/s/kyh7rxbcogvecs1/graph.png?dl=0 (but with more > nodes) and save them as PDFs or some

Re: Recommendation for drawing graphs and creating tables, saving as PDF

2021-06-11 Thread Rich Shepard
On Fri, 11 Jun 2021, Jan Erik Moström wrote: I looked around around but could only find two types of libraries for a) libraries for creating histograms, bar charts, etc, b) very basic drawing tools that requires me to figure out the layout etc. I would prefer a library that would allow me to

Recommendation for drawing graphs and creating tables, saving as PDF

2021-06-11 Thread Jan Erik Moström
I'm doing something that I've never done before and need some advise for suitable libraries. I want to a) create diagrams similar to this one https://www.dropbox.com/s/kyh7rxbcogvecs1/graph.png?dl=0 (but with more nodes) and save them as PDFs or some format that can easily be converted to

[issue43457] Include simple file loading and saving functions in JSON standard library.

2021-03-09 Thread Inada Naoki
Inada Naoki added the comment: I created a new vote for naming. https://discuss.python.org/t/vote-new-function-for-reading-json-from-path/7603 -- ___ Python tracker ___

[issue43457] Include simple file loading and saving functions in JSON standard library.

2021-03-09 Thread Inada Naoki
Inada Naoki added the comment: This idea is discussed several times. Last discussion thread is: https://mail.python.org/archives/list/python-id...@python.org/thread/YHO575YY4FQC3GBDF4SKOWIEAUSY3OQX/#YHO575YY4FQC3GBDF4SKOWIEAUSY3OQX -- nosy: +methane

[issue43457] Include simple file loading and saving functions in JSON standard library.

2021-03-09 Thread nervecenter
procedures in small-scale scripting tasks is loading a JSON file as simple data structures and saving simple data structures as a JSON file. This is normally handled using context managers, json.load(), and json.dump(). This is a bit cluttered and, I'd argue, not quite as Pythonic as the philosop

Re: Dataframe to postgresql - Saving the dataframe to memory using StringIO

2020-10-22 Thread Chris Angelico
On Fri, Oct 23, 2020 at 3:35 AM Grant Edwards wrote: > Moving from 2.x to 3.x isn't too bad, but trying to maintain > compatiblity with both is painful. At this point, I would probably > just abandon 2.x. > Definitely. No point trying to support both when you're starting with code from a Py3

Re: Dataframe to postgresql - Saving the dataframe to memory using StringIO

2020-10-22 Thread Grant Edwards
On 2020-10-22, Chris Angelico wrote: > On Fri, Oct 23, 2020 at 12:15 AM Shaozhong SHI wrote: >> What should I know or watch out if I decide to move from Python 2.7 >> to Python 3? > > Key issues? Well, for starters, you don't have to worry about whether > your strings are Unicode or not. They

Re: Dataframe to postgresql - Saving the dataframe to memory using StringIO

2020-10-22 Thread Chris Angelico
On Fri, Oct 23, 2020 at 12:15 AM Shaozhong SHI wrote: > > Thanks, Chris. > > What should I know or watch out if I decide to move from Python 2.7 to Python > 3? > > What are the key issues? Syntax? > Keep it on-list please :) Key issues? Well, for starters, you don't have to worry about

Re: Dataframe to postgresql - Saving the dataframe to memory using StringIO

2020-10-22 Thread Marco Sulla
; I would add that usually I do not recommend saving files on databases. I > > usually save the file on the disk and the path and mime on a dedicated > > table. > > I used to do that because backing up the database became huge. Now I use > ZFS snapshots with send/receive so the

Re: Dataframe to postgresql - Saving the dataframe to memory using StringIO

2020-10-22 Thread D'Arcy Cain
On 10/22/20 7:23 AM, Marco Sulla wrote: I would add that usually I do not recommend saving files on databases. I usually save the file on the disk and the path and mime on a dedicated table. I used to do that because backing up the database became huge. Now I use ZFS snapshots with send

Re: Dataframe to postgresql - Saving the dataframe to memory using StringIO

2020-10-22 Thread Chris Angelico
On Thu, Oct 22, 2020 at 8:28 PM Shaozhong SHI wrote: > > I found this last option is very interesting. > > Saving the dataframe to memory using StringIO > > https://naysan.ca/2020/06/21/pandas-to-postgresql-using-psycopg2-copy_from/ > > But, testing shows > unicode

Re: Dataframe to postgresql - Saving the dataframe to memory using StringIO

2020-10-22 Thread Marco Sulla
I would add that usually I do not recommend saving files on databases. I usually save the file on the disk and the path and mime on a dedicated table. -- https://mail.python.org/mailman/listinfo/python-list

Re: Dataframe to postgresql - Saving the dataframe to memory using StringIO

2020-10-22 Thread Marco Sulla
Try to save it in a binary field on PG using hdf5: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_hdf.html On Thu, 22 Oct 2020 at 11:29, Shaozhong SHI wrote: > I found this last option is very interesting. > > Saving the dataframe to memory using

Dataframe to postgresql - Saving the dataframe to memory using StringIO

2020-10-22 Thread Shaozhong SHI
I found this last option is very interesting. Saving the dataframe to memory using StringIO https://naysan.ca/2020/06/21/pandas-to-postgresql-using-psycopg2-copy_from/ But, testing shows unicode argument expected, got 'str' Any working example for getting DataFrame into a PostgreSQL table

Re: Problem saving datetime to file and reading it back for a calculation

2020-10-11 Thread Cameron Simpson
On 11Oct2020 20:39, Steve wrote: >Still, I enjoyed the kluge I created making it work based on discovery... Poking around in the datetime module will definitely make you aware of its power, and its pitfalls. Well worth doing. At the very least you'll usually want it when printing times out for

RE: Problem saving datetime to file and reading it back for a calculation

2020-10-11 Thread Steve
Thanks for the responses. Somehow, all of my python messages were shifted into the deleted folder so I missed all of them until I caught the one from MRAB. I will sift through them and probably update my technique to use seconds as suggested. Still, I enjoyed the kluge I created making it work

Re: Problem saving datetime to file and reading it back for a calculation

2020-10-11 Thread MRAB
On 2020-10-11 20:25, Steve wrote: Thanks for the response. I must have spent hours looking on-line for a method to treat datetime variables yet not one site mentioned the "pickle" module you indicatged. I did, however solve my problem. It may be a kluge but it seems to work. I learned that I

RE: Problem saving datetime to file and reading it back for a calculation

2020-10-11 Thread Steve
Granted, there may be other ways to do this but I actually enjoy the exploration... Still, I would like to see other methods. Steve -Original Message- From: Dieter Maurer Sent: Sunday, October 11, 2020 12:48 PM To: Steve Subject: Re: Problem savi

Re: Problem saving datetime to file and reading it back for a calculation

2020-10-10 Thread Chris Angelico
04800 seconds. The difference shows up when the conversion between UTC and local time changes - most commonly when Daylight Saving Time starts or ends... (And I guess if you care about leap seconds, then Unix time would be inappropriate there too. But I rather doubt that most of us are bothered by that.)

Re: Problem saving datetime to file and reading it back for a calculation

2020-10-10 Thread Cameron Simpson
On 10Oct2020 18:17, Steve wrote: >I would like to use the line: >HoursDiff = int((d2-d1).total_seconds()/3600) >to determine the difference in hours between two timedate entries. > >The variable d2 is from datetime.now() >and d1 is read from a text file. > >I can save d2 to the file only if I

Re: Problem saving datetime to file and reading it back for a calculation

2020-10-10 Thread Peter Pearson
On Sat, 10 Oct 2020 18:17:26 -0400, Steve wrote: > I would like to use the line: > HoursDiff = int((d2-d1).total_seconds()/3600) > to determine the difference in hours between two timedate entries. > > The variable d2 is from datetime.now() > and d1 is read from a text file. > > I can save d2 to

Problem saving datetime to file and reading it back for a calculation

2020-10-10 Thread Steve
I would like to use the line: HoursDiff = int((d2-d1).total_seconds()/3600) to determine the difference in hours between two timedate entries. The variable d2 is from datetime.now() and d1 is read from a text file. I can save d2 to the file only if I convert it to string and, at a later date, it

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-08-27 Thread Alexander Boeckmann
Alexander Boeckmann added the comment: So over the past week the issue resolved its self. I unfortunately did not get a video or a screenshot but thought you might want to know this So maybe Apple did something or you guys fixed it. Anyways, have a good day! --

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-08-20 Thread Ned Deily
Ned Deily added the comment: > Would taking a video help? It couldn't hurt and might very well help. > I'll make one anyways Thank you! -- ___ Python tracker ___

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-08-19 Thread Alexander Boeckmann
Alexander Boeckmann added the comment: Hey! I have the exact same thing as described happening! Python freezes when I try to save new files which sucks. I'm on Catalina: 10.15.6 IDLE: 3.8.5 Brand new MacBook Air As said earlier the only way out is to force quit. Would taking a video help?

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-08-14 Thread Ned Deily
Ned Deily added the comment: James, thanks very much for your detailed instructions. Alas, once again, I am unable to reproduce the hanging behavior under apparently similar conditions (10.5.6, Documents folder on iCloud, etc). I know this is frustrating to all of us. I have one new

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-08-10 Thread James Franks
James Franks added the comment: Hope this helps: I'm running Python Shell 3.8.5 on MacOSx 10.15.6 (Catalina). I can reproduce this hang easily. Open any existing module or create a new one. Can save the existing module or a new one just fine under the same name. (File menu - Save) Using

[issue41329] IDLE not saving .py files

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: In calling this a duplicate, and suggesting the fix above, I am assuming that a) you are using the new 3.8.4 and b) you have a non-ascii character in the .py file or files you tested. Since several years ago, the is the only case of save failing that I

[issue41329] IDLE not saving .py files

2020-07-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Add 'import io' to the top of /Lib/idlelib/iomenu.py. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE: add missing import io in iomenu.py ___ Python tracker

[issue41329] IDLE not saving .py files

2020-07-17 Thread Nick.Lupariello
iority: normal severity: normal status: open title: IDLE not saving .py files type: behavior versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue41329> ___ ___

[issue21140] Idle: saving Shell or an OutputWindow should default to .txt

2020-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: There was a recent stackoverflow question in which newbie pulled shell log into editor and ran as is. Got SyntaxError as 'Python 3' start of startup message. -- versions: +Python 3.10 -Python 3.6, Python 3.7 ___

[issue27965] Automatic .py extension when saving with IDLE on OSX

2020-06-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE does not supply a default ext of .py on Windows or OS X for new file saves ___ Python tracker

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: By 'preview', I meant the listing of existing file in the directory, such as Documents. IDLE displays this but, as I inferred and you and Bev confirmed, this is not standard on macOS, as there is a button (which I did not noticed before) to show or hide

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-11 Thread Ned Deily
Ned Deily added the comment: >To debug, and test Raymond's hypothesis, someone please try this minimal >(IDLE-free) code to show the dialog and print the return. >This does not display a preview, even after selecting a location, such as >Documents, on the 3rd line. Terry, I'm not sure I

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond, can you run the tests I suggested above? -- ___ Python tracker ___ ___ Python-bugs-list

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mat Wichmann responded "we had three of these in the last few weeks sent to webmas...@python.org. I just went back and pinged those folks with a request to look in on the issue, and contribute to it if they had anything new/useful to add." --

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I asked about other people's experiences on python-list and got 2 responses so far. --- On macOS The default Save/Save as dialogs are short, only displaying a few major folders along with Favorites and Recents. That dialog doesn’t display folder contents.

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: What is acting up here is the Catalina system SaveAs dialog on some systems with some settings when closing after being asked to display the current contents of the target location, allow the content to be variously filtered or not, and add a default

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I click Full Disk Access in Mohave, I see an empty box with a Header something like "All app to access Mail, ..., and all user data". None of it has anything obviously to do with the user Documents folder. Nor does it seem appropriate for a

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Zain Said
Zain Said added the comment: Ned, I do not use DropBox nor do i have Desktop & Documents Folders checked under my iCloud settings. Someone else in the community reached out to me and suggested that if IDLE is acting up its not worth the hassle. And that they're alternatives. I came a

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Ned Deily
about Dropbox is promising; can you say more, i.e. do you see hangs if you the folder you are saving to is within your Dropbox folder hierarchy? Zain, do you use Dropbox? And do either of you have your Documents folder stored in iCloud: System Preferences -> Apple ID (top right) ->

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Zain Said
Zain Said added the comment: I posted my issue on Experts Exchange and they suggested to go to system preferences>Security>go to privacy tab on the top>scroll down to Full Disk Access>Add IDLE and Python>then check off the box next to it> Since then my issue with IDLE not being able to

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Zain, do you happen to be working in a Dropbox synced directory when you observe the failure? -- ___ Python tracker ___

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zain, what I understand is: > python3.8 -m idlelib # To open idle from Terminal In IDLE, File=>New, then File=>SaveAs In dialog opened to Documents, enter name in Save As box, then click Save. For me 2012? Macbook Air with 10.14.6? Mohave and 3.8.3rc1, dialog

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Zain Said
Zain Said added the comment: The screenshot link is at the top of the thread -- ___ Python tracker ___ ___ Python-bugs-list

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Zain Said
Zain Said added the comment: Sure i'll supply a screenshot This problem doesn't effect saving in general after editing existing programs by the way. My process of saving a program: - I'll open IDLE (Python 3.8.2) - write anything at all - I'll either hit command>s or click file&g

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Ned Deily
Ned Deily added the comment: Zain and/or Raymond: can you please give the exact steps to reproduce this problem, including exactly how you invoke IDLE, the Python version info and build date info from the IDLE shell window, the details of exactly how you invoke Save As (i.e whether via

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Perhaps we could create an option in the general settings that offers a workaround: open a regular text window to get the filename. This wouldn't be as pretty (won't display filenames, offer mouse support, won't show file previews), but it would be

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: I frequently have this issue as well. My workaround is awful: I go to the terminal prompt to create an empty file with the desired name, and then open it up in IDLE to edit and save. This avoids the SaveAs dialog window that triggers the failure.

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-05-07 Thread Zain Said
New submission from Zain Said : What I'm currently using: Mid 2012 13'' MacBook Pro OS Catalina 10.15.4 Python 3.8.2 I'm having an issue with saving a new python program. When I go to "save as" a program python seems to freeze/not . The only way I've been able to get python wor

[issue26353] IDLE: Saving Shell should not add \n

2019-11-13 Thread Zackery Spytz
Zackery Spytz added the comment: Thank you, Terry, for modifying the PR and merging it. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread miss-islington
miss-islington added the comment: New changeset 8ce1a9ce038d1a5fda03ae76964002857a2a52f9 by Miss Islington (bot) in branch '3.8': bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103) https://github.com/python/cpython/commit/8ce1a9ce038d1a5fda03ae76964002857a2a52f9

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread miss-islington
miss-islington added the comment: New changeset 177b12682cad7edf9cdea91382acc4232c0167e6 by Miss Islington (bot) in branch '3.7': bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103) https://github.com/python/cpython/commit/177b12682cad7edf9cdea91382acc4232c0167e6

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +16625 pull_request: https://github.com/python/cpython/pull/17119 ___ Python tracker ___

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c8b53dc3d8f721ed8519aa5a35530a42fbfb9424 by Terry Jan Reedy (Zackery Spytz) in branch 'master': bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103) https://github.com/python/cpython/commit

[issue26353] IDLE: Saving Shell should not add \n

2019-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +16624 pull_request: https://github.com/python/cpython/pull/17118 ___ Python tracker ___

[issue26353] IDLE: Saving Shell should not add \n

2019-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zachary determined that the issue is that writing calls iomenu.IOBinding.fixlastline, which unconditionally adds \n at the end if there is one. That is not needed for the Shell and wrong when it ends with a prompt, which is the normal case. --

[issue26353] IDLE: Saving Shell should not add \n

2019-11-09 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +16609 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/17103 ___ Python tracker

[issue38598] IDLE: Disable F5, etc, in Shell, even after saving

2019-10-26 Thread Terry J. Reedy
. -- assignee: terry.reedy components: IDLE messages: 355432 nosy: terry.reedy priority: normal severity: normal stage: needs patch status: open title: IDLE: Disable F5, etc, in Shell, even after saving type: behavior versions: Python 3.7, Python 3.8, Python 3.9

Re: No option available for saving files

2019-06-07 Thread Terry Reedy
On 6/7/2019 10:51 AM, Calvin Spealman wrote: The python shell is good for experimenting and testing some things out, but you are right it isn't for writing programs you actually re-use and run later. You can use any text editor you want, Visual Studio Code and Sublime Text are both popular, but

Re: No option available for saving files

2019-06-07 Thread Calvin Spealman
The python shell is good for experimenting and testing some things out, but you are right it isn't for writing programs you actually re-use and run later. You can use any text editor you want, Visual Studio Code and Sublime Text are both popular, but anything will do at all. There is also a simple

No option available for saving files

2019-06-07 Thread Shreya Joshi
Hi ma’am/sir, I’ve started using python Shell 3.6.8-32 bit executable installer on windows OS. But there is no option to save or open a new file. This gives an output after every line. But, I want to work on longer codes to execute programs. Am I using the right interface? Please help. Here is

Re: I am facing problem in saving my file.

2018-12-16 Thread Abdur-Rahmaan Janhangeer
error message? Abdur-Rahmaan Janhangeer Mauritius -- https://mail.python.org/mailman/listinfo/python-list

I am facing problem in saving my file.

2018-12-16 Thread mallickaman2003
Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: Saving application configuration to the ini file respecting order of sections/options and providing mechanism for (nested) complex objects

2018-08-22 Thread zljubisic
Thanks. As I can see python 3.7 is the best option. Thank you very very muchs for the code as well. Best regards. -- https://mail.python.org/mailman/listinfo/python-list

Re: Saving application configuration to the ini file respecting order of sections/options and providing mechanism for (nested) complex objects

2018-08-21 Thread Peter Otten
zljubi...@gmail.com wrote: > 1. saving json will result in unordered ini file. It could be solved by > using OrderedDict that will than with json.dumps be saved to file in the > same order as options are added to the ordered dict. dict-s are guaranteed to keep insertion order in Python

Saving application configuration to the ini file respecting order of sections/options and providing mechanism for (nested) complex objects

2018-08-21 Thread zljubisic
will be able to save it with json.dumps and read it with json.loads, but I have run to several problems: 1. saving json will result in unordered ini file. It could be solved by using OrderedDict that will than with json.dumps be saved to file in the same order as options are added to the ordered dict. 2

Problem in extracting and saving multi-dimensional time series data from netcdf file to csv file

2018-04-17 Thread shalu . ashu50
Hi All, I am using winpython spyder 3.6. I am trying to extract a variable with their time series values (daily from 1950 to 2004). The data structure is as follows: Dimensions: (bnds: 2, lat: 90, lon: 144, time: 20075) Coordinates: * lat (lat) float64 -89.0 -87.0 -85.0 -83.0

[issue29216] Space saving step for the LRU cache

2018-01-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've lost interest in this. -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31988] Saving bytearray to binary plist file doesn't work

2017-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in issue32072. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Issues with binary plists ___ Python tracker

[issue31988] Saving bytearray to binary plist file doesn't work

2017-11-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue31988] Saving bytearray to binary plist file doesn't work

2017-11-08 Thread Serhiy Storchaka
alue) File "/home/serhiy/py/cpython/Lib/plistlib.py", line 741, in _flatten if (type(value), value) in self._objtable: TypeError: unhashable type: 'bytearray' -- components: Library (Lib) messages: 305921 nosy: ronaldoussoren, serhiy.storchaka priority: normal severity: normal s

[issue26353] IDLE: Saving Shell should not add \n

2017-06-19 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___

[issue29216] Space saving step for the LRU cache

2017-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, there is a wart in the optimization in Python implementation. If call a cached function with multiple integer arguments and with equivalent float arguments, the second call will return a cached result. But if call with single integer and float

[issue29216] Space saving step for the LRU cache

2017-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The first patch fails with e.g. tuple subclasses. The optimization is correct only for types not comparable with tuples. Tuple subclasses are comparable, and classes with custom __eq__ can be comparable. Thus the optimization should be used only for exact

[issue29216] Space saving step for the LRU cache

2017-01-09 Thread Raymond Hettinger
: functools_sync.diff keywords: patch messages: 285051 nosy: rhettinger, serhiy.storchaka priority: low severity: normal stage: patch review status: open title: Space saving step for the LRU cache type: resource usage versions: Python 3.7 Added file: http://bugs.python.org/file46228/functools_sync.diff

[issue29216] Space saving step for the LRU cache

2017-01-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file46229/functools_sync2.diff ___ Python tracker ___

[issue28581] Allow running code without explicitly saving the file.

2016-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: In my additional comment, I explored the idea of running without saving, not even to a temp file. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28581] Allow running code without explicitly saving the file.

2016-11-01 Thread perilbrain
perilbrain added the comment: Thanks Terry, I tried searching for a similar issue but failed. Feels like signing contributor form will take a while. Meantime please feel free to tweak/improve and implement code in your way (Mine is a bit rough solution not even abiding by naming convention),

[issue28581] Allow running code without explicitly saving the file.

2016-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that this is a problem that needs a solution. Your post gives the justification very well. I already opened #19042 for this issue, so as is our usual policy, I am merging this duplicate into that one. Thank you for submitting a patch. To apply it,

[issue28581] Allow running code without explicitly saving the file.

2016-11-01 Thread perilbrain
and close the file. If user again runs the code, check for this flag. If it is true then there is no need to ask for saving the code and again create the temporary file, execute, close. If some one needs to save this code they can use the "save as" menu which sets off the optedTemp flag.

[issue21140] Idle: saving Shell or an OutputWindow should default to .txt

2016-10-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: A more drastic change would be to refuse to save OutputWindow and Shell as .py(w,o) files. #28365 is about a beginner who apparently save a short Shell session as .py, quit IDLE, loaded the saved session in an editor, and tried to run it. --

[issue21140] Idle: saving Shell or an OutputWindow should default to .txt

2016-10-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am closing #28365 in favor of this. As noted there, Shell is a subclass of OutputWindow is a subclass of EditorWindow, so Shell should inherit new behavior from OutputWindow instead of both from EW. Change to the patch: I think .py should not even be a

[issue27965] Automatic .py extension when saving with IDLE on OSX

2016-09-06 Thread Terry J. Reedy
Changes by Terry J. Reedy <tjre...@udel.edu>: -- title: automatic .py extension -> Automatic .py extension when saving with IDLE on OSX type: -> behavior ___ Python tracker <rep...@bugs.python.org> <http://bugs.

Re: saving octet-stream png file

2016-08-22 Thread Jon Ribbens
On 2016-08-22, Larry Martell wrote: > On Mon, Aug 22, 2016 at 1:25 PM, Jon Ribbens > wrote: >> On 2016-08-22, Larry Martell wrote: >>> (Pdb) type(request.POST[key]) >>> >>> (Pdb) request.encoding = "iso-8859-1" >>>

Re: saving octet-stream png file

2016-08-22 Thread Larry Martell
On Mon, Aug 22, 2016 at 1:25 PM, Jon Ribbens wrote: > On 2016-08-22, Larry Martell wrote: >> On Sun, Aug 21, 2016 at 5:24 PM, Jon Ribbens >> wrote: >>> On 2016-08-19, Larry Martell wrote:

Re: saving octet-stream png file

2016-08-22 Thread Wildman via Python-list
On Mon, 22 Aug 2016 13:21:43 -0400, Larry Martell wrote: > On Fri, Aug 19, 2016 at 4:51 PM, Lawrence D’Oliveiro > wrote: >> On Saturday, August 20, 2016 at 6:03:53 AM UTC+12, Terry Reedy wrote: >>> >>> An 'octet' is a byte of 8 bits. >> >> Is there any other size of byte?

Re: saving octet-stream png file

2016-08-22 Thread Jon Ribbens
On 2016-08-22, Larry Martell wrote: > On Sun, Aug 21, 2016 at 5:24 PM, Jon Ribbens > wrote: >> On 2016-08-19, Larry Martell wrote: >>> fd.write(request.POST[key]) >> >> You could try: >> >> request.encoding =

Re: saving octet-stream png file

2016-08-22 Thread Larry Martell
On Fri, Aug 19, 2016 at 4:51 PM, Lawrence D’Oliveiro wrote: > On Saturday, August 20, 2016 at 6:03:53 AM UTC+12, Terry Reedy wrote: >> >> An 'octet' is a byte of 8 bits. > > Is there any other size of byte? Many, many years ago, probably c. 1982 my Dad came into my house

Re: saving octet-stream png file

2016-08-22 Thread Larry Martell
On Mon, Aug 22, 2016 at 10:36 AM, Larry Martell wrote: > On Fri, Aug 19, 2016 at 4:24 PM, Chris Kaynor > wrote: >> On Fri, Aug 19, 2016 at 12:00 PM, Larry Martell >> wrote: >> >>> On Fri, Aug 19, 2016 at 1:24 PM, Chris

  1   2   3   4   5   6   >